20:13:19: ACTION[ServerThread]: singleplayer joins game.
20:13:19: ACTION[ServerThread]: singleplayer joins game. List of players:
20:14:04: ACTION[ServerThread]: singleplayer damaged by 6 hp at (-20.194,0.965,18.115)
20:14:14: ACTION[ServerThread]: singleplayer punches object 4: LuaEntitySAO at (-37,3.51,40)
20:14:14: ACTION[ServerThread]: LuaEntitySAO at (-37,3.51,40) punched by player singleplayer, damage 1 hp, health now 4 hp
In thread 7f4324320780:
/home/chris/minetest/src/inventory.cpp:624: ItemStack& InventoryList::getItem(irr::u32): Assertion 'i < m_size' failed.
Debug stacks:
DEBUG STACK FOR THREAD 7f42eb6ff700:
#0 virtual void* MeshUpdateThread::Thread()
DEBUG STACK FOR THREAD 7f42f1cc1700:
#0 virtual void* EmergeThread::Thread()
(Leftover data: #1 MapBlock* ServerMap::loadBlock(v3s16))
(Leftover data: #2 ServerMapSector* ServerMap::createSector(v2s16): p2d=(2,10))
(Leftover data: #3 ServerMapSector* ServerMap::createSector(v2s16): p2d=(8,8))
DEBUG STACK FOR THREAD 7f4307ca6700:
#0 virtual void* ServerThread::Thread()
#1 void Server::Receive()
(Leftover data: #2 void Server::SendBlocks(float))
(Leftover data: #3 void Server::SendBlockNoLock(irr::u16, MapBlock*, irr::u8, irr::u16))
(Leftover data: #4 MapBlock* ServerMap::loadBlock(v3s16))
(Leftover data: #5 ServerMapSector* ServerMap::createSector(v2s16): p2d=(-5,3))
DEBUG STACK FOR THREAD 7f4324320780:
#0 int main(int, char**)
(Leftover data: #1 void ClientMap::renderMap(irr::video::IVideoDriver*, irr::s32))
(Leftover data: #2 virtual void ClientEnvironment::step(float))
(Leftover data: #3 void Client::Receive())
(Leftover data: #4 void Client::ProcessData(irr::u8*, irr::u32, irr::u16))
(Leftover data: #5 void MeshUpdateQueue::addBlock(v3s16, MeshMakeData*, bool, bool))
Excalibur Zero wrote:I commented out the specified line and installed the mod and used it in a new game. It was working at first, as being a ghost was working, I saw the screen purple-ish and in 3rd person couldn't see my self. When I finally found a mob, a sheep specifically, to posses I punched it and Minetest crashed. I got this debug message: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
20:13:19: ACTION[ServerThread]: singleplayer joins game.
20:13:19: ACTION[ServerThread]: singleplayer joins game. List of players:
20:14:04: ACTION[ServerThread]: singleplayer damaged by 6 hp at (-20.194,0.965,18.115)
20:14:14: ACTION[ServerThread]: singleplayer punches object 4: LuaEntitySAO at (-37,3.51,40)
20:14:14: ACTION[ServerThread]: LuaEntitySAO at (-37,3.51,40) punched by player singleplayer, damage 1 hp, health now 4 hp
In thread 7f4324320780:
/home/chris/minetest/src/inventory.cpp:624: ItemStack& InventoryList::getItem(irr::u32): Assertion 'i < m_size' failed.
Debug stacks:
DEBUG STACK FOR THREAD 7f42eb6ff700:
#0 virtual void* MeshUpdateThread::Thread()
DEBUG STACK FOR THREAD 7f42f1cc1700:
#0 virtual void* EmergeThread::Thread()
(Leftover data: #1 MapBlock* ServerMap::loadBlock(v3s16))
(Leftover data: #2 ServerMapSector* ServerMap::createSector(v2s16): p2d=(2,10))
(Leftover data: #3 ServerMapSector* ServerMap::createSector(v2s16): p2d=(8,8))
DEBUG STACK FOR THREAD 7f4307ca6700:
#0 virtual void* ServerThread::Thread()
#1 void Server::Receive()
(Leftover data: #2 void Server::SendBlocks(float))
(Leftover data: #3 void Server::SendBlockNoLock(irr::u16, MapBlock*, irr::u8, irr::u16))
(Leftover data: #4 MapBlock* ServerMap::loadBlock(v3s16))
(Leftover data: #5 ServerMapSector* ServerMap::createSector(v2s16): p2d=(-5,3))
DEBUG STACK FOR THREAD 7f4324320780:
#0 int main(int, char**)
(Leftover data: #1 void ClientMap::renderMap(irr::video::IVideoDriver*, irr::s32))
(Leftover data: #2 virtual void ClientEnvironment::step(float))
(Leftover data: #3 void Client::Receive())
(Leftover data: #4 void Client::ProcessData(irr::u8*, irr::u32, irr::u16))
(Leftover data: #5 void MeshUpdateQueue::addBlock(v3s16, MeshMakeData*, bool, bool))
Also you may want to note that there is a naming conflict with the name of the mod Creatures (https://forum.minetest.net/viewtopic.php?f=11&t=8638).
Amaz wrote:This is really good!
If I die when I am a ghost, however, the game will crash, without an error message if I die from falling or drowning, or with an error message from trying to posses mobs and dieing.. (Can you posses unwiling mobs?) The game will sometimes crash when I die from killing allied mobs when alive.
Apart from the somewhat crash happy nature of this mod, it is really good! Thanks for making such a unique, fun mod!
thetoon wrote: * it's completely changing the gameplay, so maybe it would be better as a game (unless it's already intended as a basis for games)
MirceaKitsune wrote: ...It's intended for a game I will be making later, but for now I'm releasing a minetest_game version...
thetoon wrote: * it's incredibly difficult to spot creatures when a ghost (haven't found even one, myself). So unless I have a generation problem (should the console say something when spawning creatures?), it might be helpful to make the ghost see life more easily. Think "predator". Still, it might be difficult with current engine's state.
MirceaKitsune wrote:For the mod to work properly, you must first disable the default player script. To do that, open minetest_game/mods/default/init.lua and comment out the dofile line for player.lua.
Inocudom wrote:https://forum.minetest.net/viewtopic.php?f=9&t=8798
I asked the creator of the mod linked to above if he would support your mod with his mobs. I would just love to be a cute little bee.
https://forum.minetest.net/viewtopic.php?f=11&t=8638
Could this mod be useful to you too?
traits = {
attack_interval = {0.75, 1},
think = {0.5, 0.75},
vision = {15, 20},
roam = {0.5, 0.65},
loyalty = {0.5, 0.75},
fear = {0.25, 0.5},
aggressivity = {0.5, 0.75},
determination = {0.8, 1},
}
MirceaKitsune wrote:The one worth mentioning is that mobs will also follow each other now, not just the player. You will occasionally see one mob followed around by others, sometimes breaking apart and forming new groups. This is fun because you can see them ganging up and sitting as if talking to each other, similar to teenager groups in front of a school.
dofile(minetest.get_modpath("default").."/player.lua")
--dofile(minetest.get_modpath("default").."/player.lua")
creatures = {}
-- Determines whether two players or mobs are allies
function creatures:alliance(creature1, creature2)
local creature1_teams = {}
if creature1:get_luaentity() then
creature1_teams = creature1:get_luaentity().teams
elseif creature1:is_player() then
local race = creatures:player_get(creature1)
creature1_teams = creatures.player_def[race].teams
end
local creature2_teams = {}
if creature2:get_luaentity() then
creature2_teams = creature2:get_luaentity().teams
elseif creature2:is_player() then
local race = creatures:player_get(creature2)
creature2_teams = creatures.player_def[race].teams
end
local common = 0
for i, element1 in pairs(creature1_teams) do
local element2 = creature2_teams[i]
if element2 then
common = common + (element1 * element2)
end
end
common = math.min(1, math.max(-1, common))
return common
end
-- Pipe the creature registration function into the player and mob api
function creatures:register_creature(name, def)
creatures:register_mob(name, def)
creatures:register_player(name, def)
end
-- Load files
dofile(minetest.get_modpath("creatures").."/api_mobs.lua")
dofile(minetest.get_modpath("creatures").."/api_players.lua")
dofile(minetest.get_modpath("creatures").."/races.lua")
-- Log mod
if minetest.setting_get("log_mods") then
minetest.log("action", "creatures loaded")
end
13:24:03: ERROR[main]: ========== ERROR FROM LUA ===========
13:24:03: ERROR[main]: Failed to load and run script from
13:24:03: ERROR[main]: C:\Users\Weslei\Downloads\Java Development Kit 1.18\minetest\Minetest-0.4.9-dev3drpv2-PT_BR\Minetest 0.4.9\bin\..\mods\monter\init.lua:
13:24:03: ERROR[main]: ...v3drpv2-PT_BR\Minetest 0.4.9\bin\..\mods\monter\init.lua:40: attempt to concatenate a nil value
13:24:03: ERROR[main]: stack traceback:
13:24:03: ERROR[main]: ...v3drpv2-PT_BR\Minetest 0.4.9\bin\..\mods\monter\init.lua:40: in main chunk
13:24:03: ERROR[main]: ======= END OF ERROR FROM LUA ========
13:24:03: ERROR[main]: Server: Failed to load and run C:\Users\Weslei\Downloads\Java Development Kit 1.18\minetest\Minetest-0.4.9-dev3drpv2-PT_BR\Minetest 0.4.9\bin\..\mods\monter\init.lua
13:24:03: ERROR[main]: ModError: ModError: Failed to load and run C:\Users\Weslei\Downloads\Java Development Kit 1.18\minetest\Minetest-0.4.9-dev3drpv2-PT_BR\Minetest 0.4.9\bin\..\mods\monter\init.lua
Users browsing this forum: No registered users and 11 guests