Problem with the new 0.4.14 Version in Ubuntu.

Lejo
Member
 
Posts: 92
Joined: Mon Oct 19, 2015 16:32
GitHub: Lejo1
In-game: Lejo

Problem with the new 0.4.14 Version in Ubuntu.

by Lejo » Fri May 20, 2016 15:04

I show you short a part of my mod:
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
blood.tools = {}

minetest.register_tool("blood:victimknife", {
   description = "Victimknife",
   inventory_image = "Victimknife.png",
   on_use = function(user)
      local player = user:get_name()
         player:set_hp(player:get_hp--[[this get_hp is the problem]]()-2)
         player:set_blood(player:get_blood()+20)
   end,
})

minetest.register_craft({
   output = 'blood:victimknife',
   recipe = {
      {'',   'default:glass',   'default:glass'},
      {'',   'default:gold_ingot',   'default:glass'},
      {'default:steel_ingot',   '',   ''},
   }
})


I allways get this Error:
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-05-28 11:53:11: ERROR[Main]: ServerError: Lua: Runtime error from mod 'blood' in callback item_OnUse(): /home/user/minetest/bin/../mods/blood/tools.lua:8: attempt to call method 'get_hp' (a nil value)
2016-05-28 11:53:11: ERROR[Main]: stack traceback:
2016-05-28 11:53:11: ERROR[Main]:    /home/user/minetest/bin/../mods/blood/tools.lua:8: in function </home/user/minetest/bin/../mods/blood/tools.lua:6>
2016-05-28 11:53:11: [Server]: [Chatplus] Saving data
2016-05-28 11:53:11: ACTION[Server]: singleplayer leaves game. List of players:
2016-05-28 11:53:11: WARNING[Main]: [xban] Unable to save database: Write failed
2016-05-28 11:53:11: ACTION[Main]: [playereffects] Server shuts down. Rescuing data into playereffects.mt
2016-05-28 11:53:11: ACTION[Main]: [playereffects] Wrote playereffects data into /home/user/minetest/bin/../worlds/jzuij/playereffects.mt.


Please help.
Last edited by Lejo on Sat May 28, 2016 09:57, edited 3 times in total.
Enjoy my Minigameserver Subgames for all!
https://forum.minetest.net/viewtopic.php?f=10&t=14480
 

User avatar
MineYoshi
Member
 
Posts: 4267
Joined: Wed Jul 08, 2015 13:20
GitHub: MineYosh
IRC: MineYoshi
In-game: Kirby_Retro

Re: Problem with the new 0.4.14 Version in Ubuntu.

by MineYoshi » Fri May 20, 2016 20:06

That errors and bugs, are from the mods...
The mods that aren't working alright are: pipeworks and mesecons.

Generally i recommend you to download a newer version, that be compatible with the 0.4.14, maybe you have an old version that doesn't works with the new version...

If you still have the error with the new version of the mod, you can request help or a fix in the official mod thread.
Surely someone answer you.
People talk about freedom of speech, so i'll say that God exists.
Open your eyes!! See The big unicorn conspiracy.!! :D The government has been lying to us about unicorns!!
"I've learned there are three things you don't discuss with people: religion, politics and the Great Pumpkin" - Linus Van Pelt
I'm the Officially 1st ABJist in the world ( ͡° ͜ʖ ͡°)
 

User avatar
snowflake
Member
 
Posts: 215
Joined: Mon Nov 16, 2015 16:50
IRC: snow__flake
In-game: snowflake

Re: Problem with the new 0.4.14 Version in Ubuntu.

by snowflake » Sun May 22, 2016 07:34

They're are the probs with mods.. u should get the new version of mods for minetest 0.4.14 , i use ubuntu as well , it works fine
✱ ŜИØŴℱŁΔҜΞ ✱
IF I REPORT ANY PROBLEM - SYSTEM
Ubuntu 15.04
32-bit
Memory-3.8GiB
Disk Space -310.8GB

DONT PM ME PLZ!!!! ,
 

Lejo
Member
 
Posts: 92
Joined: Mon Oct 19, 2015 16:32
GitHub: Lejo1
In-game: Lejo

Re: Problem with the new 0.4.14 Version in Ubuntu.

by Lejo » Sun May 22, 2016 10:24

I install pipeworks mesecons moreblocks and moreores again it doesn't work now.
If i push a button a lever or a switch they doesn't active.
In the moment i install a mod.
It allways says:
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
get_hp (a nil value)

The problem is it in much mods.
I don't unerstand why that is a nil value.
Other mods use it too.
I install the portable version from here the same Problem: https://forum.minetest.net/viewtopic.php?f=42&t=3837
Please help.
Here part of my mod:
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
blood.tools = {}

minetest.register_tool("blood:victimknife", {
   description = "Victimknife",
   inventory_image = "Victimknife.png",
   on_use = function(name)
      local player = name
         minetest.set_hp(player, (minetest.get_hp(player)-2)) -- in this line is the Problem.
         set_blood(player, (get_blood(player)+20))
   end,
})

minetest.register_craft({
   output = 'blood:victimknife',
   recipe = {
      {'',   'default:glass',   'default:glass'},
      {'',   'default:gold_ingot',   'default:glass'},
      {'default:steel_ingot',   '',   ''},
   }
})
Enjoy my Minigameserver Subgames for all!
https://forum.minetest.net/viewtopic.php?f=10&t=14480
 

User avatar
Krock
Member
 
Posts: 3598
Joined: Thu Oct 03, 2013 07:48
GitHub: SmallJoker

Re: Problem with the new 0.4.14 Version in Ubuntu.

by Krock » Sun May 22, 2016 10:33

Lejo wrote:
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
blood.tools = {}

minetest.register_tool("blood:victimknife", {
   description = "Victimknife",
   inventory_image = "Victimknife.png",
   on_use = function(name)
      local player = name
         minetest.set_hp(player, (minetest.get_hp(player)-2)) -- in this line is the Problem.
         set_blood(player, (get_blood(player)+20))
   end,
})


The minetest table does not contain these functions. They can be found in the player object.
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
on_use = function(name)
   local player = minetest.get_player_by_name(name)
   player:set_hp(player:get_hp() - 2)
end

See also: https://github.com/minetest/minetest/bl ... .txt#L2585
Newest Win32 builds - Find a mod - All my mods
ALL YOUR DONATION ARE BELONG TO PARAMAT (Please support him and Minetest)
New DuckDuckGo !bang: !mtmod <keyword here>
 

Lejo
Member
 
Posts: 92
Joined: Mon Oct 19, 2015 16:32
GitHub: Lejo1
In-game: Lejo

Re: Problem with the new 0.4.14 Version in Ubuntu.

by Lejo » Sun May 22, 2016 10:56

I test it but i get this Error:
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-05-22 12:55:15: ERROR[Main]: ServerError: Lua: Runtime error from mod 'blood' in callback item_OnUse(): /home/user/minetest/bin/../mods/blood/tools.lua:7: bad argument #1 to 'get_player_by_name' (string expected, got userdata)
2016-05-22 12:55:15: ERROR[Main]: stack traceback:
2016-05-22 12:55:15: ERROR[Main]:    [C]: in function 'get_player_by_name'
2016-05-22 12:55:15: ERROR[Main]:    /home/user/minetest/bin/../mods/blood/tools.lua:7: in function </home/user/minetest/bin/../mods/blood/tools.lua:6>
Last edited by Lejo on Sat May 28, 2016 09:50, edited 1 time in total.
Enjoy my Minigameserver Subgames for all!
https://forum.minetest.net/viewtopic.php?f=10&t=14480
 

Lejo
Member
 
Posts: 92
Joined: Mon Oct 19, 2015 16:32
GitHub: Lejo1
In-game: Lejo

Re: Problem with the new 0.4.14 Version in Ubuntu.

by Lejo » Thu May 26, 2016 09:16

All works now fine the shift click too.
Enjoy my Minigameserver Subgames for all!
https://forum.minetest.net/viewtopic.php?f=10&t=14480
 

Lejo
Member
 
Posts: 92
Joined: Mon Oct 19, 2015 16:32
GitHub: Lejo1
In-game: Lejo

Re: Problem with the new 0.4.14 Version in Ubuntu.

by Lejo » Sat May 28, 2016 09:56

I show you short a part of my mod:
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
blood.tools = {}

minetest.register_tool("blood:victimknife", {
   description = "Victimknife",
   inventory_image = "Victimknife.png",
   on_use = function(user)
      local player = user:get_name()
         player:set_hp(player:get_hp--[[this get_hp is the problem]]()-2)
         player:set_blood(player:get_blood()+20)
   end,
})

minetest.register_craft({
   output = 'blood:victimknife',
   recipe = {
      {'',   'default:glass',   'default:glass'},
      {'',   'default:gold_ingot',   'default:glass'},
      {'default:steel_ingot',   '',   ''},
   }
})


I allways get this Error:
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-05-28 11:53:11: ERROR[Main]: ServerError: Lua: Runtime error from mod 'blood' in callback item_OnUse(): /home/user/minetest/bin/../mods/blood/tools.lua:8: attempt to call method 'get_hp' (a nil value)
2016-05-28 11:53:11: ERROR[Main]: stack traceback:
2016-05-28 11:53:11: ERROR[Main]:    /home/user/minetest/bin/../mods/blood/tools.lua:8: in function </home/user/minetest/bin/../mods/blood/tools.lua:6>
2016-05-28 11:53:11: [Server]: [Chatplus] Saving data
2016-05-28 11:53:11: ACTION[Server]: singleplayer leaves game. List of players:
2016-05-28 11:53:11: WARNING[Main]: [xban] Unable to save database: Write failed
2016-05-28 11:53:11: ACTION[Main]: [playereffects] Server shuts down. Rescuing data into playereffects.mt
2016-05-28 11:53:11: ACTION[Main]: [playereffects] Wrote playereffects data into /home/user/minetest/bin/../worlds/jzuij/playereffects.mt.


Please help.
Enjoy my Minigameserver Subgames for all!
https://forum.minetest.net/viewtopic.php?f=10&t=14480
 

User avatar
azekill_DIABLO
Member
 
Posts: 3458
Joined: Wed Oct 29, 2014 20:05
GitHub: azekillDIABLO
In-game: azekill_DIABLO

Re: Problem with the new 0.4.14 Version in Ubuntu.

by azekill_DIABLO » Sun May 29, 2016 09:44

what do you want your Victimknife does?
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
Hi, my username is azekill_DIABLO and i'm an exelent bug-maker(yeah...i know...i have a bad reputation)

azekill_DIABLO said: Mineyoshi+ABJ+Baggins= TOPIC HIJACKED.
My Mods and Stuff | Voxellar | VoxBox on GITHUB | M.I.L.A Monster engine
WEIRD MODDING CONTEST !!!
 

Lejo
Member
 
Posts: 92
Joined: Mon Oct 19, 2015 16:32
GitHub: Lejo1
In-game: Lejo

Re: Problem with the new 0.4.14 Version in Ubuntu.

by Lejo » Sun May 29, 2016 09:52

it damage you 2 hp and grant you 20 blood.
Blood in the mod.
Enjoy my Minigameserver Subgames for all!
https://forum.minetest.net/viewtopic.php?f=10&t=14480
 

User avatar
cd2
Member
 
Posts: 552
Joined: Mon Jun 01, 2015 06:30
GitHub: cdqwertz
IRC: freenode - cd2 InchraNet - cd
In-game: cd cd2

Re: Problem with the new 0.4.14 Version in Ubuntu.

by cd2 » Sun May 29, 2016 10:02

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
blood.tools = {}

minetest.register_tool("blood:victimknife", {
   description = "Victimknife",
   inventory_image = "Victimknife.png",
   on_use = function(user)
         if not user or not user:is_player() then
              return
         end
         user:set_hp(user:get_hp()-2)
   end,
})
Last edited by cd2 on Sun May 29, 2016 10:24, edited 2 times in total.
 

Lejo
Member
 
Posts: 92
Joined: Mon Oct 19, 2015 16:32
GitHub: Lejo1
In-game: Lejo

Re: Problem with the new 0.4.14 Version in Ubuntu.

by Lejo » Sun May 29, 2016 10:16

then i get the same error just like before get_hp (a nil value)
Enjoy my Minigameserver Subgames for all!
https://forum.minetest.net/viewtopic.php?f=10&t=14480
 

User avatar
cd2
Member
 
Posts: 552
Joined: Mon Jun 01, 2015 06:30
GitHub: cdqwertz
IRC: freenode - cd2 InchraNet - cd
In-game: cd cd2

Re: Problem with the new 0.4.14 Version in Ubuntu.

by cd2 » Sun May 29, 2016 10:25

Lejo wrote:then i get the same error just like before get_hp (a nil value)

Try it again now. I added
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
if not user or not user:is_player() then
   return
end
 

Lejo
Member
 
Posts: 92
Joined: Mon Oct 19, 2015 16:32
GitHub: Lejo1
In-game: Lejo

Re: Problem with the new 0.4.14 Version in Ubuntu.

by Lejo » Sun May 29, 2016 10:35

Now I get this Error:
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-05-29 12:33:32: ERROR[Main]: ServerError: Lua: Runtime error from mod 'blood' in callback item_OnUse(): /home/user/minetest/bin/../mods/blood/tools.lua:7: attempt to call method 'is_player' (a nil value)
2016-05-29 12:33:32: ERROR[Main]: stack traceback:
2016-05-29 12:33:32: ERROR[Main]:    /home/user/minetest/bin/../mods/blood/tools.lua:7: in function </home/user/minetest/bin/../mods/blood/tools.lua:6>
Enjoy my Minigameserver Subgames for all!
https://forum.minetest.net/viewtopic.php?f=10&t=14480
 

User avatar
snowflake
Member
 
Posts: 215
Joined: Mon Nov 16, 2015 16:50
IRC: snow__flake
In-game: snowflake

Re: Problem with the new 0.4.14 Version in Ubuntu.

by snowflake » Mon May 30, 2016 13:32

lol again.... this is still mod error from blood
✱ ŜИØŴℱŁΔҜΞ ✱
IF I REPORT ANY PROBLEM - SYSTEM
Ubuntu 15.04
32-bit
Memory-3.8GiB
Disk Space -310.8GB

DONT PM ME PLZ!!!! ,
 


Return to Minetest Problems

Who is online

Users browsing this forum: No registered users and 17 guests

cron