Advanced Target Priorities

by heyqule

Streamline selecting target priorities for any player turret.

Utilities
3 days ago
2.0
12.4K
Combat

b Fatal Error on GUI Open (Index out of range)

5 days ago

Dear heyqule

I am writing to report a fatal error I encountered while playing Factorio with your mod installed. The game displayed a "Recovery Error" when attempting to open a GUI related to your mod.

Core Issue: Index out of range

Full Error Message Details:
The error occurred while running the following event:
Error while running event advanced_target_priorities::on_gui_opened (ID 102)

The stack traceback confirms the root cause:
Index out of range.

Steps to Reproduce (Approximate):
The error occurs specifically when attempting to access the GUI/interface for advanced target priorities.

Current Setup:

Factorio Version:2.0.72
Mod Version:1.0.2

Mods installed
- Advanced Target Priorities (1.0.2)
- 日本語化 パック (1.0.10)
- Enemy Race Manager (2.0.38)
- Enemy Race Manager Asset Pack (2.0.1)
- Enemy Race Manager Libraries (2.0.6)
- ERM - RedArmy (2.0.10)
- ERM - Shared Economy (1.0.3)
- ERM - Protoss / Akilea Tribe (2.0.12)
- ERM - Protoss Economy (1.0.6)
- ERM - Protoss HD Graphic Assets (2.0.1)
- ERM Unit Control (1.0.3)
- ERM - Zerg / Garm Brood (2.0.11)
- ERM - Zerg Economy (1.0.2)
- ERM - Zerg HD Graphic Assets (2.0.3)
- Factorio World (2.1.2)
- Supersonic High Speed Train Mod (2.0.0)
- Periodic Madness (0.7.1)
- RPG System (2.0.7)
- shizu_Japanese_Pack (1.1.3)
- ✔ Todo List (19.12.0)
- Enemy Race Manager - Post Process (2.0.1)

Please let me know if you need any further information or steps to reproduce the issue. Thank you for your work on this mod.

Sincerely,

5 days ago
(updated 5 days ago)

Hi.

May you copy the full text of the error? It's missing details on the affected files and line number.

For example:

Error while running event enemyracemanager::on_nth_tick(11)
enemyracemanager/lib/attack_group_beacon_processor.lua:937: attempt to index field '?' (a nil value)
stack traceback:
enemyracemanager/lib/attack_group_beacon_processor.lua:937: in function 'pick_spawn_location'
enemyracemanager/lib/attack_group_processor.lua:577: in function 'generate_group'
enemyracemanager/controllers/cron.lua:34: in function '?'
enemyracemanager/lib/cron_processor.lua:22: in function 'process_one_job'
enemyracemanager/lib/cron_processor.lua:155: in function <enemyracemanager/lib/cron_processor.lua:154>

5 days ago

OK!Send error details

ターゲットの優先度を合理化します。 (1.0.2)のMODが回復不能なエラーを発生させました。 MOD作成者にこのエラーを報告してください。

Error while running event advanced_target_priorities::on_gui_opened (ID 102) Index out of range. stack traceback: [C]: in function 'newindex' ...d_target_priorities___/gui/target_priority_attachment.lua:106: in function 'render_section' ...d_target_priorities___/gui/target_priority_attachment.lua:398: in function 'show' __advanced_target_priorities/gui/gui_events.lua:26: in function '?' advanced_target_priorities/gui/gui_events.lua:35: in function 'handler' core/lualib/event_handler.lua:72: in function <core/lualib/event_handler.lua:70>

4 days ago

Hi

May you send me your save as well?

I can fix it. But I want to find out why it's out of bound.

Thanks

4 days ago

I don't know how to transfer my save data.
However, I can share the YouTube video where I encountered an error during the live stream!

URL:https://www.youtube.com/watch?v=SL_xdaPlhNM

4 days ago

Ok that's fine. I'll push the fix some time this week.

Your stream look fun and chaotic! Maybe I'll join your game next time to download the save if my time allows.

3 days ago

1.0.3 should fix the crash.

3 days ago

Thank you very much!

New response