Vehicle Config loading via command line?

Discussion in 'Programming' started by Blenux, May 18, 2024.

  1. Blenux

    Blenux
    Expand Collapse

    Joined:
    Oct 29, 2021
    Messages:
    30
    Hi peeps, I've been trying to find a way to load a particular vehicle config via the command line like so,

    Code:
    ./BeamNG.drive.x64 -level smallgrid/info.json -vehicle bx -vehicleconfig vehicles/bx/derby_M.pc
    
    However, it will just load the default.pc no matter how I put it, is this possible at all or am I doing it wrong?
     
  2. stenyak

    stenyak
    Expand Collapse
    Programmer & Global Moderator
    BeamNG Team

    Joined:
    Aug 6, 2012
    Messages:
    1,911
    Lose the -vehicle argument, then replace vehicleconfig with vehicleConfig, and lose the vehicles/ prefix.

    For example:
    -vehicleConfig etkc/kc6x_360_M.pc
     
  3. Blenux

    Blenux
    Expand Collapse

    Joined:
    Oct 29, 2021
    Messages:
    30
    Thanks for replying!

    I've tried this but still not working, just loads the default pickup.
     
  4. stenyak

    stenyak
    Expand Collapse
    Programmer & Global Moderator
    BeamNG Team

    Joined:
    Aug 6, 2012
    Messages:
    1,911
    Weird, I've just checked and it works fine here. The only problem is it loads a white vehicle rather than its appropriate color.

    Have you checked the logs for errors?
     
  5. Blenux

    Blenux
    Expand Collapse

    Joined:
    Oct 29, 2021
    Messages:
    30
    hmm, user error it seems :confused:

    This is correct, yeah?

    Code:
    ./BeamNG.drive.x64 -level smallgrid/info.json -vehicleConfig etkc/kc6x_360_M.pc
    


    Even tried the Windows version to make sure it ain't a Linux thing, but result is the same.

    * also moved the game back to main drive to see if it's a file path issue, but no.

    Thanks for the replying!
     
  6. Blenux

    Blenux
    Expand Collapse

    Joined:
    Oct 29, 2021
    Messages:
    30
    the -vehicleConfig doesn't even work here, so confused :confused:
    :(
     
  7. stenyak

    stenyak
    Expand Collapse
    Programmer & Global Moderator
    BeamNG Team

    Joined:
    Aug 6, 2012
    Messages:
    1,911
    Hey, I'm afraid I have literally zero time to check this topic further. I know it works here in internal builds, and has worked for at least some months, so hopefully it'll work for you in the next major update.
     
  8. Blenux

    Blenux
    Expand Collapse

    Joined:
    Oct 29, 2021
    Messages:
    30
    Yeah, that's all good and understandable, thanks for providing the correct method.
     
  9. Blenux

    Blenux
    Expand Collapse

    Joined:
    Oct 29, 2021
    Messages:
    30
    ok, so I believe the public version of BeamNG doesn't have this -vehicleConfig command arg, I've managed to work out adding it in manually for now (same issue you mentioned it doesn't read and apply the colour paints), so I'm hoping in the next major release that can be added, along with the paint issue fixed, pretty please ;):cool:

    added -vehicleConfig manually (yes I know I can name that anything really)
    upload_2024-6-10_19-6-37.png

     
    • Like Like x 1
  10. stenyak

    stenyak
    Expand Collapse
    Programmer & Global Moderator
    BeamNG Team

    Joined:
    Aug 6, 2012
    Messages:
    1,911
    Ah indeed, it seems like this cmdline argument didn't make it in time before our feature freeze for v0.32.x

    It'll be there in v0.33 but unfortunately the color bug won't be fixed, as I don't have any time for it (the option was added to help with some internal automated testing where color didn't matter).
     
  11. Blenux

    Blenux
    Expand Collapse

    Joined:
    Oct 29, 2021
    Messages:
    30
    Awesome! Maybe v0.34/35 will have the paint fix? ;):cool: (will try to see if I can figure it out by then).

    Anyway, keep up the amazing work, thanks for replying.
     
    • 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