edicted avatar

DrugWars: JSON Inconsistencies

edicted

Published: 04 Mar 2019 โ€บ Updated: 04 Mar 2019DrugWars: JSON Inconsistencies

DrugWars: JSON Inconsistencies

drugwars-json-error.png

Which one of these custom JSON operations is not a valid drugwars@drugwars command?

Spoiler alert:

It's the middle one...
because I copied and pasted the username in caps from the drugwars@drugwars client.
CAPS ARE NOT ALLOWED, FRIENDS.

Damn you @MALUELI69! Feel the wrath of my NINJA!!!!11


In any case,

I just now got my first attack to work by broadcasting my own JSON to the blockchain.

Holy god, is that structure convoluted or what?

drugwars-json-error-2.png

Look at how much simpler it is to add drugs to the heist, upgrade a building, and train a unit.

Why did they change "username" to "author"?
Why did they change "unit" to "key"?
(probably because there are multiple in some kind of dictionary structure)
Why does the "target" need its own object?
Why are both "unit_amount" and "amount" used?
Why is the battle id "drugwars" instead of something like "dw-battle"?

Couldn't tell you.
They are probably just shredding code 24/7.

I'll tell you one thing:
They are making more progress than I am.

๐Ÿ‘๐Ÿ‘๐Ÿ‘LOL๐Ÿ‘๐Ÿ‘๐Ÿ‘

Leave DrugWars: JSON Inconsistencies to:

Written by

Freedom From Debt-Slavery

Read more #drugwars posts


Best Posts From edicted

We have not curated any of edicted's posts yet. But you can encourage our curation team to review posts by visiting them regularly and by referring other readers. Because we give priority to frequently read content.

More Posts From edicted