Hello There, Guest! Login or Register


Pawn & json Complie
#21
Hello !

Files :

json file : http://pastebin.com/Mjc8g9gZ

Error Code : 
Quote: Loading plugin: json-plugin
  [LVP] JSON Reader plugin loaded, using a block size of 8192 bytes.
  Loaded.
--------------------------------------------------------------------------------------------------------------------
Uncaught promise rejection: SyntaxError: Unexpected number in JSON at position 280
    in fromFile (features/races/race_importer.js:59)
    in Races.forEach.file (features/races/races.js:38)
    in Races (features/races/races.js:38)
    in ensureLoadFeature (components/feature_manager/feature_manager.js:43)
    in load (components/feature_manager/feature_manager.js:23)
    in testRunner.run.then.then (main.js:30)

about the new gamemode is fully bugged ( fly and /lvp not work ) + ( report cmd .....)


I Have that Error when Server Start

i Hope u help me

Yassine
Reply
#22
Did you add it to the list and are there any other errors when running the server? Oh, please check your braces for being sure it's good.
Reply
#23
You can use http://jsonlint.com/ to validate whether your JSON file is valid. In this case, it's not, there are a few errors.

Thank you for doing this!!
Reply
#24
(08-03-2016, 03:25 PM)Xanland Wrote: Did you add it to the list and are there any other errors when running the server? Oh, please check your braces for being sure it's good.

all is good and added in the list

(08-03-2016, 03:32 PM)Russell Wrote: You can use http://jsonlint.com/ to validate whether your JSON file is valid. In this case, it's not, there are a few errors.

Thank you for doing this!!

Thanks i will do that

Quote:Error: Parse error on line 41:
... }, "objects": [{ "model": 8
--------------------^
Expecting 'EOF', '}', ',', ']', got ':'

idk that error I'm not json scripter :p

The new file is http://pastebin.com/UQN7ymT3
Reply
#25
I included a valid JSON file here: http://pastebin.com/Qc2k9hvv

However, the fact that the JSON syntax is valid does not mean that the actual data is valid. I've seen rotation arrays with only two entries, where rotation of objects has three entries. Did you create this by hand?
Reply
#26
(08-03-2016, 05:46 PM)Russell Wrote:  Did you create this by hand?

Yes Fully (3 hours of work )

Quote:http://pastebin.com/AKGCDvu4
 
check the new errors
Reply
#27
Here you go: https://gist.github.com/RussellLVP/d08c3...bfd3fa0847
Reply
#28
(08-03-2016, 09:13 PM)Russell Wrote: Here you go: https://gist.github.com/RussellLVP/d08c3...bfd3fa0847

Thanks it's Work !

Now to finish that u can see my pm ?
Reply
#29
Yassine you should feel honored that one of our hard working devs, of the best / longest server around is taking the time out of his day to help you.
Reply
#30
(08-03-2016, 09:18 PM)Overdosed Wrote: Yassine you should feel honored that one of our hard working devs, of the best / longest server around is taking the time out of his day to help you.

Yeah 

Thanks Russell :D
Reply