Page 1 of 1

[Mod] Laser Sword [0.3] [laser_mod]

PostPosted: Fri Nov 28, 2014 00:51
by sirken
Laser Sword mod

An updated version of the laser sword mod, forked from this one: viewtopic.php?id=2632. The swords are powerful and cut through anything but wear out somewhat quickly.

Version 0.4 update (by vitaminx):
- bugfix for "undeclared global variable" error message

Version 0.3 update (by vitaminx):
- bugfix for server crash at player disconnect

Version 0.2 updates:
- Recreated graphics
- 16px and 32px textures
- Added more swords
- Added sword sounds
- Changed recipes
- Changed tool capabilities

Screenshot:
Image

Recipes:
+ Spoiler


Minetest version: 0.4.10 (previous versions untested)

Depends: default

Recommends: 3d_armor (to see wielded weapons)

License:
Code and graphics CC BY-NC-SA 3.0 http://creativecommons.org/licenses/by-nc-sa/3.0/
Sounds CC BY 3.0 http://creativecommons.org/licenses/by/3.0/

Download: Version 0.4
Download: Version 0.3
Download: Version 0.2

Browse code: github

Notes:
- 32px textures are default. If you want to use 16px, they are in a subfolder in the textures folder.
- Hopefully the sounds are implemented correctly. If they present problems in a mutiplayer environment, you can disable them by editing the init.lua file (instructions in the file).

Re: [Mod] Laser Sword [0.2] [laser_mod]

PostPosted: Fri Nov 28, 2014 16:59
by Krock
Yay, Star Wars is coming!

Thank you for reviving this interesting mod

Re: [Mod] Laser Sword [0.2] [laser_mod]

PostPosted: Fri Nov 28, 2014 18:06
by Calinou
Can you switch away from CC BY-NC-SA, please? It is not a free culture license. Thanks in advance.

Also, it is preferable to use “LGPLv2 or later” for code, which is the same license as mod code found in Minetest.

Re: [Mod] Laser Sword [0.2] [laser_mod]

PostPosted: Sun Nov 30, 2014 00:38
by sirken
Calinou wrote:Can you switch away from CC BY-NC-SA, please? It is not a free culture license. Thanks in advance.

Also, it is preferable to use “LGPLv2 or later” for code, which is the same license as mod code found in Minetest.


I would prefer to move away from CC BY-NC-SA. However, the original mod was under this license, which (if I understand correctly) requires you use the same license.

Re: [Mod] Laser Sword [0.2] [laser_mod]

PostPosted: Tue Jan 13, 2015 09:28
by vitaminx
Hi, the mod crashes the minetest server once in a while:

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
02:35:59: ERROR[main]: ERROR: An unhandled exception occurred: /home/minetest/.minetest/mods/laser_mod/init.lua:40: attempt to index a nil value


My guess is this happens when a player disconnects while swinging his sword - the code still wants to reference the player (which is now NIL) to stop the laser sound.

Re: [Mod] Laser Sword [0.2] [laser_mod]

PostPosted: Wed Jan 14, 2015 05:42
by sirken
Thanks for bug and fix, mod updated.

Re: [Mod] Laser Sword [0.3] [laser_mod]

PostPosted: Sun Nov 22, 2015 12:46
by tbillion
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
2015-11-22 06:44:35: ERROR[Main]: ModError: Failed to load and run script from /home/tjohnson/Downloads/minetest-master/bin/../mods/lightsaber/init.lua:
2015-11-22 06:44:35: ERROR[Main]: ...ads/minetest-master/bin/../builtin/game/register.lua:60: Name laser_mod:red_sword does not follow naming conventions: "modname:" or ":" prefix required
2015-11-22 06:44:35: ERROR[Main]: stack traceback:
2015-11-22 06:44:35: ERROR[Main]:       [C]: in function 'error'
2015-11-22 06:44:35: ERROR[Main]:       ...ads/minetest-master/bin/../builtin/game/register.lua:60: in function 'check_modname_prefix'
2015-11-22 06:44:35: ERROR[Main]:       ...ads/minetest-master/bin/../builtin/game/register.lua:98: in function 'register_item'
2015-11-22 06:44:35: ERROR[Main]:       ...ads/minetest-master/bin/../builtin/game/register.lua:216: in function 'really_register_tool'
2015-11-22 06:44:35: ERROR[Main]:       ...n/../mods/technic-master/technic_worldgen/crafts.lua:162: in function 'register_tool'
2015-11-22 06:44:35: ERROR[Main]:       ...oads/minetest-master/bin/../mods/lightsaber/init.lua:67: in main chunk
2015-11-22 06:44:35: ERROR[Main]: Check debug.txt for details.


... i fixed my copy... i really wanted to be darth vader :) that was the error it puked though you should maybe fic the downloadable version :)

Re: [Mod] Laser Sword [0.3] [laser_mod]

PostPosted: Sun Nov 22, 2015 15:26
by benrob0329
*breathing noise* Sam, I am your coder *breathing noise*

Re: [Mod] Laser Sword [0.3] [laser_mod]

PostPosted: Wed Nov 25, 2015 13:06
by tbillion
haha... we should get a set of textures for 3d armor that make you a storm trooper or Darth Vader himself..

Re: [Mod] Laser Sword [0.3] [laser_mod]

PostPosted: Wed Oct 19, 2016 00:44
by MinisterFarrigut
Anyone want to volunteer?

Re: [Mod] Laser Sword [0.3] [laser_mod]

PostPosted: Thu Oct 20, 2016 11:58
by ManElevation
MinisterFarrigut wrote:Anyone want to volunteer?


for what?