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.35 Bug Reporting thread
    Solutions and more information may already be available.

Body offset

Discussion in 'Troubleshooting: Bugs, Questions and Support' started by Retrograde, Aug 1, 2023.

  1. Retrograde

    Retrograde
    Expand Collapse

    Joined:
    Dec 8, 2021
    Messages:
    64
    Hello, so I am swapping body from bastion to a roamer, it works fine ( I believe ) but I need to move my body up so it will not pause my game immediately, my question is, on what line should I find the node offset?
     

    Attached Files:

    • RDT_20230801_1918566330552297213521554.png
    • RDT_20230801_1918512267728944956068422.png
  2. SSRG

    SSRG
    Expand Collapse

    Joined:
    Jun 17, 2023
    Messages:
    4,333
    I don’t really know if there’s a way to include a node offset in a part. Maybe you could make a copy of the Roamer’s frame with a different name like „Bastion Compatible Frame” and then apply a node offset to the body like this:
    "slots": {
    ["roamer_body", "bastion_body", "Body", {"pos": x, y, z}], <- this is a showcase of how to apply offset to a slot
    [other stuff],
    },
    Of course replacing the x, y and z with the actual offset coordinates.
    Again, I dunno if there’s a way to offset the body inside of the body jbeam, but if you need any help with the method I explained, let me know.
     
  3. Retrograde

    Retrograde
    Expand Collapse

    Joined:
    Dec 8, 2021
    Messages:
    64
    Hello
    Hello, when I get back to home I will check what you send, but maybe you will check out video that I am getting idea from
    Its called ,, I want to win gambler 500 competition" by fillman86 maybe this would help too, but I really apreciate that
     
  4. SSRG

    SSRG
    Expand Collapse

    Joined:
    Jun 17, 2023
    Messages:
    4,333
    Alright! I’ll watch that and see what he did. Thanks!
     
  5. Retrograde

    Retrograde
    Expand Collapse

    Joined:
    Dec 8, 2021
    Messages:
    64
    PS
    I am already at 8 minute of the video
     
  6. SSRG

    SSRG
    Expand Collapse

    Joined:
    Jun 17, 2023
    Messages:
    4,333
    Okay!
    So what he does, is he makes a part in the roamer_body slot type, and that part has nothing except a bluebuck_body slot with a node offset applied.
    --- Post updated ---
    Hope this helps! If you have any questions, let me know.
    --- Post updated ---
    He does this at about 9:30
     
  7. Retrograde

    Retrograde
    Expand Collapse

    Joined:
    Dec 8, 2021
    Messages:
    64
    Okay, so the thing that I have to do to move it is paste code that you send me, in the place where is shown in the video ( of course without examples etc. )
     
  8. SSRG

    SSRG
    Expand Collapse

    Joined:
    Jun 17, 2023
    Messages:
    4,333
    As in, the code is a previous method. This one is good if you don’t want to have different identical frames for the roamer. I can tell you exactly what to write, but I have to go somewhere, I’ll be back in a few minutes.
     
  9. Retrograde

    Retrograde
    Expand Collapse

    Joined:
    Dec 8, 2021
    Messages:
    64
    Think this will be best way to make that becouse I am still learning coding, I can wait as long as you need to go back
     
  10. SSRG

    SSRG
    Expand Collapse

    Joined:
    Jun 17, 2023
    Messages:
    4,333
    Alrighty!
    So, paste this after the first curly bracket ( { ) in the bastion_body.jbeam file:

    „offset_part”: {
    „information”: {
    „authors”: ”SSRG”,
    „name”: ”Bastion Body On Frame Setup”,
    „value”: 69,
    },
    „slotType”: ”roamer_body”,
    „slots”: [
    [„type”, „default”, „description”],
    [„bastion_setup”, „bastion_body”, „Bastion Body”, {„pos”: {„x”: 0, „y”: 0, „z”: 0}}],
    ],
    },

    You can change the author to your name, I just put my own there because I can. You need to change the slotType for the Bastion body to bastion_setup so that it works with this. And also, change the x, y and z values as these decide the offset.
    Then in the parts selector, in Body, you should have „Bastion body on frame setup”, choose that and then inside of that is where the body part will be (it should be already selected by default)
    --- Post updated ---
    Also, I can’t use the Tab key on the forums (pasting it from somewhere else doesn’t work either), but you can use it for better readability.
    --- Post updated ---
    If you need any more help regarding the mod, you can let me know in a private conversation or here.
    --- Post updated ---
    Here’s what it looks like in Fillman’s video:
    upload_2023-8-2_17-3-24.png
     
  11. Retrograde

    Retrograde
    Expand Collapse

    Joined:
    Dec 8, 2021
    Messages:
    64
    Okay, I am jumping on pc and check it out
     
    • Like Like x 1
  12. SSRG

    SSRG
    Expand Collapse

    Joined:
    Jun 17, 2023
    Messages:
    4,333
    In case it doesn’t work, try changing „pos” to „nodeOffset” or „nodeMove”.
    Also, my quotations are „” instead of "", but that’s because it’s very tedious to include these ones since my device automatically makes all quotations „”.
    --- Post updated ---
    Using this kind of method, you can do a lot of stuff. As example, add a common parts library to a car, like (what I did in one of my mods) putting the modern ETK engines into the I-Series, the only ETK that doesn’t use that same engine library and instead has its own set of engines.
     
  13. Retrograde

    Retrograde
    Expand Collapse

    Joined:
    Dec 8, 2021
    Messages:
    64
    Okay so I paste it in two places ((screenshots) its propably wrong) but it causing that the body option doesnt come up, I mean, there is no mine body. With what should I play? quatations?
    mark on the screenshot place where do I have to paste it, it would be better.
    PS
    I will type here so maybe some fellow will get some help from this.
     

    Attached Files:

    • DesktopScreenshot20230802-17334887.png
    • DesktopScreenshot20230802-17333242.png
    #13 Retrograde, Aug 2, 2023
    Last edited: Aug 2, 2023
  14. SSRG

    SSRG
    Expand Collapse

    Joined:
    Jun 17, 2023
    Messages:
    4,333
    You need to copy this (this time correct):


    "offset_part": {
    "information": {
    "authors": "SSRG",
    "name": "Bastion Body On Frame Setup",
    "value": 69,
    },
    "slotType": "roamer_body",
    "slots": [
    ["type", "default", "description"],
    ["bastion_setup", "bastion_body", "Bastion Body", {"pos”: {"x": 0, "y": 0, "z": 0}}],
    ],
    },

    Then put 2 enters after the first curly bracket and paste it into the empty space,

    {
    ——————————————————-<- Right here.
    „bastion_body”:

    Once again, if anything doesn’t work, let me know. Also, remember to change the slotType of the bastion body to bastion_setup which is the slot I referenced in what I sent you.
    Edit: completely rewrote the message so it’s easier to understand and fix the issue.
     
    #14 SSRG, Aug 2, 2023
    Last edited: Aug 2, 2023
  15. Retrograde

    Retrograde
    Expand Collapse

    Joined:
    Dec 8, 2021
    Messages:
    64
    okay, sorry for the late respond but I was busy for a moment, below is the screenshot of how I did that, and what I can see in the game, unfortunetly, I cant see any difference, but its good to see that its still in the game, becouse before, after placing the code, my part disapear
     

    Attached Files:

    • DesktopScreenshot20230802-19212802.png
  16. SSRG

    SSRG
    Expand Collapse

    Joined:
    Jun 17, 2023
    Messages:
    4,333
    Also, Remembe
    There’s one thing still missing,
    IMG_1126.jpeg
    Once you make this change, it should all work.
     
  17. Retrograde

    Retrograde
    Expand Collapse

    Joined:
    Dec 8, 2021
    Messages:
    64
    So I changed it but now my part disapear, this is what happend after changing it to bastion_setup, and another screenshot is with roamer_body
     

    Attached Files:

    • DesktopScreenshot20230802-19293503.png
    • DesktopScreenshot20230802-19310569.png
  18. SSRG

    SSRG
    Expand Collapse

    Joined:
    Jun 17, 2023
    Messages:
    4,333
    Hmm…
     
  19. Retrograde

    Retrograde
    Expand Collapse

    Joined:
    Dec 8, 2021
    Messages:
    64
    I dont know why, but everytime I try to mod something, everything is going well, but until hahahah
     
  20. SSRG

    SSRG
    Expand Collapse

    Joined:
    Jun 17, 2023
    Messages:
    4,333
    Did you change things while the game was open?
    If so, to refresh the vehicle and all the changes, press Ctrl+R.
    --- Post updated ---
    Don’t worry, I had to post 2 updates before my first mod was verified lol
    --- Post updated ---
    Also, there’s a debug log accesible by pressing ~ on your keyboard, so maybe an error there can help identify the problem.
     
  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