Page 1 of 1

why a mod that works on windows, dosent work on linux

PostPosted: Mon Mar 21, 2016 22:23
by davidthecreator
i updated my mod, and im using windows, the mod worked for me, but for some other guy who uses linux it didnt, but the older version of my mod did, so WTF?

Re: why a mod that works on windows, dosent work on linux

PostPosted: Mon Mar 21, 2016 22:34
by Napiophelios
I am no expert but I would think there is a little more to it than that
maybe you can give some actual details as to what the situation is.
Its this kind of problem that requires one of those debug thingies everyone talks about

Re: why a mod that works on windows, dosent work on linux

PostPosted: Mon Mar 21, 2016 22:37
by rubenwardy
If you're interacting with files at all, such as dofile()-ing scripts or using textures, make sure the case is correct.

On Unix-based operating systems, FILE.txt is a different file to file.txt and FiLe.TxT

Re: why a mod that works on windows, dosent work on linux

PostPosted: Mon Mar 21, 2016 22:39
by davidthecreator
thats what linux user gets:

21:57:02: WARNING: Undeclared global variable "default" accessed at ...elesight/minetest/bin/../mods/xtraores/xtraores/init.lua:47
2016-03-21 21:57:02: ERROR[main]: ========== ERROR FROM LUA ===========
2016-03-21 21:57:02: ERROR[main]: Failed to load and run script from
2016-03-21 21:57:02: ERROR[main]: /home/telesight/minetest/bin/../mods/xtraores/xtraores/init.lua:
2016-03-21 21:57:02: ERROR[main]: ...elesight/minetest/bin/../mods/xtraores/xtraores/init.lua:47: attempt to index global 'default' (a nil value)
2016-03-21 21:57:02: ERROR[main]: stack traceback:
2016-03-21 21:57:02: ERROR[main]: ...elesight/minetest/bin/../mods/xtraores/xtraores/init.lua:47: in main chunk
2016-03-21 21:57:02: ERROR[main]: ======= END OF ERROR FROM LUA ========
2016-03-21 21:57:02: ERROR[main]: Server: Failed to load and run /home/telesight/minetest/bin/../mods/xtraores/xtraores/init.lua
2016-03-21 21:57:02: ERROR[main]: ERROR: An unhandled exception occurred: ModError: Failed to load and run /home/telesight/minetest/bin/../mods/xtraores/xtraores/init.lua
2016-03-21 21:57:02: ERROR[main]: Error from Lua:
2016-03-21 21:57:02: ERROR[main]: ...elesight/minetest/bin/../mods/xtraores/xtraores/init.lua:47: attempt to index global 'default' (a nil value)
2016-03-21 21:57:02: ERROR[main]: stack traceback:
2016-03-21 21:57:02: ERROR[main]: ...elesight/minetest/bin/../mods/xtraores/xtraores/init.lua:47: in main chunk

but the mod works perfectly to me, and its older version used to work to the linux user too!
[works on other windows devices too]

Re: why a mod that works on windows, dosent work on linux

PostPosted: Mon Mar 21, 2016 22:46
by rubenwardy
did you depend on default?

Re: why a mod that works on windows, dosent work on linux

PostPosted: Mon Mar 21, 2016 22:49
by davidthecreator
yes, on every mod which stuff that mod uses.

Re: why a mod that works on windows, dosent work on linux

PostPosted: Mon Mar 21, 2016 22:54
by rubenwardy
on the xtraores/xtraores mod though?
Is it meant to be in two folders? (mods/xtraores/xtraores/init.lua)
What's around the line it mentions?

Re: why a mod that works on windows, dosent work on linux

PostPosted: Mon Mar 21, 2016 22:58
by davidthecreator
its a modpack, should i put depends in the modpack or the main mod itself

(its still weird that a mod that works on windows, dosent work on linux, like whats the big diffrence?)

Re: why a mod that works on windows, dosent work on linux

PostPosted: Mon Mar 21, 2016 23:01
by rubenwardy
The depends should be in the mod, not the modpack.

If you leave out a dependency, it is still possible that the mod will work - it depends on which mods get loaded first. Maybe default just happened to be loaded before in Windows, but when going to Linux it loads afterwards - because of the different file system.

Re: why a mod that works on windows, dosent work on linux

PostPosted: Mon Mar 21, 2016 23:03
by Napiophelios
oops sorry wrong game;this is what I get with the latest minetest game
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
2016-03-21 19:07:05: WARNING[Main]: NodeDefManager: Ignoring CONTENT_IGNORE redefinition
2016-03-21 19:07:06: WARNING[Main]: Field "height_min": Deprecated: new name is "y_min".
2016-03-21 19:07:06: WARNING[Main]: Field "height_max": Deprecated: new name is "y_max".
2016-03-21 19:07:06: WARNING[Main]: xtraores registered door "xtraores:door_rainbow" using deprecated API method "doors.register_door()" but did not provide the "tiles" parameter. A fallback tiledef will be used instead.
2016-03-21 19:07:06: WARNING[Main]: Field "height_min": Deprecated: new name is "y_min".
2016-03-21 19:07:06: WARNING[Main]: Field "height_max": Deprecated: new name is "y_max".
2016-03-21 19:07:06: WARNING[Main]: Field "height_min": Deprecated: new name is "y_min".
2016-03-21 19:07:06: WARNING[Main]: Field "height_max": Deprecated: new name is "y_max".
2016-03-21 19:07:06: WARNING[Main]: Field "height_min": Deprecated: new name is "y_min".
2016-03-21 19:07:06: WARNING[Main]: Field "height_max": Deprecated: new name is "y_max".
2016-03-21 19:07:06: WARNING[Main]: Field "height_min": Deprecated: new name is "y_min".
2016-03-21 19:07:06: WARNING[Main]: Field "height_max": Deprecated: new name is "y_max".
2016-03-21 19:07:06: WARNING[Main]: Field "height_min": Deprecated: new name is "y_min".
2016-03-21 19:07:06: WARNING[Main]: Field "height_max": Deprecated: new name is "y_max".
2016-03-21 19:07:06: WARNING[Main]: Field "height_min": Deprecated: new name is "y_min".
2016-03-21 19:07:06: WARNING[Main]: Field "height_max": Deprecated: new name is "y_max".
2016-03-21 19:07:06: WARNING[Main]: Field "height_min": Deprecated: new name is "y_min".
2016-03-21 19:07:06: WARNING[Main]: Field "height_max": Deprecated: new name is "y_max".
2016-03-21 19:07:06: WARNING[Main]: Field "height_min": Deprecated: new name is "y_min".
2016-03-21 19:07:06: WARNING[Main]: Field "height_max": Deprecated: new name is "y_max".
2016-03-21 19:07:06: WARNING[Main]: Field "height_min": Deprecated: new name is "y_min".
2016-03-21 19:07:06: WARNING[Main]: Field "height_max": Deprecated: new name is "y_max".
2016-03-21 19:07:06: WARNING[Main]: Field "height_min": Deprecated: new name is "y_min".
2016-03-21 19:07:06: WARNING[Main]: Field "height_max": Deprecated: new name is "y_max".
2016-03-21 19:07:06: WARNING[Main]: Field "height_min": Deprecated: new name is "y_min".
2016-03-21 19:07:06: WARNING[Main]: Field "height_max": Deprecated: new name is "y_max".
2016-03-21 19:07:06: WARNING[Main]: Field "height_min": Deprecated: new name is "y_min".
2016-03-21 19:07:06: WARNING[Main]: Field "height_max": Deprecated: new name is "y_max".
2016-03-21 19:07:06: WARNING[Main]: Field "height_min": Deprecated: new name is "y_min".
2016-03-21 19:07:06: WARNING[Main]: Field "height_max": Deprecated: new name is "y_max".


then it just crashes....

Re: why a mod that works on windows, dosent work on linux

PostPosted: Mon Mar 21, 2016 23:08
by rubenwardy
Is the linux user using minimal or Minetest Game?

Re: why a mod that works on windows, dosent work on linux

PostPosted: Mon Mar 21, 2016 23:10
by davidthecreator
mt_game

Re: why a mod that works on windows, dosent work on linux

PostPosted: Mon Mar 21, 2016 23:12
by davidthecreator
are you using linux too?

Napiophelios wrote:oops sorry wrong game;this is what I get with the latest minetest game
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
2016-03-21 19:07:05: WARNING[Main]: NodeDefManager: Ignoring CONTENT_IGNORE redefinition
2016-03-21 19:07:06: WARNING[Main]: Field "height_min": Deprecated: new name is "y_min".
2016-03-21 19:07:06: WARNING[Main]: Field "height_max": Deprecated: new name is "y_max".
2016-03-21 19:07:06: WARNING[Main]: xtraores registered door "xtraores:door_rainbow" using deprecated API method "doors.register_door()" but did not provide the "tiles" parameter. A fallback tiledef will be used instead.
2016-03-21 19:07:06: WARNING[Main]: Field "height_min": Deprecated: new name is "y_min".
2016-03-21 19:07:06: WARNING[Main]: Field "height_max": Deprecated: new name is "y_max".
2016-03-21 19:07:06: WARNING[Main]: Field "height_min": Deprecated: new name is "y_min".
2016-03-21 19:07:06: WARNING[Main]: Field "height_max": Deprecated: new name is "y_max".
2016-03-21 19:07:06: WARNING[Main]: Field "height_min": Deprecated: new name is "y_min".
2016-03-21 19:07:06: WARNING[Main]: Field "height_max": Deprecated: new name is "y_max".
2016-03-21 19:07:06: WARNING[Main]: Field "height_min": Deprecated: new name is "y_min".
2016-03-21 19:07:06: WARNING[Main]: Field "height_max": Deprecated: new name is "y_max".
2016-03-21 19:07:06: WARNING[Main]: Field "height_min": Deprecated: new name is "y_min".
2016-03-21 19:07:06: WARNING[Main]: Field "height_max": Deprecated: new name is "y_max".
2016-03-21 19:07:06: WARNING[Main]: Field "height_min": Deprecated: new name is "y_min".
2016-03-21 19:07:06: WARNING[Main]: Field "height_max": Deprecated: new name is "y_max".
2016-03-21 19:07:06: WARNING[Main]: Field "height_min": Deprecated: new name is "y_min".
2016-03-21 19:07:06: WARNING[Main]: Field "height_max": Deprecated: new name is "y_max".
2016-03-21 19:07:06: WARNING[Main]: Field "height_min": Deprecated: new name is "y_min".
2016-03-21 19:07:06: WARNING[Main]: Field "height_max": Deprecated: new name is "y_max".
2016-03-21 19:07:06: WARNING[Main]: Field "height_min": Deprecated: new name is "y_min".
2016-03-21 19:07:06: WARNING[Main]: Field "height_max": Deprecated: new name is "y_max".
2016-03-21 19:07:06: WARNING[Main]: Field "height_min": Deprecated: new name is "y_min".
2016-03-21 19:07:06: WARNING[Main]: Field "height_max": Deprecated: new name is "y_max".
2016-03-21 19:07:06: WARNING[Main]: Field "height_min": Deprecated: new name is "y_min".
2016-03-21 19:07:06: WARNING[Main]: Field "height_max": Deprecated: new name is "y_max".
2016-03-21 19:07:06: WARNING[Main]: Field "height_min": Deprecated: new name is "y_min".
2016-03-21 19:07:06: WARNING[Main]: Field "height_max": Deprecated: new name is "y_max".
2016-03-21 19:07:06: WARNING[Main]: Field "height_min": Deprecated: new name is "y_min".
2016-03-21 19:07:06: WARNING[Main]: Field "height_max": Deprecated: new name is "y_max".


then it just crashes....

Re: why a mod that works on windows, dosent work on linux

PostPosted: Mon Mar 21, 2016 23:16
by Napiophelios
David I started a new world and there are alot of messages about deprecated code but it works fine
I am using Windows XPSP3, nice mod..lots of unique stuff.

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
2016-03-21 19:11:41: WARNING[Main]: Field "height_min": Deprecated: new name is "y_min".
2016-03-21 19:11:41: WARNING[Main]: Field "height_max": Deprecated: new name is "y_max".
2016-03-21 19:11:41: WARNING[Main]: xtraores registered door "xtraores:door_rainbow" using deprecated API method "doors.register_door()" but did not provide the "tiles" parameter. A fallback tiledef will be used instead.
2016-03-21 19:11:41: WARNING[Main]: Field "height_min": Deprecated: new name is "y_min".
2016-03-21 19:11:41: WARNING[Main]: Field "height_max": Deprecated: new name is "y_max".
2016-03-21 19:11:41: WARNING[Main]: Field "height_min": Deprecated: new name is "y_min".
2016-03-21 19:11:41: WARNING[Main]: Field "height_max": Deprecated: new name is "y_max".
2016-03-21 19:11:41: WARNING[Main]: Field "height_min": Deprecated: new name is "y_min".
2016-03-21 19:11:41: WARNING[Main]: Field "height_max": Deprecated: new name is "y_max".
2016-03-21 19:11:41: WARNING[Main]: Field "height_min": Deprecated: new name is "y_min".
2016-03-21 19:11:41: WARNING[Main]: Field "height_max": Deprecated: new name is "y_max".
2016-03-21 19:11:41: WARNING[Main]: Field "height_min": Deprecated: new name is "y_min".
2016-03-21 19:11:41: WARNING[Main]: Field "height_max": Deprecated: new name is "y_max".
2016-03-21 19:11:41: WARNING[Main]: Field "height_min": Deprecated: new name is "y_min".
2016-03-21 19:11:41: WARNING[Main]: Field "height_max": Deprecated: new name is "y_max".
2016-03-21 19:11:41: WARNING[Main]: Field "height_min": Deprecated: new name is "y_min".
2016-03-21 19:11:41: WARNING[Main]: Field "height_max": Deprecated: new name is "y_max".
2016-03-21 19:11:41: WARNING[Main]: Field "height_min": Deprecated: new name is "y_min".
2016-03-21 19:11:41: WARNING[Main]: Field "height_max": Deprecated: new name is "y_max".
2016-03-21 19:11:41: WARNING[Main]: Field "height_min": Deprecated: new name is "y_min".
2016-03-21 19:11:41: WARNING[Main]: Field "height_max": Deprecated: new name is "y_max".
2016-03-21 19:11:41: WARNING[Main]: Field "height_min": Deprecated: new name is "y_min".
2016-03-21 19:11:41: WARNING[Main]: Field "height_max": Deprecated: new name is "y_max".
2016-03-21 19:11:41: WARNING[Main]: Field "height_min": Deprecated: new name is "y_min".
2016-03-21 19:11:41: WARNING[Main]: Field "height_max": Deprecated: new name is "y_max".
2016-03-21 19:11:41: WARNING[Main]: Field "height_min": Deprecated: new name is "y_min".
2016-03-21 19:11:41: WARNING[Main]: Field "height_max": Deprecated: new name is "y_max".
2016-03-21 19:11:41: WARNING[Main]: Field "height_min": Deprecated: new name is "y_min".
2016-03-21 19:11:41: WARNING[Main]: Field "height_max": Deprecated: new name is "y_max".


However when I first tried it I just added it to my existing test world and it crashed without a debug output
And I dont really know why.

Re: why a mod that works on windows, dosent work on linux

PostPosted: Mon Mar 21, 2016 23:18
by davidthecreator
Linux= crap confirmed!

now its clear that it totaly works on all windows, but linux fails ...

Re: why a mod that works on windows, dosent work on linux

PostPosted: Mon Mar 21, 2016 23:20
by rubenwardy
The mod works for me, I suggest that the Linux user has installed it wrong or is not using Minetest Game.

Re: why a mod that works on windows, dosent work on linux

PostPosted: Mon Mar 21, 2016 23:25
by Napiophelios
rubenwardy wrote:The mod works for me, I suggest that the Linux user has installed it wrong or is not using Minetest Game.


I agree.
Thats when I had problems
I accidentally used a custom game to test it.

Re: why a mod that works on windows, dosent work on linux

PostPosted: Wed Apr 06, 2016 14:36
by jan6
davidthecreator wrote:Linux= crap confirmed!

now its clear that it totaly works on all windows, but linux fails ...

Probably wrong(haven't tried myself but I'm sure it works fine is you install it correctly)...

The thing is, it's a lot easier to do something wrong in Linux as there are so many options, windows has installer programs for nearly everything that do all the work for you...

Re: why a mod that works on windows, dosent work on linux

PostPosted: Wed Apr 06, 2016 14:40
by sofar
davidthecreator wrote:Linux= crap confirmed!

now its clear that it totaly works on all windows, but linux fails ...


This is not the way to get people who are attempting to help you motivated.

These folks are helping you even though they themselves use Linux, and they're totally OK with you using windows. Perhaps you can extend them the same courtesy by not saying stuff like that.

Re: why a mod that works on windows, dosent work on linux

PostPosted: Wed Apr 06, 2016 16:17
by Onyx
I agree with you , respect tends to disappear today, this is however not much to be polite.