Age of Wonders III

Age of Wonders III

Community Made Maps & Campaigns
Welcome to the Age of Wonder III Workshop. The place on Steam to get and share handcrafted scenarios, epic campaigns and mods that implement little tweaks to full game overhauls.
Learn More
Ayalin 12 23 May, 2022 @ 7:49am
City upgrade linked to a structure not working for all structures?
Hey guys,

Kinda scratching my head on this one; I am working on a mod to propose new upgrades when you have certain structures in your domain (notably the basic ones : mana nodes, gold mine, magma forge...) exactly like what the 2nd DLC did.

I did most of them, filled in the proper structure string to unlock the upgrade (MANA_NODE for mana node, etc) , then I did create a proper racial link upgrade file as well.

At the end of the day, I do see the new structures I have created for Gold Mine and Mana Node, but for many other structures I do not see anything at all after testing.
So far, I cannot see any unlockable structures for : magma forge, Great Farm, Earth Node, Creation Node, despite doing the exact same files for these.

If a dev/experienced modder could answer this it would be great, honestly I am just wondering the following : are there any not-so-obvious reason which could prevent elemental nodes or Great farm / magma forge to not serve as a structure for unlocking upgrades?
if there are no reasons I guess there are some mistakes on my side I did not see, but it's always worth asking so.. thanks in advance!
< >
Showing 1-15 of 15 comments
Gladen 16 23 May, 2022 @ 11:59am 
Do you have property linked city prop and player props according in which city allowed to build each upgrade?

Outpost, village, town, etc?

I don't have time to investigate this topic at the moment but will return with a definite answer later as I'm not by CPU at moment to not guess overly much

It can be classified easily as difference between treasury sites, visits, etc that mcu is not available..

However, the stuff from "base" game is very different from dlc.. but I think the answer is within the base game rpk. Mcu is not that difficult to add in general as you look how things are linked in Dlc2 package

But it's either in those three "city logic.rpk, cityproperties.rpk or citypropertieslogic.rpk" I think we at some point created mcu from "aow structure.rpk" for Shadow Realm mod. But time has flown.
Gladen 16 23 May, 2022 @ 12:02pm 
Oh and in general have you restrictions for specific races? I guess each race need to have a link to the mcu itself
Ayalin 12 23 May, 2022 @ 12:20pm 
I did the race link for sure; but the outpost/village/town thingy I don't remember having done it... But I did not do it for any of them and stuff is working for mana node/gold mine and not for the others so that's why I am a bit puzzled.
Could be that mana node and gold mine were setup properly when the DLC 2 came out and not the others.. let me know if you have any other ideas btw and thank you very much for your answer.
Ayalin 12 23 May, 2022 @ 12:24pm 
Among the various hypothesis I have - one of my active mod is modfiying the RPK linked to a structure and changed the string name associated to it but I really can't think of any so... not sure.
Gladen 16 23 May, 2022 @ 12:40pm 
I can return with a definite answer tomorrow.
Gladen 16 23 May, 2022 @ 12:42pm 
At least one mod has done it already. https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=636431583

So it's likely doable
Ayalin 12 23 May, 2022 @ 12:56pm 
Yeah I mean I did make it work for mana node / gold mine but the others aren't showing :(
All the following do not seem to work : great farm / magma forge and all the elemental nodes.
Gladen 16 24 May, 2022 @ 5:10am 
Okey so.

In Aow_CityProperties.Rpk did you link your new city upgrades with new MCU to a new "AoW Race City Upgrade Link Data" without setting Race link?

In CityPropertiesLogic.rpk did you create a "AoW City Upgrade: Normal" and added all the corresponding settings similiar as other mcu? Added the correct "Recured Structure Name" like:

GREAT_FARM, GOLD_MINE, MANA_NODE, MAGMA_FORGE etc

Then added your string of "Upgrade name" to something like "AYALINS_PREMIUM_FARM" or something.

Created a "AoW City Property" for it like "Has Ayalins Premium Farm" and link it to the "AoW City Upgrade" you made for your custom city upgrade. Then did not set anything for "Required CIty Properties" and just used the "Properties"

The "Properties" field also requires all your inputs and bonus and stuff. Maybe someone got 1+ melee damage or whatever from something like "AoW City Property: Unit Property" connected with another prop or ability group.

You might also want to replace the text various text for each structure so they correspond with your mod that they also feature a mcu building through hypertext.
Last edited by Gladen; 24 May, 2022 @ 5:12am
Ayalin 12 24 May, 2022 @ 5:43am 
On the top of my head yes to all of that honestly.
1. All my upgrades have Race city upgrade link data without any race link so that it's applied to every playable race.
2. I did create all the upgrade:normal files (they are the files being linked to the race city upgrade link mentioned in 1.)
3. I did fill the required structure name with the proper string.
4. They have an upgrade name as well
5. I did all the aow city property "has my_building_name" and linked them to the files created in point 2)
6. Yeah I did a bunch of them for all of my new upgrades, they are linked too.
7. Text is done as well. Actually they all have a unique new icon as well which I imported using the resource editor and photoshop.

So I don't feel like I have screwed any of the basic things I was supposed to do.
I will try the following :
- Remove the required structure name to see if the building exists and is buildable in game normally without any requisites.
- If it is still not buildable, it means the problem comes from the upgrade files or the race link files.. I think I will just delete the files and redo them in this case, might be a file-ID issue from a bad copy-paste or whatever.
- If it is buildable, it means the issue comes from the string name unlocking the upgrade. I will deactivate all my other mods and only activate this one to see if it works (like I mentioned, I feel it could be that one of my other mod is modifying the string name of structures).
- Eventually, I may want to try writing my files in a base-game package instead of on a DLC2 resource pack. Connections between the resource packs from the different expansions are not that good I have noticed and it could be the issue.
- If all of that this still does not work I am screwed honestly I don't see any other things I can really do to fix the problem.
Gladen 16 24 May, 2022 @ 5:59am 
Clearly.

I managed to make it work with the mentioned site. Problably some mods may edit the same values in your case
Gladen 16 24 May, 2022 @ 6:15am 
https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=2812098386
https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=2812098520
https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=2812098445
https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=2812098495

Essentially I just changed the "Required Structure Name"´to test this.

I believe if you do this: by changing the values of something already inside game and test it yourself you will have the answer of your problem.
Last edited by Gladen; 24 May, 2022 @ 6:15am
Ayalin 12 24 May, 2022 @ 6:46am 
Yeah thank you very much for the proof of concept I need to find the naughty mod doing this... (spoiler : could be one of mine xD)
Gladen 16 24 May, 2022 @ 7:17am 
Could be. This is typically one the more easier things in mods to add. So I dont see any hinderance unless something is drastically changing stuff.
Ayalin 12 29 May, 2022 @ 2:42am 
Hey,
The mod V1 is done and published, thank you again Gladen for your help !
You can check it here if you want :
https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=2814208650
So to cut things short, I simply recreated files and it worked. I do believe the issue was generated by the following :
- At some point I did load a package which was already loaded in the mod, and when I tried to remove it (thinking it would only remove the duplicate) it did also generate some weird errors. I closed and reopened the package editor, and my files originally created in the first package were still here "apparently" but I strongly believe that they were actually erased when I removed the duplicate package.
Gladen 16 29 May, 2022 @ 3:12am 
Glad you could make it. :) Some over insane buffs to Bountiful melons sounds fun :D
< >
Showing 1-15 of 15 comments
Per page: 1530 50