[Modding] Creating my first scenario
-
Cablenexus
- Sr. Colonel - Battleship

- Posts: 1691
- Joined: Mon Jan 04, 2016 7:09 pm
Re: [Modding] Creating my first scenario
First time reach over 1117 UNITS in one game. Game last about 30 turns here. Performance is going well.
- Attachments
-
- 1117.jpg (589.03 KiB) Viewed 2293 times
-
Cablenexus
- Sr. Colonel - Battleship

- Posts: 1691
- Joined: Mon Jan 04, 2016 7:09 pm
Re: [Modding] Creating my first scenario
Significant boost with latest .exe file. CPU, GPU and memory is reduced. Memory is the most visible. The game is using about 700 mb in taskmanager.
Turn 40 of a 89x89 map with over 1500 objects, can easy enable disable fog/trees/grid/max zoom in/out etc
No drop in performance.
Game is running for 10 + hours.
Background apps open (Win10 creators fall, Steam, IOBIT system manager, Firefox with multiple tabs, Paint.net with multiple textures open, notepad++ wit multiple big files open).
(The only minor performace drop is when the tech screen opens and when I build a temple and it has to calculate and show the influence area).
Turn 40 of a 89x89 map with over 1500 objects, can easy enable disable fog/trees/grid/max zoom in/out etc
No drop in performance.
Game is running for 10 + hours.
Background apps open (Win10 creators fall, Steam, IOBIT system manager, Firefox with multiple tabs, Paint.net with multiple textures open, notepad++ wit multiple big files open).
(The only minor performace drop is when the tech screen opens and when I build a temple and it has to calculate and show the influence area).
- Attachments
-
- result2.jpg (276.33 KiB) Viewed 2289 times
Re: [Modding] Creating my first scenario
You probably need to explain that this is a confirurable options in mod, otherwise noone will understand what you mean by that.Cablenexus wrote:Really like it with ambience change in colors.
That is really great news!Cablenexus wrote:First time reach over 1117 UNITS in one game. Game last about 30 turns here. Performance is going well.
Btw. for other readers, Cablenexus is talking about a testing exe file I sent him yesterday. It is going to be part of the next build V5.
Re: [Modding] Creating my first scenario
I think the way hills stand out in this screenshot is excellent. I like the colors very much. Is this achievable with current settings, only in your mod, or what?Cablenexus wrote:Really like it with ambience change in colors.
Re: [Modding] Creating my first scenario
Well those are actually mountains, Cablenexus changed the texture:) You can just overwrite the "bitmaps.dds" file in ancient_rome mod folder if you want to have it also theregwgardner wrote:I think the way hills stand out in this screenshot is excellent. I like the colors very much. Is this achievable with current settings, only in your mod, or what?
Re: [Modding] Creating my first scenario
I like mountains to be moutans and hills to be hills. Bad Cablenexus.pavelk wrote:Well those are actually mountains, Cablenexus changed the texture:) You can just overwrite the "bitmaps.dds" file in ancient_rome mod folder if you want to have it also theregwgardner wrote:I think the way hills stand out in this screenshot is excellent. I like the colors very much. Is this achievable with current settings, only in your mod, or what?
-
Cablenexus
- Sr. Colonel - Battleship

- Posts: 1691
- Joined: Mon Jan 04, 2016 7:09 pm
Re: [Modding] Creating my first scenario
You are absolutely right. Pavel noticed this as well.gwgardner wrote:I like mountains to be moutans and hills to be hills. Bad Cablenexus.pavelk wrote:Well those are actually mountains, Cablenexus changed the texture:) You can just overwrite the "bitmaps.dds" file in ancient_rome mod folder if you want to have it also theregwgardner wrote:I think the way hills stand out in this screenshot is excellent. I like the colors very much. Is this achievable with current settings, only in your mod, or what?
The reason was that Holland is really flat. We don't have mountains. So I changed mountains into hills, but then I have to call them hills.
I will try to achieve a simular effect with a real mountain this weekend.
Thank you for the feedback.
Re: [Modding] Creating my first scenario
I definitely wouldnt do that. Why would ypi have two terrain types when you want just one? Simply stop using mountains entirely.Cablenexus wrote:The reason was that Holland is really flat. We don't have mountains. So I changed mountains into hills, but then I have to call them hills.
If you just rename mountains to hills, it will still exist in the game as mountains internally (For example the terrain movement for units will differ, etc).
Why you didnt use hills in the first place?
I initially thought that you wanted to just change the texture so it looks more Dutch, but it will still be an impassable terrain. If you want to use it as hills, you should rather use real hills (otherwise you will need to change all the TerrainBehaviorMemento elements for mountains
Re: [Modding] Creating my first scenario
I implement this as promised. Edit your scenario file and add to all <param elements inside ReportMemento elements this attributes="41" . This will prevent the userRead change when scenario is created. Of course it will work since V5. If you change it now, it will not work and it might also crash:)) (because such value doesnt exist yet)pavelk wrote:I get the point know. There are so called "attributes" which are created for such scenarios. I will add a new attribute which will prevent this for certain reports once they have the attribute selected. Logged.Cablenexus wrote:The problem by design is that when I edit my scenario afterwards and export it again I have to manually delete all those lines to have the intro text shows up for new player
-
Cablenexus
- Sr. Colonel - Battleship

- Posts: 1691
- Joined: Mon Jan 04, 2016 7:09 pm
Re: [Modding] Creating my first scenario
There are a few wishes and a few problems to overcome. I want both hills and mountains and something between (the Ardenna) which is forest on very high hills, but not called mountains.pavelk wrote:I definitely wouldnt do that. Why would ypi have two terrain types when you want just one? Simply stop using mountains entirely.Cablenexus wrote:The reason was that Holland is really flat. We don't have mountains. So I changed mountains into hills, but then I have to call them hills.
If you just rename mountains to hills, it will still exist in the game as mountains internally (For example the terrain movement for units will differ, etc).
Why you didnt use hills in the first place?
I initially thought that you wanted to just change the texture so it looks more Dutch, but it will still be an impassable terrain. If you want to use it as hills, you should rather use real hills (otherwise you will need to change all the TerrainBehaviorMemento elements for mountains
With the heightmap I did not managed to create a hill pattern that looks like the mountain pattern. I want my hills looks like the hills in the screens I showed already and there need to be also mountains in the South part.
I also want to stay close to my main goal. Make the terrain map tiles more distinct from each other and use the terrain overlay as an example.
I managed this for example with the grey hills I made first, and use the heightmap image to create better hills (still I don't like them compared to the hills I created with the mountain setting.
But I'm not done experimenting yet, maybe I can use the mountain pattern as an example of how hills will be drawn, but I'm afraid I come into problems with collision if units stand on them.
- Attachments
-
- terrainheight.jpg (485.32 KiB) Viewed 2266 times
Re: [Modding] Creating my first scenario
You are creating the heightmap yourself or let the scenario exporter do that for you?
-
Cablenexus
- Sr. Colonel - Battleship

- Posts: 1691
- Joined: Mon Jan 04, 2016 7:09 pm
Re: [Modding] Creating my first scenario
In the above screen I made the hill part somewhat darker (just slightly). But I'm not happy with the pattern at all and how the texture fit on the hill tiles. Also now it's again different to distinct the hill from the forest.pavelk wrote:You are creating the heightmap yourself or let the scenario exporter do that for you?
That grey mountain isn't realistic at all, or it has to be stonemines.
Re: [Modding] Creating my first scenario
If you leave the scenario creator to create the heightmap, I can tell you how to change the creation process to have hills higher (automatically)Cablenexus wrote:In the above screen I made the hill part somewhat darker (just slightly). But I'm not happy with the pattern at all and how the texture fit on the hill tiles. Also now it's again different to distinct the hill from the forest.pavelk wrote:You are creating the heightmap yourself or let the scenario exporter do that for you?
That grey mountain isn't realistic at all, or it has to be stonemines.
Look into the mod file and this part
Code: Select all
<CustomizedGameDataTypeMemento id="12" gameDataType="1" name="Texts.HeightMapSetting" defaultId="1" isDisplayed="false">
<customizedGameDataTypeOptions>
<customizedGameDataTypeOptions>
<CustomizedGameDataTypeOptionMemento id="1">
<customizedGameDataHeightMap>
<heightMapTerrains>
<heightMapTerrains>
<MapGeneratorHeightMapTerrainSettingMemento terrainId="5" numberOfPoints="20" maxHeightIndex="190" maxSize="20"/>
<MapGeneratorHeightMapTerrainSettingMemento terrainId="7" numberOfPoints="30" maxHeightIndex="30" maxSize="15"/>
</heightMapTerrains>
</heightMapTerrains>
</customizedGameDataHeightMap>
</CustomizedGameDataTypeOptionMemento>
</customizedGameDataTypeOptions>
</customizedGameDataTypeOptions>
</CustomizedGameDataTypeMemento> -
Cablenexus
- Sr. Colonel - Battleship

- Posts: 1691
- Joined: Mon Jan 04, 2016 7:09 pm
Re: [Modding] Creating my first scenario
Thank you, I got it.
Is it correct that only when exporting a scenario you get the heightmap calculated? Exporting it and saving teh scenario is not refresh the terrain heightindex for me.
Is it correct that only when exporting a scenario you get the heightmap calculated? Exporting it and saving teh scenario is not refresh the terrain heightindex for me.
Re: [Modding] Creating my first scenario
Yes. It is correct. The heightmap is created automatically when you generate new map (customized new world) or export your scenario. Once the game is just loaded, it doesnt regenerate it.Cablenexus wrote:Thank you, I got it.
Is it correct that only when exporting a scenario you get the heightmap calculated? Exporting it and saving teh scenario is not refresh the terrain heightindex for me.
-
Cablenexus
- Sr. Colonel - Battleship

- Posts: 1691
- Joined: Mon Jan 04, 2016 7:09 pm
Re: [Modding] Creating my first scenario
Another attempt. Still with the default height map settings, I have to learn to work with them.
- Attachments
-
- another.jpg (269.1 KiB) Viewed 2257 times
-
Cablenexus
- Sr. Colonel - Battleship

- Posts: 1691
- Joined: Mon Jan 04, 2016 7:09 pm
Re: [Modding] Creating my first scenario
If you look good at the different height the units standing on (see also the blacksmith in a valley) you can do spectactular things with the heightmaps and generation settings.
- Attachments
-
- depth.jpg (274.33 KiB) Viewed 2256 times
-
Cablenexus
- Sr. Colonel - Battleship

- Posts: 1691
- Joined: Mon Jan 04, 2016 7:09 pm
Re: [Modding] Creating my first scenario
Slowly getting somewhere. Now I want to have the stones appears sometimes on the hills to give it more diversity.
- Attachments
-
- hills.jpg (275.78 KiB) Viewed 2252 times
-
Cablenexus
- Sr. Colonel - Battleship

- Posts: 1691
- Joined: Mon Jan 04, 2016 7:09 pm
Re: [Modding] Creating my first scenario
What about this?
- Attachments
-
- final.jpg (792.76 KiB) Viewed 2252 times
-
Cablenexus
- Sr. Colonel - Battleship

- Posts: 1691
- Joined: Mon Jan 04, 2016 7:09 pm
Re: [Modding] Creating my first scenario
Issue with dissapearing trees in large maps is eliminated since latest update (smooth .exe).
- Attachments
-
- trees.jpg (221.39 KiB) Viewed 2250 times
