Page 1 of 1

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

Posted: Mon Mar 11, 2019 11:27 am
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).

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

Posted: Mon Mar 11, 2019 11:51 am
by Nash
Amazing. This should just be part of GZDoom.pk3 to be honest. :P

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

Posted: Mon Mar 11, 2019 4:10 pm
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)

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

Posted: Tue Mar 12, 2019 7:19 am
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.

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

Posted: Tue Mar 12, 2019 10:32 am
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.


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

Posted: Mon Mar 25, 2019 1:38 pm
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.

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

Posted: Mon Mar 25, 2019 1:47 pm
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).