• We have updated our Community Code of Conduct. Please read through the new rules for the forum that are an integral part of Paradox Interactive’s User Agreement.
Double the size of the map? Does the game code allow this? Performance?

Every day I learn something more about HOI. My best guess about doubling the map size, is that it shouldn't be too difficult. Of course I would need to test it and some a little bench marking but a 5-7 year old PC shouldn't have an issue. If someone is still running a Celeron CPU, IDE hard drive, 8 Gb RAM, yes they'll have an issue. The reason I want to double it is when one zooms in on smaller countries (i.e. Andorra, San Marino, etc.) and the islands. When we do the map update, 1.14, I would also like to add a few columns to the province.csv file (i.e. Max Port...maximum port size and Max Men, they already have Air Capacity (AirCapacity) column that isn't currently being used). I've been to Palmyra on my parent's sail boat and there isn't much room on that island.
South America has a lot of Temperate climates. Have you looked at Chile, Paraguay? It seems the Pacific side is Temperate but the Atlantic side is (except for the Falklands) is SubArtic or Artic. It appears the climates for many provinces need to be re-evalurated...Brazil is Mediterranean, even the provinces that are Jungle. Then Argentina is SubArtic...yes, for their southern provinces but for Buenos Aires and north, no way. It should be at least Temperate and even some northern provinces subtropical.
By adding that one column, Hemisphere, to the province.csv file, one could be a bit more accurate since the world axis is 23.5 degrees.

I also want to split out the histories and statistics since they drastically slow down the game in later game year play. I would create a .his file with the same save name file that the game would access only when a player accesses it (Statistics tab, expanding down on ships, etc.)
 
Every day I learn something more about HOI. My best guess about doubling the map size, is that it shouldn't be too difficult. Of course I would need to test it and some a little bench marking but a 5-7 year old PC shouldn't have an issue. If someone is still running a Celeron CPU, IDE hard drive, 8 Gb RAM, yes they'll have an issue. The reason I want to double it is when one zooms in on smaller countries (i.e. Andorra, San Marino, etc.) and the islands. When we do the map update, 1.14, I would also like to add a few columns to the province.csv file (i.e. Max Port...maximum port size and Max Men, they already have Air Capacity (AirCapacity) column that isn't currently being used). I've been to Palmyra on my parent's sail boat and there isn't much room on that island.
South America has a lot of Temperate climates. Have you looked at Chile, Paraguay? It seems the Pacific side is Temperate but the Atlantic side is (except for the Falklands) is SubArtic or Artic. It appears the climates for many provinces need to be re-evalurated...Brazil is Mediterranean, even the provinces that are Jungle. Then Argentina is SubArtic...yes, for their southern provinces but for Buenos Aires and north, no way. It should be at least Temperate and even some northern provinces subtropical.
Although, maybe I was too hasty with doubling the size. But I got your idea. Another interesting thing: the /map file contains maplayer5, although the zoom in the game is only 4. What is this layer? I have not tried to experiment with it. Climate - yes, these are inaccuracies on my part. We need to review the climate for all regions. Glad you shed light on this topic.
I've been to Palmyra on my parent's sail boat and there isn't much room on that island.
Palmyra Atoll? Wow!
By adding that one column, Hemisphere, to the province.csv file, one could be a bit more accurate since the world axis is 23.5 degrees.
A hemisphere column would be a lifesaver for the various map projections in the game!
I want to sum up: climate is a rather hardcoded. The equator on the map is fixed, and without interference in the code, it cannot be moved. Climate calculation factors take into account the hemispheres of the earth.
https://forum.paradoxplaza.com/forum/threads/rus-language.1169964/post-30088467 This message is very important and at the moment, the most complete description of the climate in HOI2/AOD/DH
I also want to split out the histories and statistics since they drastically slow down the game in later game year play. I would create a .his file with the same save name file that the game would access only when a player accesses it (Statistics tab, expanding down on ships, etc.)
This is an unexpected turn of events. Does the game really lose speed when running this file?
 
Another interesting thing: the /map file contains maplayer5, although the zoom in the game is only 4. What is this layer?
I've tested it awhile back and had added a 5th zoom layer. I didn't spend anytime on it but it did add another zoom out, not too useful. What I need to investigate is where the code starts/sets the base layer so that the additional layer is a zoom in layer for those smaller provinces. I not sure if the map would need to be double, maybe 1.3 or 1.5 times) but as you say, you got the idea.

Palmyra Atoll? Wow!
Yes. My dad (actually step-dad) was retired US Navy submariner (so is my younger step-brother). When my dad retired they sold the house in Chula Vista (just south of San Diego, about 5-6 Kms from Tijuana, Mexico) and bought a 32 foot (9.75 m) sailboat. They live and traveled on it for a little over 10 years. Alaska, Baja California, Kiribati, New Zealand, Australia, basically the South Pacific. So when I was stationed in Hawai'i (where my dad is from), I took leave (vacation) and sailed down to Palmyra and back with them. It was so fun. My parents even took our Australian Captain (attached to the 25th Infantry Division) and his family out on a sail from Oahu to Lanai.

This is an unexpected turn of events. Does the game really lose speed when running this file?
This has been a huge issue if one plays the 1936 scenario. It continues to slow down and by 1945 is ridiculously slow. When the game is running, all of each countries history (sunk ships, basically any statistics) are stored in memory. When the game is saved or a saved game is loaded, those statistics are saved to the save game file or loaded into memory. Years ago I even did a HOI2 History Archiver (you can find it on the forum or just do an internet search) that would remove the history so players could continuing to play the game. By creating a .his file it would 'unload' that data from the game's memory when running and remove it from the saved game file. Then when one wants to view the statistics and history, the game would 'look' at that .his and display it for the user, never loading it into memory/RAM.
 
  • 1Like
Reactions:
I've tested it awhile back and had added a 5th zoom layer. I didn't spend anytime on it but it did add another zoom out, not too useful. What I need to investigate is where the code starts/sets the base layer so that the additional layer is a zoom in layer for those smaller provinces. I not sure if the map would need to be double, maybe 1.3 or 1.5 times) but as you say, you got the idea.
And this zoom5 - does it zoom in or zoom out as much as possible? Or does it depend on the value specified in the code? Yes, at least 1.3-1.5 size. The actual size of the map is 2.4 by 5 meters:)
Yes. My dad (actually step-dad) was retired US Navy submariner (so is my younger step-brother). When my dad retired they sold the house in Chula Vista (just south of San Diego, about 5-6 Kms from Tijuana, Mexico) and bought a 32 foot (9.75 m) sailboat. They live and traveled on it for a little over 10 years. Alaska, Baja California, Kiribati, New Zealand, Australia, basically the South Pacific. So when I was stationed in Hawai'i (where my dad is from), I took leave (vacation) and sailed down to Palmyra and back with them. It was so fun. My parents even took our Australian Captain (attached to the 25th Infantry Division) and his family out on a sail from Oahu to Lanai.
You are a hereditary military man. I am a hereditary geologist - my parents and grandparents were also involved in geology. Every summer I go to the taiga and dig in the ground. We are probably united by the ability to use topographic maps and a compass. Although now, in fact, GPS navigators have completely replaced the compass.
This has been a huge issue if one plays the 1936 scenario. It continues to slow down and by 1945 is ridiculously slow. When the game is running, all of each countries history (sunk ships, basically any statistics) are stored in memory. When the game is saved or a saved game is loaded, those statistics are saved to the save game file or loaded into memory. Years ago I even did a HOI2 History Archiver (you can find it on the forum or just do an internet search) that would remove the history so players could continuing to play the game. By creating a .his file it would 'unload' that data from the game's memory when running and remove it from the saved game file. Then when one wants to view the statistics and history, the game would 'look' at that .his and display it for the user, never loading it into memory/RAM
I'll check it out. Honestly, I've never heard of it. The only thing I noticed - for example, when playing as Japan and destroying the Comintern and the Allies in 43/44 - if you cancel all trade agreements, the game runs noticeably faster.
 
And this zoom5 - does it zoom in or zoom out as much as possible?
I don't know for sure. I came across the code while doing something else and only changed the number of zoom levels. Didn't investigate any further.

Many children do follow their parents. I joined the Army to get money for college and then found out I enjoyed, even going as far to make myself a promise not to get married while in the Army since I wanted to focus on my career. I did marry my husband after retiring and now we have a 20th wedding anniversary at the end of this coming February. Maps, yes! I was able to do a 10 digit (10m) military grid coordinate just by looking at the map and the terrain (orientation). At Fort Irwin (where the OPFOR (Opposing Forces) are, even our topographic maps were in Russian. :) I also still remember my pace counts (how many steps one takes in 100m walking and another count running). This way, if you can't see prominent terrain features (like in a jungle) you can still know where you're, as long as you stay on your azimuth.

The history does slow down the game but with cheaper and faster memory, CPUs, and SSDs & M.2 drives, we don't see much affect that the history did 10 years ago.
 
Many children do follow their parents. I joined the Army to get money for college and then found out I enjoyed, even going as far to make myself a promise not to get married while in the Army since I wanted to focus on my career. I did marry my husband after retiring and now we have a 20th wedding anniversary at the end of this coming February. Maps, yes! I was able to do a 10 digit (10m) military grid coordinate just by looking at the map and the terrain (orientation). At Fort Irwin (where the OPFOR (Opposing Forces) are, even our topographic maps were in Russian. :) I also still remember my pace counts (how many steps one takes in 100m walking and another count running). This way, if you can't see prominent terrain features (like in a jungle) you can still know where you're, as long as you stay on your azimuth.

The history does slow down the game but with cheaper and faster memory, CPUs, and SSDs & M.2 drives, we don't see much affect that the history did 10 years ago.
Yes, it is :) Now I mainly use maps of scale 1:10 000 and less often 1:5 000, 1:2 000 plan. Topographic maps of this scale are unfortunately secret and permissions are always needed to obtain them. And they are hopelessly outdated - 1962-1968, sometimes 1980s. And in my opinion, their accuracy is sometimes questionable. And it is also very difficult to work with them in relation to GIS programs. Unfortunately, maps from open sources are not so accurate, and the construction of relief from the USGS map index is supposedly more accurate, but only for 1:10 000 or 1:20 000 scale - And it is very problematic to work between the Pulkovo 1942 projections (used in the USSR and the Russian Federation and Mercator). Wow, we were also taught to count steps, but compasses are now mainly used only for measuring the angles of incidence and azimuth of strike of geological structures. To determine the position or position reference in the main GPS
 
We had compasses and clinometers (for measuring slopes) but now it's all GPS. What happens when there are no satellites? Same with stores today, what happens when the power goes off? They can't sell anything because they don't know how to do it manually anymore.
 
  • 1Like
Reactions:
I was thinking. If you increase the size of the map, how will the distance calculation work? If DH has a distance.csv file in which user coordinates are specified, then AOD calculates the pixel distance. Perhaps there is a coefficient in the game engine that, when the map size increases, must also be proportionally increased.
 
I'll need to check more into the map code. I didn't even know they AoD uses pixels for calculations. If it does , the easier solution would be yours, adding a coefficient.
 
I'll need to check more into the map code. I didn't even know they AoD uses pixels for calculations. If it does , the easier solution would be yours, adding a coefficient.
I'm not sure if the term is correct. It's just that the DH developers were very proud that their calculations were done using a new system - namely real coordinates. And the old system was based on pixels. The advantages of the new system are presented as speed - this is probably true. It's not noticeable on an SSD. But the main thing is that you can manually change the location of the province - just change the coordinates in the distance.csv file.
 
Yes, with the SSDs and RAM (AoD 1.13 can use up to 870 MB), the province distances could be done a couple of ways.
  1. Leave the distance as is and in add a 'Map Size' variable. If we were to double the size of the map, that variable would 2.
  2. Increase the map size and update the distances in the distance.csv by the same size.
  3. We could use actual coordinates (Latitude/longitude or Universal Transverse Mercator (UTM)) but if there is little improvement, is it worth it?
My choice would be #2.
How are the distances in the distance.csv calculated? Center to center?