me :
1. i do my changes
2. delete bin and build folders
3. launch my .bat in DOS window
4. look how it compiles
5. go in the 2 little Windows folder at top of my screen (kit bin windata and the game windata)
6. click and drag the .pkm from bin/windata to my game windata
7. launch the game with steam launcher
8. start a new game
9. check in game what i did
10. close the game
11+ rince and repeat. with more changes
I noticed the issue of not overwriting files in the bin folder too when trying to get to the bottom of this, so have also been deleting files there in between each buildmod attempt. I genuinely don't understand why that /build command does not work on my end. As long as including all the files I've changed in the ExternalList works, then that is good at least, but it would be nice if all those *.crs files were compiled by the /build command itself. That does not happen for me (without the list).
This is what I'm doing
1. Copy files I want to change into /mymods/newmod, retaining folder structure from /resource
2. Make the changes to the files
3. Delete /bin folder if present
4. Make sure paths are correct in Package.rsc, and include all files I have edited in ExternalList (okay now, but would be a nightmare in big mods). For example:
PackageFile orchard
{
String _name = "orchard";
String _author = "Pangaea";
String _description = "Improves the lifespan of all orchard trees in the game. By default they live on average ~8 years. With this mod they should live ~20 years on average.";
String _icon = "icon.png";
int _userVersion = 1.0;
// all files in resource directory
String _includeList
[
"*"
]
// exclude package files, mod files, file used for building packages
String _excludeList
[
"Package_*.crs"
"*.pkg"
"*.pkm"
]
}
ExternalList list
{
External _resources
[
"Template/NaturalResourceAppleTree.rsc:growth"
"Template/NaturalResourceCherryTree.rsc:growth"
"Template/NaturalResourceChestnutTree.rsc:growth"
"Template/NaturalResourcePeachTree.rsc:growth"
"Template/NaturalResourcePearTree.rsc:growth"
"Template/NaturalResourcePecanTree.rsc:growth"
"Template/NaturalResourcePlumTree.rsc:growth"
"Template/NaturalResourceWalnutTree.rsc:growth"
]
}
5. Run the .bat file (thanks you slink, as this finally works now)
..\..\bin\Tools-x64.exe /build Package.rsc:list /pathres ../mymods/orchard /pathdat ../mymods/orchard/bin
..\..\bin\Tools-x64.exe /mod Package.rsc:orchard /pathres ../mymods/orchard /pathdat ../mymods/orchard/bin
6. If everything worked well here, and I see all the *.crs files in the modded /bin folder and in the main WinData folder, then it should be ready to go
7. Run a *.bat file that only loads the *.pkms
bin\Application-x64-profile.exe /onlypkg
8. There I check that the mod is available, and tick it and restart if it's not selected
9. Check in the game to see if the mod works as intended (for this orchard mod, that has taken many hours).
10. Close game, rinse and repeat.
I think that was all, and precise, but it's been many hours since I did it now, so maybe my jellyfish brain has forgot something already
