1. Trouble with the game?
    Try the troubleshooter!

    Dismiss Notice
  2. Issues with the game?
    Check the Known Issues list before reporting!

    Dismiss Notice

What do new mappers think of the information available?

Discussion in 'General Discussion' started by Average Person, May 25, 2020.

  1. Average Person

    Average Person
    Expand Collapse

    Joined:
    Jul 8, 2015
    Messages:
    583
    Just curious if any new mappers or old mappers who aren't used to the new file format have any questions I might be able to answer or if a certain kind of tutorial would be useful to new mappers.
     
  2. Aboroath

    Aboroath
    Expand Collapse

    Joined:
    Aug 25, 2013
    Messages:
    3,804
    Welp, I am going to take you up on this. My main problem is with the .json format. I made a map back in 2015 with the .cs format and it quite frankly was a joy to use....almost too easy. Since the .json format was introduced I have been perplexed as to why every single .json I touch has some sort of syntax error, if that is even what it is. No matter how careful I am with the replace function in notepad++ something is wrong. Jsonlint identifies even the most simple .json file as having a syntax error yet everything is there. I will post a simple example of my issue with a simple map thumbnail that illustrates the problem visually along with the pertinent .json tomorrow.

    Thank you for your generous offer!
     
    • Agree Agree x 2
  3. Nadeox1

    Nadeox1
    Expand Collapse
    Spinning Cube
    BeamNG Team

    Joined:
    Aug 5, 2012
    Messages:
    14,683
    For levels, we use the standard* Json syntax.
    The pros of that is that being a standard, it's syntax rules are the same, and you can use Json linters to check your files. *The one we have allows for comments, so beware whether the linter you use allows them or not.

    VS Code has some great support for it (both flavors)

    It is strict regarding syntax, and even missing commas will lead to problems.
    May sound annoying, but forces your 'code' to be written properly, with eventually ends with cleaner code, making it more futureproof.

    Old .CS was all over the place. It was not a standard and one was able to do pretty atrocious syntax hacks, which are a pain to carry around and to consider.
     
  4. Average Person

    Average Person
    Expand Collapse

    Joined:
    Jul 8, 2015
    Messages:
    583
    sure, like nadeox said it could just be something as simple as a missing comma but yeah I'll check it out and see if I can figure it out.
     
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice