Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

String concatenation with nil #4

Closed
DaleStan opened this issue Nov 6, 2024 · 1 comment
Closed

String concatenation with nil #4

DaleStan opened this issue Nov 6, 2024 · 1 comment

Comments

@DaleStan
Copy link

DaleStan commented Nov 6, 2024

When attempting to load Kux-BlueprintExtensions in Yafc, the following error happens

(Kux-CoreLib, lib/ModInfo.lua):136: attempt to concatenate field 'version' (a nil value)
stack traceback:
[C]: in function '__concat'
(Kux-CoreLib, lib/ModInfo.lua):136: in function 'update'
(Kux-CoreLib, lib/ModInfo.lua):145: in main chunk
[C]: in function 'require'
(Kux-CoreLib, lib/init.lua):179: in function '__index'
(Kux-BlueprintExtensions, mod.lua):4: in main chunk
[C]: in function 'require'
(Kux-BlueprintExtensions, data.lua):1: in main chunk

As far as I can tell, the ability to concatenate with nil is something the Factorio devs invented; it doesn't appear to be supported by official versions of Lua. I have also been unable to figure out how to convince Yafc's version of Lua to support that feature. Can I talk you into updating Kux-CoreLib and/or Kux-BlueprintExtensions so that it no longer attempts a nil concatenation, please?

@DaleStan
Copy link
Author

It turns out this was our fault after all (shpaass/yafc-ce#353). My apologies for the incorrect report.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant