STEAM GROUP
SW Addons SW Addons
STEAM GROUP
SW Addons SW Addons
16
IN-GAME
77
ONLINE
Founded
6 August, 2024
Language
English
All Discussions > Bug Reports > Topic Details
This topic has been locked
Track Pieces Disappearing
This is a very weird bug and seems to be new.

When I was trying out the new tilted curve track pieces, I noticed that they were disappearing when going at high speeds on them.

HOWEVER, the track pieces only disappear if you run the Long X12 at full speed over them. I tried all the other trains to make sure it wasn't just the Long X12 but I can confirm that the Long X12 is the only one that's causing this.

Also, it's NOT just the tilted curves that are disappearing. I also drove the Long X12 at full speed over the normal curve pieces and they were also disappearing.

Reproduction Steps:
- Set up a simple oval layout. I recommend using 2 to 3 4096 straight tracks to build up speed and 2 90 degree curves or 8 22.5 degree curves to make a 180 to show them disappearing.
- Grab the Long X12 and bring it up to max speed.
- Driving the Long X12 over the curve pieces should show at least one curve pieces disappearing. (It doesn't always happen so you may need to do this a couple of tries for it to happen).

Extra Notes:
- Singleplayer
- x64 Chromium Beta
- No Script Errors show up when this happens.

I also did a trouble shooting session to see if it was a conflicting addon but I can confirm that there are zero addons involved in this. I must be a bug within either the SW X12, the SW Model Pack, or possibly all SW trains if they have the same issue yet harder to come across because they go slower.

I'm assuming that the reason why the Long X12 is the only one causing this has to do with it's speed, since it is the fastest SW train in the collection.


Addons enabled during the troubleshooting session:

https://gtm.steamproxy.vip/sharedfiles/filedetails/?id=2866238940
https://gtm.steamproxy.vip/sharedfiles/filedetails/?id=292674440
https://gtm.steamproxy.vip/sharedfiles/filedetails/?id=381210427
https://gtm.steamproxy.vip/sharedfiles/filedetails/?id=147812851
https://gtm.steamproxy.vip/sharedfiles/filedetails/?id=287012681
Last edited by FruitBerryCrunch; 5 May @ 5:57pm
Originally posted by SligWolf:
The issue should now be fixed!

Original reason:
It was caused of the function PhysicsCollide that we use to determine objects that stuck in each other for our antispam logic. Only SW entities should be added to a seperate table that will delete stuff at the end but because of a missing check for extern non SW objects they got deleted also. So this problem actually occurred through our code. I'm sorry for the inconvenience.



Log:
https://gtm.steamproxy.vip/sharedfiles/filedetails/?id=2866238940
- Improved SW vehicle antispam logic! - Improved SW vehicle spawn logic! - Improved intern constraint logic! New SW Base version: v.1.4.0
< >
Showing 1-12 of 12 comments
I will look into it and thanks for the video!

But please do the test again with developer console.
Put this in your console before testing:
developer 2

And check the console log after the track disapeared.
Post the console log as a link from pastebin.com.
Just copy and paste it out of the console.



Gmod can remove props, entities and vehicles on it's own with the reason "Crazy Physics".
But that should only happen with items that have a broken animation cycle or bones with wrong herachys.

Beside this, the problem must be existed before the tilted curve update.
Also, please don't forget that the x64 Chromium Beta still have the physics engine issue.
https://gtm.steamproxy.vip/groups/SligWolfAddons/discussions/1/4513255384647889127/

It could be a side effect of this issue and there is maybe nothing I can do about it.
Last edited by SligWolf; 6 May @ 7:27am
I tried everything, but I was not even able to go once through a turn with the X12 without derailing. Even on slow speed. (30 - 60 kilometer per hour)

In your video, you had the version 2025.05.03.
I have the version 2025.05.05, no train track piece disappeared. Only derailing.

I made no video because I only derailed many times and there never disappeared a track piece.

Also, the physics issue of gmod x64 makes it impossible to go fast in prop curves.
We noticed this problem after the release of the SW Wuppertal Suspension Train because of massive bug reports on x64. It is still present.

Your version just seems to delete the props instead of derailing the train.
Last edited by SligWolf; 6 May @ 7:28am
Grocel 6 May @ 8:20am 
Looks like crazy physics to me. Ususally the engine remove entities if it would crash the physics engine instead.

About the derail issue. This is what SligWolf was talking about:
https://gtm.steamproxy.vip/groups/SligWolfAddons/discussions/1/4513255384647889127/

It has been reported to the game developer and it is currently under investigation.
https://github.com/Facepunch/garrysmod-issues/issues/5968

@FruitBerryCrunch: Please check if the prop disappearing issue also exist on the non-beta branch for you. Make sure you test it in single player or in your local multiplayer. If using an online server make sure it has the same version/branch as you do.
Hey!

Thanks for the feedback. I just wrapped up a couple of tests and here are my results. Hopefully they're of help. :steamthumbsup:

I typed developer 2 in console as told.

Here's the pastebin: https://pastebin.com/g2kQYmZy

Non Updated x64 Branch (2025.05.03):

In console:
[SW-ADDONS] Removed prop_physics, because of stuck or laggy physics!
Entity: Entity [92][prop_physics]

[SW-ADDONS] Removed prop_physics, because of stuck or laggy physics!
Entity: Entity [90][prop_physics]

Two Tracks were removed.


Normal Branch Singeplayer (First Attempt):

Nothing in console. No tracks were removed. Everything was working smoothly.


Updated x64 Branch (2025.05.05):

In console:
[SW-ADDONS] Removed prop_physics, because of stuck or laggy physics!
Entity: Entity [90][prop_physics]

One track got removed this time. Overall the same issue.


Normal Branch Singleplayer (Second Attempt):

Nothing in console again. Full oval track with a couple run by's. Train was working smoothly and no tracks were removed.


Conclusion:

This is most likely an issue that is only occurring on the x64 Chromium Beta branch. Normal branch was working perfectly fine. On the other hand, this seems to be a new issue that I may have discovered that is exclusive to x64 Chromium Beta.

What I don't understand is how you did similar tests but the tracks were not disappearing for you. Is this perhaps an issue that I'm only dealing with? I'm a bit confused. Either way, hopefully this help.
Last edited by FruitBerryCrunch; 6 May @ 10:18am
Hi again!

I did one last test on Multiplayer Local Server on x64. The results were exactly the same as the Multiplayer Peer to Peer test with SligWolf. There was no track disappearing. Only train derailing.

Here's the console log in a pastebin. https://pastebin.com/1BS0nGjQ

I also did an extra test on Singleplayer again and the issue came back. Tracks getting removed and for once the train got removed, too. It seems to be an issue that only occurs for me on Singleplayer in x64.
So, I was going through the script again and it is very strange that the track pieces get deleted from our spam protection.

Only spawned SW vehicles and SW entities are able to interact with our spam protection.
So everything that is not spawned through our system is not able to be removed by our spam protection because it doesn't meet our criteria.

We spawn the rails with the Track Assembly Tool wich spawn our track switches as an SW entity through our system. But now the strange part, the normal curves, straights and so on are normal props that should be completely untouched from our spam protections.

They need a specific value from our spawn-hooks to be even considered to go through our spam protections. Props are never be able to get this specific value. They are just normal props.

Furthermore, are the SW vehicle parts and SW SENT's after a few seconds (depending on ticks) considered as stable and will be deselected for the deletion process of our script.

And on top of all that, I'm not able to reproduce the issue on my side.
FruitBerryCrunch and me tested it on x64 in multiplayer and got not a single deletion.
I tested it in singleplayer on x64 and got no deletion.
FruitBerryCrunch also tested it in singleplayer on x64 but got a deletion.

So this problem can only be considered as a very strange bug on x64 and seems to be unfixable from our side because of too less information on how it happens and what exactly triggers that issue.

Maybe the hardware / software interaction is again a part of this kind of issue. In the past we got other issues with gmod that was depending on the hardware / software. But I really don't know, it's just a guess in the blue.

For now I can only recommend to play on a local multiplayer server on x64, which works the same as normal singleplayer.
Last edited by SligWolf; 9 May @ 8:22am
Grocel 9 May @ 8:53am 
Maybe a monitored testing session via remote view/access could bring some light in the dark. This way we could rule out any addon conflict or a corrupted game. Usually we do not do such extra support efforts, but this issue seems to be quite unusual and might be worth the extra effort.
SligWolf 19 May @ 10:34am 
Closed as solved.
Mostly caused by an addon conflict or old cached workshop gma files.
Nothing else would make sense here.
Last edited by SligWolf; 19 May @ 10:46am
SligWolf 17 Jul @ 6:59am 
Reopened do to the current addon maintenance.

This problem actually occurred through our code. I'm sorry for the inconvenience.
I was finally able to reproduce this issue and a fix will be released this weekend at the latest!

Reason:
It was caused of the function PhysicsCollide that we use to determine objects that stuck in each other. Only SW entities should be added to a seperate table that will delete stuff at the end but because of a missing check for extern non SW objects they got deleted also.
Beautiful! I'm very glad to hear that.

Hearing that the issue has been spy glassed is very relieving since this issue kind of overwhelmed me because of how confusing it was to be truthfully honest.

Thank you two so much for your time! :steamthumbsup:
A moderator of this forum has indicated that this post answers the original topic.
SligWolf 17 Jul @ 10:21am 
The issue should now be fixed!

Original reason:
It was caused of the function PhysicsCollide that we use to determine objects that stuck in each other for our antispam logic. Only SW entities should be added to a seperate table that will delete stuff at the end but because of a missing check for extern non SW objects they got deleted also. So this problem actually occurred through our code. I'm sorry for the inconvenience.



Log:
https://gtm.steamproxy.vip/sharedfiles/filedetails/?id=2866238940
- Improved SW vehicle antispam logic! - Improved SW vehicle spawn logic! - Improved intern constraint logic! New SW Base version: v.1.4.0
Last edited by SligWolf; 17 Jul @ 1:12pm
< >
Showing 1-12 of 12 comments
Per page: 1530 50

All Discussions > Bug Reports > Topic Details
Date Posted: 5 May @ 10:50am
Posts: 12