[minimod][v0.5.1] Gearbox - weapon/inventory handling

Projects that alter game functions but do not include new maps belong here.
Forum rules
The Projects forums are ONLY for YOUR PROJECTS! If you are asking questions about a project, either find that project's thread, or start a thread in the General section instead.

Got a cool project idea but nothing else? Put it in the project ideas thread instead!

Projects for any Doom-based engine (especially 3DGE) are perfectly acceptable here too.

Please read the full rules for more details.

[minimod][v0.5.1] Gearbox - weapon/inventory handling

Postby m8f » Sun Jan 03, 2021 6:25 am

Gearbox is an add-on for GZDoom engine that provides more convenient ways to select weapons.

It is a successor to the old Weapon Menu mod, which is no longer developed.


(Wheel with Heretic)

Image
(Blocks with Treasure Tech)

Download: latest release or development build
Source code
Discord

How to use

  1. GZDoom 4.5 or newer required
  2. open the menu by assigned key, or by next/previous weapon keys, if enabled in options
  3. select the weapon with next/previous weapon keys, or with mouse (wheel only)

Features

  • Two different representations: blocks and wheel
  • Press Fire key to select and Alt Fire key to cancel
  • Color and scale options
  • Customizable behavior
  • Multiplayer compatible
  • Reaction to number keys
  • extras.wad icon support for vanilla weapons
  • Inventory item selection

Planned

  • Patches for weapon icon adjustments
  • More representations
  • Moving weapon between slots and changing order

Note for weapon mod authors

If you want Gearbox to support your mod out of the box, assign Inventory.AltHUDIcon for your weapons! Tag property is also nice to have.

Compatibility Issues

  • PyWeaponWheel v0.3 overrides time freezing. If you are using both mods and want to freeze time with Gearbox, set PyWeaponWheel's option "Freeze when wheel is open" (py_weaponwheel_freeze CVar) to Off. Note that PyWeaponWheel may be built in some mods, for example in Project Brutality. The solution is the same: disable time PyWeaponWheel's time freezing (Main Menu -> Project Brutality -> Gameplay Settings -> Weapon Special Wheel Freezes Time, set it to Off).

Satellite mods


Acknowledgments
Spoiler:


Credits
Spoiler:


Spoiler: You may also like other mods in the same vein made by other authors:


This mod is a part of m8f's toolbox.
Last edited by m8f on Tue Apr 13, 2021 8:51 am, edited 25 times in total.
User avatar
m8f
dreamer
 
 
 
Joined: 29 Dec 2017
Location: Siberia (UTC+7)
Discord: m8f#0629
Github ID: mmaulwurff
Operating System: Debian-like Linux (Debian, Ubuntu, Kali, Mint, etc) 64-bit

Re: [minimod][v0.1] Gearbox - weapon selection mod

Postby namsan » Sun Jan 03, 2021 7:23 am

nice mod, I started using it
User avatar
namsan
piss piss piss piss piss piss piss
 
Joined: 31 Mar 2012
Location: Japan
Discord: Namsan#8146

Re: [minimod][v0.1] Gearbox - weapon selection mod

Postby lucker42 » Sun Jan 03, 2021 8:03 am

Good afternoon!

GZDoom 4.1.3 don't work for me(

It is hoped that in the future it will be possible to run on older versions of GZDoom?

Error on 4.4.2:

Code: Select allExpand view
Script error, "gearbox-v0.1.pk3:zscript/wheel/view.zs" line 119:
Unknown identifier 'DTA_Rotate'
Script error, "gearbox-v0.1.pk3:zscript/wheel/view.zs" line 128:
Unknown identifier 'DTA_Rotate'
Script error, "gearbox-v0.1.pk3:zscript/wheel/view.zs" line 165:
Unknown identifier 'DTA_Rotate'
Script error, "gearbox-v0.1.pk3:zscript/wheel/view.zs" line 179:
Unknown identifier 'DTA_Rotate'
lucker42
 
Joined: 04 Apr 2019

Re: [minimod][v0.1] Gearbox - weapon selection mod

Postby m8f » Sun Jan 03, 2021 8:20 am

I forgot to specify the requirements in the topic and in the mod itself. GZDoom 4.5 is required to run this properly.

If someone really wants to run this with prior GZDoom version or with LZDoom, open the mod with Slade, go to the lines with errors, and just comment them out. The weapon wheel will look off (weapon items are not rotated and highlight stays on the same place), but it should be functional.
User avatar
m8f
dreamer
 
 
 
Joined: 29 Dec 2017
Location: Siberia (UTC+7)
Discord: m8f#0629
Github ID: mmaulwurff
Operating System: Debian-like Linux (Debian, Ubuntu, Kali, Mint, etc) 64-bit

Re: [minimod][v0.1] Gearbox - weapon selection mod

Postby StroggVorbis » Mon Jan 04, 2021 1:47 am

Hey, great work as always!
I'm gonna use this the instant it supports number keys as well, as what bugs me with two or more weapons per slot is that I can't double-tap to skip over the SSG for example.
Say, this is probably not quite the right place to ask this, but I thought it's the most immediate way to reach you and since most forum members don't have a GitHub account, I thought this'd be the best place to get some more opinions.
I have an idea for another thing that might fit in your toolbox, a metronome which displays whenever a damaging floor hurts you. For most this is 32 tics, same as and in sync with weapon bobbing. What do you think?
User avatar
StroggVorbis
Donut eat me pls!
 
Joined: 08 Nov 2017
Location: Germany
Discord: StroggVorbis#2466
Operating System: Windows 10/8.1/8/201x 64-bit
OS Test Version: No (Using Stable Public Version)
Graphics Processor: nVidia with Vulkan support

Re: [minimod][v0.1] Gearbox - weapon selection mod

Postby m8f » Mon Jan 04, 2021 2:00 am

Reaction to number keys is on the way. Edit: added to devbuild.

Regarding damaging floor metronome - it would be very impolite of me to hog all the good ideas ;) If someone makes such a mod, I'll be glad to notify my social media channels that it exists.
User avatar
m8f
dreamer
 
 
 
Joined: 29 Dec 2017
Location: Siberia (UTC+7)
Discord: m8f#0629
Github ID: mmaulwurff
Operating System: Debian-like Linux (Debian, Ubuntu, Kali, Mint, etc) 64-bit

Re: [minimod][v0.1] Gearbox - weapon selection mod

Postby mamaluigisbagel » Mon Jan 04, 2021 6:55 am

Hoping to see this develop more. Weapon Menu was one of my favorite minimods from you, so glad to see this. However I have one crash and an issue.

I noticed when using the wheel menu, you cannot move the mouse to select a weapon while moving at the same time. Each time a movement key is pressed, the cursor the mouse controls goes back to the middle, meaning you have to stand still to select weapons, which without the SloMo cross-mod support this time, is a bit difficult in combat.

As for the crash, I got this when starting a new game with Quake Champions: Doom Edition.

EDIT: I also noticed some mods, like Nobody Told Me About Id, use the same sprite for multiple weapons. (The SMG and Dual SMG both use the chaingun sprite) so maybe it would also help to display the name of the highlighted weapon?
You do not have the required permissions to view the files attached to this post.
User avatar
mamaluigisbagel
"If I ever have kids, they're going to come out circle-strafing." ~Civvie 11
 
Joined: 09 Jul 2014
Discord: Nonemployee#1013
Operating System: Windows 10/8.1/8/201x 64-bit
Graphics Processor: nVidia (Modern GZDoom)

Re: [minimod][v0.1] Gearbox - weapon selection mod

Postby m8f » Mon Jan 04, 2021 7:52 am

Thanks for reporting! Fixed in devbuild.
User avatar
m8f
dreamer
 
 
 
Joined: 29 Dec 2017
Location: Siberia (UTC+7)
Discord: m8f#0629
Github ID: mmaulwurff
Operating System: Debian-like Linux (Debian, Ubuntu, Kali, Mint, etc) 64-bit

Re: [minimod][v0.1] Gearbox - weapon selection mod

Postby Ac!d » Mon Jan 04, 2021 10:01 am

When I use the block representation and when I select the only weapon I have in my inventory, I have a crash. (Test made with "Weasel Presents: Terrorists!")
Screenshot_Doom_20210104_154916.png
You do not have the required permissions to view the files attached to this post.
User avatar
Ac!d
Perfection is a way, not an end. - Korean Proverb
 
Joined: 02 Apr 2019
Location: France
Discord: Ac!d#2732

Re: [minimod][v0.1] Gearbox - weapon selection mod

Postby m8f » Mon Jan 04, 2021 10:14 am

Good catch, thanks for reporting! Fixed in devbuild.
User avatar
m8f
dreamer
 
 
 
Joined: 29 Dec 2017
Location: Siberia (UTC+7)
Discord: m8f#0629
Github ID: mmaulwurff
Operating System: Debian-like Linux (Debian, Ubuntu, Kali, Mint, etc) 64-bit

Re: [minimod][v0.1] Gearbox - weapon selection mod

Postby wildweasel » Mon Jan 04, 2021 10:32 am

Just gave this a shot with LegenDoom 2.8 (with the Rifles addon, which probably doesn't matter) - I don't think that mod specifies inventory icons, due to its unusual circumstances of determining how a weapon looks. As a result, the wheel looks rather barren:

This with the latest dev build as of January 4, 8:30 AM PST.
User avatar
wildweasel
change o' pace.
Moderator Team Lead
 
Joined: 15 Jul 2003

Re: [minimod][v0.1] Gearbox - weapon selection mod

Postby m8f » Mon Jan 04, 2021 10:45 am

The absence of icons for certain mods is a known problem - I plan to mitigate this by allowing creating patches that would define icons.

The real question, however, is why placeholder black circles are not in the center of their sectors, and why the wheel is so big. Can you please tell your screen resolution and Video Mode settings, like resolution and scaling?
User avatar
m8f
dreamer
 
 
 
Joined: 29 Dec 2017
Location: Siberia (UTC+7)
Discord: m8f#0629
Github ID: mmaulwurff
Operating System: Debian-like Linux (Debian, Ubuntu, Kali, Mint, etc) 64-bit

Re: [minimod][v0.1] Gearbox - weapon selection mod

Postby TheRailgunner » Mon Jan 04, 2021 11:12 am

Image

I'm quite happy it works with Malice, but is it normal for it to be on one side of the screen? Also, is a time-freeze and/or time-slow option a possibility?
User avatar
TheRailgunner
Words go here.
 
Joined: 08 Jul 2013

Re: [minimod][v0.1] Gearbox - weapon selection mod

Postby m8f » Mon Jan 04, 2021 11:18 am

It's the intended position and size. I may add options to move it to the left or to the center later. Time-freeze - probably yes. Time-slow - probably no.
User avatar
m8f
dreamer
 
 
 
Joined: 29 Dec 2017
Location: Siberia (UTC+7)
Discord: m8f#0629
Github ID: mmaulwurff
Operating System: Debian-like Linux (Debian, Ubuntu, Kali, Mint, etc) 64-bit

Re: [minimod][v0.1] Gearbox - weapon selection mod

Postby wildweasel » Mon Jan 04, 2021 1:14 pm

m8f wrote:The absence of icons for certain mods is a known problem - I plan to mitigate this by allowing creating patches that would define icons.

The real question, however, is why placeholder black circles are not in the center of their sectors, and why the wheel is so big. Can you please tell your screen resolution and Video Mode settings, like resolution and scaling?

This was running on a 1080p panel in borderless full screen mode, with the video Scale Factor reduced to 0.5. The Scale setting in the Gearbox options was at 1.
User avatar
wildweasel
change o' pace.
Moderator Team Lead
 
Joined: 15 Jul 2003

Next

Return to Gameplay Mods

Who is online

Users browsing this forum: Gourry, JacenXtreme, kick12134 and 12 guests