TheGhostZz wrote: ↑Sun Feb 02, 2025 18:54
From my understanding the major problem would be the run in place variable? so where and how do i change it? also i tried downloading nsis but i am not an experienced programmer, i don't have any idea of where to start to be honest nor i know how to compile stuff on my own (yet)...
Well there we have the crux of the issue: RUN_IN_PLACE is a compile-time variable that you choose with CMake when you build from source, so if you're just trying to repackage the official Luanti zip file into an installer, it's not going to work, unless you do something bizarre like modifying the .exe file, which you shouldn't.
TheGhostZz wrote: ↑Sun Feb 02, 2025 18:54
there is a lot of room for improvement for me, i know how to use powershell scripts and i thought of using them to make the game update itself in a semi-automatic manner in the future, however i might not do that, i will see if i can improve.
You should benefit greatly by downloading the source via git from
luanti-org/luanti, (or
here is a direct download for 5.10). Then navigate to
doc\compiling and start reading the documentation on how to compile on Windows. It's been a while since I was doing that, but CMake has a GUI for changing project variables also. That's where you set RUN_IN_PLACE to False.
You could do version checking. Actually, the engine has a built-in check against
https://www.minetest.net/release_info.json - see the setting "Update information URL" under Client and Server. So you don't need to do the checking per se, just.. you could modify it a bit so that instead of offering to download from luanti.org it goes to your server/GitHub repo/this thread. The code lives in
\builtin - that can be modified without recompiling, but I recommend you just use a git workflow where you rebase on top of stable-5 every time that moves anyway.
TheGhostZz wrote: ↑Sun Feb 02, 2025 18:54
Also minetest the game was left installed
on purpose
It's fine to leave it in but just make it explicit that you're doing that which is different from the usual policy of Luanti to not include a game any more - the idea is to encourage players to choose a game they'll like, not stumble when they launch MTG and think "wow this is like Minecraft alpha, this Minetest/Luanti thing sucks".