Page 1 of 1

[Mod] Gunslinger (v0.20-pre) [alpha][gunslinger]

PostPosted: Sat Dec 29, 2018 08:31
by ANAND

Gunslinger [alpha]



Gunslinger is one of the most advanced guns mods for Minetest. It provides a very simple API to register custom guns, and almost every aspect of the gun can be customized. See the README, and the official API documentation to know more!

License
Code: MIT
Media: CC0

ContentDB: https://content.minetest.net/packages/ANAND/gunslinger
Browse code: https://github.com/ClobberXD/gunslinger
Browse releases: https://github.com/ClobberXD/gunslinger/releases
Download: https://github.com/ClobberXD/gunslinger ... master.zip

Re: [Mod] Gunslinger (WIP) [gunslinger]

PostPosted: Sat Dec 29, 2018 16:27
by Lone_Wolf
This is great! +10

Re: [Mod] Gunslinger (WIP) [gunslinger]

PostPosted: Sat Jan 05, 2019 01:09
by ANAND
As the mod is now somewhat functional, I've created a pre-release for easy testing. https://content.minetest.net/packages/A ... /download/

Re: [Mod] Gunslinger (WIP) [gunslinger]

PostPosted: Sat Jan 05, 2019 04:17
by StarNinjas
Nice!!!

Re: [Mod] Gunslinger (WIP) [gunslinger]

PostPosted: Sun Jan 06, 2019 04:43
by StarNinjas
Join and this is what I get:

Code: Select all
2019-01-05 21:40:11: ERROR[Main]: ModError: Failed to load and run script from C:\MT-0.5-master\bin\..\mods\gunslinger-master\init.lua:
2019-01-05 21:40:11: ERROR[Main]: C:\MT-0.5-master\bin\..\mods\gunslinger-master/api.lua:250: gunslinger.register_gun: Attempt to register gun of disabled type 'semi-automatic'
2019-01-05 21:40:11: ERROR[Main]: stack traceback:
2019-01-05 21:40:11: ERROR[Main]:    [C]: in function 'error'
2019-01-05 21:40:11: ERROR[Main]:    C:\MT-0.5-master\bin\..\mods\gunslinger-master/api.lua:250: in function 'register_gun'
2019-01-05 21:40:11: ERROR[Main]:    C:\MT-0.5-master\bin\..\mods\gunslinger-master/guns.lua:1: in main chunk
2019-01-05 21:40:11: ERROR[Main]:    [C]: in function 'dofile'
2019-01-05 21:40:11: ERROR[Main]:    C:\MT-0.5-master\bin\..\mods\gunslinger-master\init.lua:7: in main chunk
2019-01-05 21:40:11: ERROR[Main]: Check debug.txt for details.

Re: [Mod] Gunslinger (WIP) [gunslinger]

PostPosted: Sun Jan 06, 2019 06:15
by ANAND
Thanks for reporting, this has been fixed. Please get the updated version from the GitHub repo or the CDB.

Re: [Mod] Gunslinger (WIP) [gunslinger]

PostPosted: Sun Jan 06, 2019 22:40
by StarNinjas
Ok thanks!

:(

Code: Select all
2019-01-06 15:49:12: ERROR[Main]: ServerError: AsyncErr: ServerThread::run Lua: Runtime error from mod 'gunslinger' in callback item_OnUse(): C:\MT-0.5-master\bin\..\mods\gunslinger-master/api.lua:165: attempt to perform arithmetic on field 'time' (a function value)
2019-01-06 15:49:12: ERROR[Main]: stack traceback:
2019-01-06 15:49:12: ERROR[Main]:    C:\MT-0.5-master\bin\..\mods\gunslinger-master/api.lua:165: in function <C:\MT-0.5-master\bin\..\mods\gunslinger-master/api.lua:124>


^^^^^^^ when i use the cheetah gun.

Re: [Mod] Gunslinger (WIP) [gunslinger]

PostPosted: Mon Jan 07, 2019 09:48
by ANAND
Fixed. Again, thanks for reporting. :)

Created another release. Please update your mod to the latest version.

Re: [Mod] Gunslinger (WIP) [gunslinger]

PostPosted: Mon Jan 07, 2019 21:46
by StarNinjas
Thanks hope it works:)!
ugh again after a while of trying to shoot this is what it gives me:(
Code: Select all
2019-01-07 15:06:42: ERROR[Main]: ServerError: AsyncErr: environment_Step: Runtime error from mod 'gunslinger' in callback environment_Step(): C:\MT-0.5-master\bin\..\mods\gunslinger-master/api.lua:55: attempt to index local 'stack' (a nil value)
2019-01-07 15:06:42: ERROR[Main]: stack traceback:
2019-01-07 15:06:42: ERROR[Main]:    C:\MT-0.5-master\bin\..\mods\gunslinger-master/api.lua:55: in function 'fire'
2019-01-07 15:06:42: ERROR[Main]:    C:\MT-0.5-master\bin\..\mods\gunslinger-master/api.lua:196: in function <C:\MT-0.5-master\bin\..\mods\gunslinger-master/api.lua:185>
2019-01-07 15:06:42: ERROR[Main]:    C:\MT-0.5-master\bin\..\builtin\game\register.lua:420: in function <C:\MT-0.5-master\bin\..\builtin\game\register.lua:400>
2019-01-07 15:06:42: ERROR[Main]: stack traceback:

Re: [Mod] Gunslinger (WIP) [gunslinger]

PostPosted: Tue Jan 08, 2019 08:00
by ANAND
I've encountered this myself quite a few times, I'll look into it.

Re: [Mod] Gunslinger (WIP) [gunslinger]

PostPosted: Tue Jan 08, 2019 20:36
by StarNinjas
Thanks.

Re: [Mod] Gunslinger (WIP) [gunslinger]

PostPosted: Sun Jan 13, 2019 17:45
by ANAND

Updates!



  • The fire function aborts if stack is nil, avoiding the error described here.
  • The gun definition field style_of_fire has been renamed to mode.
  • Some firing modes have been renamed for consistency and factual accuracy:
    • semi-automatic --> hybrid
    • manual --> semi-automatic
  • A new firing mode has been introduced: manual. Manual guns are truly manual, as in they have to be manually loaded after each shot. This can be used for guns like bolt-action sniper rifles, for example.

As usual, I've created a pre-release on CDB for those who prefer that to downloading from GitHub.

Re: [Mod] Gunslinger (WIP) [gunslinger]

PostPosted: Sun Jan 13, 2019 21:41
by StarNinjas
How do you even shoot?
I keep clicking left and right mouse button but nothing happens:(

Re: [Mod] Gunslinger (WIP) [gunslinger]

PostPosted: Tue Jan 15, 2019 04:23
by ANAND
StarNinjas wrote:How do you even shoot?
I keep clicking left and right mouse button but nothing happens:(


lol, sorry. I forgot to rename style_of_fire field in the gun's definition to mode. Fixed now.

Re: [Mod] Gunslinger (WIP) [gunslinger]

PostPosted: Tue Jan 15, 2019 04:24
by StarNinjas
Okay hope it works lol

Re: [Mod] Gunslinger (WIP) [gunslinger]

PostPosted: Fri Mar 08, 2019 04:52
by ANAND
Updates!

- Fix a potential crash.
- Set firing mode of `gunslinger:cheetah` to `burst` until `automatic` mode is fixed.
- Use particles for visual feedback of projectile path.

Created another release as usual.

Re: [Mod] Gunslinger (WIP) [gunslinger]

PostPosted: Fri May 03, 2019 10:07
by ANAND
Argh, I didn't even get the opportunity to bid farewell to the 15 posts that vanished... -_-

Re: [Mod] Gunslinger (v0.20-pre) [alpha][gunslinger]

PostPosted: Fri May 03, 2019 15:45
by ANAND
The lost posts included release announcements, bug reports, feedback, and feature requests. I'll try to at least make a summary of the release announcements.

v0.9-pre

v0.10-pre

v0.11-pre

v0.12-pre

v0.13-pre

v0.14-pre

v0.15-pre

v0.16-pre

v0.17-pre

v0.18-pre

v0.19-pre

v0.20-pre