[Mod] Throwing [0.13] [throwing]
Bug report: MineTest 20120106 build @ Windows 7, 32-bit.
Use the bow to fire multiple arrows. Upon landing, only one arrow can be collected. Sometimes the bow does not fire any arrows at all, even though they are present in the inventory.
This did not happen in the previous build, 20120102.
Use the bow to fire multiple arrows. Upon landing, only one arrow can be collected. Sometimes the bow does not fire any arrows at all, even though they are present in the inventory.
This did not happen in the previous build, 20120102.
WorldEdit 1.0 released
The Mesecons Laboratory - the art of Mesecons circuitry
Latest article: Mesecons Basics.
The Mesecons Laboratory - the art of Mesecons circuitry
Latest article: Mesecons Basics.
-
- Member
- Posts: 214
- Joined: Thu Nov 17, 2011 06:31
- Location: California, USA
Just for in the future you can get a portable version of 7-Zip here. It doesn't need to be installed and should be able to open anything.Zarberman wrote:i dont have a mac or linux and i cant install programs because my computer will not let me so i need .zip
- jordan4ibanez
- Member
- Posts: 1923
- Joined: Tue Sep 27, 2011 18:44
- GitHub: jordan4ibanez
- IRC: jordan4ibanez
- In-game: jordan4ibanez
-
- Member
- Posts: 4534
- Joined: Mon Oct 03, 2011 17:58
- GitHub: Jordach
- IRC: Jordach
- In-game: Jordach
- Location: Blender Scene
it just crashed becuase of some reason,
to remove blocks or arrows stuck in blocks at crash:
ensure you have dynamite by nemo08 installed (does work)
set the tnt against the unknown block/tool then run.
the item will blow up and cannot be recovered, this happened to another mod, and currently is the only way to kill it, mining does not work either.
to remove blocks or arrows stuck in blocks at crash:
ensure you have dynamite by nemo08 installed (does work)
set the tnt against the unknown block/tool then run.
the item will blow up and cannot be recovered, this happened to another mod, and currently is the only way to kill it, mining does not work either.
oh thats what you meant...
btw I updated the mod > wait a few minutest until uploaded
btw I updated the mod > wait a few minutest until uploaded
Last edited by Jeija on Fri Jan 27, 2012 21:17, edited 1 time in total.
hmmm, Works for me on the latest build.rahonejm wrote:Bugged on the latest version The game shuts when you shot...
What does your debug.txt say?
EDIT: @Jeija I did a bit of cleaning on this mod as there was still some output strings that where formatted the old way, not that it caused any problems just thought I would fix the formatting ^_^ I've added it here: http://pastebin.com/q47eYQTR if your interested.
Last edited by dannydark on Fri Feb 10, 2012 18:39, edited 1 time in total.
I uploaded this mod to github:
https://github.com/Jeija/minetest-mod-throwing.
I also commited your changes, dannydark! If anyone wants to have acces on GitHub, tell me your username!
https://github.com/Jeija/minetest-mod-throwing.
I also commited your changes, dannydark! If anyone wants to have acces on GitHub, tell me your username!
Kahrl, I commited your changes. Thx
Last edited by Jeija on Fri Feb 10, 2012 20:27, edited 1 time in total.
- MirceaKitsune
- Member
- Posts: 924
- Joined: Sat May 21, 2011 22:31
- GitHub: MirceaKitsune
- IRC: Taoki
- In-game: MirceaKitsune
- Location: Romania, Bucharest
This is a very nice mod! Seems to work a lot like the MC bow as well. This one I hope will be included as part of the default mod and Minetest.
Only objection is the crafting pattern for the bow. Instead of using planks there, I believe using sticks would be more appropriate. Otherwise, looks excellent and I'll try it out soon
Only objection is the crafting pattern for the bow. Instead of using planks there, I believe using sticks would be more appropriate. Otherwise, looks excellent and I'll try it out soon
-
- Member
- Posts: 4534
- Joined: Mon Oct 03, 2011 17:58
- GitHub: Jordach
- IRC: Jordach
- In-game: Jordach
- Location: Blender Scene
Yeah, but it crashes on the newest dev for some reason.MirceaKitsune wrote:This is a very nice mod! Seems to work a lot like the MC bow as well. This one I hope will be included as part of the default mod and Minetest.
Only objection is the crafting pattern for the bow. Instead of using planks there, I believe using sticks would be more appropriate. Otherwise, looks excellent and I'll try it out soon
And well done for saying default and not upstream, celeron says default is right and upstream is wrong.
-
- Member
- Posts: 28
- Joined: Wed Feb 15, 2012 19:27
-
- Member
- Posts: 214
- Joined: Thu Nov 17, 2011 06:31
- Location: California, USA
I was having a problem with arrows hitting another arrow on the ground and disappearing So I fixed the code a little. Basically, a craft item on the ground is an object entity that will be returned by 'get_objects_inside_radius' so the arrow adds damage to it and disappearing. This makes no sense so I added a check to make sure the object entity already has hit points before it attacks it. Also 'obj:get_entity_name()' is supposed to be DEPRECATED so I replaced that with the correct method.
Code: Select all
-- Arrow_entity.on_step()--> called when arrow is moving
THROWING_ARROW_ENTITY.on_step = function(self, dtime)
self.timer=self.timer+dtime
local pos = self.object:getpos()
local node = minetest.env:get_node(pos)
-- When arrow is away from player (after 0.2 seconds): Cause damage to mobs and players
if self.timer>0.2 then
local objs = minetest.env:get_objects_inside_radius({x=pos.x,y=pos.y,z=pos.z}, 2)
for k, obj in pairs(objs) do
if obj:get_luaentity() ~= nil then
name = obj:get_luaentity().name
else
name = nil
end
if name ~= "throwing:arrow_entity" and obj:get_hp() > 0 then
obj:set_hp(obj:get_hp()-ARROW_DAMAGE)
if obj:get_hp()<=0 then
obj:remove()
end
self.object:remove()
return
end
end
end
-- Become item when hitting a node
if self.lastpos.x~=nil then --If there is no lastpos for some reason
if node.name ~= "air" then
minetest.env:add_item(self.lastpos, 'throwing:arrow')
self.object:remove()
return
end
end
self.lastpos={x=pos.x, y=pos.y, z=pos.z} -- Set lastpos-->Item will be added at last pos outside the node
end
-
- New member
- Posts: 8
- Joined: Sat Jun 02, 2012 18:55
I put the unzipped folder, which contained the textures, the stuff needed for the mod, you know, into the mod folder. But when i went to run Minetest, it says that there's a problem loading the bow mod. Do I need to rename the folder or something?
"I reject your reality, and substitute my own!" ~ Adam Savage
The folder must be named "throwing". Not "bow", not "shooting", "throwing". Any other name will not work.
Ensure that the init.lua file is directly inside this folder, and not in a subfolder.
Ensure that the init.lua file is directly inside this folder, and not in a subfolder.
WorldEdit 1.0 released
The Mesecons Laboratory - the art of Mesecons circuitry
Latest article: Mesecons Basics.
The Mesecons Laboratory - the art of Mesecons circuitry
Latest article: Mesecons Basics.
-
- New member
- Posts: 8
- Joined: Sat Jun 02, 2012 18:55
Who is online
Users browsing this forum: No registered users and 2 guests