Armor Plating

by VortiK

Adds armor plating equipment to increase vehicles hitpoints and improve their survivability. - Supports AAI Vehicles. - Supports Angel's Heavy Tank. - Has built in mod support.

Content
3 years ago
0.16 - 1.1
11.8K
Armor

g bug when building turrets on top of ghosts

6 years ago
(updated 6 years ago)

(running current version, 0.3.1)
this already happened twice now, even though i haven't even researched armor plating yet.
it sometimes happens when i manually rebuild a destroyed gun turret (vanilla turret), meaning there was a ghost (vanilla turret) entity.

Error while running event vtk-armor-plating::on_built_entity (ID 6)
LuaEntity AP call when Lua Entity was ivalid.
stack traceback:
[]vtk-armor-plating/control.lua:72: in functon 'update_armor_equipment'
[]vtk-armor-plating/control.lua:152: in function <vtk-armor-plating/control.lua:150>

i think you should add "entity_to_armor = nil" in the first line of the function set_entity_to_armor.
gonna try it and reporting back in 1-2 days

6 years ago

Hello,

Thanks for the report. I ran some tests and I couldn't reproduce the issue so far. Let me know if you find a reproductible case and I'll fix it asap.

6 years ago
(updated 6 years ago)

since i added the fix it didn't crash anymore.
to repoduce the bug, try placing a vehicle and picking it up again. then build a building.

6 years ago

Hello thanks for your report I could reproduce and fix the crash in 0.3.2.

New response