[feature request] multiple binding to one key

Discuss anything ZDoom-related that doesn't fall into one of the other categories.
Post Reply
User avatar
SargeBaldy
Posts: 366
Joined: Tue Jul 15, 2003 3:49 pm
Location: Oregon
Contact:

[feature request] multiple binding to one key

Post by SargeBaldy »

Nami added a menu to a project and added new things to the customize controls menu. When I tried to bind [ to move up the list it decided to remove the bind from Previous Inventory Item. Even Legacy allows for binding more than one command to a single key, and it would be incredibly useful now that people can add new controls from the menu.
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49066
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Post by Graf Zahl »

It doesn't surprise me that Legacy has such a questionable feature. I already smell big problems arising if this should be implemented...
User avatar
randi
Site Admin
Posts: 7746
Joined: Wed Jul 09, 2003 10:30 pm
Contact:

Post by randi »

Aliases. The only downside (if you want to call it that) is that the game won't set them up for you.
User avatar
SargeBaldy
Posts: 366
Joined: Tue Jul 15, 2003 3:49 pm
Location: Oregon
Contact:

Post by SargeBaldy »

I tried that as

alias rpg_nextitem; invprev

and got this:

Code: ACCESS_VIOLATION
Tried to read address 000000c0
Flags: 00000000
Address: 004273fb

Windows NT 5.1 Build 2600 Service Pack 1

GS=0000 FS=0038 ES=0023 DS=0023
EAX=00000000 EBX=00000000 ECX=0012fb9c EDX=00000000
ESI=0012fb9c EDI=005a4144
EBP=ffffffff EIP=004273fb ESP=0012fb6c CS=001b SS=0023
EFlags=00010286
CF- PF+ AF- ZF- SF+ TF- IF+ DF- OF- NT- RF+ VM- AC- VI- VP-

FPU State:
ControlWord=027f StatusWord=4000 TagWord=ffff
ErrorOffset=77c4b269
ErrorSelector=077d001b
DataOffset=0012fab4
DataSelector=ffff0023
Cr0NpxState=00000000

MM0=0000000000000000
MM1=805982ebebfb94e4
MM2=f8cd9020823ea5c0
MM3=0000000000000000
MM4=0000000000000000
MM5=0012fb9c005a4144
MM6=ffffffff00000000
MM7=000000230012fb6c

Running threads:
000019ac at 004273fb*
00001ed4
00000f90
00001ce8
00001880
00001660
00001250
000011fc

Loaded modules:
00400000 - 00625fff *zdoom.exe
77f50000 - 77ff6fff ntdll.dll
77e60000 - 77f45fff kernel32.dll
71950000 - 71a33fff COMCTL32.dll
77c10000 - 77c62fff msvcrt.dll
77c70000 - 77caffff GDI32.dll
77d40000 - 77dcbfff USER32.dll
77dd0000 - 77e5cfff ADVAPI32.dll
78000000 - 78085fff RPCRT4.dll
70a70000 - 70ad4fff SHLWAPI.dll
71ad0000 - 71ad7fff WSOCK32.dll
71ab0000 - 71ac3fff WS2_32.dll
71aa0000 - 71aa7fff WS2HELP.dll
76b40000 - 76b6bfff WINMM.dll
10000000 - 10090fff fmod.dll
77be0000 - 77bf3fff MSACM32.dll
771b0000 - 772d0fff ole32.dll
763b0000 - 763f4fff comdlg32.dll
773d0000 - 77bc1fff SHELL32.dll
76390000 - 763abfff IMM32.DLL
629c0000 - 629c7fff LPK.DLL
72fa0000 - 72ff9fff USP10.dll
5cd70000 - 5cd76fff serwvdrv.dll
5b0a0000 - 5b0a6fff umdmxfrm.dll
5ad70000 - 5ada3fff uxtheme.dll
00c90000 - 00d49fff MsgPlusH.dll
77120000 - 771aafff OLEAUT32.dll
77c00000 - 77c06fff VERSION.dll
00d70000 - 00d9afff msctfime.ime
76f50000 - 76f57fff wtsapi32.dll
76360000 - 7636efff WINSTA.dll
76f90000 - 76f9ffff Secur32.dll
51080000 - 510d9fff dsound.dll
72d20000 - 72d28fff wdmaud.drv
72d10000 - 72d17fff msacm32.drv
77bd0000 - 77bd6fff midimap.dll
5ef80000 - 5ef83fff KsUser.dll
76fd0000 - 77047fff CLBCATQ.DLL
77050000 - 77114fff COMRes.dll
6ce10000 - 6cebefff dinput8.dll
688f0000 - 688f8fff HID.DLL
76670000 - 76756fff SETUPAPI.DLL
51000000 - 5104cfff ddraw.dll
73bc0000 - 73bc5fff DCIMAN32.dll
746f0000 - 74715fff Msimtf.dll
74720000 - 74763fff MSCTF.dll

Bytes near EIP:
004273eb: cc cc cc cc cc 8b c2 8b 15 64 3e 5a 00 56 8b f1
004273fb: 8b 88 c0 00 00 00 e8 4a 39 07 00 8b ce a3 64 3e
0042740b: 5a 00 e8 4e 6f fe ff 48 f7 d8 1b c0 83 c0 02 a3

ZDoom version 2.0.53

Command line:
D:\Games\Doom\Doom2\zdoom.exe C:\Documents and Settings\Owen Lloyd.DEEPTHOUGHT\Desktop\super.wad
IWAD: doom2.wad

Not in a level.

Possible call trace:
004273fb BOOM
0040e662 call [eax+0x10]
0040ee50 call [edx+0x8]
004fa976 call [0051b1bc]
004fa97b call 004ff197
00493a2c call 00492c80
0040f044 call 0040ebf0
0040b96f call 0040ef60
0040bbcb call 0040b470
004157f7 call 0040bba0
0041a07a call 004157b0
0049741d
0041b099 call 00419fe0
0041743c call 0041b060
0040af93 call 0040aee0
0040af93 call 0040aee0
00497e91 call 0040af80
00497f93 call 004f9f96
00495043 call 00417490
00495355 call 00494c90
004fd44a call 004952e0
004fd2de call 004fad40
004fd2c6

Stack Contents:
0012fb6c: 00598496 0040e662 00000000 0040ee50 ··Y·b·@·····P·@·
0012fb7c: 0012fb9c 00000000 00000000 000000ff ················
0012fb8c: 0059849d 00000000 0000005c 00000000 ··Y·····\·······
0012fb9c: 00598496 ffffffff 00000000 0000001b ··Y·············
0012fbac: 00000000 0012fbec 77fa88f0 77f51c78 ···········wx··w
0012fbbc: ffffffff 77f58a3a 004fa976 003a0000 ····:··wv·O···:·
0012fbcc: 00000000 004fa97b 0000002f 00000000 ····{·O·/·······
0012fbdc: 00000000 00493a2c 0012fbd4 77d44369 ····,:I·····iC·w
0012fbec: 0012fccc 516b8073 0012fc18 0050b5ea ····s·kQ······P·
0012fbfc: 00000000 0040f044 000000ff 0059847a ····D·@·····z·Y·
0012fc0c: 00598478 00000000 00000000 0012fccc x·Y·············
0012fc1c: 0050b5fc ffffffff 0040b96f 00000004 ··P·····o·@·····
0012fc2c: 0059e338 0012fcd8 00000000 0040bbcb 8·Y···········@·
0012fc3c: 00598478 000000ff 004157f7 00000001 x·Y······WA·····
0012fc4c: 0041a07a 00000004 0012fcd8 00000001 z·A·············
0012fc5c: 00000001 0012fc1c 0012fccc 77e94809 ·············H·w
0012fc6c: 77e83ae0 ffffffff 77e7a652 00000000 ·:·w····R··w····
0012fc7c: 000000ac 0000001c 00000001 0049741d ·············tI·
0012fc8c: 000000ac 0000001c 00000004 516b8073 ············s·kQ
0012fc9c: 0041b099 00000004 00ba4fe0 0012fcd8 ··A······O······
0012fcac: 00000001 0041743c 00000004 00ba4fe0 ····<tA······O··
0012fcbc: 00000001 00000001 00000d9e 0012fcb4 ················
0012fccc: 0012fe04 0050b655 00000000 00000000 ····U·P·········
0012fcdc: 0000026e 000000f8 0012fe6c 0000017e n·······l···~···
0012fcec: 4336350f 00b9e078 606fd62d 8f56b1cc ·56Cx···-·o`··V·
0012fcfc: 6d6f6f44 7475412e 616f6c6f 6f440064 Doom.Autoload·Do
0012fd0c: 2f326d6f 6e696b73 8d500073 81c865fd om2/skins·P··e··
0012fd1c: d0e6d768 e09ac8aa 5867442c 974ce32d h·······,DgX-·L·
0012fd2c: 43e7aea8 62fe9d4e 1994effd fa91500f ···CN··b·····P··
0012fd3c: 5b6c86d2 cb2bda3e 25da6d67 0df06359 ··l[>·+·gm·%Yc··
0012fd4c: 00000002 516b8073 0040af93 0012fd64 ····s·kQ··@·d···
0012fd5c: 00000002 516b8073 0040af93 0012fd74 ····s·kQ··@·t···
0012fd6c: 00497e91 0052afa8 00497f93 00000094 ·~I···R··I·····
0012fd7c: 00000005 00000001 00000a28 00000002 ········(·······
0012fd8c: 76726553 20656369 6b636150 77003120 Service Pack 1·w
0012fd9c: 772bb638 771c453f 00000000 8007000e 8·+w?E·w········
0012fdac: 0015c2b8 771b449c 00000000 00000000 ·····D·w········
0012fdbc: 771ce3f3 0015c2b8 0012fe04 772bb6ec ···w··········+w
0012fdcc: 00000000 772bb264 0012fdfc 771c0ee8 ····d·+w·······w
0012fddc: 00000001 00000000 00000002 00000000 ················
0012fdec: 00000000 0000026e 0000017e 00000002 ····n···~·······
0012fdfc: 006b8073 516b8073 0012fe60 0050b678 s·k·s·kQ`···x·P·
0012fe0c: ffffffff 00495043 ffffffff 77e7e6b9 ····CPI········w
0012fe1c: 7ffdf000 00000000 00000000 0000026e ···········n···
0012fe2c: 0000017e 00000001 000f4240 0012fe2c ~·······@B··,···
0012fe3c: 00000020 00000276 00000000 00400000 ···v·········@·
0012fe4c: 00400230 00400208 77e60000 00400000 0·@···@····w··@·
0012fe5c: 0012fe14 0012fe88 0050cb40 00000000 ········@·P·····
0012fe6c: 0012fe98 00495355 77e7ad86 00000000 ····USI····w····
0012fe7c: 7ffdf000 0012fe74 0012f794 0012ffb0 ···t···········
0012fe8c: 004fd088 0052a650 00000000 0012ffc0 ··O·P·R·········
0012fe9c: 004fd44a 00400000 00000000 0015232e J·O···@·····.#··
0012feac: 00000001 00000094 00000005 00000001 ················
0012febc: 00000a28 00000002 76726553 20656369 (·······Service
0012fecc: 6b636150 f3003120 f3939c08 f3939c08 Pack 1··········
0012fedc: f3939c08 f3939c08 e4068000 e4069000 ················
0012feec: e406a000 e406b000 e406c000 e406d000 ················
0012fefc: e406e000 e406f000 e4070000 e4071000 ················
0012ff0c: e4072000 e4073000 e4074000 e4075000 · ···0···@···P··
0012ff1c: e4076000 f8cd9020 00000278 00006381 ·`·· ···x····c··
0012ff2c: 00000001 0000000f 00000000 0000000f ················
0012ff3c: 00003068 004fd2de 70a9f1ab 80000002 h0····O····p····
0012ff4c: 7ffdf000 00000044 00153a58 00153a08 ···D···X:···:··
0012ff5c: 00153ab8 00000000 00000000 00000000 ·:··············
0012ff6c: 00000000 00000000 00000000 00000000 ················
0012ff7c: 00000401 00000001 00000000 00000000 ················
0012ff8c: 00010001 00000000 00000006 00000000 ················
0012ff9c: 8053476f 0015232e 00000000 0012feb0 oGS·.#··········
0012ffac: e32ca888 0012ffe0 004fd088 00555610 ··,·······O··VU·
0012ffbc: 00000000 0012fff0 77e814c7 70a9f1ab ···········w···p
0012ffcc: 80000002 7ffdf000 f3939cf0 0012ffc8 ···············
0012ffdc: 80534504 ffffffff 77e94809 77e91210 ·ES······H·w···w
0012ffec: 00000000 00000000 00000000 004fd2c6 ··············O·
0012fffc: 00000000 ····
User avatar
Chilvence
Posts: 1647
Joined: Mon Aug 11, 2003 6:36 pm
Contact:

Post by Chilvence »

SargeBaldy wrote: alias rpg_nextitem; invprev
alias rpg_nextitem "stuff; more stuff"
User avatar
SargeBaldy
Posts: 366
Joined: Tue Jul 15, 2003 3:49 pm
Location: Oregon
Contact:

Post by SargeBaldy »

oops, ok. i somehow clearly forgot the use of the alias key. even still, it shouldn't crash when you use the wrong syntax :P
User avatar
Chilvence
Posts: 1647
Joined: Mon Aug 11, 2003 6:36 pm
Contact:

Post by Chilvence »

Well, it probably just got confused by trying to make an alias with the command seperator in the name.

BTW, anyone know how to make an alias that can create another alias?
User avatar
randi
Site Admin
Posts: 7746
Joined: Wed Jul 09, 2003 10:30 pm
Contact:

Post by randi »

It doesn't crash here, and using it with one parameter is a perfectly valid syntax; that removes the named alias or does nothing if it doesn't exist.
User avatar
Chilvence
Posts: 1647
Joined: Mon Aug 11, 2003 6:36 pm
Contact:

Post by Chilvence »

Actually, I think what happened was it ran "alias rpg_nextitem" first and then "invprev"

Maybe it was out of game, and invprev didnt have anything to cycle through.

[edit] Yeah, thats probably it. dieded straight away when I tried it at the titlescreen.
Last edited by Chilvence on Mon Nov 24, 2003 4:34 pm, edited 1 time in total.
User avatar
SargeBaldy
Posts: 366
Joined: Tue Jul 15, 2003 3:49 pm
Location: Oregon
Contact:

Post by SargeBaldy »

It was outside of a game yeah, as you can see in the error log I posted.
User avatar
randi
Site Admin
Posts: 7746
Joined: Wed Jul 09, 2003 10:30 pm
Contact:

Post by randi »

Yes, that was it.
Post Reply

Return to “General”