World of Banished

MODS Garage => Mod Talk => Topic started by: littbarski on July 17, 2025, 01:13:52 AM

Title: override resource files
Post by: littbarski on July 17, 2025, 01:13:52 AM
hello,

some weeks ago I started learning about the toolkit - and today I know a little bit more.
At the beginning I was told that I have to override the rsc files if I want to make changes on them and I read tutorials about this "override" in the mod build.

I thought that this is directly connected to the name of the package.rsc at the beginning, so I always wrote "override" there and also used of course then "override" in the build.bat at this position.

Now I tried some more little mods and did not use the word "override" and still it works.

So is this actually not necessary to "override" here, but I can choose any name?

Package.rsc

PackageFile override

Build.bat

..\bin\x64\Tools-x64.exe /mod Package.rsc:override /pathres

(of course it can still be useful to use the term "override" just to make clear in your folders which is the override file, but just to understand how the rsc process in the code is going here)
Title: Re: override resource files
Post by: kid1293 on July 17, 2025, 03:01:27 AM
You are quite right, but I advise you to expand the name
to something like overrideWeather ...or what you have.
Then it is easier to see what is done.
Title: Re: override resource files
Post by: littbarski on July 17, 2025, 04:11:58 AM
thank you, good to know I was on the right track :)
Title: Re: override resource files
Post by: RedKetchup on July 17, 2025, 10:37:46 AM
make sure you dont use any spaces or strange caracters

and make sure name of mod, name of files, name of root resources files are the same to make sure to narrow down any bugs that can show up :)