Unsolved AI acting strange in scenario's

Discussion in 'Mod Support' started by CountMarcel, Feb 6, 2017.

Tags:
  1. CountMarcel

    CountMarcel
    Expand Collapse

    Joined:
    Apr 24, 2016
    Messages:
    25
    So weirdly the AI are being counted as a player in scenario's and trying to figure this out when they get to a checkpoint and if it's lap 2 and beyond the game seams to bug out and make me get 2nd place regardless as well as mess up the checkpoint and lap counters allowing me to see what lap and checkpoint they are on each time they get to one but regardless I'm in 2 position or not it says i failed and that i was in 2nd no matter even if i was in 5th i get 2nd if i get 1st place the game bugs out when i finish the scenario and if i hit another checkpoint it makes me go another causing me to fail.
    posting the .lua and .json files below.

    I do know this mod/scenario is someone else's but i wanna get help and fix it for my own use. So i can make my own from then on.
     

    Attached Files:

  2. CountMarcel

    CountMarcel
    Expand Collapse

    Joined:
    Apr 24, 2016
    Messages:
    25
    Anything wrong in these files?
     
  3. meywue

    meywue
    Expand Collapse
    Administrator
    BeamNG Team

    Joined:
    Nov 19, 2015
    Messages:
    339
    Hey,

    try to add the other vehicles to the vehicles objects in the json file by adding the following line to it:

    Code:
    "*": {"playerUsable": false}
    Also you had some parsing errors in the json file. I'll attach the fixed version.
     

    Attached Files:

  4. CountMarcel

    CountMarcel
    Expand Collapse

    Joined:
    Apr 24, 2016
    Messages:
    25
    Yea i did remove that to see if it fixed it answer was nope and parsing errors?
     
  5. meywue

    meywue
    Expand Collapse
    Administrator
    BeamNG Team

    Joined:
    Nov 19, 2015
    Messages:
    339
    It means that the json file cannot be read if you have issues in the syntax.



    You must not have a comma after the last item in a list (e.g. line 12).
    Whereas you need to have commas to separate multiple items (e.g. line 19)

    A text editor like Sublime Text helps you to find these errors.
     
    • Agree Agree x 1
  6. CountMarcel

    CountMarcel
    Expand Collapse

    Joined:
    Apr 24, 2016
    Messages:
    25
    How does the .lua file look if you know how to understand it?
     
  7. CountMarcel

    CountMarcel
    Expand Collapse

    Joined:
    Apr 24, 2016
    Messages:
    25
  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