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

Prefab Editor (Alpha)

I have a high rise appt building i want to copy the layout of an appt and rotate it 90 degrees to paste on opposite side. Is it possible?

 
Yes, you have to use the export prefab function to export the appt. Then use tools -> insert prefab, select the exported appt and choose 'vertical rotation' 90°. I think there was an explanation in one of guppys videos.

 
How to rotate a prefab

We're going to rotate the football stadium (file name is football_stadium.tts).

W1IpA7j.png


There are two ways. Either we can use the xml paramater RotationToFaceNorth (see Xml -> Rotation to face north; it doesn't work according to stallionsden ) or we can do the following:

1st step (calculate the size of the prefab you're going to rotate):

The size of the stadium is 173 x 44 x 138 (length in x-direction x height x length in y-direction). To determine the dimensions of the prefab we can use the layer slider.

Length in x-direction = (highest possible slider position of side view) + 1

Length in y-direction = (highest possible slider position of front view) + 1

Height = (highest possible slider position of top view) + 1

Yfqmq1i.png


2nd step:

Press Ctrl + N. The longest side of the stadium is 173 blocks and its height is 44 blocks. So we can use the following lengths (name your new prefab 'Temp'):

WHHrlfw.png


3rd step:

Click on tools -> insert prefab and select your prefab (football_stadium.tts). Then select a rotation (we choose 90°).

v4dl2YC.png


4th step (placing the prefab):

Go to the top view, to layer 0. Click on one of the following corners

- lower left corner if you use a rotation of 0°

- upper left corner if you use a rotation of 90°

- upper right corner if you use a rotation of 180°

- lower right corner if you use a rotation of 270°

9ODwwBs.png


The blue box represents the prefab you're going to insert/rotate (should be completely inside your Temp prefab).

5th step.

Click on fix position (tools tab -> fix position) and remove the unwanted air blocks (see Guppy's tutorial video).

SkNe1zw.png


6th step.

Click on File -> Save As and choose a save you rotated prefab.

 
Last edited by a moderator:
@all

I couldn't spot the exact calculation, but it appears there is a gamestage adjustment to the emptyChance

If you are not getting sleeper spawns, and especially if you see "Triggered empty sleeper volume." in the logs, then you need to raise your gamestage (settime 1000 7 0 should do it) or increase the difficulty adjustment for the sleeper volume, or set it to one of the loot volumes with sleeper groups that have an emptyChance of 0
I am still having trouble with empty sleeper volumes. I've set the day counter to 50 and the character level to 200 and used one of the 'badass' groups (GameStageAdjust is set to hard). Nevertheless, sometimes i am still getting dozens of 'Triggered empty sleeper volume' messages. Using a sleeper groups that have an emptyChance of 0 works but it's not a good solution.

Any further pro tips?

@Mana

If you need more detailed instructions, I can make another how-to...

 
Last edited by a moderator:
@stallionsdenHow do you rotate the prefab? There is a rotation function in Tools -> insert prefab. Are you talking about this function?

@Jackelmyer

Mehh, maybe when the entity update is out. ;)
lol. <3 Fair enough. I'm crossing ma fingers! :D

 
Damn I'm missing awesomeness.

Rotation gui suggestion:

Special select (green instead of red?) to grab all layers.

Rotate button (all the options)

Rotates all layers pivoting around a corner, then can be dragged around for placement before being "set".

 
Just realised what i wanted was not what i needed LOL (story of my life). What i needed to do was flip the selection to place on opp side to mirror the existing layout. Probably not possible?

 
Just realised what i wanted was not what i needed LOL (story of my life). What i needed to do was flip the selection to place on opp side to mirror the existing layout. Probably not possible?
You can by using the same process pille did above. Use the 180 option. Then reimport it using hals editor commands or stompys api mod while in game. Which you do by standing in the exact position you need to to import it to where you need

 
You can by using the same process pille did above. Use the 180 option. Then reimport it using hals editor commands or stompys api mod while in game. Which you do by standing in the exact position you need to to import it to where you need
Sounds like he needs to mirror a prefab not rotate it. I don't think thats possible with the editor?

 
You can by using the same process pille did above. Use the 180 option. Then reimport it using hals editor commands or stompys api mod while in game. Which you do by standing in the exact position you need to to import it to where you need
No that is not going to work. If i rotate 180 i get this.

rotation.jpg

 
Just realised what i wanted was not what i needed LOL (story of my life). What i needed to do was flip the selection to place on opp side to mirror the existing layout. Probably not possible?
No, sorry. Not implemented yet (or maybe just deactivated^^) because there were some missing block rotations. So it would not work with all blocks.

Damn I'm missing awesomeness.
Rotation gui suggestion:

Special select (green instead of red?) to grab all layers.

Rotate button (all the options)

Rotates all layers pivoting around a corner, then can be dragged around for placement before being "set".
Wow, that's brilliant. Unfortunately, I have no clue what you mean but maybe it's just because I'm very tired atm. Will reread it after a nap. ^^

 
Last edited by a moderator:
No, sorry. Not implemented yet (or maybe just deactivated^^) because there were some missing block rotations. So it would work with all blocks.
No worries mate i figured it might be a herculean task to get it right.

 
No worries mate i figured it might be a herculean task to get it right.
I'll try to program it today or tomorrow. It's on my to-do list since several months.^^

 
Sorry to be a pain mate. Can i rotate textures? I want a texture to face a specific direction, as in a bowling lane with texture down lane rather than across lane. Is it as simple as rotating the block?

 
Sorry to be a pain mate.
Lol, don't worry, you're not a pain.^^

Can i rotate textures? ... Is it as simple as rotating the block?
Yes, sometimes. ^^ There are two types of textures. Textures whose orientation is independent of the block rotation and textures that can be rotated by changing the rotation of the block (I think this can be changed in one of the xml files). My editor doesn't show the true orientations, so you have to check it ingame.

 
Last edited by a moderator:
I am getting something strange happening when i import an airblock to clear the import area before importing a prefab. A heap of loot containers rain down into the hole. If i don't quit game and restart i get texture issues.

 
I am getting something strange happening when i import an airblock to clear the import area before importing a prefab. A heap of loot containers rain down into the hole. If i don't quit game and restart i get texture issues.
lol. That's a weird one. You might want try making a secondary copy of 7D2D and mod it with the link below. Then just load your prefab in the edit tool. Much simpler method of prefabbing in a standalone (non-server) environment. No blocks to clear. Hit Esc, and on the right click the Prefab button and the... Erm.. Show Ground check box. Forgot the actual name of the check box. This is going to go into my next prefab guide, for the simplest way to get started prefabbing.

https://7daystodie.com/forums/showthread.php?47459-Unlocking-In-Game-Prefab-Editor-(Terrain-Tools)-dll-mod

 
Back
Top