Page 1 of 1

[Mod] Chakram 3.4 (throw & hurt/pick up stuff) [chakram]

PostPosted: Wed Dec 16, 2015 19:51
by AiTechEye
Image


The tool is a weapon at same time
Throw it and it will always return as long there still is velocity/power left
It can pick up stuff that is breakable by hand (like no use by tools) and mobs/drops that have 10hp or less.
Players (or mobs that have more then 10 hp) will be hurted.

+ Mese can break more stuff, more times at same throw, and can break stuff like stone / ores, makes a flash when hit something (usefull in darknes / caves)

- Wood cant pick up stuff, hurt less, it fail if it hit hard block.

Licenses: code LGPL 2.1 media CC BY-SA 3.0
Depends: none

Re: [Mod] chakram (throw & get stuff back)

PostPosted: Wed Dec 16, 2015 19:53
by benrob0329
Looks neat, I'll have to try this layer.

Re: [Mod] chakram (throw & get stuff back)

PostPosted: Wed Dec 16, 2015 21:31
by mahmutelmas06
+1

Re: [Mod] chakram 3 (throw & hurt / pick up stuff)

PostPosted: Fri Dec 18, 2015 18:02
by AiTechEye
Version 3: fixed bugs and crashes (hard tested)
Version 3.1 fixed the last crash (when the chakram is moving to the owner, and the owner in somehow leaving the game at same time)

Re: [Mod] chakram 3.1 (throw & hurt / pick up stuff)

PostPosted: Sun Dec 20, 2015 06:30
by izzyb
Great Mod! :)

Think I found a bug - and the fix.

It causes the server to crashes with the mese, and wood chakram. Looks like the same typo in both files. I'm assuming np should be pos in both files based on line 122 of steel.lua . The following warnings are produced just before the crash.

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
WARNING: Undeclared global variable "np" accessed at /usr/share/games/minetest/mods/chakram/wood.lua:98

and
 
WARNING: Undeclared global variable "np" accessed at /usr/share/games/minetest/mods/chakram/mese.lua:93

Re: [Mod] chakram 3.1 (throw & hurt / pick up stuff)

PostPosted: Sun Dec 20, 2015 12:20
by AiTechEye
Thanks for reporting, it was 2 old variables that i forgot to change :-)

Re: [Mod] chakram 3.3 (throw & hurt / pick up stuff)

PostPosted: Mon Feb 08, 2016 20:32
by Excalibur Zero
Can you put this up on GitHub? That way other people can make contributions to it.

Re: [Mod] chakram 3.3 (throw & hurt / pick up stuff)

PostPosted: Mon Feb 08, 2016 21:26
by AiTechEye
i have tryed that 3 times, but just messup, there is a lot of other people that can do it for us, :-)

Re: [Mod] chakram 3.3 (throw & hurt / pick up stuff)

PostPosted: Mon Feb 08, 2016 22:09
by Excalibur Zero
UjEdwin wrote:i have tryed that 3 times, but just messup, there is a lot of other people that can do it for us, :-)

If you need help putting it up on Github and using Git, I can help you out with that. I have a good bit of experience working with Git and GitHub.

Re: [Mod] chakram 3.3 (throw & hurt / pick up stuff)

PostPosted: Tue Feb 09, 2016 01:42
by mahmutelmas06
I have pushed for u to github.
Just fork it

https://github.com/mahmutelmas06/chakram

Re: [Mod] chakram 3.3 (throw & hurt / pick up stuff)

PostPosted: Fri Feb 12, 2016 14:49
by azekill_DIABLO
i looks exelent and useful! good job guy! +1

Re: [Mod] chakram 3.3 (throw & hurt / pick up stuff)

PostPosted: Wed Feb 24, 2016 17:48
by azekill_DIABLO
i added it to my subgame!