[Mod] Firearms [0.2.0] [firearms]

WailFin
New member
 
Posts: 4
Joined: Sun Jul 28, 2013 00:02

by WailFin » Sun Jul 28, 2013 03:20

kaeza wrote:Try entering the following commands in-game (press 'T' then type them in):
Code: Select all
/giveme firearms_guns:bullet_45 99
/giveme firearms_guns:pistol_45

That should give you a .45 pistol and 99 bullets.


THANKS, man. FINALLY got it working. Awesome mod!
 

WailFin
New member
 
Posts: 4
Joined: Sun Jul 28, 2013 00:02

by WailFin » Sun Jul 28, 2013 13:15

WailFin wrote:
kaeza wrote:Try entering the following commands in-game (press 'T' then type them in):
Code: Select all
/giveme firearms_guns:bullet_45 99
/giveme firearms_guns:pistol_45

That should give you a .45 pistol and 99 bullets.


THANKS, man. FINALLY got it working. Awesome mod!


Also, could you tell me the commands for giving myself each of the individual firearms [and maybe ammo] (In case you haven't guessed, I have NO idea what I'm doing)? Sorry for being such a bother...
 

User avatar
kaeza
Moderator
 
Posts: 2162
Joined: Thu Oct 18, 2012 05:00
Location: Montevideo, Uruguay
GitHub: kaeza
IRC: kaeza diemartin blaaaaargh
In-game: kaeza

by kaeza » Sun Jul 28, 2013 13:35

WailFin wrote:Also, could you tell me the commands for giving myself each of the individual firearms [and maybe ammo] (In case you haven't guessed, I have NO idea what I'm doing)?  Sorry for being such a bother...



*shrug*

I really need to add a document about this to the mod. Maybe later.

For now, I came up with this:

Below is a list with all the defined items.

Use the following command to get each gun:
Code: Select all
/giveme <itemname>

For example:
Code: Select all
/giveme firearms_guns:m4


And use this one to get ammo:
Code: Select all
/giveme <itemname> <amount>

For example:
Code: Select all
/giveme firearms_guns:shell_12 99


These are the guns:

M9 (Pistol):
Code: Select all
firearms_guns:pistol_45


M4 (Assault Rifle):
Code: Select all
firearms_guns:m4


M3 (Shotgun):
Code: Select all
firearms_guns:m3


M79 (Grenade Launcher):
Code: Select all
firearms_destructive:m79


Bazooka/Rocket Launcher/Whatever:
Code: Select all
firearms_destructive:bazooka


These are the rounds:

.45 Rounds (for M9 Pistol):
Code: Select all
firearms_guns:bullet_45


5.56mm Rounds (for M4 Rifle):
Code: Select all
firearms_guns:bullet_556


12 Gauge Shells (for M3 Shotgun):
Code: Select all
firearms_guns:shell_12


40mm High Explosive rounds (for grenade launcher):
Code: Select all
firearms_destructive:he_40mm


Rocket (for Bazooka):
Code: Select all
firearms_destructive:rocket


Hope that helps.

EDIT: If all else fails, use creative mode to get the items you want.
Last edited by kaeza on Sun Jul 28, 2013 13:36, edited 1 time in total.
Your signature is not the place for a blog post. Please keep it as concise as possible. Thank you!

Check out my stuff! | Donations greatly appreciated! PayPal
 

User avatar
Ikishida
Member
 
Posts: 107
Joined: Sat Aug 17, 2013 08:02
Location: (secret)

by Ikishida » Sun Aug 18, 2013 06:30

what's the recipe to make a gun?
When life hands you lemons,throw it back at life saying "I don't need your goddamn lemons!" =D
 

User avatar
webdesigner97
Member
 
Posts: 1325
Joined: Mon Jul 30, 2012 19:16
Location: Bergisch Gladbach, Germany
GitHub: webD97
IRC: webdesigner97
In-game: webdesigner97

by webdesigner97 » Sun Aug 18, 2013 10:23

Image

I'm using the 0.4.7 stable download and Minetest 0.4.7 stable.
 

kbobdc3
Member
 
Posts: 13
Joined: Mon Dec 10, 2012 21:23
Location: Delmar, Delaware

by kbobdc3 » Wed Aug 21, 2013 13:13

I keep getting error messages
ERROR[main]: ServerError: LuaError: error running function 'on_step': ...est build\bin\..\mods\firearms\firearmslib/explosion.lua:39: attempt to index local 'bulletdef' (a nil value)
I'm not stupid, I'm weak minded
 

User avatar
kaeza
Moderator
 
Posts: 2162
Joined: Thu Oct 18, 2012 05:00
Location: Montevideo, Uruguay
GitHub: kaeza
IRC: kaeza diemartin blaaaaargh
In-game: kaeza

by kaeza » Wed Aug 21, 2013 14:03

webdesigner97 wrote:http://im.bilderkiste.org/5137682139802/bug.PNG

I'm using the 0.4.7 stable download and Minetest 0.4.7 stable.
kbobdc3 wrote:I keep getting error messages
ERROR[main]: ServerError: LuaError: error running function 'on_step': ...est build\bin\..\mods\firearms\firearmslib/explosion.lua:39: attempt to index local 'bulletdef' (a nil value)

Please remove the firearms_destructive mod for now. I will look into it later.
Last edited by kaeza on Wed Aug 21, 2013 14:05, edited 1 time in total.
Your signature is not the place for a blog post. Please keep it as concise as possible. Thank you!

Check out my stuff! | Donations greatly appreciated! PayPal
 

User avatar
kaeza
Moderator
 
Posts: 2162
Joined: Thu Oct 18, 2012 05:00
Location: Montevideo, Uruguay
GitHub: kaeza
IRC: kaeza diemartin blaaaaargh
In-game: kaeza

by kaeza » Wed Aug 21, 2013 14:05

Your signature is not the place for a blog post. Please keep it as concise as possible. Thank you!

Check out my stuff! | Donations greatly appreciated! PayPal
 

User avatar
webdesigner97
Member
 
Posts: 1325
Joined: Mon Jul 30, 2012 19:16
Location: Bergisch Gladbach, Germany
GitHub: webD97
IRC: webdesigner97
In-game: webdesigner97

by webdesigner97 » Wed Aug 21, 2013 17:27

kaeza wrote:
webdesigner97 wrote:http://im.bilderkiste.org/5137682139802/bug.PNG

I'm using the 0.4.7 stable download and Minetest 0.4.7 stable.
kbobdc3 wrote:I keep getting error messages
ERROR[main]: ServerError: LuaError: error running function 'on_step': ...est build\bin\..\mods\firearms\firearmslib/explosion.lua:39: attempt to index local 'bulletdef' (a nil value)

Please remove the firearms_destructive mod for now. I will look into it later.

ok ;)
 

User avatar
BrunoMine
Member
 
Posts: 1063
Joined: Thu Apr 25, 2013 17:29
Location: SP-Brasil
GitHub: BrunoMine

by BrunoMine » Thu Aug 29, 2013 21:28

I can not mount .45 pistol
What is the recipe?
MII
-SW -> W = wood / S = stick / I = iron / M = ammunition (pistol_.45)
---W
I could not with this recipe.
My small square universe under construction ... Minemacro
Comunidade Minetest Brasil
www.minetestbrasil.com
 

User avatar
BrunoMine
Member
 
Posts: 1063
Joined: Thu Apr 25, 2013 17:29
Location: SP-Brasil
GitHub: BrunoMine

by BrunoMine » Thu Aug 29, 2013 21:43

You made mistakes in the mod.
The init this with some errors in the word default.
You should tidy it soon.
Some servers are using this mod with error.
My small square universe under construction ... Minemacro
Comunidade Minetest Brasil
www.minetestbrasil.com
 

clarksallador
Member
 
Posts: 57
Joined: Sun Sep 30, 2012 03:18
Location: Philippines

by clarksallador » Tue Sep 24, 2013 11:16

help
whenever i use the explosives one this always pops-out:
ServerError:LuaError:error running function 'on_step':
...st_game\mods\minetest-firearms\firearms/explosion.lua39:attempt to index local 'bulletdef' (a nil value)


Edit:
Sorry about the first post .. didn't saw that
Last edited by clarksallador on Tue Sep 24, 2013 11:19, edited 1 time in total.
 

User avatar
kaeza
Moderator
 
Posts: 2162
Joined: Thu Oct 18, 2012 05:00
Location: Montevideo, Uruguay
GitHub: kaeza
IRC: kaeza diemartin blaaaaargh
In-game: kaeza

by kaeza » Tue Sep 24, 2013 11:17

clarksallador wrote:How do you reload?

Did you read the first post?
Your signature is not the place for a blog post. Please keep it as concise as possible. Thank you!

Check out my stuff! | Donations greatly appreciated! PayPal
 

User avatar
kaeza
Moderator
 
Posts: 2162
Joined: Thu Oct 18, 2012 05:00
Location: Montevideo, Uruguay
GitHub: kaeza
IRC: kaeza diemartin blaaaaargh
In-game: kaeza

by kaeza » Tue Sep 24, 2013 11:22

clarksallador wrote:help
whenever i use the explosives one this always pops-out:
ServerError:LuaError:error running function 'on_step':
...st_game\mods\minetest-firearms\firearms/explosion.lua39:attempt to index local 'bulletdef' (a nil value)


Known. See above.
Your signature is not the place for a blog post. Please keep it as concise as possible. Thank you!

Check out my stuff! | Donations greatly appreciated! PayPal
 

User avatar
BrunoMine
Member
 
Posts: 1063
Joined: Thu Apr 25, 2013 17:29
Location: SP-Brasil
GitHub: BrunoMine

by BrunoMine » Wed Sep 25, 2013 19:00

The shots go through the walls. is this correct? or is it a bug?
My small square universe under construction ... Minemacro
Comunidade Minetest Brasil
www.minetestbrasil.com
 

User avatar
kaeza
Moderator
 
Posts: 2162
Joined: Thu Oct 18, 2012 05:00
Location: Montevideo, Uruguay
GitHub: kaeza
IRC: kaeza diemartin blaaaaargh
In-game: kaeza

by kaeza » Wed Sep 25, 2013 21:01

brunob.santos wrote:The shots go through the walls. is this correct? or is it a bug?

They shouldn't. Which weapon were you using?
Your signature is not the place for a blog post. Please keep it as concise as possible. Thank you!

Check out my stuff! | Donations greatly appreciated! PayPal
 

User avatar
BrunoMine
Member
 
Posts: 1063
Joined: Thu Apr 25, 2013 17:29
Location: SP-Brasil
GitHub: BrunoMine

by BrunoMine » Wed Sep 25, 2013 21:21

kaeza wrote:
brunob.santos wrote:The shots go through the walls. is this correct? or is it a bug?

They shouldn't. Which weapon were you using?

simply all were equal. (except destructive).
Just shoot in the direction of the name. The player will be injured.
My small square universe under construction ... Minemacro
Comunidade Minetest Brasil
www.minetestbrasil.com
 

dafull97
Member
 
Posts: 19
Joined: Mon Sep 23, 2013 13:08

by dafull97 » Thu Sep 26, 2013 22:28

Sorry if this is a Stupid question.... how do i shoot it... like it tells me 0 ammo... help please?
 

musicritic42
New member
 
Posts: 3
Joined: Mon Oct 14, 2013 18:52
 

User avatar
kaeza
Moderator
 
Posts: 2162
Joined: Thu Oct 18, 2012 05:00
Location: Montevideo, Uruguay
GitHub: kaeza
IRC: kaeza diemartin blaaaaargh
In-game: kaeza

by kaeza » Wed Oct 16, 2013 12:49

I have rewritten the entire mod from scratch. It now also supports "zoom" on singleplayer or patched clients. See first post for download link.
Your signature is not the place for a blog post. Please keep it as concise as possible. Thank you!

Check out my stuff! | Donations greatly appreciated! PayPal
 

User avatar
jojoa1997
Member
 
Posts: 2890
Joined: Thu Dec 13, 2012 05:11
Location: Earth

by jojoa1997 » Wed Oct 16, 2013 15:08

kaeza wrote:I have rewritten the entire mod from scratch. It now also supports "zoom" on singleplayer or patched clients. See first post for download link.
How do you zoom. And how come a mod can change fov in singleplayer but not multiplayer?
Coding;
1X coding
3X debugging
12X tweaking to be just right
 

User avatar
kaeza
Moderator
 
Posts: 2162
Joined: Thu Oct 18, 2012 05:00
Location: Montevideo, Uruguay
GitHub: kaeza
IRC: kaeza diemartin blaaaaargh
In-game: kaeza

by kaeza » Wed Oct 16, 2013 17:12

jojoa1997 wrote:How do you zoom. And how come a mod can change fov in singleplayer but not multiplayer?

see firearmslib/action.lua (search for 'set_fov')
Your signature is not the place for a blog post. Please keep it as concise as possible. Thank you!

Check out my stuff! | Donations greatly appreciated! PayPal
 

User avatar
rubenwardy
Moderator
 
Posts: 5891
Joined: Tue Jun 12, 2012 18:11
Location: United Kingdom
GitHub: rubenwardy
IRC: rubenwardy
In-game: rubenwardy
 

User avatar
Bas080
Member
 
Posts: 398
Joined: Mon May 21, 2012 15:54
Location: Netherlands
GitHub: bas080
IRC: bas080
In-game: bas080

by Bas080 » Fri Oct 18, 2013 15:01

Nice update! zoom looks great! so do the new textures for wielded items. New animation for shooting a gun would make this complete. A system for allowing the option to add or choose several wield animations would be great!
 

User avatar
Melkor
Member
 
Posts: 328
Joined: Sat Sep 24, 2011 01:03
Location: Underground

by Melkor » Fri Oct 18, 2013 15:33

I do not know what I did wrong...

Code: Select all
09:19:52: ERROR[main]: ========== ERROR FROM LUA ===========
09:19:52: ERROR[main]: Failed to load and run script from
09:19:52: ERROR[main]: C:\Users\melkor\games\minetest\minetest-0.4.7\bin\..\games\minetest_game\mods\firearmslib\init.lua:
09:19:52: ERROR[main]: ...7\bin\..\games\minetest_game\mods\firearmslib/config.lua:12: attempt to call global 'Settings' (a nil value)
09:19:52: ERROR[main]: stack traceback:
09:19:52: ERROR[main]:     ...7\bin\..\games\minetest_game\mods\firearmslib/config.lua:12: in main chunk
09:19:52: ERROR[main]:     [C]: in function 'dofile'
09:19:52: ERROR[main]:     ...4.7\bin\..\games\minetest_game\mods\firearmslib\init.lua:22: in main chunk
09:19:52: ERROR[main]: =======END OF ERROR FROM LUA ========
09:19:52: ERROR[main]: Server: Failed to load and run C:\Users\melkor\games\minetest\minetest-0.4.7\bin\..\games\minetest_game\mods\firearmslib\init.lua
09:19:52: ERROR[main]: ModError: Failed to load and run C:\Users\melkor\games\minetest\minetest-0.4.7\bin\..\games\minetest_game\mods\firearmslib\init.lua


kaeza wrote:NEW VERSION: http://youtu.be/CPRou-DFqgI

awesome!
 

PreviousNext

Return to Mod Releases



Who is online

Users browsing this forum: Google [Bot], MSN [Bot] and 5 guests