Jump to content
Sign in to follow this  
PurgatoryWolf

Problems with Traders, please help

Recommended Posts

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. 

Edited by PurgatoryWolf
clarification (see edit history)

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites
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.

Edited by PurgatoryWolf (see edit history)

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

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

  • Like 1

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