Space Engineers

Space Engineers

Tank Tracks Framework & API
123 Comments
Digi  [author] 10 Jul @ 3:53am 
@Into
Sounds like something is different on the server, are you maybe extremely far from 0,0,0 ? Or does the server have some mods that affect suspension alignment in some way?
Can you get the server's world and run it in singleplayer to see if it has the same issue with your tank?

@UncleFester
No idea what that can be, I can fiddle about with the checks to re-think them and hopefully fix it xD
The strange bit is that rejoining didn't fix it but server restart did, considering that I run this check clientside.
UncleFester 9 Jul @ 5:22pm 
Should have mentioned this was on a MP server, and the regular server restart made the problem go away... Yay!
UncleFester 9 Jul @ 4:50pm 
So... odd problem... on a LG that currently HAS tracks (that I added days ago), I now cannot modify them... Pressing "F" while looking at the grid says I cannot build tracks on enemy or neutral grid"

But I personally (not faction mates, all me) own every block... this definitely not an enemy grid...

tried restart of client, tried restart of SE... any idea?
Into 9 Jul @ 5:11am 
@Digi
Here the BP:
https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=3520979741
still works in creative, not on server.
Digi  [author] 8 Jul @ 9:29pm 
@Into
The horizontal alignment might not be exact with what I built there, can you provide a blueprint?

@ꪊ᭢᭢᭢᭢᭢ꪊ᭢᭢᭢
So not wheels on rotors (which this already supports)? I'm not sure what you mean then, can you link a blueprint?
Into 28 Jun @ 6:13am 
I've basically built what is seen in the title image
Into 28 Jun @ 6:03am 
Imported a rover I've built in creative and tried to put the tracks on, but it tells me that wheels do not align, it's a combination of 1x1 and 2x2. It was working in creative tho.
Digi  [author] 14 Jun @ 10:22pm 
I've updated the mod to add some more info around the error to maybe track down the issue.

First try to make it happen again and when it does can you post the full SE log (here or steam or discord @m_digi ).

I've also added an option to turn off multithreading, if you want to try to see if that contributes to the problem, first close the game to reset the issue, then go in the mod's storage folder ( %appdata%\SpaceEngineers\Storage\3208995513.sbm_TankTracks\ ), there create a "nothreads" file (without any extension, that's important). Once you load a world with the mod, the info.log will have around the 8th line a "Threads: " that mentions if it's on or off.
Cona6789 14 Jun @ 12:03pm 
Yes it seems to happen even after a reload, a complete relaunch is needed to fix it, but only temporarily. im not exactly sure what the cause is, but I know it only ever happens when my friend is in a tank thats using the tracks mod.
it has happened to him before when i was in a tank using the tracks mod, so to me it seems it happens when someone else is using a vehicle with tank tracks, and you try to use a seat or go in third person.
as soon as I removed the tank track framework it stopped happening
Digi  [author] 13 Jun @ 11:33pm 
The black screen is probably the same thing causing the errors in my mod, giving it NaN position/distance which would fail to find a valid preset because of it.

Does it happen reliably even if you save and reload world? That's good then but if you have gigabytes of mods can you please try and removes some to narrow it down, then send me the world so I can find what's causing it (likely another mod but who knows).

Also if using plugins, first try without pluginloader.
Cona6789 13 Jun @ 10:59pm 
Encountering a glitch where when I sit in any seat the entire screen goes black and theres no audio, error displays on screen in red text that says:
"TankTracksFramework v1.1.4 ERROR: no distance preset!"
Confuoco 4 Jun @ 5:29am 
No, its just decoration.
Nyxborne 11 May @ 10:40am 
Do tracks give your Rover an advantage? Like do they grip the ground between wheels?
Sypher 11 May @ 8:03am 
@Digi, MP Server, and we added Tracks over Vanilla wheels and so far it seams to be working. I will keep you informed. Thank you for the reply.
Cona6789 8 May @ 9:10pm 
I will next time we play together, dont know when thatll be but ill post it here
Digi  [author] 8 May @ 4:08pm 
I can't reproduce it in my dedicated server, so it's either really requiring player-hosted or it's something else going on...

Is it an actual error that tells you to send me the log? if so can you send your friend's SE log [spaceengineers.wiki.gg], either here or on discord ( @m_digi )
Otherwise if it's just an informational message can you tell me the exact wording, or screenshot it.
Cona6789 8 May @ 12:42pm 
It happens whenever he tries to enter any seat on any blueprint, large or small grid, including vanilla seats and modded seats. I am on a MP client hosting for friends only through steam.
Digi  [author] 8 May @ 2:23am 
@Sypher
I'd like to find out, did you find any specifics on how it triggers? Also do they only vanish visually, if you equip the track builder can you place them right away or do you have to remove the invisible ones first?
Also is this in singleplayer or are you a MP client?
Digi  [author] 8 May @ 2:01am 
Only your friend does that on that vehicle, not you (the host)? Can you send a blueprint of the vehicle please :} upload to workshop or discord or wherever you want really.
Cona6789 7 May @ 10:39pm 
when i use this mod solo it works great, when i use it on my MP server my friend gets an error when trying to sit in any seat, something about tank track framework no default perspective i think
Sypher 1 May @ 10:47pm 
Mr.Digi, Thank you for a wonderful mod... Just wondering here, could the new updates have broken something about every twenty minuets or so one or both tracks on my only tracked vehicle keep diapering. Any idea why?
Digi  [author] 4 Apr @ 3:25pm 
Try event viewer maybe it hints at something there.

Also if you can reliably cause the crash, attach dnspy: https://spaceengineers.wiki.gg/wiki/Scripting/Debugging_with_dnSpy
And enable stackoverflow in the exceptions window to see if there's an infinite loop going on somewhere.

Other server admins might have better ways of identifying log-less crashes like these.
Xeno 4 Apr @ 2:32pm 
Fair enough. It's not like this game is that well coded to begin with lol.
The logs have no information, it was ghost crashing. Everything was running in the logs like normal then the logs show the server starting. So now i have to do the ole trial and error method.

What my findings so far are pointing towards is something in the modlist is not playing nice, and when i saw the mod profiler error, i figured it was worth looking into. Thank you for responding though.
Digi  [author] 4 Apr @ 6:45am 
It's done in a safe way that was suggested by a dev a long time ago for WC to use, and WC does it similarly.
The game can't tell the difference between just doing physics stuff in a thread versus doing physics stuff in a thread while main thread waits for those to finish. The major difference is main thread being paused during that results in world not progressing, therefore physics engine not writing to the things that we're reading from.

In short, it's fine, it's very unlikely to be the cause of your crashes. You should instead look at the log where it says the crash happened and go from there. If you need help there post it in the #help-for-community-servers channel in KSH discord.

As for desync, the game itself has some of those built in, it really depends on what desyncs and how and all that, same channel for those questions because you'll find experienced server owners.
Xeno 3 Apr @ 8:23pm 
So the warning in mod profiler, "Mod Tank Tracks Framework & API is accessing physics from parallel threads. This is not safe and might cause the game to crash or behave unexpectedly", i'm assuming form your statement above about mod profiler that you're aware of this? If not, well im getting this warning on my server. Having some crash issues and desync. Unsure if this is the cause at this time but will test to see. Really great mod btw, crossing my fingers this isn't the cause...
STUV 13 Mar @ 3:42pm 
Help, me please. I'm found bug in track mod. How to fix ?
https://youtu.be/t8jFB74UKW4
Mike Dude 12 Jan @ 4:51pm 
I posted in the keen discord but wanted to share it here, too.

I believe I found a fatal crash to desktop error with the ReplaceWheelModel mechanic. I successfully set up my ini, so it replaces the wheels on the suspension with a custom model.

Steps to reproduce:
1. Apply a track that swaps the wheel model.
2. Remove the track with the track tool. Observe that the new model stays and does not revert to the vanilla wheel.
3. Apply a new track that also has a wheel replacer. Observe instant crash to desktop, and no stacktrace in the game log.

If I were to guess, it is trying to replace a wheel or model that has already been replaced and is no longer there. When I change step 3 to apply a track that doesn't replace the model it has no problems.
Moros 12 Jan @ 4:25pm 
Does this actually have a gameplay effect or is it only decorative?
kennet0508 9 Jan @ 2:52pm 
The SE2 support page is open Time to add feedback that this needs to be a vanilla feature xD

https://support.keenswh.com/spaceengineers2/pc
Digi  [author] 8 Dec, 2024 @ 3:43am 
@Rias2211 This relies on clientside scripts which are not allowed on consoles. In more words on the link at "mod io?" section in the description.
Rias2211 7 Dec, 2024 @ 12:14pm 
hi is it possible to publish the Tank Tracks Framework & API on mod.io I want to try to test this mod on the ps5
DarkXeRoX 7 Nov, 2024 @ 12:42am 
lemme have a dig around on the servers and poke you on discord
Digi  [author] 6 Nov, 2024 @ 8:52am 
Did you have these errors before the builder got updated? let's say 1 to 3 november to account for timeszones.
And can you send the latest log, I'm not sure what's going on with it, seems it might be wrongfully calling stuff in a thread and needs deeper investigation xD
DarkXeRoX 6 Nov, 2024 @ 7:28am 
16:27:27.1761 [INFO] Keen: TankTracksFramework v1.1.3 error/exception: Tank Track Pack: Morue (Steam:3225398014): 'Abrams_Large_5x5_Static': Error processing spawned 'C:\Dygamic\NexusV3\Servers\S5Naval\31004 Node 4 Europe\Instance\content\244850\3225398014\Models\AbramsTrackLink.mwm': System.NullReferenceException: Object reference not set to an instance of an object.
at Digi.TankTracks.API.TrackDefinition.SpawnSegment(Boolean construction)
at Digi.TankTracks.API.TrackDefinition.GetDataFromModel()

but no longer the spam once server is running
just done a restart of the server just incase but still shows
Digi  [author] 6 Nov, 2024 @ 5:29am 
Are they identical? Showing model names and then error in SpawnSegment()? O.o
DarkXeRoX 6 Nov, 2024 @ 2:58am 
sorry went to sleep lol

Still throws the initial errors but doesn't spam anymore
Digi  [author] 5 Nov, 2024 @ 4:01pm 
Oh! Nvm, now I see what's up. The model spawning was indirectly called by the builder that was asking for the API DS-side, which chain reacted into those errors.
It should load fine now that the builder was fixed, and now I know what other checks to add xD
Digi  [author] 5 Nov, 2024 @ 3:57pm 
The second error is from the builder mod and was fixed, that wouldn't impact the existing vehicles.

The first error is a weird one, I did a quick test on a DS with the morue mod and I don't get any errors :lunar2020thinkingtiger:
Can you try a restart to see if the fix for the other mod got rid of errors in this (but it shouldn't affect it like that X_X)
If it's still happening, what else changed besides my update on the builder mod?
DarkXeRoX 5 Nov, 2024 @ 1:19pm 
none of the servers running the mod currently have a vehicle with tracks on it
DarkXeRoX 5 Nov, 2024 @ 1:19pm 
@digi

since update getting a bit of a error spam on the server

21:59:37.7591 [DEBUG] Keen: ### TankTracksFramework v1.1.3 initializing...
21:59:37.8151 [INFO] Keen: TankTracksFramework v1.1.3 error/exception: Tank Track Pack: Morue (Steam:3225398014): 'TigerOne_Small_1x1': Error processing spawned 'C:\Dygamic\NexusV3\Servers\S5Naval\31004 Node 4 Europe\Instance\content\244850\3225398014\Models\Tiger1TrackLink.mwm': System.NullReferenceException: Object reference not set to an instance of an object.
at Digi.TankTracks.API.TrackDefinition.SpawnSegment(Boolean construction)
at Digi.TankTracks.API.TrackDefinition.GetDataFromModel()

for every model

Followed by endless spam:

22:05:13.6689 [INFO] Keen: ERROR Digi.TankTracksPlacement.TankTracksPlacementMod: System.NullReferenceException: Object reference not set to an instance of an object.
at Digi.TankTracksPlacement.TankTracksPlacementMod.UpdateAfterSimulation()
Digi  [author] 29 Oct, 2024 @ 12:53pm 
Fixed another case of "invisible tracks" where the vehicle was not moving so it didn't update them when placing.
Zylian3907 22 Oct, 2024 @ 5:44pm 
Nevermind, figured it out. Apparently Consolidation Propulsion has its own track model for the wheels and it can't select the ones from this mod, odd.
Zylian3907 22 Oct, 2024 @ 5:37pm 
Can someone run me through how to use this mod? I swear I've tried pressing every button on my keyboard while using the builder and I cannot for the life of me figure out how to select other tracks.
morpheusfd 22 Oct, 2024 @ 2:25am 
@Digi Yeah, thank you very much, my fault, I subscribe and forget to install it with other mods. Now it work fine and I want to thank to you for your mod, it's just fine et cool :-)
Digi  [author] 19 Oct, 2024 @ 6:38pm 
@morpheusfd
The "Tank track over vanilla wheels" is indeed the requirement (or any other mod that adds tracks), is it added to the world? Subscribing does not install it, it merely pre-downloads it.
If you did, can you send me your SE log and maybe a video of how you're trying it, might a bug I missed. Feel free to add me on steam or DM me on discord @m_digi if you don't want the log public.
Digi  [author] 19 Oct, 2024 @ 6:38pm 
@Thedarkpickle
Was that after the 1st september update? I thought I fixed those :(

@Mr. Glooop
The grid that hosts the suspensions needs to have at least one owned block, are you sure there is? If so can you send a blueprint or world where that happens.

@Darkaiser
The morue one I think has support for a bunch of modded wheels.
If not, you can also do it yourself without even copying models from a mod, you only need the .ini file and inherit from one of the mod's tracks and boom you have their model (unless you set SegmentModel and such :P). How to make a local mod and all that is available on the SE wiki: https://spaceengineers.wiki.gg/wiki/Modding
morpheusfd 19 Oct, 2024 @ 6:00am 
« Impossible to place tank track builder, does not have any track design to linked to it » but I have Tank track builder and Tank track over vanilla wheels installed to. How can I make this work ?
Darkaiser 16 Oct, 2024 @ 12:14am 
I LOVE this mod! It looks so good on many vehicles! Like many others, I have a favor to ask though: Is it possible to make this compatible with any of the larger wheel mods? There are several including 7x7, 15x15 and even a whopping 25x25! Like many builders, I like making big land ships and I'd really like to see your tracks on them!

Thanks for a great mod!
Mr. Glooop 1 Oct, 2024 @ 5:06pm 
So far the mod has been fantastic on a majority of our crafts. I seem to be having the same issue someone else was having where i cannot place tracks because it says the grid is neutral or enemy. I have transferred ownership around and tried everything someone else suggested. any way to force the mod to allow me to put tracks on the vehicle? appreciate your work!
Thedarkpickle 4 Sep, 2024 @ 11:13am 
I'm getting an issue where any tank tracks I place on a new vehicle are physically there but visually refuse to appear, tank tracks also seem to despawn on older grids