.

User avatar
jordan4ibanez
Member
 
Posts: 1865
Joined: Tue Sep 27, 2011 18:44
GitHub: jordan4ibanez
IRC: jordan4ibanez
In-game: jordan4ibanez

.

by jordan4ibanez » Mon Feb 25, 2013 00:55

.
Last edited by jordan4ibanez on Wed May 01, 2013 01:56, edited 1 time in total.
If you can think it, you can make it.
 

ds-2k
Member
 
Posts: 17
Joined: Sat Jan 26, 2013 05:18

by ds-2k » Mon Feb 25, 2013 04:15

jordan4ibanez wrote:Minetest cannot write to the minetest.conf if it is compiled as server only it seems, or am I doing something wrong?


The server can write the configuration file if a mod calls
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
minetest.setting_save()


This was done this way instead of saving on exit to prevent losing modified settings if the server crashed. See the original pull request for details:
https://github.com/minetest/minetest/pull/391
 

User avatar
jordan4ibanez
Member
 
Posts: 1865
Joined: Tue Sep 27, 2011 18:44
GitHub: jordan4ibanez
IRC: jordan4ibanez
In-game: jordan4ibanez

by jordan4ibanez » Mon Feb 25, 2013 21:46

ds-2k wrote:
jordan4ibanez wrote:Minetest cannot write to the minetest.conf if it is compiled as server only it seems, or am I doing something wrong?


The server can write the configuration file if a mod calls
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
minetest.setting_save()


This was done this way instead of saving on exit to prevent losing modified settings if the server crashed. See the original pull request for details:
https://github.com/minetest/minetest/pull/391

I have mods that call that, but they won't write
If you can think it, you can make it.
 

User avatar
stu
Member
 
Posts: 737
Joined: Sat Feb 02, 2013 02:51
GitHub: stujones11

by stu » Tue Feb 26, 2013 20:39

I have exactly the same issue: minetest.setting_save() is not working when I run minetestserver.
Singleplayer seems to work for other mods though. I thought I'd just missed something or that it was perhaps normal behaviour.

Hopefully someone has the answer.

btw. I am using xubuntu 12.04 & minetest 0.4.4-d1
Last edited by stu on Tue Feb 26, 2013 20:49, edited 1 time in total.
 

prestidigitator
Member
 
Posts: 632
Joined: Thu Feb 21, 2013 23:54

by prestidigitator » Tue Feb 26, 2013 22:37

Hmm. Have you installed from the actual Ubuntu/Debian package? Perhaps Minetest is trying to write to the /usr/share/minetest/... tree instead of saving a modified version under ~/.minetest/..., which WOULD be a problem. No normal user application should be able to write to the /usr tree.
 

User avatar
stu
Member
 
Posts: 737
Joined: Sat Feb 02, 2013 02:51
GitHub: stujones11

by stu » Tue Feb 26, 2013 22:49

prestidigitator wrote:Hmm. Have you installed from the actual Ubuntu/Debian package? Perhaps Minetest is trying to write to the /usr/share/minetest/... tree instead of saving a modified version under ~/.minetest/..., which WOULD be a problem. No normal user application should be able to write to the /usr tree.

Not that for me anyway. The version in question was compiled as 'run in place'. I do have the latest stable version installed in system but I've only ever used it as singleplayer.
 

User avatar
stu
Member
 
Posts: 737
Joined: Sat Feb 02, 2013 02:51
GitHub: stujones11

by stu » Tue Feb 26, 2013 23:37

Out of curiosity I tried it on the system wide intstallation and got same result there.
Makes no difference whether I run it as a regular user or root.
 

prestidigitator
Member
 
Posts: 632
Joined: Thu Feb 21, 2013 23:54

by prestidigitator » Wed Feb 27, 2013 00:28

Huh. Okay. Well, it was just a thought.

By the way, I wouldn't EVER run Minetest as root, especially if you load mods you did not create yourself. Better to temporarily grant full access to /usr/share/minetest to test if that is the problem than to run as root.
 

User avatar
stu
Member
 
Posts: 737
Joined: Sat Feb 02, 2013 02:51
GitHub: stujones11

by stu » Sun Mar 17, 2013 21:32

Never did get to the bottom of this but it appears to fixed (for me anyway) with minetest version 0.4.5
 


Return to Minetest Problems

Who is online

Users browsing this forum: No registered users and 8 guests

cron