Jump to content

How to use the new export prefab


PurgatoryWolf

Recommended Posts

You have to enable debug mode (console command DM, requires permissions if you are on a server), create a selection that covers what you want to export and then click the button. If you're a client on a server though note that this will be saved on the server, not your PC.

 

As for how to create / modify a selection: I'd recommend toying with the Prefab Editor, that one has a help on how you create/modify/remove selections.

Link to comment
Share on other sites

  • 2 weeks later...

Exporting works fine, just use the console command exportprefab (help can be found as Guppy stated) or use DM + selection keys (help on those can be found in the PrefabEditor) + Esc->Export Prefab.

Adding prefabs to words is done with the prefabs.xml in the worlds.

Link to comment
Share on other sites

  • 5 weeks later...

To @Alloc or anyone else who has the knowledge:

 

I am trying to get a hang of prefab editing.

 

Background story:

I made a 4K map for me and two other players to, well, play 7dtd. It is getting too small and the RWG wasn't too great (missing a hospital etc.). We have a decent base with multiple wooden chests nicely organized. I'd like to generate a 8K map and import the base there.

 

So, I was able to export the base into the prefab editor. Before I go and try to mess around with the import side of things, is there any way to keep the chests as they are "in reality"? I tried playtesting the prefab and all the chests are locked and when broken into, they are empty.

 

(Well, our forge and generator bank are also missing their contents but that's not a terrible deal.)

 

A big thanks in advance to anyone who might be able to help. :)

Link to comment
Share on other sites

To @Alloc or anyone else who has the knowledge:

 

I am trying to get a hang of prefab editing.

 

Background story:

I made a 4K map for me and two other players to, well, play 7dtd. It is getting too small and the RWG wasn't too great (missing a hospital etc.). We have a decent base with multiple wooden chests nicely organized. I'd like to generate a 8K map and import the base there.

 

So, I was able to export the base into the prefab editor. Before I go and try to mess around with the import side of things, is there any way to keep the chests as they are "in reality"? I tried playtesting the prefab and all the chests are locked and when broken into, they are empty.

 

(Well, our forge and generator bank are also missing their contents but that's not a terrible deal.)

 

A big thanks in advance to anyone who might be able to help. :)

 

Editor will not save the contents you place inside containers. if you want a chest to be lootable, dont use the player made chests, they will always be empty when play testing, as its up to the player to fill them. there are many chests to pick from. the same goes for when you place a block like an over or crate, its empty, but when you play test, will have random loot for that block.

 

- - - Updated - - -

 

Sharing what I learned...

 

Using the In-Game Export Prefab feature:

 

- Be in Debug Mode -

*Stand at one corner and press the Z key to place your first marker. (Pressing Backspace will remove markers)

*Move to the opposite corner and press the Z key again to place your second marker. (you can also hold the key and drag it around to change sizing)

*Use the "drop" key (which is whatever key you have assigned to drop items, G by default), to adjust your positioning

*Shift + Drop Key will allow you to extend your placement

*Press Esc then Tap Export Prefab, name it, and save.

 

then you can load it into the prefab editor and work on it some more, and just click SAVE when you want to save it.

 

To import into a live game: -- Note this only seems to work in SP, Dedicated MP servers don't seem to have the option.

 

Make sure you have all 5 files in the proper places. Test this out on a solo game till you get the hang of it.

When you make a prefab in the editor it will go to this folder (at least for me): C:\Program Files (x86)\Steam\SteamApps\common\7 Days To Die\Data\Prefabs

You will need to copy all 5 files to the server files. (NIM file, INS file, JPG file, XML file, and TTS file)

 

Load into your game:

 

-Be in Debug Mode (DM)-

*Locate where you would like to place your prefab.

*Press Z to place a selector block, this block will be the Southwest corner of your prefab

*Press K to open Dynamic Menu

*Select Dynamic Prefab

*Select your Prefab from the list

*Select Load into Prefab (This will create an empty yellow box the size of your prefab, this will show you the area it will consume on placement, so you can make sure that you want to place it there. If you do not like the placement of the box, select Delete Prefab, and try again. Backspace will remove the blue selector block)

*Once you have a location you like, select Apply BB Position - WARNING: this will permanently displace the terrain. Even if you don't place it after all.

*If there is decorations (trees and such) that are still there after you place your prefab, select Repl. Active Prefab. (This will erase your prefab and any decor in the way) then use Apply BB Position again.

*Log out, when you log back in, your prefab will be placed, permanently. (I do not know how to turn off the yellow/green box without logging out)

------

 

there doesnt seem to be a Import Console command.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...