World of Banished

MODS Garage => Tutorials => Topic started by: saf75 on February 26, 2018, 01:31:37 PM

Title: how do i.......????
Post by: saf75 on February 26, 2018, 01:31:37 PM
hi guys, i'm VERY new to the modding side of the game & i'm in need of some help. i've managed to figure out how to put the mod program in but when i run buildresources.bat it only gives me the vanilla files & not files from the mods i'm using. is it supposed to do this or am i doing something wrong? is there a way to access the files from installed mods?

thanks in advance  ???

saf
Title: Re: how do i.......????
Post by: RedKetchup on February 26, 2018, 01:51:41 PM
buildresources.bat is used to extract all the txt files (.rsc) that are stored in the game pakage (data0.pkg, data1.pkg) and make them available to you so you can use them, do copies of them, learn how they are set to make what you want to do in your future mod.

thats is no way to extract anything or any assets from any of my mods, or from CC or MM, or any of our WoB Modders. and thats good :)

you need to do your own mod and bring your own assets :)
it is strongly possible i didnt undestood exactly what you are searching... be more precise.

if have any questions on how to do this or how to do that ... ask :)
Title: Re: how do i.......????
Post by: kid1293 on February 26, 2018, 01:56:59 PM
RK beat me to it with 5 seconds :)

We have no way to 'go backwards'.
When we have compiled a mod it is locked.

You have to write your own files and compile them.
There is a lot of information here on forum.
You have to look around.
You can start looking at the examples that comes with the modkit.
And read the textfile in the modkit. The examples are described in it.

Title: Re: how do i.......????
Post by: saf75 on February 26, 2018, 02:16:14 PM
that anwsered my question perfectly thanks :)
so, rather than mess about asking vague questions i'll explain exactly what im trying to do.

i've recently installed kralyerg's ridiculous storage mod because i want the capacity for buildings (mainly markets) but that alters stockpile capacity far beyond what i like as i use smaller stockpile capacity for directing goods around my city.

seeing as i cant access the mod files, i do understand why its done this way, it just makes what i wanted to do alot harder :( how can i find out which files i need to create & what they need to look like so they work with cc?

thanks
saf
Title: Re: how do i.......????
Post by: RedKetchup on February 26, 2018, 03:12:52 PM
in your resource/Template folder you will find the template of the StorageYard.rsc and the StorageBarn.rsc
open them and read their paragraphs/functions.

you will notice there is a function that control the # number of weight, the capacity.
and you will find also another functions that control the flags which allow to control which items it will be stored there.

so if you want to make a mod that will take the storageYard which allow 250 weight per tile and you want to change and make it more ridiculous, you will change that number to 500? 1000 ? it is up to you to decide.

if you want to make it more specialized, you will decide which flag (flags) you want to put (1 or more flags)


so for your mod, you will put a copy of this template, never edit original, change the numbers... and then make a resource rsc file where you will call those changes.
the examples are a teacher for you.
Title: Re: how do i.......????
Post by: kid1293 on February 26, 2018, 03:25:14 PM
Read this first
http://worldofbanished.com/index.php?topic=2206.0

It describes the way you should approach a simple override.

Of course you have to replace Cropfield.rsc and Orchard.rsc with Market.rsc (or what you want)
and change the code in the textfiles to reflect that change.

...a few steps

Market.rsc is found in (modkit directory)/resource/Template
Copy that to your (mod directory)/Template
and, in that file, change the line 'int _volumeLimit' to what you need.

StorageDescription storage
{
// finished products that are used by people!
RawMaterialFlags _storageFlags = Edible | Fuel | Tool | Health | Clothing | Iron | Wood | Textile;
bool _areaBasedLimit = false;
bool _available = false;
int _volumeLimit = 10000;
}


in Package.rsc file you remove

      "Template/Orchard.rsc"
      "Template/CropField.rsc"

and write

      "Template/Market.rsc:storage"

---

If you name your directory and mod differently (which you should),
you have to make changes in build.bat and Package.rsc.

Starting to mod IS overwhelming but you learn from mistakes too!

edit - read,read in the forum. there are hints everywhere!
Title: Re: how do i.......????
Post by: saf75 on February 27, 2018, 09:09:24 AM
thanks for the advice so far but now im stuck. kralyerg has very kindly sent me the files i need to change stockpile capacities (thank you muchly :D)

does my package file look right?

PackageFile Storageyardsx2
{
   String _name = "storage yards";
   String _author = "kid1293";
   String _description = "Banished override to make Storage yard capacity x2.";
   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/storageyards/storageyard.rsc"
      "Template/storageyards/storageyardcoal.rsc"
      "Template/storageyards/storageyardconstruction.rsc"
      "Template/storageyards/storageyardfirewood.rsc"
      "Template/storageyards/storageyardindustrial.rsc"
      "Template/storageyards/storageyardiron.rsc"
      "Template/storageyards/storageyardmaterials.rsc"
      "Template/storageyards/storageyardminerals.rsc"
      "Template/storageyards/storageyardstone.rsc"
      "Template/storageyards/storageyardwood.rsc"
   ]
}

not quite sure what to do next, where exactly do i put the template/storageyards folder & package file? is that all i need to do or am i still missing something?

i WILL figure this out (eventually) :)
saf
Title: Re: how do i.......????
Post by: RedKetchup on February 27, 2018, 09:19:32 AM
this is 2 files you have there. the first one Package.rsc contain the first part.
the 2nd half of your file is set in your Storageyardsx2Resource.rsc file

and you should have a 3rd file named : Storageyardsx2.rsc at your root (as those 2) ...
and it should contains all the toolbar informations, where you put those in the toolbars.(10 toolbars informations which lead to your 10 templates, 1 each)
Title: Re: how do i.......????
Post by: saf75 on February 27, 2018, 09:26:01 AM
storageyardsx2resource.rsc

ExternalList resource
{
   External _resources
   [
      "package.rsc"      
   ]
}

does it need to be storageyardsx2resource.rsc or just storageyardsx2.rsc?
is that right? where do i need to put them in my banishedkit folder?

do i need to make the toolbar info if all im trying to do is override storage capacity & not actually create anything
Title: Re: how do i.......????
Post by: RedKetchup on February 27, 2018, 09:37:34 AM
no, anyways your resources files would still be wrong


your package.rsc:

PackageFile Storageyardsx2
{
   String _name = "storage yards";
   String _author = "kid1293";
   String _description = "Banished override to make Storage yard capacity x2.";
   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"
   ]
}


your resource file Storageyardsx2Resource.rsc :

ExternalList list
{
   External _resources
   [
      "Storageyardsx2.rsc:storageyard"
      "Storageyardsx2.rsc:storageyardcoal"
      "Storageyardsx2.rsc:storageyardconstruction"
      "Storageyardsx2.rsc:storageyardfirewood"
      "Storageyardsx2.rsc:storageyardindustrial"
      "Storageyardsx2.rsc:storageyardiron"
      "Storageyardsx2.rsc:storageyardmaterials"
      "Storageyardsx2.rsc:storageyardminerals"
      "Storageyardsx2.rsc:storageyardstone"
      "Storageyardsx2.rsc:storageyardwood"
   ]
}


your toolbar file Storageyardsx2.rsc :

// Very MAIN toolbar +++++++++++++++++++++++++++++++++++++++++++++++++++
Toolbar base
{
StringTable _stringTable = "UI/Storageyardsx2StringTable.rsc";
SpriteSheet _spriteSheet = "UI/Storageyardsx2SpriteSheet.rsc";
}



Toolbar storageyard
{
Toolbar _parent = "Game\Toolbar.rsc:storage";
int _sortPriority = 1000;

StringTable _stringTable = "UI/Storageyardsx2StringTable.rsc";
SpriteSheet _spriteSheet = "UI/Storageyardsx2SpriteSheet.rsc";

Action _action = Tool;
ComponentDescription _tool = "Template/storageyards/storageyard.rsc";

bool _autoHotKey = true; 
}

Toolbar storageyardcoal
{
Toolbar _parent = "Game\Toolbar.rsc:storage";
int _sortPriority = 1010;

StringTable _stringTable = "UI/Storageyardsx2StringTable.rsc";
SpriteSheet _spriteSheet = "UI/Storageyardsx2SpriteSheet.rsc";

Action _action = Tool;
ComponentDescription _tool = "Template/storageyards/storageyardcoal.rsc";

bool _autoHotKey = true; 
}

Toolbar storageyardconstruction
{
Toolbar _parent = "Game\Toolbar.rsc:storage";
int _sortPriority = 1020;

StringTable _stringTable = "UI/Storageyardsx2StringTable.rsc";
SpriteSheet _spriteSheet = "UI/Storageyardsx2SpriteSheet.rsc";

Action _action = Tool;
ComponentDescription _tool = "Template/storageyards/storageyardconstruction.rsc";

bool _autoHotKey = true; 
}

Toolbar storageyardfirewood
{
Toolbar _parent = "Game\Toolbar.rsc:storage";
int _sortPriority = 1030;

StringTable _stringTable = "UI/Storageyardsx2StringTable.rsc";
SpriteSheet _spriteSheet = "UI/Storageyardsx2SpriteSheet.rsc";

Action _action = Tool;
ComponentDescription _tool = "Template/storageyards/storageyardfirewood.rsc";

bool _autoHotKey = true; 
}

Toolbar storageyardindustrial
{
Toolbar _parent = "Game\Toolbar.rsc:storage";
int _sortPriority = 1040;

StringTable _stringTable = "UI/Storageyardsx2StringTable.rsc";
SpriteSheet _spriteSheet = "UI/Storageyardsx2SpriteSheet.rsc";

Action _action = Tool;
ComponentDescription _tool = "Template/storageyards/storageyardindustrial.rsc";

bool _autoHotKey = true; 
}

Toolbar storageyardiron
{
Toolbar _parent = "Game\Toolbar.rsc:storage";
int _sortPriority = 1050;

StringTable _stringTable = "UI/Storageyardsx2StringTable.rsc";
SpriteSheet _spriteSheet = "UI/Storageyardsx2SpriteSheet.rsc";

Action _action = Tool;
ComponentDescription _tool = "Template/storageyards/storageyardiron.rsc";

bool _autoHotKey = true; 
}

Toolbar storageyardmaterials
{
Toolbar _parent = "Game\Toolbar.rsc:storage";
int _sortPriority = 1060;

StringTable _stringTable = "UI/Storageyardsx2StringTable.rsc";
SpriteSheet _spriteSheet = "UI/Storageyardsx2SpriteSheet.rsc";

Action _action = Tool;
ComponentDescription _tool = "Template/storageyards/storageyardmaterials.rsc";

bool _autoHotKey = true; 
}

Toolbar storageyardminerals
{
Toolbar _parent = "Game\Toolbar.rsc:storage";
int _sortPriority = 1070;

StringTable _stringTable = "UI/Storageyardsx2StringTable.rsc";
SpriteSheet _spriteSheet = "UI/Storageyardsx2SpriteSheet.rsc";

Action _action = Tool;
ComponentDescription _tool = "Template/storageyards/storageyardminerals.rsc";

bool _autoHotKey = true; 
}

Toolbar storageyardstone
{
Toolbar _parent = "Game\Toolbar.rsc:storage";
int _sortPriority = 1080;

StringTable _stringTable = "UI/Storageyardsx2StringTable.rsc";
SpriteSheet _spriteSheet = "UI/Storageyardsx2SpriteSheet.rsc";

Action _action = Tool;
ComponentDescription _tool = "Template/storageyards/storageyardstone.rsc";

bool _autoHotKey = true; 
}

Toolbar storageyardwood
{
Toolbar _parent = "Game\Toolbar.rsc:storage";
int _sortPriority = 1090;

StringTable _stringTable = "UI/Storageyardsx2StringTable.rsc";
SpriteSheet _spriteSheet = "UI/Storageyardsx2SpriteSheet.rsc";

Action _action = Tool;
ComponentDescription _tool = "Template/storageyards/storageyardwood.rsc";

bool _autoHotKey = true; 
}

Title: Re: how do i.......????
Post by: RedKetchup on February 27, 2018, 09:39:17 AM
and you need to create your UI/Storageyardsx2StringTable.rsc and your spritesheets file, and your icons. you are creating 10 new icons for your 10 new buildings (10 specialized stockpiles)

in your UI folder should have 4 files:
Storageyardsx2SpriteSheet.rsc
Storageyardsx2SpriteSheetMaterial.rsc
Storageyardsx2SpriteSheetTexture.rsc
Storageyardsx2StringTable.rsc

and also you should have a folder at the root of your mod name Texture and inside:
a copy from resource/texture folder of UITexture.rsc and ModelAlphaTexture.rsc
Title: Re: how do i.......????
Post by: RedKetchup on February 27, 2018, 09:45:32 AM
you make your UI folder, your UI/Sprites folder. put the 10 x 32x32 semi transparent icons. your stringtable and your sprite sheets should reflects the names given to your 10 new buildings.
inside each template make sure to change the names of the buildings and also the names of your stringtable/spritesheet.

and your .bat should look like this: (i assume everything has been put inside a Storageyardsx2 folder at the root of your kit. if you did put that folder in examples folder , you will need to add the /examples folder to your pathres and pathdat.

cd ..
bin\x64\Tools-x64.exe /build Storageyardsx2Resources.rsc /pathres ../Storageyardsx2 /pathdat ../Storageyardsx2/bin
bin\x64\Tools-x64.exe /mod Package.rsc:Storageyardsx2 /pathres ../Storageyardsx2 /pathdat ../Storageyardsx2/bin
Title: Re: how do i.......????
Post by: saf75 on February 27, 2018, 10:10:09 AM
i dont actually have the files to create the stockpiles, all i'm trying to do is change capacities.

so i've now got a folder in my banished kit folder called storageyardsx2.

in that theres:

   a template folder with a folder called storageyards containing all the files kralyerg sent me
   
   package.rsc

PackageFile storageyardsx2
{
   String _name = "storage yards";
   String _author = "kid1293";
   String _description = "Banished override to make storage yard capacity x2.";
   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"
   ]
}

   storageyardsx2.rsc

ExternalList list
{
   External _resources
   [
      "Template/storageyards/storageyard.rsc"
      "Template/storageyards/storageyardcoal.rsc"
      "Template/storageyards/storageyardconstruction.rsc"
      "Template/storageyards/storageyardfirewood.rsc"
      "Template/storageyards/storageyardindustrial.rsc"
      "Template/storageyards/storageyardiron.rsc"
      "Template/storageyards/storageyardmaterials.rsc"
      "Template/storageyards/storageyardminerals.rsc"
      "Template/storageyards/storageyardstone.rsc"
      "Template/storageyards/storageyardwood.rsc"
   ]
}

am i right so far? do i need to move anything? what do i do next?  ???

sorry if i'm being dumb & missing something obvious, i WILL get there :)

thanks for all your help :)
saf
Title: Re: how do i.......????
Post by: RedKetchup on February 27, 2018, 10:18:31 AM
you kinda posted exactly what you posted before, your storageyardsx2.rsc is wrong. go back read. i made all your root files in here: http://worldofbanished.com/index.php?topic=2275.msg46353#msg46353 (http://worldofbanished.com/index.php?topic=2275.msg46353#msg46353)

you are not changing value of existant vanilla template and your resources file that is calling templates is only good for modifications which you are not doing. you are creating 10 new buildings !!!
you need that setup i made for you because you need to setup 10 new icons on your storage toolbar and your example is not good to make new buildings.
Title: Re: how do i.......????
Post by: saf75 on February 27, 2018, 10:30:57 AM
i think we're confusing each other now rk, i'm not trying to create new stockpiles, i dont have the files to create them, only to change the capacity of the existing in game 1s
Title: Re: how do i.......????
Post by: RedKetchup on February 27, 2018, 10:43:37 AM
ok you dont see the 10 buildings. you say this:

ExternalList list
{
   External _resources
   [
      "Template/storageyards/storageyard.rsc"
      "Template/storageyards/storageyardcoal.rsc"
      "Template/storageyards/storageyardconstruction.rsc"
      "Template/storageyards/storageyardfirewood.rsc"
      "Template/storageyards/storageyardindustrial.rsc"
      "Template/storageyards/storageyardiron.rsc"
      "Template/storageyards/storageyardmaterials.rsc"
      "Template/storageyards/storageyardminerals.rsc"
      "Template/storageyards/storageyardstone.rsc"
      "Template/storageyards/storageyardwood.rsc"
   ]
}

thats 10 buildings.



the first one : Template/storageyards/storageyard.rsc which name seems to indicate, seems kinda general, all purpose.

the 2nd building: Template/storageyards/storageyardcoal.rsc which the name suggests, seems exclusively used to store the coal flag only.

the 3rd building: Template/storageyards/storageyardconstruction.rsc which the name suggests, seems to store only the construction flag only (custom5)

the 4th building: Template/storageyards/storageyardfirewood.rsc which name suggest, seems to allow only firewood raw material. (Fuel flag)

the 5th building: Template/storageyards/storageyardindustrial.rsc which name suggest seems to allow only the industrial flag (custom3)

and so on up to the wood one which seems to allow only logs to be stored inside (Wood flag)



if you only want to do modifications of the vanilla original stockpile you dont need anything of this. (you need nothing of all this /storageyards/ folder)
only 1 copy of the original /resource/Template/StorageYard.rsc file which you modify the numbers you want and place it in the /Template/ folder
and inside your resource file named: storageyardsx2Resource.rsc you put:

ExternalList list
{
   External _resources
   [
      "Template/StorageYard.rsc"
   ]
}
Title: Re: how do i.......????
Post by: saf75 on February 27, 2018, 11:26:48 AM
what im trying to do is to 'override' kralyerg's stockpiles in the ridiculous storage mod so that they are only 2x capacity & not 50x capacity.

kralyerg very kindly sent me the files i need (once again tyvm :D)

all i'm trying to do now is figure out how to get the game to read the files he sent me & put them into a .pkg file so i can use them in game.
Title: Re: how do i.......????
Post by: RedKetchup on February 27, 2018, 11:51:49 AM
Quote from: saf75 on February 27, 2018, 11:26:48 AM
what im trying to do is to 'override' kralyerg's stockpiles in the ridiculous storage mod so that they are only 2x capacity & not 50x capacity.


kralyerg's stockpiles in the ridiculous storage mod is creating 10 stockpiles.  the 10 in your list.

now.

from what you are telling in your last reply : you want to continue to use his mod, but make another .pkm that you will put ontop of it which will slightly change the numbers.
(what i was telling you, is making your own mod of it which will replace it so you can use your mod instead of the kralyerg one. you had all the files (just need to do your 10icons) but thats ok.)


package.rsc:

PackageFile storageyardsx2
{
   String _name = "storage yards 2X";
   String _author = "saf75";
   String _description = "Kralyerg mod override to make storage yard capacity x2 instead of x50.";
   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"
   ]
}


your storageyardsx2Resource.rsc :

ExternalList list
{
   External _resources
   [
      "Template/storageyards/storageyard.rsc:storage"
      "Template/storageyards/storageyardcoal.rsc:storage"
      "Template/storageyards/storageyardconstruction.rsc:storage"
      "Template/storageyards/storageyardfirewood.rsc:storage"
      "Template/storageyards/storageyardindustrial.rsc:storage"
      "Template/storageyards/storageyardiron.rsc:storage"
      "Template/storageyards/storageyardmaterials.rsc:storage"
      "Template/storageyards/storageyardminerals.rsc:storage"
      "Template/storageyards/storageyardstone.rsc:storage"
      "Template/storageyards/storageyardwood.rsc:storage"
   ]
}


your .bat:
cd ..
bin\x64\Tools-x64.exe /build Storageyardsx2Resources.rsc /pathres ../Storageyardsx2 /pathdat ../Storageyardsx2/bin
bin\x64\Tools-x64.exe /mod Package.rsc:Storageyardsx2 /pathres ../Storageyardsx2 /pathdat ../Storageyardsx2/bin



keep in mind you will need to keep using his mod just below yours.
Title: Re: how do i.......????
Post by: saf75 on February 27, 2018, 12:14:34 PM
sorry, i think i get what you ment for me to do but i use his mod for building capacity, i only decided on x2 storage because it seemed daft changing them back to normal size :)
i also think the files he sent me are to alter stockpile size & not to create them as i'm not totally sure wether he created them to begin with, they're part of the cc mod.

now i have a really dumb question  :-[
how do i create the .bat file?
Title: Re: how do i.......????
Post by: RedKetchup on February 27, 2018, 12:19:03 PM
a txt file with notepad you save it and place .bat instead of .txt



dont forget to change the numbers of storage capacity in kralyergs files and put your numbers :)
Title: Re: how do i.......????
Post by: saf75 on February 27, 2018, 12:53:22 PM
knew it was a dumb question lol

i changed the package & storageyardsx2.rsc files to exactly what you told me to put & created the buildresource.bat (i copy & pasted them :) )

am i supposed to run the bat file? because if i do i get this error message:
Assert: Failed to load resource 'D:\BanishedKit\Storageyardsx2\bin\Storageyardsx2Resource_resource.crs'

what am i doing wrong now?  :'(
Title: Re: how do i.......????
Post by: RedKetchup on February 27, 2018, 01:21:04 PM
did you put your .bat at the root of your toolkit ? not inside your mod ?
D:\BanishedKit\


and inside your mod you have :

package.rsc
Storageyardsx2Resource.rsc
/Template/
/Template/storageyards/
(and inside that folder you have the 10 files from K?)

Title: Re: how do i.......????
Post by: saf75 on February 27, 2018, 02:15:24 PM
i had it inside the mod. moved it to D:\banishedkit\, everyting else is right, only other thing in storageyardsx2 folder is an empty bin folder.
now it says the system cant find the specified path.

cd ..
bin\x64\Tools-x64.exe /build Storageyardsx2Resources.rsc /pathres ../Storageyardsx2 /pathdat ../Storageyardsx2/bin
bin\x64\Tools-x64.exe /mod Package.rsc:Storageyardsx2 /pathres ../Storageyardsx2 /pathdat ../Storageyardsx2/bin

is the bat file exactly? is there anything i need to change?
Title: Re: how do i.......????
Post by: RedKetchup on February 27, 2018, 02:21:43 PM
Quote from: saf75 on February 27, 2018, 02:15:24 PM
i had it inside the mod. moved it to D:\banishedkit\, everyting else is right, only other thing in storageyardsx2 folder is an empty bin folder.
now it says the system cant find the specified path.

cd ..
bin\x64\Tools-x64.exe /build Storageyardsx2Resources.rsc /pathres ../Storageyardsx2 /pathdat ../Storageyardsx2/bin
bin\x64\Tools-x64.exe /mod Package.rsc:Storageyardsx2 /pathres ../Storageyardsx2 /pathdat ../Storageyardsx2/bin

is the bat file exactly? is there anything i need to change?

if there is an "s" at Storageyardsx2Resources.rsc in your bat, then in your folder you need an "s" at the name of your file: Storageyardsx2Resources.rsc

you can go with both no "s" or both with an "s" but it needs to fit together :)
Title: Re: how do i.......????
Post by: saf75 on February 27, 2018, 02:30:14 PM
nope i had noticed but then i forgot about it

cd ..
bin\x64\Tools-x64.exe /build Storageyardsx2Resource.rsc /pathres ../Storageyardsx2 /pathdat ../Storageyardsx2/bin
bin\x64\Tools-x64.exe /mod Package.rsc:Storageyardsx2 /pathres ../Storageyardsx2 /pathdat ../Storageyardsx2/bin

is the bat file but it still cant find the path
Title: Re: how do i.......????
Post by: RedKetchup on February 27, 2018, 02:33:49 PM
take out the cd..  line ??

yeah sorry that out that line, my bad (i always put some powerful command lines at begining of my .bat which i wont teach you cause you can delete everything if mistyped and then i need a cd.. after to comeback). Sorry


cd ..
bin\x64\Tools-x64.exe /build Storageyardsx2Resource.rsc /pathres ../Storageyardsx2 /pathdat ../Storageyardsx2/bin
bin\x64\Tools-x64.exe /mod Package.rsc:Storageyardsx2 /pathres ../Storageyardsx2 /pathdat ../Storageyardsx2/bin
Title: Re: how do i.......????
Post by: saf75 on February 27, 2018, 02:44:34 PM
cd.. line removed & we've gone back to failed to load asset, if the bat file is in my d:banishedkit folder does it need something to refer it to the storageyardsx2 folder?

i get the feeling that we're really close to making this work & its something really simple that we're missing out
Title: Re: how do i.......????
Post by: RedKetchup on February 27, 2018, 02:48:41 PM
can you upload your mod folder + the .bat somewhere and send me the link by PM ?
or very detailled screenshots. i am not at your PC presently (it is you)

or send me telephatic images so i can see with my real eyes ^^
Title: Re: how do i.......????
Post by: RedKetchup on February 27, 2018, 02:50:30 PM
Quote from: saf75 on February 27, 2018, 02:44:34 PM
if the bat file is in my d:banishedkit folder does it need something to refer it to the storageyardsx2 folder?

this line is your "something"
/pathres ../Storageyardsx2 /pathdat ../Storageyardsx2/bin
Title: Re: how do i.......????
Post by: RedKetchup on February 27, 2018, 02:52:44 PM
dont forget, any "S" or "s" are not the same, make sure they all start and have "S" Storageyardsx2
Title: Re: how do i.......????
Post by: Turis on February 27, 2018, 03:01:27 PM
@RedKetchup Hi, when you're done here, can you teach me how to make pancakes from scratch? ;)
Title: Re: how do i.......????
Post by: saf75 on February 27, 2018, 03:01:50 PM
right ok, no problems i know exactly how it is, my sister asks me how to do something on her comp, i tell her to gimme half hr ill come down & show you ;)

D:banishedkit/storageyardsx2 contains:

   package.rsc

PackageFile storageyardsx2
{
   String _name = "storage yards 2X";
   String _author = "saf75";
   String _description = "Kralyerg mod override to make storage yard capacity x2 instead of x50.";
   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"
   ]
}

   Storageyardsx2resource.rsc


ExternalList list
{
   External _resources
   [
      "Template/storageyards/storageyard.rsc:storage"
      "Template/storageyards/storageyardcoal.rsc:storage"
      "Template/storageyards/storageyardconstruction.rsc:storage"
      "Template/storageyards/storageyardfirewood.rsc:storage"
      "Template/storageyards/storageyardindustrial.rsc:storage"
      "Template/storageyards/storageyardiron.rsc:storage"
      "Template/storageyards/storageyardmaterials.rsc:storage"
      "Template/storageyards/storageyardminerals.rsc:storage"
      "Template/storageyards/storageyardstone.rsc:storage"
      "Template/storageyards/storageyardwood.rsc:storage"
   ]
}


\Template\StorageYards with all the files in from k

buildresource.bat
bin\x64\Tools-x64.exe /build Storageyardsx2Resource.rsc /pathres ../Storageyardsx2 /pathdat ../Storageyardsx2/bin
bin\x64\Tools-x64.exe /mod Package.rsc:Storageyardsx2 /pathres ../Storageyardsx2 /pathdat ../Storageyardsx2/bin

if that dont help i'll try the telepathy

ok so you posted about case sensivity after id written that so i'll check that 1st
Title: Re: how do i.......????
Post by: RedKetchup on February 27, 2018, 03:01:59 PM
Quote from: Turis on February 27, 2018, 03:01:27 PM
@RedKetchup Hi, when you're done here, can you teach me how to make pancakes from scratch? ;)

ROFL
Title: Re: how do i.......????
Post by: RedKetchup on February 27, 2018, 03:05:03 PM
your problem is "S" and "s" are not the same !!! this is Case sentitive and important
you name some folder and name some files with a big "S" and the real names of folder and real names of files have / dont have "S" but a little "s"
check all your typos

same with Storageyardsx2resource.rsc a big "R"esource and a little"r"esource is not same
Title: Re: how do i.......????
Post by: saf75 on February 27, 2018, 03:05:09 PM
now now turis, no need to be like that....  making pancakes is easy :)
Title: Re: how do i.......????
Post by: Turis on February 27, 2018, 03:07:30 PM
I was trying to make @RedKetchup laugh.
Title: Re: how do i.......????
Post by: saf75 on February 27, 2018, 03:11:51 PM
i now have a Package_Storageyardsx2.crs in my bin folder :D

am i correct to assume that is the objective?
Title: Re: how do i.......????
Post by: RedKetchup on February 27, 2018, 03:24:05 PM
Quote from: saf75 on February 27, 2018, 03:11:51 PM
i now have a Package_Storageyardsx2.crs in my bin folder :D

am i correct to assume that is the objective?

:)

go in your d:/BanishedKit/Bin/WinData folder
it is there ??
Title: Re: how do i.......????
Post by: saf75 on February 27, 2018, 03:26:36 PM
not at the minute its in D:\BanishedKit\Storageyardsx2\Bin

next step is to move it & run the game from the app-x64/ref?
Title: Re: how do i.......????
Post by: RedKetchup on February 27, 2018, 03:29:43 PM
Quote from: saf75 on February 27, 2018, 03:26:36 PM
not at the minute its in D:\BanishedKit\Storageyardsx2\Bin

next step is to move it & run the game from the app-x64/ref?


no. go to D:/BanishedKit/Bin/WinData folder
there should be a Storageyardsx2.pkm there
Title: Re: how do i.......????
Post by: saf75 on February 27, 2018, 03:44:02 PM
no, but if im correct in how this thing works the i can already see the problem :)

Assert: Failed to load resource 'D:\BanishedKit\Storageyardsx2\bin\Storageyardsx2Resource_resource.crs'

is the error its giving me the file in the bin folder is Package_Storageyardsx2.crs

would the package_ be the problem by any chance? do i need to put that into the .bat?
Title: Re: how do i.......????
Post by: RedKetchup on February 27, 2018, 03:46:45 PM
you need to click the .bat and there is no error that happends and the black window close itself. do you still have errors ?
did you fixed all your typos of "s" / "S" / "r" / "R" ??
Title: Re: how do i.......????
Post by: saf75 on February 27, 2018, 03:56:10 PM
no im still getting the error Failed to load resource 'D:\BanishedKit\Storageyardsx2\bin\Storageyardsx2Resource_resource.crs' & as far as i can see all the S & s R & r have been changed
Title: Re: how do i.......????
Post by: RedKetchup on February 27, 2018, 03:57:16 PM
ok put your .bat and your mod folder in a zip and post it here, i am gonna check
i have an hockey game to watch in 10mins
Title: Re: how do i.......????
Post by: kralyerg on February 27, 2018, 04:32:34 PM
Just so you know, the CC stockpiles are not in a /storageyards/ folder.

Just "Template/StorageYard.rsc:storage"

If you put them in a new folder, it won't work right.
Title: Re: how do i.......????
Post by: RedKetchup on February 27, 2018, 04:48:47 PM
your Storageyardsx2Resource.rsc


ExternalList list
{
   External _resources
   [
      "Template/storageyards/storageyard.rsc:storage"
      "Template/storageyards/storageyardcoal.rsc:storage"
      "Template/storageyards/storageyardconstruction.rsc:storage"
      "Template/storageyards/storageyardfirewood.rsc:storage"
      "Template/storageyards/storageyardindustrial.rsc:storage"
      "Template/storageyards/storageyardiron.rsc:storage"
      "Template/storageyards/storageyardmaterials.rsc:storage"
      "Template/storageyards/storageyardminerals.rsc:storage"
      "Template/storageyards/storageyardstone.rsc:storage"
      "Template/storageyards/storageyardwood.rsc:storage"
   ]
}



change the first line , should be that:


ExternalList resource
Title: Re: how do i.......????
Post by: saf75 on February 27, 2018, 05:00:36 PM
i've changed the list to remove the storageyards folder too. & yup externallist resource did the job :D 

i assume i now treat this the same as any other pkm file (after i've actually tested it out that is :) )

told you it'd be something stupid & simple we missed :D

once again tyvm for all your help today. i feel pretty confident you haven't taught me anything i couldn't replicate for future mods :D
Title: Re: how do i.......????
Post by: RedKetchup on February 27, 2018, 05:05:43 PM
you take that .pkm and you put it in your game windata folder where are all your other mods.pkm
you launch your game, you go in your mod list winsow, enable it , make sure it is on top of your list then EXIT the game completly
you restart your banished game and then now you can start a new game

if you want to enable it in a save, in a previous already saved town, you need to load your save, go to your mod window, enable it and make sure to put on top of the list and then reload your city.
Title: Re: how do i.......????
Post by: RedKetchup on February 27, 2018, 05:20:48 PM
Quote from: saf75 on February 27, 2018, 05:00:36 PM
told you it'd be something stupid & simple we missed :D

once again tyvm for all your help today. i feel pretty confident you haven't taught me anything i couldn't replicate for future mods :D

yeah it is often that, a simple stupid error somewhere we cant find... till we get a fresh pair of eyes looking at it.
this is why i asked you to send me the .zip because i cannot "think" of all possibilities. i am not at your computer.

at least you have your gift :)
enjoy !!!
Title: Re: how do i.......????
Post by: kralyerg on February 27, 2018, 06:07:36 PM
And you don't really have to put my name in the description.  It would probably be better if it said it overrides CC, instead of me personally.
Title: Re: how do i.......????
Post by: saf75 on February 28, 2018, 05:16:24 AM
its now a mod to make CC storage capacity x2 :)
Title: Re: how do i.......????
Post by: saf75 on February 28, 2018, 05:38:15 AM
& whats more it works too :D shall i upload it to the mod page?
Title: Re: how do i.......????
Post by: saf75 on February 28, 2018, 05:59:01 AM
question, on the general statistics box, where it gives pop (adults/students/children) would it be possible to have a 4th that gives total pop?

a simple yes/no answer will suffice, if its no then it dont matter if its yes i want to see if i can figure out how to do it myself :)
Title: Re: how do i.......????
Post by: RedKetchup on February 28, 2018, 06:24:25 AM
Quote from: saf75 on February 28, 2018, 05:59:01 AM
question, on the general statistics box, where it gives pop (adults/students/children) would it be possible to have a 4th that gives total pop?

a simple yes/no answer will suffice, if its no then it dont matter if its yes i want to see if i can figure out how to do it myself :)

yes, you need to find out what is this value syntax. check in the townhall files in the dialog folder




about to offer your mod, you can do if you want, it is up to you. you need to say they still need to use the CC addon and without it, it will have no other effects.