D.A.R.T


Save ammunition by smarter targeting

Content
13 days ago
2.0
1.70K
Factorio: Space Age Icon Space Age Mod
Combat Circuit network

b [fixed] Crash when selecting a radar

17 days ago

Crash when clicking a radar in the D.A.R.T. Fire Control Computer:

The mod D.A.R.T. (1.2.6) caused a non-recoverable error.
Please report this error to the mod author.

Error while running event dart::on_gui_click (ID 1)
dart/scripts/gui/radars.lua:52: attempt to index a nil value
stack traceback:
dart/scripts/gui/radars.lua:52: in function 'getMaxDetectionRange'
dart/scripts/gui/radars.lua:118: in function 'buildGui'
dart/scripts/gui/radars.lua:138: in function 'handler'
dart/scripts/gui/components.lua:328: in function 'wrapper'
flib/gui.lua:147: in function 'handler'
flib/gui.lua:177: in function 'handler'
core/lualib/event_handler.lua:72: in function <core/lualib/event_handler.lua:70>

Meaning I can't ever see my radar coverage, and often have to wing it, or oversaturate the platform defeating the benefit of saving ammo.

17 days ago
(updated 17 days ago)

Thx for reporting.

Unfortunately I am currently not able to reproduce your problem - with my save file it works like a charm - as you can see here:

https://imgur.com/a/E5KAq5W

So I need some assistance by you to narrow the problem.

If you like, you could share your save file.

Otherwise please check in mod settings whether the logging level is set to FINE (see https://imgur.com/a/oq0ArWU)

If not please change and try to reproduce your problem. If the error persists (what I am expecting), please send me a copy of your factorio-current.log.

You can post the links (either to your shared save file or the log file) either here or in the github issue, I've opened for this.

16 days ago

The logging is set to FINE.

I created a new game, just in case my ~250MB save was the problem, but I was able to recreate the crash the moment I got into space in my Test World.

I deleted the log, launched the game, loaded that save, clicked the D.A.R.T. Fire Control Computer, tried to select a radar and experienced a crash. I posted the "factorio-current.log" to the github along with "Export Map Exchange String"

16 days ago

Thx for the additional infos.

I've seen in your factorio-current.log that the stored data for your force are empty - that causes the crash. It's strange how this happened, but I'll try to harden my mod against such odds. I've also seen, that you're using blueprint-sandboxes. Did you use that for the creation of the platform/FCC/turrets?

The Export Map Exchange String is IMO not the same as a save file 😉 - it's suitable to replicate your map, but only in an initial state without any of the actions done by you during your recent game play

16 days ago
(updated 16 days ago)

In the meantime I've figured out a possible workaround for you.

  • start your current save file with that the crash occurs
  • save it under a NEW name and close running session
  • unload mod dart in mod management
  • after reload of the game engine open this new save file (you will see some messages on load that tell you that all dart entities/techs ... have been deleted)
  • save this again (preferred with a new name, but the new name is not mandatory) and close running session
  • reload mod dart
  • after another reload of the game engine open the last save file and check whether factorio-current.log contains these messages (timestamp and number of forces will/may differ)
 118.488 Script @__dart__/migrations/1.2.0.lua:6: migration to 1.2.0 started
 118.488 Script @__dart__/migrations/1.2.0.lua:24: added 1 force(s) to global data
 118.488 Script @__dart__/migrations/1.2.0.lua:32: increased detectionRange to new max for all existing dart-radars
 118.488 Script @__dart__/migrations/1.2.0.lua:34: migration to 1.2.0 finished

If these messages are present all should be fine and after researching DART-tech again and rebuilding the dart entities on your platform the crash no longer should happen.

HTH (until I've build a new version 😉)

13 days ago

Just published 1.2.7 with a fix for that (in case you didn't use the workaround)

12 days ago

Thanks for the update, sorry busy with work. To answer your question about the sandbox, no. In my main save I researched them and was just placing them manually and then trying to use them. In the test world, I have a ship saved that didn't have the darts onboard, and I tried both spawning them in with a cheat chest and unlocking the research and crafting them in an assembler, but it didn't change the behavior.

And sorry for the string, my save file is crazy big. And even the test world was giving me failure to upload errors on github.

The update works great, I can now get away with a single radar on my ship, and it's working perfectly, thanks so much.

11 days ago

Thx for the feedback. Happy to hear that the fix works as desired.

This thread has been locked.