STEAM GROUP
SW Addons SW Addons
STEAM GROUP
SW Addons SW Addons
11
IN-GAME
64
ONLINE
Founded
6 August, 2024
Language
English
All Discussions > Bug Reports > Topic Details
This topic has been locked
Welded Props not loading on Articulated Vehicles.
I noticed something weird with all the Articulated Vehicles. Whenever I weld any props on the Articulated sections and then re-spawn it with the duplicator tool, the welded props don't show up on them.

Affected Vehicles:
- SW Articulated Bus
- SW Bi-Articulated Bus
- SW Old Articulated Bus
- SW Articulated Tram
- SW Short X12
- SW Long X12
- SW G15 Wuppertal Suspension Train

What is happening:
https://gtm.steamproxy.vip/sharedfiles/filedetails/?id=3447414419
I'm using the Articulated Bus as an example. In the screenshot are four articulated buses. The two buses on the left are spawned from the spawn menu and the two buses on the right are copies of the left ones that were spawned from the duplicator tool.

The top left bus has a barrel welded to the front half. I then re-spawned that bus with the duplicator tool which is the one on the top right. You see it retains the barrel that was welded to the front.

The bottom left bus has a barrel welded to the back half. I then re-spawned that bus with the duplicator tool which is the one on the bottom right. Notice how that re-spawned copy doesn't have the barrel on the back half. That is where the issue comes into play.

Theory:
My theory as to why this is happening must be because of how the Articulated vehicles sections load in. Each section seems to be classified as it's own vehicle/entity, but it can only be spawned in if the first section is spawned in first. For example, if I spawn either the X12 or the Bi-Articulated Bus, each section loads in like stages. The front loads in first, then the middle, and lastly the back. But the first section is the main vehicle itself. If I were to save it as a Dupe, only the front section show's up in the thumbnail, leaving the other two sections non-existent. It must be because the front section is required to be spawned in first in order to allow the other two sections to load in as well. However even if each section is connected, they act is if they're not, hence why they don't show up in a Dupe thumbnail. So any prop that's attached to the front section is going to show up in the Dupe and when spawned in. But if I were the save it with props attached to the sections instead, they won't show up in the saved Dupe and won't show up when spawned in, therefore leaving those props non-existent, too. Again this is just a theory so I'm probably wrong about this whole thing.
Last edited by FruitBerryCrunch; 19 Mar @ 8:50am
Originally posted by SligWolf:
Your theory is completely right.

What you describe there is how our vehicles are put together via lua. We start with the main vehicle and then have all the parts spawned in. This makes it impossible to save any attached stuff to the vehicle parts because they will always spawn in again, after the main vehicle.

We wont add a fix for this issue because it would be to complex to code a good working duplicator function that covers everything necessary. Besides that, our Dupe and Save compatibility only relates to saving the skins, colors and bodygroup of an SW vehicle. Especially for multi parts vehicles like you listed.

My prebuilt vehicles are meant for people who can't build there own in gmod. Of course they still will try to enhance these vehicles with props and stuff, but you need to accept the limits like in this case.
< >
Showing 1-2 of 2 comments
A moderator of this forum has indicated that this post answers the original topic.
SligWolf 19 Mar @ 9:50am 
Your theory is completely right.

What you describe there is how our vehicles are put together via lua. We start with the main vehicle and then have all the parts spawned in. This makes it impossible to save any attached stuff to the vehicle parts because they will always spawn in again, after the main vehicle.

We wont add a fix for this issue because it would be to complex to code a good working duplicator function that covers everything necessary. Besides that, our Dupe and Save compatibility only relates to saving the skins, colors and bodygroup of an SW vehicle. Especially for multi parts vehicles like you listed.

My prebuilt vehicles are meant for people who can't build there own in gmod. Of course they still will try to enhance these vehicles with props and stuff, but you need to accept the limits like in this case.
Last edited by SligWolf; 19 Mar @ 10:57am
I'm glad I was correct.

I figured this wasn't gonna be fixed due to complexity but it was worth getting out there regardless just in case any body else try's to do this.

Thank you for your time. :steamthumbsup:
Last edited by FruitBerryCrunch; 19 Mar @ 11:22am
< >
Showing 1-2 of 2 comments
Per page: 1530 50

All Discussions > Bug Reports > Topic Details