PurgatoryWolf Posted September 15, 2020 Share Posted September 15, 2020 Backstory: In alpha 17 I built a Trading Post that housed vending machines that I would rent out for free to anyone on the server who wanted one. (I'm an admin). So that there could be one central location for people to congregate to if they wished. When a18 introduced Traders quests, I introduced a room that would house all 5 Traders, to make it extra special. However, I could not figure out how to get them to spawn in with import of the building, or even to spawn in with the editor load of my save file. I had to manually spawn them in every time we imported it into the game. Now in a19 they keep falling through the floor or just straight up vanishing. How can I place the traders where I want them, and have them spawn in with my building when we import it into the game? This way, if they vanish, a server reboot should technically fix them and put them back (theoretically). Yes, I use the Static spawner when I spawn them in manually. I have tried using the Trader Spawn Block, but it only spawns Trader Joel. I tried looking into my XML file, and comparing it to the XML of the Traders, and can't understand how it determines which traders spawns. So I can't figure out how to change the 5 Joel's into one of each trader. Link to comment Share on other sites More sharing options...
bdubyah Posted September 15, 2020 Share Posted September 15, 2020 You'd have to edit the meta data of the block. It can be done in Pille's editor, not sure if there's an easier way. If needed, the meta value for each is: 0=Joel 1=Rekt 2=Hugh 3=Bob 4=Jen Link to comment Share on other sites More sharing options...
PurgatoryWolf Posted September 16, 2020 Author Share Posted September 16, 2020 On 9/15/2020 at 4:32 PM, bdubyah said: You'd have to edit the meta data of the block. It can be done in Pille's editor, not sure if there's an easier way. If needed, the meta value for each is: 0=Joel 1=Rekt 2=Hugh 3=Bob 4=Jen Pille's editor? Originally I thought that I could look at the XML of each Traders prefab to see what I would need to do. And I thought I was onto something when I opened up the first two because their number sequence was different. But then the next to you had the same numbers as the first two so I knew that wasn't it. Link to comment Share on other sites More sharing options...
bdubyah Posted September 17, 2020 Share Posted September 17, 2020 https://community.7daystodie.com/topic/4219-prefab-editor-alpha/ It's not too hard to figure out how to use his editor. It's a top down grid view. There's a search function for blocks ID's. 2894 is the spawnTrader block. Just need to edit the Meta data for each one to be the number of the trader you want. Link to comment Share on other sites More sharing options...
PurgatoryWolf Posted September 17, 2020 Author Share Posted September 17, 2020 So a modder helped me out, and said all i needed to do was go into the blocks.xml and create a new block for each trader using the template of the Traderspawn block. it works.. thank you for reaching out. Link to comment Share on other sites More sharing options...
bdubyah Posted September 17, 2020 Share Posted September 17, 2020 Or you can do that. Lol. That's actually the way I went about it when trying to add in my Mechanic trader to my vehicle mod. Whatever works. Link to comment Share on other sites More sharing options...
PurgatoryWolf Posted September 19, 2020 Author Share Posted September 19, 2020 Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.