user data directory

rgh
Member
 
Posts: 22
Joined: Fri Oct 07, 2016 13:32

user data directory

by rgh » Sat Oct 08, 2016 14:01

I'm wanting to set up minetest for users of a windows network. The minetest folders would reside on a read-only server share, from which users can invoke minetest.exe.

Problem is, I think minetest expects users to have write permission on the minetest folders and to be able to create a 'user data directory' somewhere within them. I've looked through minetest.conf.example & can't see any way to specify that the user data is to be saved at some other location, say h:\minetest, where the user does have write permission.

Is this possible?
 

User avatar
sfan5
Member
 
Posts: 3636
Joined: Wed Aug 24, 2011 09:44
GitHub: sfan5
IRC: sfan5

Re: user data directory

by sfan5 » Sat Oct 08, 2016 19:34

Generally all Windows builds of Minetest are compiled with RUN_IN_PLACE=1 which means that they expect to save user data in the same folder as the binary. What would be possible is to compile a custom Minetest build with RUN_IN_PLACE=0 and hard-coded paths for user data.
Mods: Mesecons | WorldEdit | Nuke
Minetest builds for Windows (32-bit & 64-bit)
 

rgh
Member
 
Posts: 22
Joined: Fri Oct 07, 2016 13:32

Re: user data directory

by rgh » Sun Oct 09, 2016 07:41

Thanks sfan5.

I'm afraid compiling from the source is probably beyond my ability, I'm not a C programmer.

As with the previous thread, I'm wondering if the game is playable in a school environment. It's all Windows. Students are given a home H drive, where they do have write permission, but not permission to invoke executables.
 

User avatar
Linuxdirk
Member
 
Posts: 497
Joined: Wed Sep 17, 2014 11:21
GitHub: dsohler
In-game: Linuxdirk

Re: user data directory

by Linuxdirk » Sun Oct 09, 2016 10:57

sfan5 wrote:… which means that they expect to save user data in the same folder as the binary.

Holy fuck … who in the right mind wants that?
 

twoelk
Member
 
Posts: 1092
Joined: Fri Apr 19, 2013 16:19

Re: user data directory

by twoelk » Sun Oct 09, 2016 14:03

Linuxdirk wrote:
sfan5 wrote:… which means that they expect to save user data in the same folder as the binary.

Holy fuck … who in the right mind wants that?


anybody who runs minetest from a portable device

but being able to specify the location of more folders or files is something I have wished for for a long time.
 

red-001
Member
 
Posts: 126
Joined: Tue Jan 26, 2016 20:15
GitHub: red-001
IRC: red-001

Re: user data directory

by red-001 » Mon Oct 10, 2016 07:10

Could you use a symbolic link?
 

User avatar
addi
Member
 
Posts: 605
Joined: Thu Sep 20, 2012 03:16

Re: user data directory

by addi » Mon Oct 10, 2016 08:16

Or you could simply use my installer. viewtopic.php?f=42&t=14109
The minetest folder is then C:\Users\<username>\minetest\ where you can store mods, games texturepacks and config.

I wish that minetest would make use of a correct installation in future versions. The current official installer is just a self extracting archive.
 

User avatar
srifqi
Member
 
Posts: 508
Joined: Sat Jun 28, 2014 04:31
GitHub: srifqi
IRC: srifqi
In-game: srifqi

Re: user data directory

by srifqi » Fri Oct 14, 2016 03:39

sfan5 wrote:Generally all Windows builds of Minetest are compiled with RUN_IN_PLACE=1 which means that they expect to save user data in the same folder as the binary.

Are you sure? I think Minetest save user data and world data in separate folder. Like normal compile.
I'm from Indonesia! Saya dari Indonesia!
Terjemahkan Minetest!
Mods by me. Modifikasi oleh saya.

Pronounce my nick as in: es-rifqi (IPA: /es rifˈki/)
 

User avatar
Napiophelios
Member
 
Posts: 752
Joined: Mon Jul 07, 2014 01:14
GitHub: Napiophelios
IRC: Nappi
In-game: Nappi

Re: user data directory

by Napiophelios » Fri Oct 14, 2016 11:27

I believe he is referring to the root folder.
 


Return to Minetest General

Who is online

Users browsing this forum: Google [Bot] and 14 guests

cron