Released Using OutGauge/LFS Dashboard with BeamNG.drive

Discussion in 'Utilities and programming' started by DrowsySam, Aug 25, 2014.

  1. DrowsySam

    DrowsySam
    Expand Collapse

    Joined:
    Jul 30, 2013
    Messages:
    996
    Posting this here too as many don't read the wiki :)


    (imported from here)

    OutGauge


    OutGauge paired with LFS Dashboard for Android will allow your device to show useful on-screen information such as a speedo or tachometer over your wireless network.

    1. LFS Dashboard

    The first thing you will need is an app called
    LFS Dashboard, it can be found on the Google Play Store. This app will allow you to seamlessly stream useful information from BeamNG.drive straight to your Android device. Download and install it, then proceed to step 2.

    Download LFS Dashboard:
    HERE

    2. Editing outgauge.lua

    For LFS Dashboard to connect to BeamNG.drive, you'll need to make a few edits to the lua file containing all the OutGauge settings. This file can be found in lua\vehicle\outgauge.lua, open it with Notepad++ or similar.


    • The first thing you will need to do is to edit "OutGauge_Enabled" and change it to "true". (Line 10, outgauge.lua)


    • The next step, "OutGauge_IP", is the IP address of your Android device, you can find this by going into Settings > About Phone/Tablet, in the new pop-up menu, you should find "IP Address" with a number below it, this is the IP address of your device, it should look like "192.168.178.29" or similar, enter this number in the OutGauge config file. (Line 12, outgauge.lua).

    [TABLE="width: 1573"]
    [TR]
    [TD="class: gutter"]
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    [/TD]
    [TD="class: code"]-- This Source Code Form is subject to the terms of the bCDDL, v. 1.1.
    -- If a copy of the bCDDL was not distributed with this
    -- file, You can obtain one at
    http://beamng.com/bCDDL-1.1.txt

    -------------------------------------------------------------------------------
    -------------------------------------------------------------------------------
    -- Settings:

    -- enables/disables OutGauge
    local OutGauge_Enabled = true
    -- the IP Address of the OutGauge Device
    local OutGauge_IP = '192.168.1.1'
    [/TD]
    [/TR]
    [/TABLE]

    3. Enabling LuaSocket

    The final step is to enable the use of LuaSocket.
    Simply right click BeamNG.drive in your Steam inventory > click properties > set launch options & enter "-luasocket"

    4. Play!

    Make sure LFS Dashboard is running on your Android, then launch BeamNG.drive. As soon as the vehicle spawns, you should see your RPM jump up. If it does not, you most likely got one of the steps wrong, so it's safe to recheck.
     
    • Like Like x 1
  2. Dummiesman

    Dummiesman
    Expand Collapse

    Joined:
    Sep 17, 2013
    Messages:
    4,683
    Yay Sammy <3
     
    • Like Like x 1
  3. Jono100000

    Jono100000
    Expand Collapse

    Joined:
    Aug 11, 2013
    Messages:
    17
    I have read the Instructions carefully and had a look again and again with the IP address number and made sure i enabled it but for some reason the RPM doesnt come up and i keep having a LUA error like this that seems to lead to the outgauge file

    125.882350|BEAMNG| ERR | lua/vehicle/outgauge.lua:108: attempt to perform arithmetic on field 'gear_M' (a nil value)

    Does anyone have an idea whats going on?

    I also left the log file for anyone who knows LUA very well.... also i haven't been messing around with the Outgauge file
     

    Attached Files:

    #3 Jono100000, Aug 25, 2014
    Last edited: Aug 25, 2014
  4. Dummiesman

    Dummiesman
    Expand Collapse

    Joined:
    Sep 17, 2013
    Messages:
    4,683
    Make sure you're entering the right port and delay.
     
  5. Jono100000

    Jono100000
    Expand Collapse

    Joined:
    Aug 11, 2013
    Messages:
    17
    Yep I checked everything. Made sure all the numbers from the android phone are correct and they still don't respond. Have u got any idea? :/


    Sent from my iPhone using Tapatalk
     
  6. Dummiesman

    Dummiesman
    Expand Collapse

    Joined:
    Sep 17, 2013
    Messages:
    4,683
    Use the IP from About Device. ;)
     
  7. RobertGracie

    RobertGracie
    Expand Collapse

    Joined:
    Oct 15, 2013
    Messages:
    3,779
    I thought I would never see the day that the LFS dash would be used for BeamNG...epic work man...best hack so far for a program to be used for a different game!!!

    all I get on my phone is this

    "fe80::2ee:bdff:feb0:f0f4%wlan0:4444"

    wtf....
     
    #7 RobertGracie, Aug 25, 2014
    Last edited: Aug 25, 2014
  8. Jono100000

    Jono100000
    Expand Collapse

    Joined:
    Aug 11, 2013
    Messages:
    17
    Yeah. I done that. Still no response. I will try again later. Thanks for ur help. Dummiesman


    Sent from my iPhone using Tapatalk
     
  9. Dummiesman

    Dummiesman
    Expand Collapse

    Joined:
    Sep 17, 2013
    Messages:
    4,683
    Interesting, It may help to see your LUA file.
     
  10. RobertGracie

    RobertGracie
    Expand Collapse

    Joined:
    Oct 15, 2013
    Messages:
    3,779

    do you mean mine?

    Never mind the problem resolved itself...I hate how it came up with that Hex code.....
     
    #10 RobertGracie, Aug 25, 2014
    Last edited: Aug 25, 2014
  11. Jono100000

    Jono100000
    Expand Collapse

    Joined:
    Aug 11, 2013
    Messages:
    17
    I have attached a text file of the LUA. Due to the fact that u cant seem to upload .LUA files
     

    Attached Files:

  12. CrazeGaming

    CrazeGaming
    Expand Collapse

    Joined:
    Sep 3, 2013
    Messages:
    81
    So I've got the Dashboard working but how do I change the units from KM/H to MPH?
     
  13. NINJAHOBNOB

    NINJAHOBNOB
    Expand Collapse

    Joined:
    Aug 8, 2012
    Messages:
    177
    Changing local OG_KM = 16384 to local OG_KM = 16384999 or another random number is the only way I've got it to work.
     
  14. RockyDB

    RockyDB
    Expand Collapse

    Joined:
    May 3, 2014
    Messages:
    4
    WORKS LIKE A CHARM!
     
  15. Dummiesman

    Dummiesman
    Expand Collapse

    Joined:
    Sep 17, 2013
    Messages:
    4,683
    Protip : Set to 0 ;)

    I attached a LUA file with useKMH and useBAR booleans for easy edits. :)
     

    Attached Files:

    #15 Dummiesman, Aug 26, 2014
    Last edited by a moderator: Aug 26, 2014
  16. Car_Killer

    Car_Killer
    Expand Collapse
    QA / Mod Support
    BeamNG Team

    Joined:
    Sep 24, 2013
    Messages:
    1,535
    My Video
     
    #16 Car_Killer, Aug 26, 2014
    Last edited by a moderator: Oct 21, 2015
  17. RobertGracie

    RobertGracie
    Expand Collapse

    Joined:
    Oct 15, 2013
    Messages:
    3,779
    The Gauges also need to adjust but I doubt you can do that with that application...pity we couldnt have a BeamNG version of this app...
     
  18. Dummiesman

    Dummiesman
    Expand Collapse

    Joined:
    Sep 17, 2013
    Messages:
    4,683
    If I wasnt lazy I'd learn how to do it :p
     
  19. RobertGracie

    RobertGracie
    Expand Collapse

    Joined:
    Oct 15, 2013
    Messages:
    3,779
    I think it would be a nice challenge if you did build this for BeamNG but thats if your WILLING to accept this challenge....
     
  20. RobertGracie

    RobertGracie
    Expand Collapse

    Joined:
    Oct 15, 2013
    Messages:
    3,779
    Warning DO NOT USE CVT gearboxes with this program it wont like it!
     
  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