Win/Linux Issue with settingtypes.txt

Post Reply
User avatar
Deadlock
Member
Posts: 50
Joined: Mon Aug 28, 2017 06:47
In-game: Jimmey

Win/Linux Issue with settingtypes.txt

by Deadlock » Post

I recently got a bug-report for my mod.
There seems to be a problem with the settingtypes.txt on linux:

Code: Select all

"017-12-02 23:12:48: ERROR[Main]: Invalid integer setting in /home/dirk/.minetest/mods/thelowerroad//settingtypes.txt "thelowerroad.sinfactor (The road wobble) int 62 40 10000
"017-12-02 23:12:48: ERROR[Main]: Invalid integer setting in /home/dirk/.minetest/mods/thelowerroad//settingtypes.txt "thelowerroad.sinspread (The spread of the road wobble) int 30 2 40
"017-12-02 23:12:48: ERROR[Main]: Invalid integer setting in /home/dirk/.minetest/mods/thelowerroad//settingtypes.txt "thelowerroad.house_rareness (Roadside-house rareness) int 0 0 11
I can't reproduce that on windows.
So i wonder if the different text-file formats might be the problem.
Can the windows-style CR/LF-pairs cause trouble on linux?

User avatar
Deadlock
Member
Posts: 50
Joined: Mon Aug 28, 2017 06:47
In-game: Jimmey

Re: Win/Linux Issue with settingtypes.txt

by Deadlock » Post

So, with the help of linuxdirk i found out that,
indeed the windows-style CR/LF characters in the settingtypes.txt are causing errors on linux.

So settingtypes.txt should not be in windows text-file format. Not shure what's up with the mac text-file format, it uses a sole CR as EOL character.

The lua-files don't seem to have that limitation, the lua interpreter is probably more robust than the core-engine.

This limitation should probably mentioned in the documentation and wiki.

User avatar
paramat
Developer
Posts: 3700
Joined: Sun Oct 28, 2012 00:05
GitHub: paramat
IRC: paramat
Location: UK

Re: Win/Linux Issue with settingtypes.txt

by paramat » Post

Please could you open an issue at the Github Minetest repository?

User avatar
Deadlock
Member
Posts: 50
Joined: Mon Aug 28, 2017 06:47
In-game: Jimmey

Re: Win/Linux Issue with settingtypes.txt

by Deadlock » Post

shure, will do.

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests