Unsolved help making variable weight

Discussion in 'Mod Support' started by hybridsandwi, Jul 27, 2018.

  1. hybridsandwi

    hybridsandwi
    Expand Collapse

    Joined:
    Aug 4, 2013
    Messages:
    10
    can someone give me a hand trying to make the dump body have a variable weight? the first time i tried doing this i made it flawlessly but then the game updated and i of course didnt save the file elsewhere. i cant remember what i did and now whenever i try this the semi just "spawns" underground :(

    ive uploaded a screen shot of the jbeam

    im doing this to avoid having to add weights into the bed, i can just make the bed super overloaded with ease!!!
     

    Attached Files:

    • whatamidoing.png
  2. aljowen

    aljowen
    Expand Collapse

    Joined:
    Oct 21, 2012
    Messages:
    1,677
    I think you need speech marks
    Code:
    {"nodeWeight":"$dumpweight"}
    It certainly does feel odd putting variable names in speech marks, but in jbeam all text needs to be in speech marks, the game can then link up the variables based upon the '$' symbol.
     
    • Agree Agree x 1
  3. hybridsandwi

    hybridsandwi
    Expand Collapse

    Joined:
    Aug 4, 2013
    Messages:
    10
    i gave that a try and it still just spawns nothing deep underground... i think for the time being ill just stick to manually overloading things through the jbeam lol

    on a serious note is there anything else that looks wrong there?? am i putting the variable in the correct spot? does the "]," matter if its above or after the variable or even there at all? ive tried far to many variables with the code and no luck. i dont know how i did it flawless the first time????
     
  4. aljowen

    aljowen
    Expand Collapse

    Joined:
    Oct 21, 2012
    Messages:
    1,677
    I am about to go to bed, so will be afk for a while.

    I would guess that the games console should be able to tell you what is wrong, based on the spawning nothing underground, it will probably give you an error with a line number to tell you where the error is in your jbeam file.

    I can't tell you what key opens the console because I think it varies depending on what region your keyboard is from.

    All I can say is that on a UK keyboard it is the ' key (same key as @).
     
  5. torsion

    torsion
    Expand Collapse

    Joined:
    May 31, 2015
    Messages:
    1,600
  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