[minimod][v0.7.2] 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 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.
User avatar
m8f
 
 
Posts: 1422
Joined: Fri Dec 29, 2017 4:15 am
Location: Siberia (UTC+7)

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

Post by m8f »


(Wheel with Heretic)

Image
(Blocks with Treasure Tech)

What it is

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

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

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
  • Different representations: blocks, wheel, plain text
  • 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
  • Moving weapon between slots and changing order
Compatibility
  • For 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.
  • 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).
Spoiler: Acknowledgments
Spoiler: Satellite mods
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 Mon Aug 08, 2022 6:20 am, edited 43 times in total.
User avatar
namsan
Posts: 145
Joined: Sat Mar 31, 2012 4:27 am
Location: Japan

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

Post by namsan »

nice mod, I started using it
lucker42
Posts: 106
Joined: Thu Apr 04, 2019 9:25 pm

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

Post by lucker42 »

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 all

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'
User avatar
m8f
 
 
Posts: 1422
Joined: Fri Dec 29, 2017 4:15 am
Location: Siberia (UTC+7)

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

Post by m8f »

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
StroggVorbis
Posts: 861
Joined: Wed Nov 08, 2017 4:23 pm
Graphics Processor: nVidia with Vulkan support
Location: Germany

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

Post by StroggVorbis »

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
m8f
 
 
Posts: 1422
Joined: Fri Dec 29, 2017 4:15 am
Location: Siberia (UTC+7)

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

Post by m8f »

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
mamaluigisbagel
Posts: 413
Joined: Wed Jul 09, 2014 7:25 pm
Graphics Processor: ATI/AMD (Modern GZDoom)

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

Post by mamaluigisbagel »

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
m8f
 
 
Posts: 1422
Joined: Fri Dec 29, 2017 4:15 am
Location: Siberia (UTC+7)

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

Post by m8f »

Thanks for reporting! Fixed in devbuild.
User avatar
Ac!d
Posts: 323
Joined: Tue Apr 02, 2019 5:13 am
Location: France

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

Post by Ac!d »

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
m8f
 
 
Posts: 1422
Joined: Fri Dec 29, 2017 4:15 am
Location: Siberia (UTC+7)

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

Post by m8f »

Good catch, thanks for reporting! Fixed in devbuild.
User avatar
wildweasel
Moderator Team Lead
Posts: 21506
Joined: Tue Jul 15, 2003 7:33 pm
Preferred Pronouns: He/Him
Operating System Version (Optional): Windows 10, 21H1
Graphics Processor: nVidia with Vulkan support

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

Post by wildweasel »

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
m8f
 
 
Posts: 1422
Joined: Fri Dec 29, 2017 4:15 am
Location: Siberia (UTC+7)

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

Post by m8f »

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
TheRailgunner
Posts: 1553
Joined: Mon Jul 08, 2013 10:08 pm

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

Post by TheRailgunner »

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
m8f
 
 
Posts: 1422
Joined: Fri Dec 29, 2017 4:15 am
Location: Siberia (UTC+7)

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

Post by m8f »

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
wildweasel
Moderator Team Lead
Posts: 21506
Joined: Tue Jul 15, 2003 7:33 pm
Preferred Pronouns: He/Him
Operating System Version (Optional): Windows 10, 21H1
Graphics Processor: nVidia with Vulkan support

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

Post by wildweasel »

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.

Return to “Gameplay Mods”