• If you have a mod, tool or prefab, please use the Resources section. Click Mods at the top of the forums.

Adding prefabs to existing game on multiplayer server.

Blackrook

Refugee
I'm sure I saw a thread about adding prefabs to your game which might of covered this but I can't find it at the moment:

Okay I'm having a slight technical hitch testing prefabs I build on our multiplayer server.

I add the prefab to the prefabs folder on the server, add the prefab with location into prefabs.xml in the worlds folder.

and then I delete the region file in the saves to force it to reroll it when the server restarts.

This works fine - the prefab is placed where I want it etc.

BUT I am ending up with trees from the original creation of the map dotted through my prefab.

It seems to be where there are airblocks in the prefab.

I have

<property name="CopyAirBlocks" value="True" /> in the actually prefabs

but it doesn't seem to be overwriting the old trees.

I'm probably missing something obvious.....

 
Well i guess you need to generate the world with these prefabs in place.

Maybe try to do that offline/local and then copy the Region file into your server.

Its only a guess, but i would try it this way

 
Not sure - I thought the block locations (including trees and decorations) were stored in the region files after generation.

So if I delete those and then restart the server it should regenerate the map just for that region, which it does do.

I'm just not sure why I get the trees sticking up in odd places.

 
Back
Top