News:

Welcome to World of Banished!

Main Menu

errors in tools-x64

Started by Maxvdb, September 04, 2016, 12:00:17 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Maxvdb

i'm trying to get modding. i know how to make 3d models, but can't get te tools-64x working propperly

can someone say what í'm doiing wrong?


kid1293

#1
It is almost certain something wrong with your paths.
Have you moved the examples?

Have you edited the batch-file?

embx61

#2
Kid is right.

It looks for ApiaryResoursec.rsc file and cannot find it.
So the path is not right.

By looking at it again it looks like the bin in the path is wrong.

Copy these lines in a text file and save with extension bat in C:\BanishedKit

bin\x64\Tools-x64.exe /build Package.rsc:list /pathres ../example/translation /pathdat ../example/translation/bin
bin\x64\Tools-x64.exe /mod Package.rsc:translationExample /pathres ../example/translation /pathdat ../example/translation/bin

bin\x64\Tools-x64.exe /build apiaryResources.rsc /pathres ../example/building /pathdat ../example/building/bin
bin\x64\Tools-x64.exe /mod Package.rsc:apiary /pathres ../example/building /pathdat ../example/building/bin

bin\x64\Tools-x64.exe /build lettuceResources.rsc /pathres ../example/crop /pathdat ../example/crop/bin
bin\x64\Tools-x64.exe /mod Package.rsc:lettuce /pathres ../example/crop /pathdat ../example/crop/bin

bin\x64\Tools-x64.exe /build figResources.rsc /pathres ../example/tree /pathdat ../example/tree/bin
bin\x64\Tools-x64.exe /mod Package.rsc:fig /pathres ../example/tree /pathdat ../example/tree/bin

bin\x64\Tools-x64.exe /build whiteChickenResources.rsc /pathres ../example/animal /pathdat ../example/animal/bin
bin\x64\Tools-x64.exe /mod Package.rsc:whiteChicken /pathres ../example/animal /pathdat ../example/animal/bin

Are you from the Netherlands or Belgium?
I see your windows is in Dutch. I am born in the Netherlands myself but live since 1999 in the USA  :)

I also see the sprite folder in the root what should be a folder inside the UI folder.
And the 2 files spritesheet.rsc and spritsheetmaterial.rsc should be inside the UI folder too.
[size=8pt][color=teal]My beloved Kathy
As you were you will always be
Treasured forever in my memory[/color][/size]

[size=10pt]For my list of Mods with download links go here[/size]

Maxvdb

oke thanks i will try it. yea it didn't find the files so i just copied and paste it everywhere.

jazeker kom uit Nederland:)

Maxvdb

i have deleted my BanishedKit and reinstalled it. then added your lines, and they work and i can see them and play with the example mods.
but when i make a new folder and add some files, change them compile and start the game i can see the mods even the changed ones but, i added a stonehouse with less stone required to build i don't see the new house on the toolbar.

embx61

#5
Can you zip/rar your whole house directory and post it here on the forum so I can take a look at it?

Let see if I have this straight.
You only want to change the build values of the Vanilla Stone houses?

If so you have to make an so called override.

No need for all the graphics and stuff. We just being cheap and using Luke's. LOL.  Only the Stonehouse.rsc file in the Template folder from Luke is needed to change.

Look at some tutorials from Slink in the Tutorials section in this forum for some examples how an override and toolbar stuff is done.

In the beginning the modkit can be very confusing because one file calls another and that one calls another.
But try first a simple override and go from there.

Trust me, with some time it will become second nature, and even while I am modding a bit over a year I still make mistakes enough :)

[size=8pt][color=teal]My beloved Kathy
As you were you will always be
Treasured forever in my memory[/color][/size]

[size=10pt]For my list of Mods with download links go here[/size]

kid1293

Hi!
Take a look at this thread.
http://worldofbanished.com/index.php?topic=1179.0

tanypredator also started from scratch and in that post there are many
things for starting up.

Maxvdb

i looked at your DebugMenu i can run the .bat file it finnishes it shows it but cant find it on a new game.

i included a zip file of the DebugMenu with 2 printscreens.

i noticed the game runs version 1.0.6 is that the problem?

kid1293

1.0.6 is OK.
here is where to look.
BTW, did you understand what I did in the code?

kid1293

Just a heads-up:
When you compile a mod, there will be one or two directories
in your directory with the mod file.
They are named 'bin' and 'Build'
You should always delete them after you have compiled a mod!
If they are left there they will stop new changes from being compiled.
(The compiler looks and - ahhh it's already there! So nothing new...)

kid1293

#10
Might as well continue -

If you want to change the Stone House, all you have to do is copy
the file StoneHouse.rsc from 'BanishedKit/resource/Template'
to your moddirectory with a 'Template' folder.  OK?

Open your StoneHouse.rsc and scroll down and find

BuildDescription build
{
int _workRequired = 45;

BuildRequirement _buildRequirement
[
{
ComponentDescription _rawMaterial = "Template/RawMaterialWood.rsc";
int _count = 24;
}
{
ComponentDescription _rawMaterial = "Template/RawMaterialStone.rsc";
int _count = 20; // (default = 40)
}
{
ComponentDescription _rawMaterial = "Template/RawMaterialIron.rsc";
int _count = 10;
}
]
}


As you can see I have changed the stone cost to 20.

Now you have to make some files in your 'stonehousemod-directory'
I have included them in the zip-file, but beware!
You don't have to change ALL the 'StoneHouse.rsc'
so you address it -
StoneHouse.rsc:build
only that section needs to be compiled. (the only thing changed)
like this (in the StoneHouseOverrideResources.rsc)

ExternalList resource
{
External _resources
[
"Template/StoneHouse.rsc:build"
]
}


You need a package file to actually 'pack' the mod after compiling.
Here it is (Package.rsc):

PackageFile StoneHouseOverride
{
String _name = "Stone House Override";
String _author = "me";
String _description = "This is an example";
String _icon = "icon.png";
int _userVersion = 1;

// all files in resource directory
String _includeList
[
"*"
]

// exclude package files, mod files, file used for building packages
String _excludeList
[
"Package_*.crs"
"*.pkg"
"*.pkm"
]
}


and finally a batchfile:

..\bin\x64\Tools-x64.exe /build StoneHouseOverrideResources.rsc:resource /pathres ../MyStoneHouse /pathdat ../MyStoneHouse/bin
..\bin\x64\Tools-x64.exe /mod Package.rsc:StoneHouseOverride /pathres ../MyStoneHouse /pathdat ../MyStoneHouse/bin


Important! You can see that I have named the mod 'StoneHouseOverride'
That MUST be the same in the batchfile and in the Package-file
(Never mind the directory - you can name it what you want)

And an icon 48x48 (on transparent bottom) in png-format

As I have said before: Ask, if you want answers!

kid1293

One more before I tuck in.
First test the last change I posted.

If you open your StoneHouse.rsc
and scroll a little bit more than before you find:

StorageDescription storage
{
RawMaterialFlags _storageFlags = Edible | WoodFuel; //(default = Edible | Fuel)
bool _areaBasedLimit = false;
bool _available = false;
int _volumeLimit = 1000;
}


You can see I have changed 'Fuel' to 'WoodFuel'
(everything after // is a comment and does not compile)
Now your stonehouse does not use coal for heating.

goto 'StoneHouseOverrideResources.rsc'
and add a line:

ExternalList resource
{
External _resources
[
"Template/StoneHouse.rsc:build"
"Template/StoneHouse.rsc:storage"
]
}

And you will have another change in the same modfile.
You can add changes for a lot of things.
(Of course you don't have to make changes in one building only.
You can change every single building with one override-file.)

embx61

QuoteJust a heads-up:
When you compile a mod, there will be one or two directories
in your directory with the mod file.
They are named 'bin' and 'Build'
You should always delete them after you have compiled a mod!
If they are left there they will stop new changes from being compiled.
(The compiler looks and - ahhh it's already there! So nothing new...)

Are you sure about this Kid?
I am doing it as you said for a final build to be on the save side but I recompile many times in between without deleting the build and bin folders and the changes I made are compiled.
I think the compiler 'see' changes made to files.

But I agree it is better save then sorry, that is why I delete the folders just before the final build.
[size=8pt][color=teal]My beloved Kathy
As you were you will always be
Treasured forever in my memory[/color][/size]

[size=10pt]For my list of Mods with download links go here[/size]

kid1293

embx61 - Maybe you are right!
I always thought the compiler skipped the whole thing because it worked so fast.
I will make tests some time.

Then again - better safe than sorry.

Pangaea

I've not modded for a long while, being away from the game, but based on the posts here it works the same as before -- at least this is roughly what I remember.

Quote from: kid1293 on September 06, 2016, 01:12:00 PM
You don't have to change ALL the 'StoneHouse.rsc'
so you address it -
StoneHouse.rsc:build
only that section needs to be compiled. (the only thing changed)
like this (in the StoneHouseOverrideResources.rsc)

ExternalList resource
{
External _resources
[
"Template/StoneHouse.rsc:build"
]
}


I just have an additional comment here. Doing it like above will make the mod files a little smaller (hardly a big issue these days, but still a good practice), but it will also likely make your mods more compatible with others. For instance, I made a mod that changed how long orchards live before dying, which changed the "growth" part of the .rsc file (if I remember correct), but also love to use the Better fields mod. This mod changes the same file, but a different part of it (probably pathType under map section). This means both mods can be used without any conflicts. With so many mods around and possibility for conflicts, it's a good way to go about things to reduce issues.