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

User avatar
davidthecreator
Member
 
Posts: 179
Joined: Mon Aug 18, 2014 19:48
In-game: DavidDoesMinetest

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

by davidthecreator » Mon Mar 21, 2016 22:23

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?
 

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

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

by Napiophelios » Mon Mar 21, 2016 22:34

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
 

User avatar
rubenwardy
Member
 
Posts: 4500
Joined: Tue Jun 12, 2012 18:11
GitHub: rubenwardy
IRC: rubenwardy
In-game: rubenwardy

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

by rubenwardy » Mon Mar 21, 2016 22:37

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
 

User avatar
davidthecreator
Member
 
Posts: 179
Joined: Mon Aug 18, 2014 19:48
In-game: DavidDoesMinetest

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

by davidthecreator » Mon Mar 21, 2016 22:39

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]
 

User avatar
rubenwardy
Member
 
Posts: 4500
Joined: Tue Jun 12, 2012 18:11
GitHub: rubenwardy
IRC: rubenwardy
In-game: rubenwardy

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

by rubenwardy » Mon Mar 21, 2016 22:46

did you depend on default?
 

User avatar
davidthecreator
Member
 
Posts: 179
Joined: Mon Aug 18, 2014 19:48
In-game: DavidDoesMinetest

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

by davidthecreator » Mon Mar 21, 2016 22:49

yes, on every mod which stuff that mod uses.
 

User avatar
rubenwardy
Member
 
Posts: 4500
Joined: Tue Jun 12, 2012 18:11
GitHub: rubenwardy
IRC: rubenwardy
In-game: rubenwardy

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

by rubenwardy » Mon Mar 21, 2016 22:54

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?
 

User avatar
davidthecreator
Member
 
Posts: 179
Joined: Mon Aug 18, 2014 19:48
In-game: DavidDoesMinetest

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

by davidthecreator » Mon Mar 21, 2016 22:58

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?)
 

User avatar
rubenwardy
Member
 
Posts: 4500
Joined: Tue Jun 12, 2012 18:11
GitHub: rubenwardy
IRC: rubenwardy
In-game: rubenwardy

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

by rubenwardy » Mon Mar 21, 2016 23:01

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.
 

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

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

by Napiophelios » Mon Mar 21, 2016 23:03

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....
Last edited by Napiophelios on Mon Mar 21, 2016 23:09, edited 1 time in total.
 

User avatar
rubenwardy
Member
 
Posts: 4500
Joined: Tue Jun 12, 2012 18:11
GitHub: rubenwardy
IRC: rubenwardy
In-game: rubenwardy

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

by rubenwardy » Mon Mar 21, 2016 23:08

Is the linux user using minimal or Minetest Game?
 

User avatar
davidthecreator
Member
 
Posts: 179
Joined: Mon Aug 18, 2014 19:48
In-game: DavidDoesMinetest

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

by davidthecreator » Mon Mar 21, 2016 23:10

mt_game
 

User avatar
davidthecreator
Member
 
Posts: 179
Joined: Mon Aug 18, 2014 19:48
In-game: DavidDoesMinetest

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

by davidthecreator » Mon Mar 21, 2016 23:12

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....
 

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

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

by Napiophelios » Mon Mar 21, 2016 23:16

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.
Last edited by Napiophelios on Mon Mar 21, 2016 23:19, edited 1 time in total.
 

User avatar
davidthecreator
Member
 
Posts: 179
Joined: Mon Aug 18, 2014 19:48
In-game: DavidDoesMinetest

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

by davidthecreator » Mon Mar 21, 2016 23:18

Linux= crap confirmed!

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

User avatar
rubenwardy
Member
 
Posts: 4500
Joined: Tue Jun 12, 2012 18:11
GitHub: rubenwardy
IRC: rubenwardy
In-game: rubenwardy

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

by rubenwardy » Mon Mar 21, 2016 23:20

The mod works for me, I suggest that the Linux user has installed it wrong or is not using Minetest Game.
 

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

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

by Napiophelios » Mon Mar 21, 2016 23:25

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.
 

User avatar
jan6
Member
 
Posts: 55
Joined: Wed Dec 02, 2015 17:58
GitHub: jan69
IRC: jan6
In-game: jan6

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

by jan6 » Wed Apr 06, 2016 14:36

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...
Pixel art & music 4daWin!
I'm usually late for *great* things...
Growing up on Linux...
I know ,exept what I know...
I have a secret..it's so secret even I don't know what it is
 

sofar
Member
 
Posts: 781
Joined: Fri Jan 16, 2015 07:31
GitHub: sofar
IRC: sofar
In-game: sofar

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

by sofar » Wed Apr 06, 2016 14:40

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.
 

User avatar
Onyx
Member
 
Posts: 99
Joined: Fri Sep 25, 2015 08:36
In-game: onyx58

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

by Onyx » Wed Apr 06, 2016 16:17

I agree with you , respect tends to disappear today, this is however not much to be polite.
"Science sans conscience n'est que ruine de l'âme."
-----------------------------------------------------------------------------------------
Steinheim NodesNation : steinheim-minetest.servegame.com Pt : 28000
 


Return to Minetest Problems

Who is online

Users browsing this forum: No registered users and 27 guests

cron