Update the tutorial on making Apps please!

Discussion in 'User Interface Apps' started by TheStatPow, Nov 18, 2015.

  1. TheStatPow

    TheStatPow
    Expand Collapse

    Joined:
    Aug 8, 2013
    Messages:
    145
    I have 3 mods waiting for a UI and i can't get my head on how to make an app, its confusing and the tutorial date from a big while ago.


    Pretty please :)
     
  2. TheStatPow

    TheStatPow
    Expand Collapse

    Joined:
    Aug 8, 2013
    Messages:
    145
    Got it to work a bit but

    "domElement": "<ai-control></ai-control>",

    What should i change this to? if i change it the app UI is blank.
     
  3. mumboking

    mumboking
    Expand Collapse

    Joined:
    Jun 11, 2015
    Messages:
    1,401
    Why not try looking at how the official apps work?
    They're in BeamNG.drive\ui\modules\apps
     
  4. TheStatPow

    TheStatPow
    Expand Collapse

    Joined:
    Aug 8, 2013
    Messages:
    145
    I did that SEVERAL time

    Still not working, i mean, i can edit the html well, and the app name and everything

    But the only line idk what to do is this line : "domElement": "<ai-control></ai-control>",

    If i change it to anything my app is not linked to the html, and if i leave it like that its linked to the html of the ai app

    Thing is, there is not a single thing named ai-control in the AI apps code. so im clueless as to what i have to put there.
     
  5. Scepheo

    Scepheo
    Expand Collapse

    Joined:
    Feb 10, 2015
    Messages:
    601
    Renaming it worked fine for me. If you post what you have here I might be able to do more.
     
  6. TheStatPow

    TheStatPow
    Expand Collapse

    Joined:
    Aug 8, 2013
    Messages:
    145
    what do i have to rename it to?
     
  7. Scepheo

    Scepheo
    Expand Collapse

    Joined:
    Feb 10, 2015
    Messages:
    601
    Doesn't matter, I think. I tried "testapp" and "asdfasdfasdf" myself.

    Edit: Hm, maybe not. I think I know what you mean now. I'll look some more.
     
  8. tdev

    tdev
    Expand Collapse
    Developer
    BeamNG Team

    Joined:
    Aug 3, 2012
    Messages:
    3,031
    We are fixing this. Atm its not possible to create custom apps. :(
     
  9. TheStatPow

    TheStatPow
    Expand Collapse

    Joined:
    Aug 8, 2013
    Messages:
    145
    Its alright Tdev, take your time, I can still code my app using the other app's html so it'll be already coded when its fixed!
     
    • Like Like x 1
  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