1. Trouble with the game?
    Try the troubleshooter!

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

    Dismiss Notice

Scenario helper warns your damage level.. but not on every scenario??

Discussion in 'General Discussion' started by MuzzleVelocity, Jun 10, 2016.

  1. MuzzleVelocity

    MuzzleVelocity
    Expand Collapse

    Joined:
    Mar 3, 2016
    Messages:
    46
    i've noticed the "police patrol" scenario now has a nice feature that announces "take care, your vehicle is xx% damaged!" whenever you incur damage.

    How can i add this to other scenarios like Bank-Robbery? (because its not there now)

    I can't find anything specific in the lua files for police-patrol, although it is in damageGoal.lua** so im not sure why its happening in some scenarios but not others.



    **C:\BeamNGDrive-0.5.6.1.2462\lua\ge\extensions\scenario
     
  2. Narwhal

    Narwhal
    Expand Collapse

    Joined:
    Aug 4, 2013
    Messages:
    1,698
    I am just wondering why beamng is installed in that location? the name and the location make it seem like a pirated copy.

    if i was any good at lua i would help, but sadly im not.
     
    • Like Like x 2
  3. MuzzleVelocity

    MuzzleVelocity
    Expand Collapse

    Joined:
    Mar 3, 2016
    Messages:
    46
    I bought the game through HumbleBundle. Everytime i download a new update, i get a zip file with the whole BeamNGDrive-0.5.x,x,xxx directory structure. I drag it from the zip file onto my C drive and its ready to go.

    At first I thought it was really strange, a large software package that doesn't go through any kind of install process. I'm guessing your on steam and it works different?
     
  4. Narwhal

    Narwhal
    Expand Collapse

    Joined:
    Aug 4, 2013
    Messages:
    1,698
    yea. steam installs into the steam folder in program files. They way humble bundle does make sense, as its a good way to keep track of the versions in my opinion.
     
  5. torsion

    torsion
    Expand Collapse

    Joined:
    May 31, 2015
    Messages:
    1,600
    Now that you bring it up, this is unclear to me as well!

    FWIW checkGoals.lua calls the function you mentioned in damageGoal.lua. Offhand I don't see where the goals are passed from these scenario luas though...
     
  6. Scepheo

    Scepheo
    Expand Collapse

    Joined:
    Feb 10, 2015
    Messages:
    601
    Police Patrol sets various goals in the scenario .json, and the code for the damage goals shows the message (as you already discovered). The Bank Robbery scenario uses it's own Lua instead, which doesn't have the messages.
     
    • Like Like x 1
  7. torsion

    torsion
    Expand Collapse

    Joined:
    May 31, 2015
    Messages:
    1,600
    Aha, good insight [as usual] Scepheo! Thanks.
     
  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