Turret Shields

by OwnlyMe

Lightweight scripted shields with power consumption for all turrets (configurable or researchable)

Content
4 years ago
0.16 - 0.18
112
Combat

b The research is on but I can't see the research for the shields

Desc explain it all really, The research isn't visible (It's a save with 12 days in it)

6 years ago
(updated 6 years ago)

toggle it off, go into the game and toggle it on again.
did you have an older version before?
this is the icon: https://www.dropbox.com/s/1xasuikcvwp20c5/ts_research.PNG?raw=1
you can search it but the name depends on your language
english (default):Turret energy shields
german:Geschützturm-Energieschilde
korean:포탑 에너지 보호막
russian:Турельные энергитические щиты

5 years ago

I got a similar or the same problem because I updated the mod from 0.16.6 to 0.16.13 and the research is gone for turret shields completely and I have tried a save that did not even contain any version of turret shields and it didn't work either.
So is there a way to add it after starting a game?

5 years ago
(updated 5 years ago)

can you send me your savegame? there is no way i can explain this behaviour currently.
here is a debug version:
[here was a link]
when you change the mod settings, it should display a couple of debug messages, like this: https://www.dropbox.com/s/u6pq9jty9veyr1y/ts_settings_changed.PNG?raw=1
you can enter the command "ts refresh" to call another function which should enable your research
if it says false 2 times, like this: https://www.dropbox.com/s/pcb4de21o33g2dv/ts_debugger.PNG?raw=1
maybe you didn't click apply after changing the mod settings.
please check if the checkbox is ticked in the mod settings.
anyway, please tell me the outcome.

5 years ago

Swapped to the version 0.16.15 and entered the "ts enable research" and the research appeared in the list of technologies.
I also tried it on my server and the research showed up there too, so this really helped.
If you still need my save then here it is but it contains a lot of mods other than this one

https://www.dropbox.com/s/m00qemryfqm7ait/after%20fix.zip?dl=0

This is after applying the new mod and command.

5 years ago
(updated 5 years ago)

so with .15 you still couldn't enable it with the mod settings?
what messages did you get?
with your savegame (even with your mods) i could just turn it on and off via mod settings (but initially there was no research after loading even though it was turned on in the settings, so i had to turn it off and on again, but after that i could save and load the game without issues..)
i think i would rather need a save where it didn't work.
i really can't reproduce that, it just works no matter what mods i have installed :/
lets go through it again step-by-step.
1. you are ingame on any save-game
2. you go into mod-settings -> runtime settings and enable turret shields
3. you click apply and close the esc-menu (going back ingame)
(3.1 if you have the debug-version it will show messages like this: https://www.dropbox.com/s/u6pq9jty9veyr1y/ts_settings_changed.PNG?raw=1 )
4. if you needed to disable it first, repeat step 2 & 3 to enable it
5. it should show up in the normal research window
i'm really desperate so here is a video: https://www.dropbox.com/s/ejgx8yff7qyv37y/2018-05-01%2020-06-12.mp4?dl=0

any idea what could be the problem? maybe some of your mods are outdated?

5 years ago

I am sorry but you must have miss understood my last message because I said It worked and there is no other complaints.

I just thought you might make it easy for anyone else with this problem in the future.

5 years ago
(updated 5 years ago)

yeah i understood that the command worked, but it should work without it
are you sure u took the same steps like in my video? (sorry, i just have no other idea :/)
if yes, did you get messages after changing the settings? and what did they say?

5 years ago

Alright I tried it on the old save before I use command and it did work by switching the research mod setting off and then on.

5 years ago
(updated 5 years ago)

okay that's actually good news i think, but now i need to figure out why it didn't work the very first time.
when the setting is on before you load a game without the mod, it actually uses the preset setting normally.
maybe it is because of the migration from the older version. i need to test that

edit: nope, no problems when updating from version 6 :/
i will add a migration in the next version that checks (maybe after every update) if everything is in line with the mod settings

5 years ago

Hello, I think I have a similar problem.

The research is not in the research tree so it is impossible to get the shields.

If I try to disable the setting "enable research" in your mod settings, then I get this crash:

Error MainLoop.cpp:1030: Exception at tick 2055462: Error while running event Turret-Shields::on_runtime_mod_setting_changed (ID 59)
Turret-Shields/control.lua:235: attempt to index field '?' (a nil value)

I have many mods installed but apart from Bob's I don't think they have effects on turrets.

Typing the commands you mentioned in this thread (ts enable research) seems to do nothing.

The version I have been using since the beginning of my game is 16.10 .

Do you have any idea of what the problem can be ?

Thanks

5 years ago
(updated 5 years ago)

the command is now called "ts refresh"
please update to the latest version, this should fix your problem
(don't worry, all new features are optional)

5 years ago

I updated and typed "ts refresh" and the technology appeared. Thanks a lot !

New response