Giter VIP home page Giter VIP logo

Comments (6)

Danielv123 avatar Danielv123 commented on September 23, 2024

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.

anoutsider avatar anoutsider commented on September 23, 2024

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.

Zegnat avatar Zegnat commented on September 23, 2024

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.

judos avatar judos commented on September 23, 2024

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.

anoutsider avatar anoutsider commented on September 23, 2024

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.

anoutsider avatar anoutsider commented on September 23, 2024

Since there has been no updates on this, i'm assuming it's fixed.

Closing.

from advanced-logistics-system.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.