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

User avatar
ANAND
Member
 
Posts: 326
Joined: Sun Jan 28, 2018 12:54
Location: India
GitHub: ClobberXD
IRC: ANAND ClobberXD
In-game: ANAND ClobberXD [A-Za-z0-9-_]Tomato

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

by ANAND » Sat Dec 29, 2018 08:31

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
Last edited by ANAND on Fri May 03, 2019 14:54, edited 9 times in total.
 

User avatar
Lone_Wolf
Member
 
Posts: 2197
Joined: Sun Apr 09, 2017 05:50
Location: Hopefully very far from yours, snoop :P
GitHub: LoneWolfHT
IRC: Lone_Wolf
In-game: Lone_Wolf
 

User avatar
ANAND
Member
 
Posts: 326
Joined: Sun Jan 28, 2018 12:54
Location: India
GitHub: ClobberXD
IRC: ANAND ClobberXD
In-game: ANAND ClobberXD [A-Za-z0-9-_]Tomato

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

by ANAND » Sat Jan 05, 2019 01:09

As the mod is now somewhat functional, I've created a pre-release for easy testing. https://content.minetest.net/packages/A ... /download/
 

User avatar
StarNinjas
Member
 
Posts: 296
Joined: Wed Mar 14, 2018 00:32
Location: aincrad
GitHub: starninjas
IRC: StarNinjas
In-game: J1
 

User avatar
StarNinjas
Member
 
Posts: 296
Joined: Wed Mar 14, 2018 00:32
Location: aincrad
GitHub: starninjas
IRC: StarNinjas
In-game: J1

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

by StarNinjas » Sun Jan 06, 2019 04:43

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.
 

User avatar
ANAND
Member
 
Posts: 326
Joined: Sun Jan 28, 2018 12:54
Location: India
GitHub: ClobberXD
IRC: ANAND ClobberXD
In-game: ANAND ClobberXD [A-Za-z0-9-_]Tomato

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

by ANAND » Sun Jan 06, 2019 06:15

Thanks for reporting, this has been fixed. Please get the updated version from the GitHub repo or the CDB.
 

User avatar
StarNinjas
Member
 
Posts: 296
Joined: Wed Mar 14, 2018 00:32
Location: aincrad
GitHub: starninjas
IRC: StarNinjas
In-game: J1

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

by StarNinjas » Sun Jan 06, 2019 22:40

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.
 

User avatar
ANAND
Member
 
Posts: 326
Joined: Sun Jan 28, 2018 12:54
Location: India
GitHub: ClobberXD
IRC: ANAND ClobberXD
In-game: ANAND ClobberXD [A-Za-z0-9-_]Tomato

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

by ANAND » Mon Jan 07, 2019 09:48

Fixed. Again, thanks for reporting. :)

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

User avatar
StarNinjas
Member
 
Posts: 296
Joined: Wed Mar 14, 2018 00:32
Location: aincrad
GitHub: starninjas
IRC: StarNinjas
In-game: J1

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

by StarNinjas » Mon Jan 07, 2019 21:46

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:
 

User avatar
ANAND
Member
 
Posts: 326
Joined: Sun Jan 28, 2018 12:54
Location: India
GitHub: ClobberXD
IRC: ANAND ClobberXD
In-game: ANAND ClobberXD [A-Za-z0-9-_]Tomato

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

by ANAND » Tue Jan 08, 2019 08:00

I've encountered this myself quite a few times, I'll look into it.
 

User avatar
StarNinjas
Member
 
Posts: 296
Joined: Wed Mar 14, 2018 00:32
Location: aincrad
GitHub: starninjas
IRC: StarNinjas
In-game: J1
 

User avatar
ANAND
Member
 
Posts: 326
Joined: Sun Jan 28, 2018 12:54
Location: India
GitHub: ClobberXD
IRC: ANAND ClobberXD
In-game: ANAND ClobberXD [A-Za-z0-9-_]Tomato

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

by ANAND » Sun Jan 13, 2019 17:45

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.
 

User avatar
StarNinjas
Member
 
Posts: 296
Joined: Wed Mar 14, 2018 00:32
Location: aincrad
GitHub: starninjas
IRC: StarNinjas
In-game: J1
 

User avatar
ANAND
Member
 
Posts: 326
Joined: Sun Jan 28, 2018 12:54
Location: India
GitHub: ClobberXD
IRC: ANAND ClobberXD
In-game: ANAND ClobberXD [A-Za-z0-9-_]Tomato

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

by ANAND » Tue Jan 15, 2019 04:23

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.
 

User avatar
StarNinjas
Member
 
Posts: 296
Joined: Wed Mar 14, 2018 00:32
Location: aincrad
GitHub: starninjas
IRC: StarNinjas
In-game: J1
 

User avatar
ANAND
Member
 
Posts: 326
Joined: Sun Jan 28, 2018 12:54
Location: India
GitHub: ClobberXD
IRC: ANAND ClobberXD
In-game: ANAND ClobberXD [A-Za-z0-9-_]Tomato

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

by ANAND » Fri Mar 08, 2019 04:52

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.
 

User avatar
ANAND
Member
 
Posts: 326
Joined: Sun Jan 28, 2018 12:54
Location: India
GitHub: ClobberXD
IRC: ANAND ClobberXD
In-game: ANAND ClobberXD [A-Za-z0-9-_]Tomato

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

by ANAND » Fri May 03, 2019 10:07

Argh, I didn't even get the opportunity to bid farewell to the 15 posts that vanished... -_-
 

User avatar
ANAND
Member
 
Posts: 326
Joined: Sun Jan 28, 2018 12:54
Location: India
GitHub: ClobberXD
IRC: ANAND ClobberXD
In-game: ANAND ClobberXD [A-Za-z0-9-_]Tomato

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

by ANAND » Fri May 03, 2019 15:45

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

 


Return to WIP Mods



Who is online

Users browsing this forum: No registered users and 14 guests