Items Network


Digital storage of items with support for logical signals, input/output of items and liquids, distribution of items from the network to assemblers, furnaces, laboratories, and output of results back to the storage; the number of items produced can be controlled through logical signals; the network terminal issues signals for all contents

Content
14 hours ago
2.0
323
Logistics

b This bags

11 days ago
(updated 10 days ago)

Hello,

I encountered the following error while using the item networks MOD (version 1.12.1 BETA) in Factorio version 2.0.77 (build 84539 expansion).

[Issue Summary]
- Factorio version: 2.0.77 (build 84539 expansion)
- item networks MOD version: 1.12.1 (BETA)
- Description: When the player mines a certain entity, the MOD throws an unrecoverable error due to a nil reference.

[Error Message]
Error while running event items-network::on_player_mined_entity (ID 74)
items-network/scripts/lib/events.lua:32: attempt to index local 'handler_data' (a nil value)
stack traceback:
items-network/scripts/lib/events.lua:32: in function 'on_event'
items-network__/scripts/lib/events.lua:15: in function <items-network__/scripts/lib/events.lua:15>

[Suspected Cause]
- The error occurs because the local variable 'handler_data' is nil when the code attempts to index it at line 32 in events.lua.
- This likely means that the event handler does not properly handle cases where 'handler_data' is missing or uninitialized for certain mined entities.

[Steps to Reproduce]
1. Install the item networks MOD.
2. Mine a specific entity related to the network.
3. The error occurs immediately after.

[Environment]
- OS: (please specify your OS)
- Other installed MODs:
factory planner
AAI conntainers & Warehourses
AAI Loaders
AAI signes
AAI vehicles:miner
Accumulator V2
Accumulator Wagon Reborn
Accumulator Walls
Additional Cargo Landing Pads
Additional trains
Advanced Solar High Resolution
Air filtering
Aircraft Realism
Ammo Alerts
Analytical combinators
Angel's Smelting Graphics
Auto Deconstruct
Autofuel - Refill equipment grid fuel automatically
Automatic Station Painter
Automatic Train Painter
Ballistic Missile
Ballistic Missile Booster
Belt Visualizer
Big accumulator
Big Brother 2.0
Big Roboport
Biter Factions NG
Black Module
Blueprint Manipulation Library
Bottleneck Lite
Brick Chest
Chest Auto Sort
Cloning vat
Creative Mod
Cursor Enhancements
DataCpt Utils
Diurnal Dynamics
Early Elevated Rails
Earlyvated Rails
Easy Science
Electric Furnaces
Electric Pole Free Light
Electric Train 2.0 Fix
Elevated pipes
Enable all Feature Flags
Enhanced Walls
Even Distribution
Even More Text Plates 2.0
Factorio Library
Factorio Standard Library 2.0
Factory Search
Far Reach
Fast gate
Flow Control
Fluid Memory Storage
Fluid Must Flow
FNE
Focused gun turret
Free Loader
GUI Library
Handcannon
Hypercell substation
Improved Roboports
Improved Robots
Infinite Resources
InformaTron
Items Network [BETA]
Jetpack
Krastorio 2 Assets
Kryzeth Standard Library
KS Power
Lab Bio-Upgrade
Laser Fence
Laser Walls
Locale Explorer
Logistic Helper
LUIS DAS ARTIMANHAS - Biblioteca Utilitaria
Memory Storage
MFerrari graphics pack 1
MFerrari lib
Minecraft OST
Mini Machines Mod
Mini/Micro Machines Core Mod
Minimal Electric Rails
Mining Drones
Mining Drones - Mining Vehicle (Space Age Update)
Modular Turrets
Modular Turrets are affected by projectile damage repeatable technologies
Module Inserter Extended
Omega Drill
Omega Drill Tweaks
Orbital Vehicle Deployment
P.U.M.P.
Pipe Plus
Pipe Visualizer 2.0
Planets have flow statistics for their cargo pods
Puppy's Jetpack UI
Pyanodons Post-processing
Quality of Life research
Rate Calculator
Repair Turret
Reverse Factory
Robocharger Factorio 2.0
Robot Attrition
RPG System
Shield Projector
ShockTurret3
Short Railgun animation
Simple Configurable Inserters [4]
Simply Greenhouse
Solar Walls
Spidertron Weapon Loadout
Stack Size Enhanced
Stats GUI
Stats GUI - Movement Speed
Supersonic High Speed Train Mod
Teleport Favorites
Text Plates
TFMG Assets
TFMG Platform Docking
TFMG Simulations
TFMG Thermal Library
The Flier - Spitter of the skies
Thicker Power Wires
Train Tracker
Trashcan
Tree Collision
Turret Shields
Tweak It
Updated Construction Drones
Valves
Valves Library
Voidcraft
VortiK's Cannon Turret
Warehousing Mod
Water Poles
WaterExtractor
Waterfill
Wood Circuit recipe
Wood Gasification updated
YAFLA - Yet Another Factorio Library Attempt

[Actions Taken]
- Reinstalled the MOD.
- Restarted Factorio.

It would be helpful if the code could add a nil check for 'handler_data' in the on_player_mined_entity event handler to prevent this error.

Thank you for your attention and support.

Best regards,
By killzoned0313

New response