✔ Todo List - Continued deprecated


✔ This mod adds a todo list to the single- and multiplayer game to allow players to synchronize their work. This is the Factorio 2.0 version of the mod.

Utilities
a month ago
2.0
7.09K

b Crash when opening list (Working on fix 20.0.3)

a month ago

The mod ✔ Todo List - Continued (20.0.2) caused a non-recoverable error.
Please report this error to the mod author.

Error while running event Todo-List-Continued::on_gui_click (ID 1)
Todo-List-Continued/todo/features/export_task.lua:6: attempt to index global 'global' (a nil value)
stack traceback:
Todo-List-Continued/todo/features/export_task.lua:6: in function 'update_export_dialog_button_state'
Todo-List-Continued/todo/ui/main_frame.lua:57: in function 'create_maximized_frame'
Todo-List-Continued/todo/features/main_ui.lua:69: in function 'maximize_main_frame'
Todo-List-Continued/todo/features/main_ui.lua:58: in function 'on_maximize_button_click'
Todo-List-Continued/todo/todo.lua:94: in function 'on_gui_click'
Todo-List-Continued/control.lua:20: in function <Todo-List-Continued/control.lua:19>

a month ago

Can you give more context? What version of factorio are you running? Is this single player, multiplayer? Dedicated server?

Can you give the steps to recreate the issue? Is it simply of click of the taskbar icon or more involved?

I just updated to the stable 2.0.9 in single player and multiplayer and the icon seems to be working.

a month ago

Hi Mattias,

I am encountering the same error. It happens as soon as you click the To Do list icon in the upper left, and also if you try and add a task using the hotbar Add Task (the error occurs after you enter the task and hit the Add button). In my case, I had died and reloaded a save that had fewer todo list items. Could this be a serialization issue with the saves somehow? Not sure how you're doing the data store.

a month ago

Here's the stack for the add button. Both bugs appeared at the exact same time, so I'm guessing it's the same root cause.

The mod ✔ Todo List - Continued (20.0.2) caused a non-recoverable error.
Please report this error to the mod author.

Error while running event Todo-List-Continued::on_gui_click (ID 1)
Todo-List-Continued/todo/features/add_task.lua:58: attempt to index global 'global' (a nil value)
stack traceback:
Todo-List-Continued/todo/features/add_task.lua:58: in function 'next_task_id'
Todo-List-Continued/todo/features/add_task.lua:48: in function 'assemble_task'
Todo-List-Continued/todo/features/add_task.lua:14: in function 'on_save_new_task_click'
Todo-List-Continued/todo/todo.lua:100: in function 'on_gui_click'
Todo-List-Continued/control.lua:20: in function <Todo-List-Continued/control.lua:19>

a month ago
(updated a month ago)

It looks like 2.0 renamed 'global' to 'storage'. How did this ever work? Github is rate limiting me, so I can't see if you were doing some magic to make 'global' exist again. Apologies, it has been years since I coded Lua so I may be off here.

https://lua-api.factorio.com/latest/auxiliary/storage.html

a month ago

It looks like 2.0 renamed 'global' to 'storage'. How did this ever work? Github is rate limiting me, so I can't see if you were doing some magic to make 'global' exist again. Apologies, it has been years since I coded Lua so I may be off here.

https://lua-api.factorio.com/latest/auxiliary/storage.html

Interesting, i had not seen that changelog. That could certainly explain the inconsistent behavior with "global" being nil.

As for "magic", nothing out of the ordinary then what was done in 1.1 and earlier. My guess is Factorio was treating Global calls as a normal script scoped variable instead of being actual global scope and serialized.

This will require all of the calls to Global to be updated to Storage. Presuming the behavior is exactly the same and its just a rename. Kind of a silly thing to do to modders so far in the game's lifecycle...

I'll go through the code and make the changes. I suggest not using the mod in a Dedicated server until then.

a month ago

Yeah, I was just complaining to my brother about the hubris of API developers. This didn't need to change, just to cleanup a name, and at the very least they could of aliased it. Imagine how many mods broke? I didn't do too much digging into the why or what changed. Fingers crossed its just a strict rename. The question I'm asking is how it worked for a few hours, then broke? That call is pretty liberally used in the codebase...

FWIW, I'm seeing this on single player.

a month ago

And it's working again today with the new patch for Factorio. Not sure if that's intermittent and it'll break later. It ate all my serialized data, though. Boo.

a month ago

https://gist.github.com/tburrows13/687f7dc86da1840624575ba437e86cfa -> this is a nice list of changes for mod authors.

a month ago

+1 on the crash. I am on version 2.0.10
Crash happened when I tried to add a task (clicked on the GUI in top left) while in the map view. Reproduced the crash with the same situation.

The mod ✔ Todo List - Continued (20.0.2) caused a non-recoverable error.
Please report this error to the mod author.

Error while running event Todo-List-Continued::on_gui_click (ID 1)
Todo-List-Continued/todo/features/export_task.lua:6: attempt to index global 'global' (a nil value)
stack traceback:
Todo-List-Continued/todo/features/export_task.lua:6: in function 'update_export_dialog_button_state'
Todo-List-Continued/todo/ui/main_frame.lua:57: in function 'create_maximized_frame'
Todo-List-Continued/todo/features/main_ui.lua:69: in function 'maximize_main_frame'
Todo-List-Continued/todo/features/main_ui.lua:58: in function 'on_maximize_button_click'
Todo-List-Continued/todo/todo.lua:94: in function 'on_gui_click'
Todo-List-Continued/control.lua:20: in function <Todo-List-Continued/control.lua:19>

a month ago

Scratch that. It is now crashing from regular view and wiped my todos from before the crash.

The mod ✔ Todo List - Continued (20.0.2) caused a non-recoverable error.
Please report this error to the mod author.

Error while running event Todo-List-Continued::on_gui_click (ID 1)
Todo-List-Continued/todo/features/export_task.lua:6: attempt to index global 'global' (a nil value)
stack traceback:
Todo-List-Continued/todo/features/export_task.lua:6: in function 'update_export_dialog_button_state'
Todo-List-Continued/todo/ui/main_frame.lua:57: in function 'create_maximized_frame'
Todo-List-Continued/todo/features/main_ui.lua:69: in function 'maximize_main_frame'
Todo-List-Continued/todo/features/main_ui.lua:58: in function 'on_maximize_button_click'
Todo-List-Continued/todo/todo.lua:94: in function 'on_gui_click'
Todo-List-Continued/control.lua:20: in function <Todo-List-Continued/control.lua:19>

a month ago

I am also experiencing this crash. Clicking the button in the upper left of the screen is what causes the crash. This crash did not occur until after I loaded a game. The items in the list had not changed between the save and load events. I am running Factorio version 2.0.10.

Error while running event Todo-List-Continued::on_gui_click (ID 1)
Todo-List-Continued/todo/features/export_task.lua:6: attempt to index global 'global' (a nil value)
stack traceback:
Todo-List-Continued/todo/features/export_task.lua:6: in function 'update_export_dialog_button_state'
Todo-List-Continued/todo/ui/main_frame.lua:57: in function 'create_maximized_frame'
Todo-List-Continued/todo/features/main_ui.lua:69: in function 'maximize_main_frame'
Todo-List-Continued/todo/features/main_ui.lua:58: in function 'on_maximize_button_click'
Todo-List-Continued/todo/todo.lua:94: in function 'on_gui_click'
Todo-List-Continued/control.lua:20: in function <Todo-List-Continued/control.lua:19>

a month ago

Factorio 2.0.10 (build 79578)
The mod ✔ Todo List - Continued (20.0.2) caused a non-recoverable error.
Please report this error to the mod author.

Error while running event Todo-List-Continued::on_gui_click (ID 1)
Todo-List-Continued/todo/features/export_task.lua:6: attempt to index global 'global' (a nil value)
stack traceback:
Todo-List-Continued/todo/features/export_task.lua:6: in function 'update_export_dialog_button_state'
Todo-List-Continued/todo/ui/main_frame.lua:57: in function 'create_maximized_frame'
Todo-List-Continued/todo/features/main_ui.lua:69: in function 'maximize_main_frame'
Todo-List-Continued/todo/features/main_ui.lua:58: in function 'on_maximize_button_click'
Todo-List-Continued/todo/todo.lua:94: in function 'on_gui_click'
Todo-List-Continued/control.lua:20: in function <Todo-List-Continued/control.lua:19>

a month ago

Hello, i too have this Error. try to add new task. The error also appeared after loading.
Factorio 2.0.11 (build 79682)

i use this mods:
https://mods.factorio.com/mod/informatron
https://mods.factorio.com/mod/Todo-List-Continued
https://mods.factorio.com/mod/aai-signal-transmission
https://mods.factorio.com/mod/aai-containers
https://mods.factorio.com/mod/aai-industry
https://mods.factorio.com/mod/AutoDeconstruct
https://mods.factorio.com/mod/belt-visualizer
https://mods.factorio.com/mod/blueprint-sandboxes
https://mods.factorio.com/mod/flib
https://mods.factorio.com/mod/FactorySearch
https://mods.factorio.com/mod/Fill4Me
https://mods.factorio.com/mod/Fluid-level-indicator
https://mods.factorio.com/mod/helmod
https://mods.factorio.com/mod/jetpack
https://mods.factorio.com/mod/Milestones
https://mods.factorio.com/mod/RateCalculator
https://mods.factorio.com/mod/robot_attrition
https://mods.factorio.com/mod/shield-projector
https://mods.factorio.com/mod/StatsGui
https://mods.factorio.com/mod/textplates
https://mods.factorio.com/mod/TreeSaplings-Redux-PreOiled

Мод ✔ Todo List - Continued (20.0.2) вызвал неустранимую ошибку.7
Пожалуйста, сообщите об этой ошибке автору мода.

Error while running event Todo-List-Continued::on_gui_click (ID 1)
Todo-List-Continued/todo/features/add_task.lua:58: attempt to index global 'global' (a nil value)
stack traceback:
Todo-List-Continued/todo/features/add_task.lua:58: in function 'next_task_id'
Todo-List-Continued/todo/features/add_task.lua:48: in function 'assemble_task'
Todo-List-Continued/todo/features/add_task.lua:14: in function 'on_save_new_task_click'
Todo-List-Continued/todo/todo.lua:100: in function 'on_gui_click'
Todo-List-Continued/control.lua:20: in function <Todo-List-Continued/control.lua:19>

New response