Spidertron Weapon Switcher


Allows the Spidertron to fire any type of weapon by cycling through different loadouts with Control + Tab.

Content
10 months ago
1.0 - 1.1
5.06K
Combat

b [Fixed-1.1.4] Strange behavior in item search screen

3 years ago

I installed this mod and noticed a strange behavior when using the search GUI provided by the mod "Quick Item Search" (https://mods.factorio.com/mod/QuickItemSearch): Multiple spidertrons appear as a result of the search. One for each weapon variant.
I have also installed the "Spidertron Extended" mod (https://mods.factorio.com/mod/spidertron-extended), and it adds the new variants to the list as well, but with the wrong icon.
Another thing that appears on the list is the "Spidertron Shotgun", but only this one. This does not happen with the other weapons added by this mod.
This bug is not critical and I don't even know if it is possible to fix it, but I wanted to report this behavior.

https://imgur.com/a/NLN3aA0

Thank you.

3 years ago
(updated 3 years ago)

Thanks for the report. Most of that is 'not behaving ideally, but as expected'. There doesn't appear to be any way to prevent the entities from showing up in QuickItemSearch (ideally it would have a remote interface to allow mods to set forbidden items, looks like it is sort of on raiguard's radar: https://github.com/raiguard/Factorio-QuickItemSearch/issues/10). Similarly, all my extra entities appear in the entity placer in the base game's editor, with no apparent way to hide them there either.

However, I don't know why it uses the wrong icons for the extended spidertron variants. Editor mode uses the correct icons, so I presume that that is a bug in Quick Item Search. Similarly, I don't know why Spidertron Machine Gun and Spidertron Flamethower are not appearing. I've double checked that those weapons exist with that name in the game, so I'd like to say that this is probably also a bug in Quick Item Search :)

Thanks

3 years ago
(updated 3 years ago)

Update after consulting with raiguard on discord:
I've discovered a 'hidden' flag for items that would allow me to hide the extra spidertron variations from things like filters and Quick Item Search. I am hesitant to actually apply it though, because I was under the impression that you might want to be able to do that because you might have 'Flamethrower Spidertron' in your inventory/storage if you pick up a spidertron whilst in flamethrower mode. However, I've just tested this, and it seems that whatever mode it is in, it will always revert back to 'rocket launcher spidertron'. I don't know why it does this, perhaps you'd be able to confirm that it happens to you as well? If it is truly the case, then that is excellent!

I will use the 'hidden' flag on the shotgun, and on the waypoint and patrol remotes from Spidertron Waypoints (unless I implement your suggestion there to make each mode persistent per remote :) ).

The reason the shotgun appears and the others don't is because the others are all based off of vehicle weapons, so they have already got the 'hidden' flag.

I'm still not sure why the spidertron variations don't take the colour of the MK2&3 spidertrons, but this occurs in the base game as well (in filters and logistic requests), so it is definitely a bug on my side, to do with how I integrated with Spidertron Extended. I don't see this as a major issue though :)

3 years ago
(updated 3 years ago)

I can confirm that whenever I pick up a spidertron (Vanilla, MK2 or MK3), it reverts to the rocket launcher version. I thought this was the expected behavior! For me, this behavior is fine!

Thanks for the answer!

3 years ago

I can confirm that whenever I pick up a spidertron (Vanilla, MK2 or MK3), it reverts to the rocket launcher version. I thought this was the expected behavior! For me, this behavior is fine!

Thanks for the answer!

3 years ago

Well its certainly what I want to happen, but I don't remember explicitly writing that feature and I can't find any logic that does it, so it is a mystery to me :)

3 years ago

Aha, I just never overwrote minable.result (https://github.com/wube/factorio-data/blob/ea4de4617e6f7c8e5c58f99a777daa5bbd841f48/base/prototypes/entity/entities.lua#L7322) for each variation, so they all default to 'spidertron'. Excellent.

3 years ago

All spidertron and weapon variations are now marked 'hidden' in 1.1.4. Thanks for the report, and now I need to go and use the 'hidden' flag in all my other mods :)

New response