Now, after reading many tutorials and watching few videos, i'm not sure what is the "right" way to do it.
I edited stats of Egyptian Infantry in land_units table. Removed all other units in it, then changed the name of the table with added prefix. Loaded up the game, everything went fine. Went to custom battle and Egyptian Infantry had my modified stats. Started the custom battle, and tooltip still shows my edited stats. No crashes or anything.
What confuses me is that, tutorials and some posts say that when you edit something and are not adding new stuff, you should not rename the table and leave everything in there and just change what you want changed. So your table replaces the vanilla table.
So which is the right way to do it? Is there any drawbacks in my way?
I did not change the key of the unit (Egy_Infantry), so to my understanding my mod _should_ just overwrite the vanilla unit and the stats it got in vanilla land_units table. And also be compatible with mods that would want to touch the same table. I am yet to test what happens when i do the same with main_units, since you got unique index in that table. But at least my way edited the right unit and did give it the right stats, without crashing, so don't really know.




Reply With Quote







