1. Trouble with the game?
    Try the troubleshooter!

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

    Dismiss Notice
  3. Before reporting issues or bugs, please check the up-to-date Bug Reporting Thread for the current version.
    0.36 Bug Reporting thread
    Solutions and more information may already be available.

Bad Variable Sorting

Discussion in 'Troubleshooting: Bugs, Questions and Support' started by KennyWah, Dec 14, 2022.

  1. KennyWah

    KennyWah
    Expand Collapse

    Joined:
    Jan 16, 2013
    Messages:
    2,666
    So I found if you're creating variables for parts you get this strange bug where if something's subcategory is named too similarly to something else in the same category it binds/mounts to the wrong subcategory sometimes and everything goes kind of haywire sometimes.

    (Note this is in reference to variable subcategory names which contain spaces.)

    I read something about variable issues in the known issues, this issue was present for me in 0.26 but it just presented an entirely new issue on the Legran for me today where I have "Rear Spring" Variables and some of my "Rear Spring" Variables are mounting to the "Rear" Subcategory along side the ARB under the "Suspension" Header Category.

    It's rather not great when this happens as all your tuning variables start to sort incorrectly causing confusion. I've looked at my Jbeam and nothing explains the issue. I know I've had to work my Subcategory names around this sorting bug a few days ago too so I know this is an issue. I just thought I'd gotten around it, apparently the Legran IRS Rear Swaybar says otherwise and just decides to bind it's "Rear" Subcategory with my "Rear Spring" Subcategory.. but only with specific tuning options and not others. It's honestly baffling.

    I know this is content creation but as it seems to be a bug with how BeamNG sorts Variable Subcategories I thought I'd post it here.

    I'm sorry if I'm posting too many threads, if I find more bugs or have issues I'll rename the thread to something more general and continue using the same thread if it makes people happier.
    --- Post updated ---


    --- Post updated ---
    Nevermind I found out the Legran part is on my end. But I will mention that I have had sorting issues with Variables caused by spaces and words that are similar binding to an individual subcategory.

    Note that in those cases, the variables in question were unique in name also, so the variables work themselves but they'll get sorted into the incorrect sub header.. apologies for being redundant and whatnot.
     
  2. tdev

    tdev
    Expand Collapse
    Developer
    BeamNG Team

    Joined:
    Aug 3, 2012
    Messages:
    3,085
    :D
    We should fix the spaces issues.

    We were in the middle of improving the variable system and adding per-slot variables, allowing a lot more crazy stuff :D
     
    • Like Like x 2
  3. KennyWah

    KennyWah
    Expand Collapse

    Joined:
    Jan 16, 2013
    Messages:
    2,666
    Long time, no see.

    That's great news, just hope it doesn't botch anything made with the current system. I may have to ovarhaul my crazy variables in my mod after that drops if it allows me to make things make more sense, I've got a pretty crazy system going on.

    But being able to fully break up the entire Header Category of "Suspension" into "Rear Suspension" and "Front Suspension" maybe "Global Suspension" if anything needs that for what I'm doing.. would be quite glorious.

    May require more work, but it'd certainly be worth it.
     
  4. tdev

    tdev
    Expand Collapse
    Developer
    BeamNG Team

    Joined:
    Aug 3, 2012
    Messages:
    3,085
    Hey :)

    No, its fully backward compatible. Actually the changes related to the vars are already in :)

    Only scoped fields in the variable section had to go away, but not many used that thankfully

    I hope we can continue to work on that soon and get your feedback and requirements as well :)

    Thanks for the mods < 3
     
  5. KennyWah

    KennyWah
    Expand Collapse

    Joined:
    Jan 16, 2013
    Messages:
    2,666

    Yeah I'll have to let you know how that goes. Thanks for the your humble replies, always the best.
     
  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