hey i'm have read some post about this, and i'm not sure where is my mistake...
gyazo.com/47b6a5238c5f82cf4c9ed9f6e98c8011
The Ajax.LastData returns { "0":null,
"1":"bronze sword",
"2":"bronze pickaxe",
"3":"bronze axe"
but the dictionary it self is still empty
You have to use the right format for C2. Use the dictionary's download as JSON action to see what it should look like.
Develop games in your browser. Powerful, performant & highly capable.
franmcod
Try this plugin.
it gave an .json with this {"c2dictionary":true,"data":{}}, i've read something about double quotes, is it that? so something like { ""0"":null,
""1"":""bronze sword"",
} ?
— that is cool but i would like to avoid plugins for something so simple, i'll try to parse it manually and add to the dictionary...
You don't need the extra quotes if you're loading from a file. You just need it like this:
{"c2dictionary":true,"data": {"1":"bronze sword", "2":"bronze pickaxe","3":"bronze axe"}} [/code:38tvyg7d] There's no null. The C2 dictionary only holds numbers and strings. Also if your keys are just numbers you might use an array.
ramones solved it, thx alot!!!