Bountiful

Bountiful

35M Downloads

2.0 Server Crash

MokahTGS opened this issue · 6 comments

commented

Got a crash with 2.0 on a dedicated server reloading the json with the commands.

https://pastebin.com/t6iJVdrP

commented

This means that your "bounties.json" contains fewer entries than the maximum number of things a bounty could ask you to get.

Example: if you changed the config so that it could ask you to get 1-3 different things, but there were only 2 entries in "bounties.json", you would get this error.

You need to add more bounties.

I will keep this issue open and catch it more gracefully in the next update, though! I never realized this could crash when hot reloading - I thought it only checked for this on server load.

commented

These are the jsons shipped with the mod, I didn't touch any of them.

Bounties json: https://pastebin.com/eGKw9t9L

Bountiful Config: https://pastebin.com/xdkD2sc9

Rewards json: https://pastebin.com/8A3Jkw3w

commented

so it seems to be a config mismatch. I've deleted the old configs that were on the server and have let the 2.0 version generate new ones. The reload command was tried because no bounties were showing up when the board was placed. How long does it take to populate the board with bounties?

commented

The config determines how long it takes ("New Bounty Frequency"). The default time is, I believe 2400 ticks (20 ticks = 1 second), so 120 seconds, or two minutes.

There's also a config option that determines how many bounties the board starts with when placed. It's set to 0 by default so people can't cheese breaking+placing the block until they find the bounties they want.

commented

I'm using the default jsons. I havent edited anything. I would suggest they are setup so that players dont have to add things to get it to work.

commented

They are set up, as stated in the mod's description. When the game starts it will add the default data if no json data exists, so the most likely events are that you have either edited the file, or you had Bountiful v1.0-v1.1 and did not delete your config files before updating (which would have prevented the new default data from showing up). I'm not sure why you would have reloaded the json data if you hadn't edited the file 🤔 . Anyways, you should post the contents of the "bounties.json" here:
https://gist.github.com/
and send a link so that I can look at it.