-
Notifications
You must be signed in to change notification settings - Fork 6
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
Hello World trouble #71
Comments
Maybe related: luarocks/luarocks#68 |
Only tested with Lua 5.1 and LuaJIT, I guess it would be good to do things in a way that at least basic stuff (mineunit core functionality excluding game engine core) works with later Lua versions. Relevant piece of code, reading mineunit configuration file similar way also happens again later in init.lua. This first conf reader is dirty hack just for luacov excludes configuration: Lines 91 to 104 in 7c60f77
Should probably take a look at alternative ways to read configuration, either something that works with all Lua versions or checking Lua version and selecting conf reader method based on that. |
Btw, I think you can skip this by deleting mineunit.conf. That should skip both mineunit.conf config file readers, no idea if something else will fail with Lua 5.4... |
Basically few options for fix, pick one:
I think first option (work with all Lua versions) would be best if possible without a lot of duplicate code / conditional code based on Lua verison. |
nope, same error after deleting mineunit.conf from demo directory |
Tested a bit and there seems to be other problems with dependencies too and also many other Lua API changes that breaks compatibility. It might be better to simply disallow using anything other than Lua 5.1 or LuaJIT 2.1 because full compatibility cannot be added without removing, rewriting and implementing a lot Lua core functionality, it would probably be possible with Lua debug API but would basically be new Lua API implemented in Lua through monkey patching and for sure not really worth it. Somewhat Fedora specific stuffSome compatibility with different operating systems would still be nice, I've not used fedora a lot myself but they seem to offer Lua 5.1 package. Luarocks works fine with multiple Lua versions but probably would need to build that from sources, did not spot prebuilt fedora packages for other Lua versions (instead it seems like they're just updating used Lua version for luarocks package). More generic, not Fedora specificOne option would be to release prebuilt Docker container, that would also allow bit more efficient automation within isolated execution environment. @SwissalpS what do you think about it? What would be best thing from your PoV? Any other suggestions how it could possibly be handled nicely?
|
patching Lua sounds like a lot of work for not much benifit. a podman podman Edit: the only downside to pods is the memory overhead. Which is one of the reasons I've been trying to work without it in the first place. I often work on rather low end machines :/ But I could spread out the load by installing pod on separate machine. |
Maybe should also add simple instructions for debootstrap / febootstrap + schroot as it is fairly simple and lightweight setup, easier to setup and use compared to actual containers. |
#72 Helped a lot :) BTW: I did not run |
Maybe a install.md containing several variations of step-by-step guides. |
Following the steps in readme.md, I've installed mineunit, changed to my mod dir and have run:
OS: Fedora 34, if that matters.
Edit: there were no error messages on install. I ran it again to make sure.
Edit2: Lua 5.4.3
The text was updated successfully, but these errors were encountered: