Las Venturas Playground
Pawn & json Complie - Printable Version

+- Las Venturas Playground (https://forum.sa-mp.nl)
+-- Forum: Main Talk (https://forum.sa-mp.nl/forum-3.html)
+--- Forum: Development (https://forum.sa-mp.nl/forum-16.html)
+--- Thread: Pawn & json Complie (/thread-33259.html)

Pages: 1 2 3 4


RE: Pawn & json Complie - Yassine - 08-03-2016

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


RE: Pawn & json Complie - Xanland - 08-03-2016

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.


RE: Pawn & json Complie - Russell - 08-03-2016

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!!


RE: Pawn & json Complie - Yassine - 08-03-2016

(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


RE: Pawn & json Complie - Russell - 08-03-2016

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?


RE: Pawn & json Complie - Yassine - 08-03-2016

(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


RE: Pawn & json Complie - Russell - 08-03-2016

Here you go: https://gist.github.com/RussellLVP/d08c3eda5e6adb6a83f2c1bfd3fa0847


RE: Pawn & json Complie - Yassine - 08-03-2016

(08-03-2016, 09:13 PM)Russell Wrote: Here you go: https://gist.github.com/RussellLVP/d08c3eda5e6adb6a83f2c1bfd3fa0847

Thanks it's Work !

Now to finish that u can see my pm ?


RE: Pawn & json Complie - Overdosed - 08-03-2016

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.


RE: Pawn & json Complie - Yassine - 08-03-2016

(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