Spidertron control center

by Feidan

Adds a window to easily manage your spidertrons. Call them to your current location, get a connected remote, or make them go home, home is specified per spidertron.

Utilities
1 year, 3 months ago
1.1
3.64K

g Spidertrons disappearing with Weapon Switcher mod

2 years ago

Hello!
I just made my 2nd Spider in this save, but the first one doesn't show up in the Control Center. Is there any way to get it to "reload" the spider so they both appear in the Control Center?
Thanks

Edit: It appears that switching weapons with the Weapon Switcher mod makes the spidertrons disappear from the Control Center!

2 years ago

I'm having this problem too!

I switched the weapons of all my spidertrons, and because of that, none appears listed by this mod!

Thanks.

2 years ago

I fix locally here on my PC:

https://ufile.io/3wpmh1rn
https://filepost.io/d/uLSq5eSaAB

The period has expired.
Can you re-upload?
please. thank you

2 years ago

I fix locally here on my PC:

https://ufile.io/3wpmh1rn
https://filepost.io/d/uLSq5eSaAB

The period has expired.
Can you re-upload?
please. thank you

https://www.udrop.com/7bYy/spidertron-control-center_1.1.4.zip
https://www.file-upload.com/1j2lmwds1k1e
https://fileupload.win/MyA1VPScLitH2uE
https://ufile.io/0lcut5xb

Dominiquini !
Thank you so much for the quick feedback.
Thank you :)

2 years ago

I fix locally here on my PC:

https://ufile.io/3wpmh1rn
https://filepost.io/d/uLSq5eSaAB

Could you share the code fix on here instead of a file share? Those links are no longer good. Might as well share to us the filename, line of code you used? Thanks

2 years ago
(updated 2 years ago)

Someday I start a fork on github. Meanwhile, I upload again my fixed version:

https://filepost.io/d/958DMDvjik
https://ufile.io/z3hw760z

I hope this helps!

2 years ago
(updated 2 years ago)

Someday I start a fork on github. Meanwhile, I upload again my fixed version:

https://filepost.io/d/958DMDvjik
https://ufile.io/z3hw760z

I hope this helps!

This works, but there is an very noticeable freeze when switching surfaces (space exploration). If you also have the spidertron enhancement mod that allows you to switch from engineer to spidertron, there is a noticeable freeze. Are you noticing this? Some taxing function is running like its initializing all spidertrons or something every time this happens.

2 years ago

I don't have Space Exploration! My modification re-index all spidertrons every time we use the weapon switcher that this mod provides. Probably exists a better way to do this, but I don't know how to mod this game very much. And I'm not familiar with Lua...
Maybe someone can provide a better fix...

2 years ago

Thanks for the effort. Looks like I'll have to remove the fix because each time a train goes up the space elevator in space exploration, the game freezes very noticeably. In Space Exploration, the mod recreates the train so I'm guessing some function is triggering the re-index.

2 years ago
(updated 2 years ago)

I don't have Space Exploration! My modification re-index all spidertrons every time we use the weapon switcher that this mod provides. Probably exists a better way to do this, but I don't know how to mod this game very much. And I'm not familiar with Lua...
Maybe someone can provide a better fix...

Dominiquini, I figured out a better way to handle situations when the spidertron control center UI gets out of sync when weapon switcher is toggled. Instead of having the populate_initial_spidertrons() kick off on every rename, build, destroy event in the game, I added a simple console command using
commands.add_command() and I can manually run it. I dont toggle my weapons very much at all, so manual console command is simple and doesn't cause performance issues when these events trigger.

If you want the code I used for this, let me know

2 years ago

If I'm not mistaken, the mod 'Spidertron Weapon Switcher' provides a listener for the weapon exchange action, but I couldn't use it (lack of Lua and Factorio experience). I think the ideal would be to be able to use this listener ... If you do this, it would be nice to publish here on the portal!
But as in my game, the spidertron update happens rarely, then my solution turned out not to be a problem!

Thanks

2 years ago

Fixed in 1.2.1

2 years ago

You are awesome Feidan, thank you for fixing this!!!!!!!

2 years ago

Nice one, thank you!

New response