[Mod] Bows with arrows V2 [bows]

Ender3Guy
New member
Posts: 7
Joined: Fri May 31, 2019 21:32
GitHub: MisterPrintf

Re: [Mod] Bows with arrows V2 [bows]

by Ender3Guy » Post

My apologies, this is clearly a stupid question. I'm using the latest Minetest 5.1.0 and can't figure out how to fire an arrow. Is this mod incompatible with Minetest 5?

User avatar
TechnoWolfTV
Member
Posts: 65
Joined: Wed Jan 29, 2020 20:04
In-game: TechnoWolfTV
Location: Wisconsin, USA

Re: [Mod] Bows with arrows V2 [bows]

by TechnoWolfTV » Post

Not sure if this mod is still being maintained, but really like it. Thanks for your work on it. In playing with it in Minetest 5.2.0, I've come across a few errors. For testing purposes, I gave myself a Mese Bow and stacks of all the mod's arrows. I spawned some stone monsters in a cave and tested each arrow. In each case below, the crash happened only after using the same type of arrow twice on the same region the previous had hit:

When firing a Nitrogen TNT arrow:

Code: Select all

AsyncErr: ServerThread::run Lua: Runtime error from mod 'default' in callback luaentity_Step(): ...64-TechnoWolfTV\bin\..\mods\bows\nitroglycerine\init.lua:176: attempt to index a nil value
stack traceback:
	...64-TechnoWolfTV\bin\..\mods\bows\nitroglycerine\init.lua:176: in function 'freeze'
	...4-TechnoWolfTV\bin\..\mods\bows\bows/items_functions.lua:285: in function 'on_hit_object'
	...5.2.0-win64-TechnoWolfTV\bin\..\mods\bows\bows/arrow.lua:151: in function <...5.2.0-win64-TechnoWolfTV\bin\..\mods\bows\bows/arrow.lua:103>
When firing a Radioactive arrow:

Code: Select all

AsyncErr: ServerThread::run Lua: Runtime error from mod '*builtin*' in callback luaentity_Step(): ...4-TechnoWolfTV\bin\..\mods\bows\bows/items_functions.lua:354: attempt to index a nil value
stack traceback:
	...4-TechnoWolfTV\bin\..\mods\bows\bows/items_functions.lua:354: in function 'on_hit_node'
	...5.2.0-win64-TechnoWolfTV\bin\..\mods\bows\bows/arrow.lua:136: in function <...5.2.0-win64-TechnoWolfTV\bin\..\mods\bows\bows/arrow.lua:103>

User avatar
AiTechEye
Member
Posts: 1000
Joined: Fri May 29, 2015 21:14
GitHub: AiTechEye
Location: Sweden

Re: [Mod] Bows with arrows V2 [bows]

by AiTechEye » Post

fixed, the first one was a forgotten variable, and the other a complete mess of orbiting things.
now players can only be damage by 1 circuit from the rad arrows (everything are orbiting out and in a function) so you wont be damages after death, i hope

TommyTreasure
Member
Posts: 44
Joined: Tue Nov 15, 2016 01:37
IRC: TommyTreasure
In-game: TommyTreasure

Re: [Mod] Bows with arrows V2 [bows]

by TommyTreasure » Post

I've had a server (5.3.0) crash issue, when players are using arrows on mobs, in a rapid-fire way. All installed mobs are mobs_redo compliant.


stack traceback:
2020-08-06 15:26:18: ERROR[Main]: /home/tommy/LW5/minetest/bin/../mods/bows/bows/arrow.lua:13: in function 'on_hit_object'
2020-08-06 15:26:18: ERROR[Main]: /home/tommy/LW5/minetest/bin/../mods/bows/bows/arrow.lua:150: in function 'func'

User avatar
AiTechEye
Member
Posts: 1000
Joined: Fri May 29, 2015 21:14
GitHub: AiTechEye
Location: Sweden

Re: [Mod] Bows with arrows V2 [bows]

by AiTechEye » Post

fixed

User avatar
T6C
Member
Posts: 119
Joined: Thu May 07, 2020 17:11
In-game: T6C

Re: [Mod] Bows with arrows V2 [bows]

by T6C » Post

Getting the same error here in Minetest v5.4.1. First few bow shots seem fine, then game will crash on shot 3 or 4.

Code: Select all

2021-11-26 01:03:15: WARNING[Server]: Deprecated call to get_look_yaw, use get_look_horizontal instead (at /home/minetest/.minetest/mods/bows/bows/init.lua:168)
2021-11-26 01:03:15: ACTION[Server]: LuaEntitySAO "mobs_monster:dirt_monster" at (-627,7,503) (id=453, hp=18) punched LuaEntitySAO "mobs_monster:dirt_monster" at (-627,7,503) (id=453, hp=18), damage=4
2021-11-26 01:03:16: ACTION[Server]: User uses bows:bow_wood, pointing at [object 453]
2021-11-26 01:03:18: ACTION[Server]: User uses bows:bow_wood_loaded, pointing at [object 453]
2021-11-26 01:03:18: WARNING[Server]: Deprecated call to get_look_yaw, use get_look_horizontal instead (at /home/minetest/.minetest/mods/bows/bows/init.lua:168)
2021-11-26 01:03:18: ACTION[Server]: LuaEntitySAO "mobs_monster:dirt_monster" at (-627,7,503) (id=453, hp=9) punched LuaEntitySAO "mobs_monster:dirt_monster" at (-627,7,503) (id=453, hp=9), damage=4
2021-11-26 01:03:20: ACTION[Server]: User uses bows:bow_wood, pointing at [object 453]
2021-11-26 01:03:21: ACTION[Server]: User uses bows:bow_wood_loaded, pointing at [object 453]
2021-11-26 01:03:21: WARNING[Server]: Deprecated call to get_look_yaw, use get_look_horizontal instead (at /home/minetest/.minetest/mods/bows/bows/init.lua:168)
2021-11-26 01:03:21: ACTION[Server]: LuaEntitySAO "mobs_monster:dirt_monster" at (-627,7,503) (id=453, hp=0) punched LuaEntitySAO "mobs_monster:dirt_monster" at (-627,7,503) (id=453, hp=0), damage=4
2021-11-26 01:03:21: ACTION[Main]: Server: Shutting down
2021-11-26 01:03:21: ACTION[Main]: [advtrains]Saved advtrains save files, took 1 ms 
2021-11-26 01:03:22: ERROR[Main]: ServerError: AsyncErr: ServerThread::run Lua: Runtime error from mod '' in callback luaentity_Step(): /home/minetest/.minetest/mods/bows/bows/arrow.lua:13: attempt to index local 'opos' (a nil value)
2021-11-26 01:03:22: ERROR[Main]: stack traceback:
2021-11-26 01:03:22: ERROR[Main]: 	/home/minetest/.minetest/mods/bows/bows/arrow.lua:13: in function 'on_hit_object'
2021-11-26 01:03:22: ERROR[Main]: 	/home/minetest/.minetest/mods/bows/bows/arrow.lua:150: in function </home/minetest/.minetest/mods/bows/bows/arrow.lua:103>
Am using TenPlus1's fork of this mod, but posted here, since there is no thread for that one. I suspect it's still an issue in AITechEye's version, too.

Post Reply

Who is online

Users browsing this forum: Majestic-12 [Bot] and 4 guests