Jump to content
Sign in to follow this  
herrpohl

A16 - Unlocking In-Game Prefab Editor (Terrain Tools) [.dll mod]

Recommended Posts

For A16.4.

This mod makes TFP's prefab editor and world creation screen accessible.

Create a copy of the game folder and replace the Assembly-CSharp.dll in the 7DaysToDie_Data/Managed folder with this one. (Choose download with browser.)

 

Click on Editing tools in the main menu and choose a map type, then press Start.

 

Dlls for older versions:

 

A16.3

A16.2

A16.1

A16.0

A15.2

A15.1

A15

A15 b104

A15 b94

A15 b88

A15 b83

A15 b78

A14.7

 

 

Little demo:

 

 

Controls:

Z: Draw selection box

J: Clear selection

L: Fill selection with block selected on toolbelt

K: Properties menu (StartPoint, Dynamic Prefabs, EntitySpawnerTriggerArea, EntitySpawner)

E: Change color of selection (not sure if there is more to it)

Press and hold G: Move selection box with mouse or WASD

Press and hold Shift + G: Change size of selection box

Holding Shift while placing a block (LMB) will replace the selected block

Holding Shift while having a block selected on toolbelt and pressing RMB will delete any block

Ctrl + E will toggle any light on and off while clicking on it

Left click red on a prefab with entities checked and hit k to open the spawn triggers menu

Ctr+C - Copy Selection

Ctr+V - Paste Copied Selection

X - Rotate the Selection

Arow keys change "voxel smoothing"

Backspace - diselect area

Ctrl+Right Click on map to teleport

Ctrl+* - freeze zombies

Pressing middle mouse button while pointing at a block will add a stack of the block to the toolbelt

Ctrl + cursor up/down: raises or lowers a voxel

 

Changes to the terrain of Navezgane can be made by enabling debug mode and disabling the decoration in the debug menu (Esc). The modified terrain files will then be saved at Data\Worlds\Navezgane\Region so any new games started will show the modified terrain.

 

Thanks to Guppycur, Sorrowthief and DnaJur for figuring out the controls.

 

Last but not least, thanks to N2n1 for showing me how to use ILSpy!

Edited by herrpohl (see edit history)
  • Like 10

Share this post


Link to post
Share on other sites

This is pretty cool. I like the terrain part. I can see using this along with the prefab tool of editor to terraform the world. Was able to make some nice mountains and such with this. Wish you could just insert prefabs from here...?

Share this post


Link to post
Share on other sites

Inserting prefabs would be great.

I'm still figuring things out, I'm not able to save a region file with this at the moment. So WIP.

Share this post


Link to post
Share on other sites
Inserting prefabs would be great.

I'm still figuring things out, I'm not able to save a region file with this at the moment. So WIP.

Is this something you found hidden in the files by TFP's or you made this? Either way good find or great work. I sent Hal a link here cause it would be really cool to have the terrain function on his world editor.

Share this post


Link to post
Share on other sites

It's in TFP's files, the dll just unlocks it. There's also a deathmatch and horde mode gamemode, not sure if these still work.

Share this post


Link to post
Share on other sites
It's in TFP's files, the dll just unlocks it. There's also a deathmatch and horde mode gamemode, not sure if these still work.

Awesome! Keep at it, you may bring us horde mode back before the pimps do. :). Go ahead and unlock that create a world button while you are at it. Maybe they got that in and working hidden in there lol:)

Edited by Sorrowthief (see edit history)

Share this post


Link to post
Share on other sites

You can also mark areas and fill them in with blocks (press z):

 

JSGh2tg.jpg

 

jjBVRSC.jpg

 

I think this is more of a prefab editor than a world editor. There might be an option to export prefabs somewhere.

Edited by herrpohl (see edit history)

Share this post


Link to post
Share on other sites
You can also mark areas and fill them in with blocks:

 

JSGh2tg.jpg

 

jjBVRSC.jpg

 

I think this is more of a prefab editor than a world editor. There might be an option to export prefabs somewhere.

 

What key or setting do you use to mark the area?

Share this post


Link to post
Share on other sites
What key or setting do you use to mark the area?

Sorry press 'Z'.

 

- - - Updated - - -

 

Yes it's the prefab editor! :)

 

Ny8wKhf.jpg

 

Press K to get this when an area is marked and choose dynamic prefab.

Share this post


Link to post
Share on other sites

You can build a prefab and then select it (z):

 

xRahhtA.jpg

 

Then press K and choose Dynamic Prefab. Then select Save Prefab. It will be saved to the default prefab folder.

 

QwRKm0E.jpg

 

You can then past it in again by selecting a region, select load in prefab and then replace block/instance.

 

jfMu0gq.jpg

  • Like 1

Share this post


Link to post
Share on other sites

Thanks Sorrow, Spider, Alphado and Guppy. I'm not a prefabber so I don't know how most of that works, I'll leave it at that for the moment. I will make an alternative dll to replace the creative mode so that it can be used with the "normal" game folder.

Share this post


Link to post
Share on other sites

Is the prefab list on the right being called by the game folder its saved in? If you had the prefab pack installed would the new prefabs bebe in the list?

Share this post


Link to post
Share on other sites
Is the prefab list on the right being called by the game folder its saved in? If you had the prefab pack installed would the new prefabs bebe in the list?

Yes, it takes whatever is in the prefabs folder.

Share this post


Link to post
Share on other sites

WTF!?

Can this tool directly save the prefab in game as a data?

 

Amazing....., this definitely help all of prefabber now. And all of them who comes lator......

From now on, Prefab forum absolutely be more passionate, and more awesome stuffs must be uploaded

Edited by Alphado-Jaki (see edit history)

Share this post


Link to post
Share on other sites
WTF!?

Can this tool directly save the prefab in game as a data?

Yes, it can. You have to save the prefab though before you leave the game since it doesn't create region files in this mode.

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
Sign in to follow this  

×
×
  • Create New...