[Mod] Bows with arrows V2 [bows]

HolgiB
Member
Posts: 11
Joined: Fri Jan 13, 2017 07:09

Re: [Mod] Bows V3 [bows]

by HolgiB » Post

mahmutelmas06 wrote:The fastest developer ever :-D
+ 1

Thanks a lot.....I will test Bows V5 this evening and see if the issues is fixed !

Have a nice weekend !

HolgiB
Member
Posts: 11
Joined: Fri Jan 13, 2017 07:09

Re: [Mod] Bows V5 [bows]

by HolgiB » Post

Hm.....V5 seems not have changes too much. Minetest bombs out when I shoot a TNT arrow at a monster with this error stacktrace:

Code: Select all

-------------
  Separator  
-------------

Automatically selecting world at [/home/hb/.minetest/worlds/Holgi]
2017-01-13 17:58:17: ACTION[main]:         .__               __                   __   
2017-01-13 17:58:17: ACTION[main]:   _____ |__| ____   _____/  |_  ____   _______/  |_ 
2017-01-13 17:58:17: ACTION[main]:  /     \|  |/    \_/ __ \   __\/ __ \ /  ___/\   __\
2017-01-13 17:58:17: ACTION[main]: |  Y Y  \  |   |  \  ___/|  | \  ___/ \___ \  |  |  
2017-01-13 17:58:17: ACTION[main]: |__|_|  /__|___|  /\___  >__|  \___  >____  > |__|  
2017-01-13 17:58:17: ACTION[main]:       \/        \/     \/          \/     \/        
2017-01-13 17:58:17: ACTION[main]: World at [/home/hb/.minetest/worlds/Holgi]
2017-01-13 17:58:17: ACTION[main]: Server for gameid="minetest" listening on 0.0.0.0:63414.
2017-01-13 17:58:18: ACTION[ServerThread]: singleplayer [127.0.0.1] joins game. 
2017-01-13 17:58:18: ACTION[ServerThread]: singleplayer joins game. List of players: singleplayer
2017-01-13 17:58:18: ACTION[main]: Irrlicht: Could not open file of texture: character.png
2017-01-13 17:58:18: ACTION[main]: Irrlicht: Could not open file of texture: character.png
2017-01-13 17:58:27: ACTION[main]: Irrlicht: Could not open file of texture: UV_rat.png
2017-01-13 17:58:27: ACTION[main]: Irrlicht: Could not open file of texture: UV_rat.png
2017-01-13 17:58:27: ACTION[main]: Irrlicht: Could not open file of texture: UV_rat.png
2017-01-13 17:58:31: ACTION[ServerThread]: singleplayer uses bows:bow_rainbow, pointing at [object 6]
2017-01-13 17:58:32: ACTION[ServerThread]: singleplayer uses bows:bow_rainbow_loaded, pointing at [object 6]
17:58:33: WARNING: Undeclared global variable "tnt" accessed at /home/hb/.minetest/mods/bows/items_functions.lua:128
2017-01-13 17:58:33: ERROR[main]: ServerError: Lua: Runtime error from mod 'bows' in callback luaentity_Step(): /home/hb/.minetest/mods/bows/items_functions.lua:128: attempt to index global 'tnt' (a nil value)
2017-01-13 17:58:33: ERROR[main]: stack traceback:
2017-01-13 17:58:33: ERROR[main]: 	/home/hb/.minetest/mods/bows/items_functions.lua:128: in function 'on_hit_node'
2017-01-13 17:58:33: ERROR[main]: 	/home/hb/.minetest/mods/bows/arrow.lua:133: in function </home/hb/.minetest/mods/bows/arrow.lua:104>
2017-01-13 17:58:33: ACTION[ServerThread]: singleplayer leaves game. List of players: 
I should add that inside mods tnt is visible but I can neither enable nor disable it. It seems that it is store inside the Minetest folder rather than ~/.minetest/mods.

HTH,
Holgi

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

Re: [Mod] Bows V5r [bows]

by AiTechEye » Post

now it should be fixed: replace explode with burning tnt if it messing

HolgiB
Member
Posts: 11
Joined: Fri Jan 13, 2017 07:09

Re: [Mod] Bows V5r [bows]

by HolgiB » Post

Yes it is fixed. At least it does not crash but draws a burning box with tnt written to it.

I guess the intended behaviour would be that the error explodes when hitting an enemy, right ?

What is the major problem with my version of Minetest, TNT and your Bow mod ?

I do not get it but am no expert in Lua or Minetest mods :-)

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

Re: [Mod] Bows V5r [bows]

by AiTechEye » Post

the problem is the arrows cant use the tnt api for some reason, but now it works like this.

if tnt mod path exist: add tnt arrows
if tnt api is able: make explosion (tnt.boom)
if not working (tnt is missing): place "tnt:tnt_burning"
if the last node not are "buildable to" (like air, water, grass) remove the arrow

HolgiB
Member
Posts: 11
Joined: Fri Jan 13, 2017 07:09

Re: [Mod] Bows V5r [bows]

by HolgiB » Post

Thanks for your detailed explanation !

Two last questions:
#1 Where can I grab the right version of the TNT mod with working API that usually should work with your arrow mod ?
#2 (Somewhat related to #1) Do you think a possible issue could simply be that the version of TNT included with the Minetest package under Ubuntu is simply incompatible with your mod ?

My idea would be simply to delete the TNT files inside the Minetest installation and add the "right" TNT version under ~/.minetest/mods/tnt

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

Re: [Mod] Bows V5r [bows]

by AiTechEye » Post

https://github.com/minetest/minetest_ga ... r/mods/tnt

need to download
https://github.com/minetest/minetest_game

if it wont work is it just to wait, because i plans to make a explosion function to the mod instead of messing with tnt
and add 1 or 2 very special arrows, when im learn to use voxel / area (im not a mathematician at all)

HolgiB
Member
Posts: 11
Joined: Fri Jan 13, 2017 07:09

Re: [Mod] Bows V5r [bows]

by HolgiB » Post

Thanks a lot...if I find the time, I will have a look at. Otherwise I will simply wait for the next update.

Even if this is a bit OT: I listened to some of your music tracks on YT and liked them. Nice "trancy" style.

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

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

by AiTechEye » Post

done
now you dont need the tnt mod at all

V6:
Changed craft for TNT
Added: Nitrogen arrow
Added: Nitrogen TNT arrow
Added: Nuke arrow
(added explosion api)

Image

HolgiB
Member
Posts: 11
Joined: Fri Jan 13, 2017 07:09

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

by HolgiB » Post

Thanks for the update !

I had a quick yesterday at the mod and was wondering that in creative mode TNT arrows were missing. They were available with the last versions. Do I have to craft them first prior using ? Sorry for the possibly stupid question but I am somewhat a minetest / minecraft newb :)

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

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

by AiTechEye » Post

you need to enable the nitroglycerine (api in the bows modpack) to use the tnt, nitrogen,and nuke arrow

HolgiB
Member
Posts: 11
Joined: Fri Jan 13, 2017 07:09

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

by HolgiB » Post

UjEdwin wrote:you need to enable the nitroglycerine (api in the bows modpack) to use the tnt, nitrogen,and nuke arrow
Thanks for your reply ! Enable in the API of the bows modpack ?
Possibly stupid question again: How ? :-)
Simply by writing a lua command in the console ?
The modpack textfile had 0 kB in the latest zip.

TIA

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

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

by AiTechEye » Post

When you pressed the world "Configure" button, can you hide or unhide modpack contents by uncheck "Hide mp content"

or just reenable the mod :D

the nitroglycerine / api is a mod too, so users easy can enable or disable the explosion stuff easy.

Image
Attachments
1.JPG
1.JPG (27.3 KiB) Viewed 1281 times

HolgiB
Member
Posts: 11
Joined: Fri Jan 13, 2017 07:09

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

by HolgiB » Post

Thanks a lot.....sorry for being such a noob !

I could have figured out that I need to re-enable things when a mod changes. Say...is there a distance limit ? I fired some nuke arrows from the top of a hill and they seem to go "endlessly".

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

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

by AiTechEye » Post

depends on what bow you using, because they have different strengths.

HolgiB
Member
Posts: 11
Joined: Fri Jan 13, 2017 07:09

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

by HolgiB » Post

This makes sense :-)
I had the Rainbow Bow.....so I guess the range is pretty high.

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

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

by AiTechEye » Post

you got it, its same as default tools, like a mesepick is a lot stronger and faster than a stone pick.
bows are stronger with better precision.

Jack_Sparrow
New member
Posts: 2
Joined: Fri Apr 21, 2017 13:31
In-game: Nadya_Odaire

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

by Jack_Sparrow » Post

Where's the download link?

HolgiB
Member
Posts: 11
Joined: Fri Jan 13, 2017 07:09

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

by HolgiB » Post

First post of this thread ? :-)

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

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

by AiTechEye » Post

the download are attached to the first post, under the pictures

viewtopic.php?f=11&t=14384

or download it here
download/file.php?id=10001

amadin
Member
Posts: 549
Joined: Tue Jun 16, 2015 16:23

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

by amadin » Post

.
Last edited by amadin on Wed Dec 18, 2019 19:21, edited 1 time in total.

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

Re: [Mod] Bows with arrows V10.1 [bows]

by AiTechEye » Post

fixed arrows wont stuck in the target (nodeboxes) v10.1, (was a bad bug fix)

the arrows are checking every system-tic, so only lags can make the arrows miss blocks.
the better bow you are using, the faster the arrows goes, and bigger chance to miss (yeah, thats annoying, but realistic, enough hard and fast arrows could be able to go through walls)

the mod are using its own explosion api/mod "nitroglycerine", so you dont need tnt, and should work with any protect mod.

if tis not a hard survie would i recomand you to disable nuke and or cluser in the init.lua
Last edited by AiTechEye on Sun May 21, 2017 19:28, edited 1 time in total.

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

Re: [Mod] Bows with arrows V10.1 [bows]

by AiTechEye » Post

double post... thanks to my slow network

User avatar
Andrey01
Member
Posts: 2574
Joined: Wed Oct 19, 2016 15:18
GitHub: Andrey2470T
In-game: Andrey01
Location: Russia, Moscow

Re: [Mod] Bows with arrows V10.1 [bows]

by Andrey01 » Post

Can you add mithril, silver bows and arrows? It will depends from More Ores mod.

User avatar
azekill_DIABLO
Member
Posts: 7507
Joined: Wed Oct 29, 2014 20:05
GitHub: azekillDIABLO
In-game: azekill_DIABLO
Location: OMICRON
Contact:

Re: [Mod] Bows with arrows V10.1 [bows]

by azekill_DIABLO » Post

would be nice!
Gone, but not dead. Contact me on discord: azekill_DIABLO#6565
DMs are always open if you want to get in touch!

Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot] and 19 guests