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

Portable #17

Open
shinra358 opened this issue Jun 26, 2024 · 8 comments
Open

Portable #17

shinra358 opened this issue Jun 26, 2024 · 8 comments

Comments

@shinra358
Copy link

Requesting to allow the ability to load scripts from inside the game folder instead of my documents

@HydroSulphide
Copy link

Should be possible by specifying the path of your script folder. Just put the folder inside the game directory and define the path in your LuaBackend.toml with "relative = false". Should work like this. You can find an example in the last part of the install documentation.

@shinra358
Copy link
Author

im confused at the game_docs part. what do i change that to since it seems like that's the name of the save folder in my documents?

@HydroSulphide
Copy link

HydroSulphide commented Jun 26, 2024

I'm not sure but I think game_docs is only used as a base for a relative path to your scripts folder. By setting relative = false you can put an absolute path to your scripts folder ignoring the game_docs. Maybe it's important for something else, but I just point it to the save file path, but use an absolute address for my script files folder. I think this should be portable by putting your scripts folder inside the directory, where your game files are. I did not notice that anything lua related where actually saved or used inside the game_docs folder, but maybe someone else knows about special cases, where some mods or luabackend itself needs something from there.

@shinra358
Copy link
Author

so if i omit game_docs altogether, what happens?

@HydroSulphide
Copy link

I didn't test it, but you could just do it. Delete the lines in the LuaBackend.toml and see if you can still launch the game, open the console by pressing F2 and your mods are still working. The best test would be to check the portability by trying if everything works on another system. If this is what you want to achieve with the portability. Maybe you could describe your actual goal, because in my opinion it is portable enough, because I would just install the game on another system and copy my LuaBackend files and scripts folder.

@cahudson94
Copy link

I would agree to having the question of what "more portable" means here, you can already put the script files where ever you want them you just have to configure the .toml file correctly (ie what has been described here with setting an absolute path).

@shinra358
Copy link
Author

I would agree to having the question of what "more portable" means here, you can already put the script files where ever you want them you just have to configure the .toml file correctly (ie what has been described here with setting an absolute path).

HydroSulphide has already answered the question bro. And all the details of the confusion of how it works are already described.

@cahudson94
Copy link

I guess it is fair that the details are a bit sparse, on this front. The game_docs variable is used for relative path discovery as a prefix to scripts - path variable. If relative is set to false this ignores using the game_docs variable for checking the path variable.

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

3 participants