Page 1 of 1

Adding New structures to the game

Posted: 17 Mar 2019, 18:05
by Millu30
Is there a way of adding new buildable structures to the game?
I have idea for mod but it requires some additional structures to make it work

Re: Adding New structures to the game

Posted: 18 Mar 2019, 00:18
by WZ2100ModsFAn
Millu30 wrote: 17 Mar 2019, 18:05 Is there a way of adding new buildable structures to the game?
I have idea for mod but it requires some additional structures to make it work
There is one however if you want custom structures you have to make your own models with Blender.

Re: Adding New structures to the game

Posted: 18 Mar 2019, 01:29
by Berg
There are many 3D model programs you can use as long as they export in object format you can convert them to pie

Re: Adding New structures to the game

Posted: 18 Mar 2019, 02:24
by Millu30
Models are not the case, I just cant get my model to be available in construction tab
I've tried to modify Structure.json, rules.js and nothing works, is there another file that I have to modify to make it work?
Note: I want this tructure to be available from start without researching it, also my mod appears in top left corner of game window but structure is not appearing

Re: Adding New structures to the game

Posted: 18 Mar 2019, 02:54
by WZ2100ModsFAn
You can also try berg's pie conversion tool.

Re: Adding New structures to the game

Posted: 18 Mar 2019, 04:03
by Berg
A good way to find out is maybe look at other folks mods the ultimate scav mod has many new structures try looking at that.

Re: Adding New structures to the game

Posted: 18 Mar 2019, 13:11
by Prot
You need "enable" your structure to build, like it does in rules.js
enableStructure("A0LightFactory", playnum);
also, you need set all spec to structure, cost, hp, armor, etc..
Millu30 wrote: 18 Mar 2019, 02:24 Models are not the case, I just cant get my model to be available in construction tab
I've tried to modify Structure.json, rules.js and nothing works, is there another file that I have to modify to make it work?
Note: I want this tructure to be available from start without researching it, also my mod appears in top left corner of game window but structure is not appearing

Re: Adding New structures to the game

Posted: 18 Mar 2019, 16:36
by Millu30
Prot wrote: 18 Mar 2019, 13:11 You need "enable" your structure to build, like it does in rules.js
enableStructure("A0LightFactory", playnum);
also, you need set all spec to structure, cost, hp, armor, etc..
I have already add them to rules.js and to Struct.json file
and ultimate scavenger mod is not much of a help due to its old format

Re: Adding New structures to the game

Posted: 18 Mar 2019, 18:07
by Berserk Cyborg
Attach your mod here and tell us what structure you are trying to make available.

Re: Adding New structures to the game

Posted: 18 Mar 2019, 18:42
by Millu30
Here is Mod zip file: http://www.mediafire.com/file/6q7oagmmb ... d.zip/file
It add's only one placeholder structure for testing purpose

Re: Adding New structures to the game

Posted: 18 Mar 2019, 19:17
by Berserk Cyborg
A0TestTower I presume. You need to fix the spelling of the skirmish folder (your mod has "skrimish"). Doing that I was able to build a purple and grey prototype of this tower you are making. There were some other warnings/errors but you could probably fix those.

Re: Adding New structures to the game

Posted: 18 Mar 2019, 19:45
by Millu30
Ok I am an Idiot than
I have fixed most of the errors "It was just missing message files"
Now I have to make propper scale for this building so it dosent overlap other buildings in construction tab but other than that
thanks for help now I can start working on my mod :)