User talk:Charlesex

From Europa Universalis 4 Wiki
Jump to navigation Jump to search

Naval maintenance[edit]

You removed "base maintenance modifier" due to finding no reference - please see in /Europa Universalis IV/common/defines.lua under HEAVY_SHIP_MAINT_FACTOR, LIGHT_SHIP_MAINT_FACTOR, GALLEY_MAINT_FACTOR, TRANSPORT_MAINT_FACTOR. Perhaps you can verify the correct formula. – Lillebror (talk) 20:24, 6 April 2016 (CEST)

Looking at it now. I'll revise it once I have the info. – Charlesex (talk) 14:34, 6 April 2016 (EDT)
This is the best formula I've found so far, but it's somewhat awkward. I've tested it through modification of the LUA file, and it holds up ingame.
base ship maintenance = base cost * truncate[(ship maintenance factor*.08), 2]
I've made updates accordingly.
– Charlesex (talk) 19:34, 6 April 2016 (EDT)
The maintenance factor from defines.lua is a yearly value. For the monthly calculation of the maintenance it is divided by 12. The result is truncated after 3 digits. (As for land maintenance.)
I don't understand why you have the number of ships in a class in the second formula (and a Σ-sign), if you just want to calculate the maintenance cost for 1 ship.
Ship Class monthly maintenance factor
Heavy ship.png Heavy ships 0.8%
Heavy ship.png Light ships 0.2%
Galley.png Galleys 0.3%
Transport.png Transport 0.3%
– Lillebror (talk) 10:06, 7 April 2016 (CEST)
Well, then. The formula I found was from about 3 hours of testing - there was no indication of the truncation beforehand, I found that myself. I'll update that calculation and make the wording a bit clearer, but I'll also maintain the technical math.
On the other hand, with "naval maintenance cost", I find that a misnomer/confusing, since it doesn't indicate whether it's total or individual ship maintenance. The sum came from trying to create a total maintenance formula, but it's better put in a higher-order portion of the equation. I'll tweak again to make a clearer formula.
User:Charlesex 09:40, 7 April 2016 (EDT)
Thanks for your time. I think it is better to have a formula for only 1 ship. If you include the number of ships, the formula is valid only as long as the number of ships is less than or equal the naval force limit. – Lillebror (talk) 09:19, 8 April 2016 (CEST)

New flags[edit]

I had just started my count before your flags were uploaded so they'll get tickets in the next set. They're both exactly what we're after. Keep up the good work. Dauth (talk) 00:53, 8 April 2016 (CEST)

No problem. It'll probably take a while though, as each one needs to be manually edited. I'm planning to get all of them done though, even if it takes longer than the contest. - User:Charlesex 20:00, 7 April 2016 (CDT)

Image resolution[edit]

Hello,how do you make a small image ( for example http://www.eu4wiki.com/File:Apache.png) bigger resolution without losing quality? 123e55 (talk) 14:38, 13 April 2016 (CEST)

In order to increase res while maintaining quality, you can't just throw it into paint and change resolution/upscale it. Sharpening doesn't work, either - there isn't enough detail left at that point.
It's rather tedious - the only ways to do so are either to redraw the image yourself, or vectorize it and edit an upscaled redrawn image.
The way I did the images I uploaded were:
1. Take low-quality image, vectorize in adobe illustrator to create a base image
2. Export image at 600x900 resolution, png
3. Smooth curves in paint.net/image editor
4. Re-vectorize in adobe illustrator
5. Export again in 600x900 resolution
6. Add missed details in image editor, smooth any missed curves
7. Finished image
It's rather tedious. If you choose to follow, good luck with it.
- User:Charlesex 14:55, 13 April 2016 (CDT)