Prometheus Grenade Launcher


Grenade launcher with various ammunition types and available as hand weapon, turret, spidertron, tank and armor equipment. Some of all ammunition: Frag, Armor-piercing, Cluster, Acidic, Plasma, Thermobaric, Incendiary, High-Explosive, Plutonium etc.

Content
5 months ago
1.1 - 2.0
4.60K
Combat

g High UPS, game lags every 5 seconds

6 months ago

This mod has started to make the game laggy, now the game constantly freezes a bit roughly every 5 seconds. If I remove this mod those constant freezes stop.

There may be some procedure that turns inefficient as the map or entities increase.

6 months ago
(updated 6 months ago)

This mod has started to make the game laggy, now the game constantly freezes a bit roughly every 5 seconds. If I remove this mod those constant freezes stop.

There may be some procedure that turns inefficient as the map or entities increase.

Can you tell at what stage of the game this happens and which mods are present alongside?
+Screenshots/Video if you can.
I can assume that this might have happened due to grenade spamming with Sentry Eye (freezes every 5 sec), but I doubt that this is your case.

UPD: hm… or you can give me you game save with this trouble. Maybe…

6 months ago

I don't have enough bandwidth to provide video but I confirm that it's because of the sentry eye polling every surface every 250 ticks. I removed the on_tick handler and now everything runs smoothly.

Perhaps that part can be optimized and instead of polling every surface you can store every built sentry eye entity in a table and loop over that table in intervals. Using the on_built_entity event.

6 months ago

Tried to use on_built_entity… / on_entity_died… instead of checking surfaces; and added map settings for changing scan frequency. Update has been uploaded, you can check if it fixes freeze trouble.

6 months ago

The update has helped a lot with the scan lag, but I'm getting an error if I die and respawn.
I'm getting some concurrent errors with a couple of other mods; I'm just pasting the entire thing in case it's relevant.

1521.627 Error MainLoop.cpp:1449: Exception at tick 48818053: The mod !skins (Skins Factored) (1.3.4) caused a non-recoverable error.
Please report this error to the mod author.

Error while running event skins-factored::on_player_respawned (ID 48)
The mod «Prometheus» 40-mm Grenade Launcher (0.3.5) caused a non-recoverable error.
Please report this error to the mod author.

Error while running event PLORD_Prometheus_GrenadeLauncher::on_runtime_mod_setting_changed (ID 66)
The mod Quick Ride (1.1.3) caused a non-recoverable error.
Please report this error to the mod author.

Error while running event quick-ride::on_runtime_mod_setting_changed (ID 66)
quick-ride/control.lua:412: bad argument #2 of 2 to 'get_player' (string expected, got nil)
stack traceback:
[C]: in function 'get_player'
quick-ride/control.lua:412: in function <quick-ride/control.lua:411>
stack traceback:
[C]: in function 'newindex'
__PLORD_Prometheus_GrenadeLauncher
/control.lua:267: in function <PLORD_Prometheus_GrenadeLauncher/control.lua:261>
stack traceback:
[C]: in function 'newindex'
__skins-factored
/control.lua:48: in function 'update_active_skin'
skins-factored/control.lua:87: in function 'try_swap'
skins-factored/control.lua:200: in function <skins-factored/control.lua:195>
1521.627 Error ServerMultiplayerManager.cpp:84: MultiplayerManager failed: "The mod !skins (Skins Factored) (1.3.4) caused a non-recoverable error.
Please report this error to the mod author.

Error while running event skins-factored::on_player_respawned (ID 48)
The mod «Prometheus» 40-mm Grenade Launcher (0.3.5) caused a non-recoverable error.
Please report this error to the mod author.

Error while running event PLORD_Prometheus_GrenadeLauncher::on_runtime_mod_setting_changed (ID 66)
The mod Quick Ride (1.1.3) caused a non-recoverable error.
Please report this error to the mod author.

Error while running event quick-ride::on_runtime_mod_setting_changed (ID 66)
quick-ride/control.lua:412: bad argument #2 of 2 to 'get_player' (string expected, got nil)
stack traceback:
[C]: in function 'get_player'
quick-ride/control.lua:412: in function <quick-ride/control.lua:411>
stack traceback:
[C]: in function 'newindex'
__PLORD_Prometheus_GrenadeLauncher
/control.lua:267: in function <PLORD_Prometheus_GrenadeLauncher/control.lua:261>
stack traceback:
[C]: in function 'newindex'
__skins-factored
/control.lua:48: in function 'update_active_skin'
skins-factored/control.lua:87: in function 'try_swap'
skins-factored/control.lua:200: in function <skins-factored/control.lua:195>"

On a separate note, is it possible to merge this mod's recipes into the regular Combat crafting tab?

6 months ago

The update has helped a lot with the scan lag, but I'm getting an error if I die and respawn.
I'm getting some concurrent errors with a couple of other mods; I'm just pasting the entire thing in case it's relevant.

1521.627 Error MainLoop.cpp:1449: Exception at tick 48818053: The mod !skins (Skins Factored) (1.3.4) caused a non-recoverable error.
Please report this error to the mod author.

Sorry for waiting, I’m little busy, but will check how to fix that later.

On a separate note, is it possible to merge this mod's recipes into the regular Combat crafting tab?

I created a separate tab due to large count of recipes and to avoid disturbing the regular tab’s recipes. I have no plans to merge it back into the regular tab.

5 months ago

Sorry for a very long waiting 😔
I think I fixed error that caused when Quick Ride mod enabled? Now I have no caused an error on “map” settings changed. With !skins mod currently I have no found conflicts.

4 months ago
(updated 4 months ago)

I confirm that this fixed the issue. I was sure that I already replied here and just now I found that I didn't.

By the way I second the idea of moving recipes to the military tab, they would make much more sense there. Getting the spidertron to appear next to the vanilla spidertron and the same for the grenade launcher turret. Those changes would integrate nicely with the consistency of the other recipes ordering.

New response