[Mod] Firearms [0.2.0] [firearms]

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

by WailFin » Post

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!

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

by WailFin » Post

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
GitHub: kaeza
IRC: kaeza diemartin blaaaaargh
In-game: kaeza
Location: Montevideo, Uruguay
Contact:

by kaeza » Post

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 » Post

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: 1327
Joined: Mon Jul 30, 2012 19:16
GitHub: webD97
IRC: webdesigner97
In-game: webdesigner97
Location: Cologne, Germany
Contact:

by webdesigner97 » Post

Image

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

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

by kbobdc3 » Post

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
GitHub: kaeza
IRC: kaeza diemartin blaaaaargh
In-game: kaeza
Location: Montevideo, Uruguay
Contact:

by kaeza » Post

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
GitHub: kaeza
IRC: kaeza diemartin blaaaaargh
In-game: kaeza
Location: Montevideo, Uruguay
Contact:

by kaeza » Post

Ikishida wrote:what's the recipe to make a gun?
https://github.com/kaeza/minetest-firea ... t.lua#L104
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: 1327
Joined: Mon Jul 30, 2012 19:16
GitHub: webD97
IRC: webdesigner97
In-game: webdesigner97
Location: Cologne, Germany
Contact:

by webdesigner97 » Post

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: 1073
Joined: Thu Apr 25, 2013 17:29
GitHub: BrunoMine
Location: SP-Brasil
Contact:

by BrunoMine » Post

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: 1073
Joined: Thu Apr 25, 2013 17:29
GitHub: BrunoMine
Location: SP-Brasil
Contact:

by BrunoMine » Post

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

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

by clarksallador » Post

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
GitHub: kaeza
IRC: kaeza diemartin blaaaaargh
In-game: kaeza
Location: Montevideo, Uruguay
Contact:

by kaeza » Post

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
GitHub: kaeza
IRC: kaeza diemartin blaaaaargh
In-game: kaeza
Location: Montevideo, Uruguay
Contact:

by kaeza » Post

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: 1073
Joined: Thu Apr 25, 2013 17:29
GitHub: BrunoMine
Location: SP-Brasil
Contact:

by BrunoMine » Post

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
GitHub: kaeza
IRC: kaeza diemartin blaaaaargh
In-game: kaeza
Location: Montevideo, Uruguay
Contact:

by kaeza » Post

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: 1073
Joined: Thu Apr 25, 2013 17:29
GitHub: BrunoMine
Location: SP-Brasil
Contact:

by BrunoMine » Post

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

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

by dafull97 » Post

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

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

by musicritic42 » Post

How do you reload?

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

by kaeza » Post

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 » Post

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
GitHub: kaeza
IRC: kaeza diemartin blaaaaargh
In-game: kaeza
Location: Montevideo, Uruguay
Contact:

by kaeza » Post

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: 6276
Joined: Tue Jun 12, 2012 18:11
GitHub: rubenwardy
IRC: rubenwardy
In-game: rubenwardy
Location: United Kingdom
Contact:

by rubenwardy » Post

Does firearms_destructive work yet?

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

by Bas080 » Post

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: 358
Joined: Sat Sep 24, 2011 01:03
Location: Underground

by Melkor » Post

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!

Post Reply

Who is online

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