Adding New structures to the game

Get some help with creating maps or modding.
Need a map editor or other tools, look here!
Post Reply
User avatar
Millu30
New user
Posts: 5
Joined: 17 Mar 2019, 17:56
Contact:

Adding New structures to the game

Post 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
User avatar
WZ2100ModsFAn
Trained
Trained
Posts: 371
Joined: 15 Apr 2018, 17:25
Location: United States.

Re: Adding New structures to the game

Post 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.
User avatar
Berg
Regular
Regular
Posts: 2204
Joined: 02 Sep 2007, 23:25
Location: Australia

Re: Adding New structures to the game

Post 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
User avatar
Millu30
New user
Posts: 5
Joined: 17 Mar 2019, 17:56
Contact:

Re: Adding New structures to the game

Post 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
User avatar
WZ2100ModsFAn
Trained
Trained
Posts: 371
Joined: 15 Apr 2018, 17:25
Location: United States.

Re: Adding New structures to the game

Post by WZ2100ModsFAn »

You can also try berg's pie conversion tool.
User avatar
Berg
Regular
Regular
Posts: 2204
Joined: 02 Sep 2007, 23:25
Location: Australia

Re: Adding New structures to the game

Post 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.
User avatar
Prot
Trained
Trained
Posts: 242
Joined: 29 Nov 2010, 12:41

Re: Adding New structures to the game

Post 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
User avatar
Millu30
New user
Posts: 5
Joined: 17 Mar 2019, 17:56
Contact:

Re: Adding New structures to the game

Post 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
User avatar
Berserk Cyborg
Code contributor
Code contributor
Posts: 938
Joined: 26 Sep 2016, 19:56

Re: Adding New structures to the game

Post by Berserk Cyborg »

Attach your mod here and tell us what structure you are trying to make available.
User avatar
Millu30
New user
Posts: 5
Joined: 17 Mar 2019, 17:56
Contact:

Re: Adding New structures to the game

Post 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
User avatar
Berserk Cyborg
Code contributor
Code contributor
Posts: 938
Joined: 26 Sep 2016, 19:56

Re: Adding New structures to the game

Post 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.
User avatar
Millu30
New user
Posts: 5
Joined: 17 Mar 2019, 17:56
Contact:

Re: Adding New structures to the game

Post 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 :)
Post Reply