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

Problems with Traders, please help

PurgatoryWolf

New member
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. 

 
Last edited by a moderator:
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

 
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.

 
Last edited by a moderator:
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.

 
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. :)

 
Back
Top