[minimod][ZScript][v0.2] Option Search - Obsolete!

Post your example zscripts/ACS scripts/etc 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.
Post Reply
User avatar
m8f
 
 
Posts: 1445
Joined: Fri Dec 29, 2017 4:15 am
Preferred Pronouns: He/Him
Operating System Version (Optional): Manjaro Linux
Location: Siberia (UTC+7)
Contact:

[minimod][ZScript][v0.2] Option Search - Obsolete!

Post by m8f »

Spoiler:
As you can see, this is Option Search. It searches options. And controls. Works with mods (that's Faspons and Weapon Menu options on screenshots).

Edit: this thing is obsolete - the improved version of it is now a part of GZDoom (since 4.0.0).
Last edited by m8f on Sun Apr 07, 2019 4:10 am, edited 5 times in total.
User avatar
Nash
 
 
Posts: 17439
Joined: Mon Oct 27, 2003 12:07 am
Location: Kuala Lumpur, Malaysia
Contact:

Re: [minimod][ZScript][v0.1] Option Search

Post by Nash »

Amazing. This should just be part of GZDoom.pk3 to be honest. :P
User avatar
StroggVorbis
Posts: 866
Joined: Wed Nov 08, 2017 4:23 pm
Graphics Processor: nVidia with Vulkan support
Location: Germany

Re: [minimod][ZScript][v0.1] Option Search

Post by StroggVorbis »

Can ZScript be used to modify the console itself? If yes it would be awesome if you could add a context-sensitive tab completion.

For example the items, countitems, monsters and actorlist commands. Instead of having to type the whole name out, just write "actorlist shot", hit tab and it will cycle through all valid actors beginning with shot.

If you need a reference, Doom 3/Quake 4 is capable of this and I think Half-Life 2 too.

Type "gi", hit tab, it will say "give"
Type "give ammo_", hit tab, it will cycle through all ammo pickups.
Type "give ammo_b", hit tab, it will cycle through all ammo pickups beginning with b (bullets and belt in Doom 3's case)
User avatar
m8f
 
 
Posts: 1445
Joined: Fri Dec 29, 2017 4:15 am
Preferred Pronouns: He/Him
Operating System Version (Optional): Manjaro Linux
Location: Siberia (UTC+7)
Contact:

Re: [minimod][ZScript][v0.1] Option Search

Post by m8f »

Nash wrote:Amazing. This should just be part of GZDoom.pk3 to be honest. :P
I'll make a PR later, when I receive more feedback and weed out potential bugs. It will be harder to change when it's inside GZDoom.pk3, if it gets there.
DabbingSquidward wrote:Can ZScript be used to modify the console itself?
As far as I know, there is no way to modify console commands with ZScript. There should be modifications on the engine side. It would be awesome, indeed.
User avatar
m8f
 
 
Posts: 1445
Joined: Fri Dec 29, 2017 4:15 am
Preferred Pronouns: He/Him
Operating System Version (Optional): Manjaro Linux
Location: Siberia (UTC+7)
Contact:

Re: [minimod][ZScript][v0.2] Option Search

Post by m8f »

An update: v0.2. Changes:

- made option path wrap on multiple lines if it is too long;
- added searching by multiple terms;
- added an option to search by any or all the terms;
- moved readable strings to language file.

Diode
Posts: 53
Joined: Mon Feb 29, 2016 2:34 pm

Re: [minimod][ZScript][v0.1] Option Search

Post by Diode »

Nash wrote:Amazing. This should just be part of GZDoom.pk3 to be honest. :P
I was thinking the same thing. I can't think of any reason why you wouldn't want it.
User avatar
Nash
 
 
Posts: 17439
Joined: Mon Oct 27, 2003 12:07 am
Location: Kuala Lumpur, Malaysia
Contact:

Re: [minimod][ZScript][v0.2] Option Search

Post by Nash »

This mod is already merged into GZDoom a while back. You will see it in the next official release of GZDoom (4.0 I think).
Post Reply

Return to “Script Library”