strongheart
Refugee
- Version
- 3.0.0 b259
- Platform
- Windows
- Sandbox Code
- ABEABTBBWADFNFDBFHB
It looks like the trader restock setting is overriding the restock setting in the XML for player vending machines. It should be -1 (never restock), but the sandbox logic is not paying attention to the player_owned flag on trader 3.
I've patched TraderInfo.get_RestInterval and TraderInfo.get_ResetIntervalInTicks on my local system and confirmed that if I use the XML config when player_owned is true, I get the expected behavior.
This replication, however, is with a straight Vanilla setup--no mods.
I've patched TraderInfo.get_RestInterval and TraderInfo.get_ResetIntervalInTicks on my local system and confirmed that if I use the XML config when player_owned is true, I get the expected behavior.
This replication, however, is with a straight Vanilla setup--no mods.
- Reproduction Steps
- 1. Create a new world with sandbox settings that set trader and vending machine restock period to 1 day
2. Log in and place a player vending machine
3. Put some items in that vending machine
4. Wait for midnight
5. Check the machine
The machine will be empty.
- Link to Logs
- https://pastebin.com/zJ8iDakR
- Link to Screenshot/Video
- https://youtu.be/wvZQ43pXhTI