Posted: Fri Oct 18, 2013 15:48
Wow! This is very cool!
The official Minetest discussion board
https://forum.minetest.net/
You need latest git of Minetest. Use one of sfan5's, PilzAdam's, or BlockMen's builds if on Windows.Melkor wrote:I do not know what I did wrong...
-snip-
Code: Select all
10:18:53: ACTION[ServerThread]: Froggy uses firearms:m4, pointing at [nothing]
10:18:56: ACTION[ServerThread]: Froggy uses firearms:m4, pointing at [nothing]
10:18:58: ACTION[ServerThread]: Froggy leaves game. List of players:
10:18:58: ERROR[main]: ServerError: LuaError: ...timus/.minetest/mods/firearms/firearmslib/bullet.lua:46: bad argument #1 to 'unpack' (table expected, got number)
10:18:58: ERROR[main]: stack traceback:
10:18:58: ERROR[main]: [C]: in function 'unpack'
10:18:58: ERROR[main]: ...timus/.minetest/mods/firearms/firearmslib/bullet.lua:46: in function 'find_collision_point'
10:18:58: ERROR[main]: ...timus/.minetest/mods/firearms/firearmslib/bullet.lua:76: in function 'on_step'
10:18:58: ERROR[main]: ...minetest/mods/firearms/firearmslib/pureluaentity.lua:45: in function '__do_step'
10:18:58: ERROR[main]: ...minetest/mods/firearms/firearmslib/pureluaentity.lua:197: in function <...minetest/mods/firearms/firearmslib/pureluaentity.lua:194>
Fixed, thanks for reporting. Re-download the mod.Froggy wrote:After trying out this mod, I found a bug. When you shoot at slabs of any material, the game crashes.
debug.txt gives this:
The same happens with every other gun, as well. Not only the m4.Code: Select all
-- snip --
I really need to implement proper damage calculation. Expect Something Soon™.Froggy wrote:Make the sniper rifle deal more damage. I had to give the sniper multiple pellets for it to be of any use. Before, it only did 2 hp damage.
The sniper rifle only works in single player. Multiplayer is only supported with a suitably patched engine. If you know how to compile Minetest yourself (or can get somebody to do it for you), the patch is in `firearmslib/util/player_setfov.patch'.Froggy wrote:The sniper rifle also doesn't zoom when right clicked, it only reduces blacks out the surrounding view.
This isn't implemented yet. Again, Expect Something Soon™.Froggy wrote:Physical ammo is gone for some reason. I can't /give any, and just doing shift+left-click gives you ammo from nowhere.
I forgot to update the postFroggy wrote:In the top post you say player damage is not implemented, but it is.
Thank youFroggy wrote:But, I've got to say, this is a very fun mod!
Code: Select all
21:40:26: ERROR[main]: ========== ERROR FROM LUA ===========
21:40:26: ERROR[main]: Failed to load and run script from
21:40:26: ERROR[main]: /home/optimus/.minetest/mods/firearms/firearmslib/init.lua:
21:40:26: ERROR[main]: ...minetest/mods/firearms/firearmslib/pureluaentity.lua:161: attempt to get length of local 't' (a nil value)
21:40:26: ERROR[main]: stack traceback:
21:40:26: ERROR[main]: ...minetest/mods/firearms/firearmslib/pureluaentity.lua:161: in function 'load'
21:40:26: ERROR[main]: ...minetest/mods/firearms/firearmslib/pureluaentity.lua:190: in main chunk
21:40:26: ERROR[main]: [C]: in function 'dofile'
21:40:26: ERROR[main]: ...optimus/.minetest/mods/firearms/firearmslib/init.lua:20: in main chunk
21:40:26: ERROR[main]: ======= END OF ERROR FROM LUA ========
21:40:26: ERROR[main]: Server: Failed to load and run /home/optimus/.minetest/mods/firearms/firearmslib/init.lua
21:40:26: ERROR[main]: ModError: Failed to load and run /home/optimus/.minetest/mods/firearms/firearmslib/init.lua
Fixed, thanks for reporting. One caveat is if the server has an unexpected crash (as in, segmentation fault or something like that, not on Lua errors), the FOV may not be reset to the original value. Nothing can be done about this last issue, sorry.Froggy wrote:I wondered what would happen if I left the game while still zoomed with the sniper. I entered the test world, zoomed, and left while still in zoomed mode. After re-entering again, I found that my FOV was stuck in zoom mode, but without the blacked out surrounding. Right clicking yeilded nothing.
Be sure to edit `minetest.conf' while the game is *NOT* running; otherwise it overwrites the settings when you exit.Froggy wrote:Then, I went into an older world of mine, and found that I was zoomed there too. I proceeded to go to my minetest.conf and make "fov = 72". Upon entering the world again, I found that the fov didn't change at all. Looking at my minetest.conf, I saw that it changed to "fov = 18". It keeps reseting no matter what.
Hmm... try removing the `ple.list' file from the world directory.Froggy wrote:Trying to enter gave me an init.lua error from firearmslib. When I remove the firearms mod from the world and entered, I was still in zoomed mode there too.
About the init.lua error, debug.txt says this:
Code: Select all
-- snip --
See first post.LuxAtheris wrote:So what kind firearms are available?
Soon™AMMOnym wrote:can u make that firearms compatible with simple mobs pls?
I did, indeed, edit minetest.conf with minetest not running. When I start the game, it immediately changes the FOV to what it was before, and disregards minetest.conf. Even completely removing the mod changed nothing. That's why I found this to be such a big problem.kaeza wrote:Be sure to edit `minetest.conf' while the game is *NOT* running; otherwise it overwrites the settings when you exit.Froggy wrote:Then, I went into an older world of mine, and found that I was zoomed there too. I proceeded to go to my minetest.conf and make "fov = 72". Upon entering the world again, I found that the fov didn't change at all. Looking at my minetest.conf, I saw that it changed to "fov = 18". It keeps reseting no matter what.
That did the trick! Thank you!kaeza wrote:Hmm... try removing the `ple.list' file from the world directory.Froggy wrote:Trying to enter gave me an init.lua error from firearmslib. When I remove the firearms mod from the world and entered, I was still in zoomed mode there too.
About the init.lua error, debug.txt says this:
Code: Select all
-- snip --
Code: Select all
Some additions.
- Add real ammo.
- Fix most weapons having wrong ammo name.
- Number of pellets is now a property of bullets rather than
weapons.
- Add proper damage to players and objects.
First, don't type in ALL CAPS; it's like shouting and is considered rude.whoandwoo wrote:PLEASE TELL ME HOW THE HELL I INSTALL THIS MOD BECAUSE IT WONT FREKIN WORK FOR ME!!!!
Download the mod.whoandwoo wrote:PLEASE TELL ME HOW THE HELL I INSTALL THIS MOD BECAUSE IT WONT FREKIN WORK FOR ME!!!!
Also, it doesn't matter if your 13. I know 13 year olds who know way more about computers than you do.whoandwoo wrote:YOUR MOD IS UNWORKABLE! T DOESNT FREKIN WORK NO MATTER WHAT I'VE DONE!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
The itemstring is "firearms:m9", and the craft recipe is as follows:Azuna wrote:Craft recipes for .45 pistol?? or atleast item string
Code: Select all
Steel Ingot | Steel Ingot | Steel Ingot
- | - | Wood
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.Please remove the firearms_destructive mod for now. I will look into it later.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)
Code: Select all
obj:set_hp(obj:get_hp() - damage);
Code: Select all
obj:set_hp(obj.entity:get_hp() - damage);