Gizmos Car Keys (improved)

by Pi-C

Tired of running to your vehicle? Then let it come to you! This mod is based on "Gizmos Car Keys" by aodgizmo. It works with most modded car and spider-vehicle prototypes -- not just vanilla cars.

Content
2 months ago
0.17 - 2.0
15.2K
Transportation

b [Fixed] Non-recoverable errors: `disable_optional_events` is a nil value.

1 year, 21 days ago

After updating GCKI to the newest version, while trying to enter Blueprint Sandboxes' sandbox I got this error:

So to figure out what caused it I got a clean Factorio install, with just Blueprint Sandboxes and Gizmos Car Keys (Improved). After trying to start a new Freeplay game, I immediately got this error:

1 year, 21 days ago

I think it was just a simple mistake of not changing the called function name. If I change GCKI_custom_input.helper.disable_optional_events(events) to GCKI_custom_input.helper.disable_optional_custom_inputs(events) it seems to be working alright. :)

1 year, 19 days ago

Thanks for the report! Unfortunately, the images from your first posting aren't loaded, so I'm not sure where exactly the error occurs. (By the way, did you know that you can select + copy the text from the error message window? If you do that, paste the copied text into the textfield, and indent each line with 4 spaces, this will add the error message text formatted as it is, without interpreting special characters as Markdown syntax.)

I'm on vacation right now, so I won't be able to fix this before next weekend (probably some time after that). Could you post file and line number where you made the change, so that other people can fix this themselves until I can release a fix?

1 year, 19 days ago
(updated 1 year, 19 days ago)

Huh, didn't know the copying thing. That will certainly be useful, thanks! Don't know why the images don't load for you, are you reading it from a mobile device? Maybe the embeds are broken on either the mod portal or from Imgur's side. Here they are in the link form, maybe it will be easier that way: https://i.imgur.com/wax6wlU.png https://i.imgur.com/QYsJrfH.png .

And if anyone else gets this error and can't see the images - change the line 698 in /scripts/event_handlers.lua from
GCKI_custom_input.helper.disable_optional_events(events)
to
GCKI_custom_input.helper.disable_optional_custom_inputs(events).

Edit
Sorry for the double post.

1 year, 19 days ago

Huh, didn't know the copying thing. That will certainly be useful, thanks! Don't know why the images don't load for you, are you reading it from a mobile device? Maybe the embeds are broken on either the mod portal or from Imgur's side. Here they are in the link form, maybe it will be easier that way: https://i.imgur.com/wax6wlU.png https://i.imgur.com/QYsJrfH.png .

And if anyone else gets this error and can't see the images - change the line 698 in /scripts/event_handlers.lua from
GCKI_custom_input.helper.disable_optional_events(events)
to
GCKI_custom_input.helper.disable_optional_custom_inputs(events).

1 year, 19 days ago

Huh, didn't know the copying thing. That will certainly be useful, thanks! Don't know why the images don't load for you, are you reading it from a mobile device? Maybe the embeds are broken on either the mod portal or from Imgur's side. Here they are in the link form, maybe it will be easier that way: https://i.imgur.com/wax6wlU.png https://i.imgur.com/QYsJrfH.png .

And if anyone else gets this error and can't see the images - change the line 698 in /scripts/event_handlers.lua from
GCKI_custom_input.helper.disable_optional_events(events)
to
GCKI_custom_input.helper.disable_optional_custom_inputs(events).

Edit
Sorry for the double post.

Thanks a lot! Seems to work.

1 year, 16 days ago
(updated 1 year, 16 days ago)

Huh, didn't know the copying thing. That will certainly be useful, thanks! Don't know why the images don't load for you, are you reading it from a mobile device? Maybe the embeds are broken on either the mod portal or from Imgur's side. Here they are in the link form, maybe it will be easier that way: https://i.imgur.com/wax6wlU.png https://i.imgur.com/QYsJrfH.png .

And if anyone else gets this error and can't see the images - change the line 698 in /scripts/event_handlers.lua from
GCKI_custom_input.helper.disable_optional_events(events)
to
GCKI_custom_input.helper.disable_optional_custom_inputs(events).

Also had this issue, fix also works for me. Thank you!

1 year, 15 days ago

@Pi-C am also having this problem, if you wouldn't mind taking a look. I'll have to try the fix, or revert to an earlier version of you mod. A recent change has broken something.

1 year, 15 days ago

Worked for me.

Thank you.

1 year, 13 days ago

@LCStark: Thanks for posting the fix! I've found similar bugs at some other places -- let's hope that I didn't miss any. Anyways, try version 1.1.16, please!

1 year, 13 days ago

@Pi-C After a bit over an hour, I didn't see any issues, so I'd say that fixed it! Thanks! :)

1 year, 13 days ago

You're welcome! :-)

New response