[Mod] Laser Sword [0.3] [laser_mod]

User avatar
sirken
Member
 
Posts: 15
Joined: Thu Oct 09, 2014 15:18
GitHub: sirken

[Mod] Laser Sword [0.3] [laser_mod]

by sirken » Fri Nov 28, 2014 00:51

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).
Last edited by sirken on Sat May 23, 2015 20:20, edited 4 times in total.
 

User avatar
Krock
Member
 
Posts: 3598
Joined: Thu Oct 03, 2013 07:48
GitHub: SmallJoker

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

by Krock » Fri Nov 28, 2014 16:59

Yay, Star Wars is coming!

Thank you for reviving this interesting mod
Newest Win32 builds - Find a mod - All my mods
ALL YOUR DONATION ARE BELONG TO PARAMAT (Please support him and Minetest)
New DuckDuckGo !bang: !mtmod <keyword here>
 

User avatar
Calinou
Member
 
Posts: 3124
Joined: Mon Aug 01, 2011 14:26
GitHub: Calinou
IRC: Calinou
In-game: Calinou

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

by Calinou » Fri Nov 28, 2014 18:06

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.
 

User avatar
sirken
Member
 
Posts: 15
Joined: Thu Oct 09, 2014 15:18
GitHub: sirken

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

by sirken » Sun Nov 30, 2014 00:38

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.
 

User avatar
vitaminx
Member
 
Posts: 49
Joined: Tue Dec 30, 2014 15:08
GitHub: vitaminx

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

by vitaminx » Tue Jan 13, 2015 09:28

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.
Last edited by vitaminx on Wed Jan 14, 2015 10:24, edited 1 time in total.
 

User avatar
sirken
Member
 
Posts: 15
Joined: Thu Oct 09, 2014 15:18
GitHub: sirken

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

by sirken » Wed Jan 14, 2015 05:42

Thanks for bug and fix, mod updated.
 

tbillion
Member
 
Posts: 189
Joined: Wed Apr 03, 2013 16:07

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

by tbillion » Sun Nov 22, 2015 12:46

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 :)
 

User avatar
benrob0329
Member
 
Posts: 1192
Joined: Thu Aug 06, 2015 22:39
GitHub: Benrob0329
In-game: benrob03

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

by benrob0329 » Sun Nov 22, 2015 15:26

*breathing noise* Sam, I am your coder *breathing noise*
 

tbillion
Member
 
Posts: 189
Joined: Wed Apr 03, 2013 16:07

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

by tbillion » Wed Nov 25, 2015 13:06

haha... we should get a set of textures for 3d armor that make you a storm trooper or Darth Vader himself..
 

MinisterFarrigut
Member
 
Posts: 40
Joined: Fri Oct 14, 2016 14:59

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

by MinisterFarrigut » Wed Oct 19, 2016 00:44

Anyone want to volunteer?
 

ManElevation
Member
 
Posts: 213
Joined: Tue Aug 02, 2016 22:04
GitHub: ManElevation
IRC: ManElevation
In-game: ManElevation

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

by ManElevation » Thu Oct 20, 2016 11:58

MinisterFarrigut wrote:Anyone want to volunteer?


for what?
Hey there im going to be off minetest for a while because my company has been deleloping a game called Ground Conflict, if you wish to see some screenshots or have some info, than please join our discord server https://discord.gg/C9ygXJn
 


Return to Mod Releases

Who is online

Users browsing this forum: No registered users and 5 guests

cron