Comments (6)
Alternative possible solution:
if this.chest exists {
this.removeFromTable()
this.destroy()
} else {
this.destroy
}
But thats just my five cents. Long time since I have done any lua.
from advanced-logistics-system.
Sorry i completely missed this issue, to me it doesn't seem to be an issue with missing chest types, the global data itself seems to be missing, could be an issue with the game not running the init event in the campaign.
is the mod itself working? because judging by the error it shouldn't be showing anything at all, anyway i will have to run some test on the campaign myself and will let you know if i come up with a fix.
from advanced-logistics-system.
is the mod itself working?
I haven’t been using it currently, but everything seemed to work perfectly back then. It is just pre-placed chests that seemed to fail.
from advanced-logistics-system.
Hi anoutsider,
I found also a crash which probably is the same issue as this one. As this issue is not tagged oon which version it occured i'm not totally sure.
This happened while shooting an enemy chest:
Error while running the event handler: __advanced-logistics-system__/control.lua:447: attempt to index local 'chests' (a nil value)
The problem is that the array global.normalChests[force] is only initialized when a player is created. However this is not the case for several other cases e.g. tutorial, spawning in creatively etc.
You can fix this easily by adding checks like so:
local chests = global.normalChests[force]
if chests then
...
end
from advanced-logistics-system.
Hi judos,
I finally got to test the mod in scenario/campaign modes, Version 0.2.11 should fix these crash issues.. ideally i'd have worked on including pre-populated chests but they are not assigned to the player force, so it'd require special coding and i felt it wasn't really required after playing a bit with the scenarios.
Please let me know if you guys are still having issues with this, Thanks and sorry for the delays.
from advanced-logistics-system.
Since there has been no updates on this, i'm assuming it's fixed.
Closing.
from advanced-logistics-system.
Related Issues (20)
- Module crashes with "attempt to index field '?'" error HOT 1
- global.hasSystem[index] is nil from old version HOT 2
- Error on_init HOT 1
- ALS is not working with Factorissimo mod
- Factorio 0.14? HOT 1
- bind close to e HOT 2
- Error selecting normal items HOT 1
- Mod causes high load times in 0.14.9
- Locate feature may not return to player HOT 7
- Effects not showing HOT 2
- Item count possible underflow
- bug when searching for '['
- Please update to work with Factorio 0.15.x
- GUI won't open
- search causes game crash on some characters HOT 1
- on_gui_click (ID 1) __advanced-logistics-system__/gui/network.lua:51: attempt to compare two nil values HOT 1
- Crash of module when using "All button" HOT 2
- Question on usage with alert
- Update to .16? HOT 13
- Mod crashes when a roboport is being deconstructed HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from advanced-logistics-system.