Jump to content
Laz Man

[Prefab] The Walking Dead Prison

Recommended Posts

Can this be added to a currently running server/game or will I have to start fresh. I tried just adding it in and flew around for a long time and never spawned it.

Share this post


Link to post
Share on other sites
Can this be added to a currently running server/game or will I have to start fresh. I tried just adding it in and flew around for a long time and never spawned it.

 

Ive added it on a fresh wipe and on an already running game and both worked. Although if you use it ona preexisting game you would either have to a) go to regions noone has currently explored yet or b)delete the region files your base isn't in and try it that way. both ways i have had it spawn though, so you should be fine.

 

Edit: I have no idea how to do prefabs yet, but i am starting to play with Hal's editor, so i can make an Alexandria-esqe prefab. Laz how did you make such a big prefab spawn on the ground? instead of floating?

Edited by thewalkingdeadguy (see edit history)

Share this post


Link to post
Share on other sites

You can port in huge prefabs into an existing game with Hal's editor, and it will literally overwrite the area. It takes some practice, but one of my larger skyscrapers in Dogtown I started building in A10, ported into A11 as a prefab, and then again in A12. :D

Share this post


Link to post
Share on other sites
Ive added it on a fresh wipe and on an already running game and both worked. Although if you use it ona preexisting game you would either have to a) go to regions noone has currently explored yet or b)delete the region files your base isn't in and try it that way. both ways i have had it spawn though, so you should be fine.

 

Edit: I have no idea how to do prefabs yet, but i am starting to play with Hal's editor, so i can make an Alexandria-esqe prefab. Laz how did you make such a big prefab spawn on the ground? instead of floating?

 

Floating prefab issues usually occur because of 1 of 2 reasons.

 

#1 The Yoffset value set in the prefabs xml file is not low enough.

#2 The Prefab's footprint is so large that its edges will hang over lower elevation terrain in RWG. The only way I have been able to overcome this problem is to generate additional layers under the large prefab so even if it goes over lower elevation terrain, the gap is filled. It isn't the most elegant fix but at least will allow the prefab to look somewhat more blended with the terrain.

Share this post


Link to post
Share on other sites
Floating prefab issues usually occur because of 1 of 2 reasons.

 

#1 The Yoffset value set in the prefabs xml file is not low enough.

#2 The Prefab's footprint is so large that its edges will hang over lower elevation terrain in RWG. The only way I have been able to overcome this problem is to generate additional layers under the large prefab so even if it goes over lower elevation terrain, the gap is filled. It isn't the most elegant fix but at least will allow the prefab to look somewhat more blended with the terrain.

 

Yes - thats exactly the 2 reasons.

I added additional layers under all prefabs I added to the Pack.

Small ones get a basement of stone of 5

Prefabs bigger then 45X45 get a basement of stone of 10 !!!

 

Yes - this is not elegant - but the only way i know to stop the collapsing-problem.

(again: IMO this is a nasty gamebug and I hope TFP will fix that very soon. Also the other Spawning-Issues!)

 

I like ur pyramide-like-edges to make the extra-basement a littlebit more hilly and let it fit better in the landscape.

But if u wanna go 10 deep - the prefab becomes 10blocks bigger in each direction !!!

And not every Prefab should stand on a hill. They have to fit in the natural landscape in future !!

 

But the most important problem with this right now in RWG is the OVERSIZE-PROBLEM ;( !!!

 

 

Just wanted to mention that again :)

Mag

Share this post


Link to post
Share on other sites

You could utilise the materials xml. Increase the stability of each block to something ridiculous. This stabilises the building more as well and you can build further with out a support every 2nd block.

 

In regards to your compopack mag realeasing the pack with the extra material xml will then add all the new material/changed material to the dl users game to. Maybe those whom make prefabs can do this to before starting to build. So they use these blocks that use the changed stronger stab stuff.

Share this post


Link to post
Share on other sites
You could utilise the materials xml. Increase the stability of each block to something ridiculous. This stabilises the building more as well and you can build further with out a support every 2nd block.

 

In regards to your compopack mag realeasing the pack with the extra material xml will then add all the new material/changed material to the dl users game to. Maybe those whom make prefabs can do this to before starting to build. So they use these blocks that use the changed stronger stab stuff.

 

The problem is not stability but the fact that buildings shouldn't be floating over drops in terrain. It just looks......wrong. (lack of a better word). My guess is the general terrain is generated first and the prefabs are inserted afterwards. It would be nice if the developers could somehow update the prefab generation part of their code to analyze the amount of flat terrain is available prior to inserting a prefab. This is most likely harder to implement than it sounds. But one can dream :).

Share this post


Link to post
Share on other sites
Yes - thats exactly the 2 reasons.

I added additional layers under all prefabs I added to the Pack.

Small ones get a basement of stone of 5

Prefabs bigger then 45X45 get a basement of stone of 10 !!!

 

Yes - this is not elegant - but the only way i know to stop the collapsing-problem.

(again: IMO this is a nasty gamebug and I hope TFP will fix that very soon. Also the other Spawning-Issues!)

 

I like ur pyramide-like-edges to make the extra-basement a littlebit more hilly and let it fit better in the landscape.

But if u wanna go 10 deep - the prefab becomes 10blocks bigger in each direction !!!

And not every Prefab should stand on a hill. They have to fit in the natural landscape in future !!

 

But the most important problem with this right now in RWG is the OVERSIZE-PROBLEM ;( !!!

 

 

Just wanted to mention that again :)

Mag

 

The pyramid fertile grass blocks was actually not to improve stability but because the prison has multi-level exterior terrain. I wanted it to be as close to the real prison that I could make it. I wish we could make elevated organic blocks smooth like how the terrain looks on world generation but sadly we cannot. :(

Share this post


Link to post
Share on other sites
The problem is not stability but the fact that buildings shouldn't be floating over drops in terrain. It just looks......wrong. (lack of a better word). My guess is the general terrain is generated first and the prefabs are inserted afterwards. It would be nice if the developers could somehow update the prefab generation part of their code to analyze the amount of flat terrain is available prior to inserting a prefab. This is most likely harder to implement than it sounds. But one can dream :).

 

Argh yep i with you. Maybe they need to generate all the prefabs first then the world so it knows where a prefab is and when to have flat surfaces or where to have hills etc.

Share this post


Link to post
Share on other sites
Can you please explain to me how the probability parameter works?

 

It seems all a bit odd. tbh I couldn't find a prison at all at first. Then I tried to upper that value, which at a point did influence the spawning of military bases (when setting to 1.0 or simply 1) I had military bases all over the place but not as expected the prison. (also I have enabled it to spawn in other biomes (desert,plains) as well is that not a good idea? In a singleplayer game I managed to find a prison, when simply disabling the other prefabs in that section.

 

The probability of a prefab is dictated by its value in relation to the total prob. Of all prefabs in its group.

 

For example, let's say you have a prefab group called town which contains 4 different prefabs with each set to prob=1. Each prefab will have a 1 out 4 chance (25%) to be selected.

 

If we increase the probability of one of the prefabs to 2 then it will have a 2 out 5 chance (40%) to spawn while the rest will have a 1 out of 5 chance (20%) to spawn.

 

You can allow it to spawn in other biomes but it might look out of place since it's configures with forest grass.

 

Lastly, post your XML code in here if you would like us to take a look.

 

Edit: FYI, I will be creating a custom hub for the prison in the near future to improve how it spawns in the world.

Share this post


Link to post
Share on other sites

Hello guys i could need youre help please^^

 

I wanted the prison on the navezgane map? would that go? I changed the files but it doesnt show on the direction i directed it?

Share this post


Link to post
Share on other sites
Hello guys i could need youre help please^^

 

I wanted the prison on the navezgane map? would that go? I changed the files but it doesnt show on the direction i directed it?

 

The Navezgane map requires you to specify coordinates. As far as rotation, perhaps the .xml for the prefab could help you.

 

 

Vote h0tr0d 2016 -- stone walls do not a prison make

Share this post


Link to post
Share on other sites
Ok I would like to show you the files but there is an error comming up, (invalid file), when i want to upload them in the post

 

put it in a zip file first

Share this post


Link to post
Share on other sites

@ JaxTeller718 didn't go either

 

Here are the xml files, would be nice if someone could tell me what i forgot or did wrong.

 

That's what i added in the prefabs.xml:

<prefabs>

.

.

.

.

.

<decoration type="model" name="xcostum_ZombieZoo(by_Wsiegel)a12_v1" position="69, 61, 185" rotation="0" />

<decoration type="model" name="TWDprisonRWG" position="209, 61, 11" rotation="0" />

</prefabs>

 

Thats changed and added in the rwg.mixer:

 

<rwgmixer>

<world ruleset="vanilla" />

 

<rulesets>

<ruleset name="vanilla" cell_cache_size="16" cell_size="1200" cell_offset="0.8" generation_distance="10000">

<cell_rule name="wastelandHub" position="0,0" prob="0.1"/>

 

<cell_rule name="lowDensity" prob="1"/>

<cell_rule name="highDensity" prob="0.5"/>

<cell_rule name="prisonHub" position="0,1"/>

<!--<cell_rule name="customHubTest" position="0,1" prob="0"/>-->

</ruleset>

</rulesets>

 

<cell_rules>

 

<cell_rule name="prisonHub">

<cave_count value="0,4"/>

<path_material value="asphalt" />

<path_radius value="7" />

<hub_rule name="prisonHub"/>

 

<wilderness_rule name="wildernessDefault"/>

</cell_rule>

 

 

 

<hub_rule name="prisonHub">

<hub_type value="town"/>

<hub_layout name="prisonHub"/>

<prefab_rule name="townSmall"/>

</hub_rule>

 

 

<prefab_rules>

 

<prefab_rule name="UniquePOIs">

<prefab rule="TWDprisonRWG"/>

</prefab_rule>

 

<prefab_rule name="wildernessPOIs">

<path_material value="gravel" />

<path_radius value="2" />

 

<prefab name="TWDprisonRWG" prob="0.03"/>

 

<prefab name="indian_burial_grounds_01" prob="0.03"/>

<prefab rule="militaryCamps" prob="0.03"/>

<prefab rule="wildernessMisc" prob="0.14"/>

<prefab rule="waterPOIs" prob="0.2"/>

<prefab rule="campsites" prob="0.2"/>

<prefab rule="cabins" prob="0.2"/>

<prefab rule="barnsAndSheds" prob="0.2"/>

</prefab_rule>

 

 

<!-- NOT CURRENTLY USED

<biome_spawn_rule name="burnt_forest"/>

<biome_spawn_rule name="wasteland_hub"/>

<biome_spawn_rule name="wasteland" />

<biome_spawn_rule name="radiated"/>

<biome_spawn_rule name="water"/>

-->

</biome_spawn_rules>

 

<hub_layouts>

<hub_layout name="prisonHub">

<township_type value="town"/>

<street start_point="-50,0" end_point="128,0" path_material="asphalt" path_radius="7"/>

<street start_point="-50,144" end_point="128,144" path_material="asphalt" path_radius="7"/>

<street start_point="-28,7" end_point="-28,133" path_material="gravel" path_radius="4"/>

<street start_point="110,7" end_point="110,133" path_material="gravel" path_radius="4"/>

<lot min_x_y="-23, 8" prefab="TWDprisonRWG" rotation_to_road="3"/>

</hub_layout>

 

<hub_layout name="customHubTest">

<township_type value="town"/>

<street start_point="-64,0" end_point="64,0"/>

<lot min_x_y="0, 8" size="60,60" rotation_to_road="2"/>

<lot min_x_y="-32, 12" prefab="oldwest_jail" rotation_to_road="2"/>

</hub_layout>

</hub_layouts>

</rwgmixer>

 

But both buildings don't show on the map.:grumpy:

Share this post


Link to post
Share on other sites
@ JaxTeller718 didn't go either

 

Here are the xml files, would be nice if someone could tell me what i forgot or did wrong.

 

That's what i added in the prefabs.xml:

<prefabs>

.

.

.

.

.

<decoration type="model" name="xcostum_ZombieZoo(by_Wsiegel)a12_v1" position="69, 61, 185" rotation="0" />

<decoration type="model" name="TWDprisonRWG" position="209, 61, 11" rotation="0" />

</prefabs>

 

Thats changed and added in the rwg.mixer:

 

<rwgmixer>

<world ruleset="vanilla" />

 

<rulesets>

<ruleset name="vanilla" cell_cache_size="16" cell_size="1200" cell_offset="0.8" generation_distance="10000">

<cell_rule name="wastelandHub" position="0,0" prob="0.1"/>

 

<cell_rule name="lowDensity" prob="1"/>

<cell_rule name="highDensity" prob="0.5"/>

<cell_rule name="prisonHub" position="0,1"/>

<!--<cell_rule name="customHubTest" position="0,1" prob="0"/>-->

</ruleset>

</rulesets>

 

<cell_rules>

 

<cell_rule name="prisonHub">

<cave_count value="0,4"/>

<path_material value="asphalt" />

<path_radius value="7" />

<hub_rule name="prisonHub"/>

 

<wilderness_rule name="wildernessDefault"/>

</cell_rule>

 

 

 

<hub_rule name="prisonHub">

<hub_type value="town"/>

<hub_layout name="prisonHub"/>

<prefab_rule name="townSmall"/>

</hub_rule>

 

 

<prefab_rules>

 

<prefab_rule name="UniquePOIs">

<prefab rule="TWDprisonRWG"/>

</prefab_rule>

 

<prefab_rule name="wildernessPOIs">

<path_material value="gravel" />

<path_radius value="2" />

 

<prefab name="TWDprisonRWG" prob="0.03"/>

 

<prefab name="indian_burial_grounds_01" prob="0.03"/>

<prefab rule="militaryCamps" prob="0.03"/>

<prefab rule="wildernessMisc" prob="0.14"/>

<prefab rule="waterPOIs" prob="0.2"/>

<prefab rule="campsites" prob="0.2"/>

<prefab rule="cabins" prob="0.2"/>

<prefab rule="barnsAndSheds" prob="0.2"/>

</prefab_rule>

 

 

<!-- NOT CURRENTLY USED

<biome_spawn_rule name="burnt_forest"/>

<biome_spawn_rule name="wasteland_hub"/>

<biome_spawn_rule name="wasteland" />

<biome_spawn_rule name="radiated"/>

<biome_spawn_rule name="water"/>

-->

</biome_spawn_rules>

 

<hub_layouts>

<hub_layout name="prisonHub">

<township_type value="town"/>

<street start_point="-50,0" end_point="128,0" path_material="asphalt" path_radius="7"/>

<street start_point="-50,144" end_point="128,144" path_material="asphalt" path_radius="7"/>

<street start_point="-28,7" end_point="-28,133" path_material="gravel" path_radius="4"/>

<street start_point="110,7" end_point="110,133" path_material="gravel" path_radius="4"/>

<lot min_x_y="-23, 8" prefab="TWDprisonRWG" rotation_to_road="3"/>

</hub_layout>

 

<hub_layout name="customHubTest">

<township_type value="town"/>

<street start_point="-64,0" end_point="64,0"/>

<lot min_x_y="0, 8" size="60,60" rotation_to_road="2"/>

<lot min_x_y="-32, 12" prefab="oldwest_jail" rotation_to_road="2"/>

</hub_layout>

</hub_layouts>

</rwgmixer>

 

But both buildings don't show on the map.:grumpy:

 

Hi Kitty,

 

Sorry for the delayed response. Did you want the prison to spawn in a RWG or Navesgane map? From your xml snippet, it looks like you are trying to do both? I am updating my prison prefab again which will include better spawning (unique in a specific location). Look for the update very soon. :)

Share this post


Link to post
Share on other sites
Hi Kitty,

 

Sorry for the delayed response. Did you want the prison to spawn in a RWG or Navesgane map? From your xml snippet, it looks like you are trying to do both? I am updating my prison prefab again which will include better spawning (unique in a specific location). Look for the update very soon. :)

 

last i knew kitty wanted navesgane lol. But she using the rwg. There isnt a navesgane prison is theree Laz yeh or. But I did find this which is not needed I dont think it would matter tho but yeh not needed -

 

___________________________________________________

<prefab_rule name="wildernessPOIs">

<path_material value="gravel" />

<path_radius value="2" />

 

<prefab name="TWDprisonRWG" prob="0.03"/>

 

<prefab name="indian_burial_grounds_01" prob="0.03"/>

<prefab rule="militaryCamps" prob="0.03"/>

<prefab rule="wildernessMisc" prob="0.14"/>

<prefab rule="waterPOIs" prob="0.2"/>

<prefab rule="campsites" prob="0.2"/>

<prefab rule="cabins" prob="0.2"/>

<prefab rule="barnsAndSheds" prob="0.2"/>

</prefab_rule>

______________________________________________

 

 

for navesgane i am cluseless havent played navesgane since rwg came out alpha 8 lol.

Edited by stallionsden (see edit history)

Share this post


Link to post
Share on other sites
last i knew kitty wanted navesgane lol. But she using the rwg. There isnt a navesgane prison is theree Laz yeh or. But I did find this which is not needed I dont think it would matter tho but yeh not needed -

 

___________________________________________________

<prefab_rule name="wildernessPOIs">

<path_material value="gravel" />

<path_radius value="2" />

 

<prefab name="TWDprisonRWG" prob="0.03"/>

 

<prefab name="indian_burial_grounds_01" prob="0.03"/>

<prefab rule="militaryCamps" prob="0.03"/>

<prefab rule="wildernessMisc" prob="0.14"/>

<prefab rule="waterPOIs" prob="0.2"/>

<prefab rule="campsites" prob="0.2"/>

<prefab rule="cabins" prob="0.2"/>

<prefab rule="barnsAndSheds" prob="0.2"/>

</prefab_rule>

______________________________________________

 

 

for navesgane i am cluseless havent played navesgane since rwg came out alpha 8 lol.

 

The current version in this thread has the prison configured to spawn as a wilderness POI, unlike the version included in mags compo pack which is configured to spawn via hub_layout.

Share this post


Link to post
Share on other sites
The current version in this thread has the prison configured to spawn as a wilderness POI, unlike the version included in mags compo pack which is configured to spawn via hub_layout.

 

Argh ok yep just the xml had the hub layout which confused me lol

Share this post


Link to post
Share on other sites

UPDATE TIME!!!!! New version and new video!!! See original post of this thread for details. :)

 

As always, let me know if you spot any bugs or have any issues with installation. Thank you!

Edited by Laz Man (see edit history)

Share this post


Link to post
Share on other sites
UPDATE TIME!!!!! New version and new video!!! See original post of this thread for details. :)

 

As always, let me know if you spot any bugs or have any issues with installation. Thank you!

 

Man brilliant work :-)

Share this post


Link to post
Share on other sites
Excellent job Laz! Looking forward to finding it in game!

 

If you follow the included installation instructions, the prison should be roughly one biome north of the central city. Follow any road heading north and you should find it.

 

I recommend moving the prison farther out if used on a dedicated server with many players.

Share this post


Link to post
Share on other sites
If you follow the included installation instructions, the prison should be roughly one biome north of the central city. Follow any road heading north and you should find it.

 

I recommend moving the prison farther out if used on a dedicated server with many players.

 

Sounds good mate. Cheers!

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...