RandomEncounters

3.4k Downloads

Proper Treasure Format, faulty connection?

GhostXavier opened this issue ยท 2 comments

commented

http://pastebin.com/aY0BeayJ

The above is the full list of the treasures.json. The server fails to load these properly into the encounters.

An example of the Encounters code in case the treasures group are mislabeled.
http://pastebin.com/WSLmhXgQ

I can't seem to find anything wrong with the code but the server still fails to detect the specific categories. Ex, it would state "MainLoot" would be invalid for castle4.

commented

The treasures.json in the paste is not valid JSON. Starting at line 54, there are invalid object literals enclosing each treasure option.

commented

Just noticed the added brackets for no reason. Thanks for pointing out the flaw (horribly new to script writing/editing/reading haha)