Jump to content

Custom hotkeys on cncnet 5


weaveR

Recommended Posts

  • Replies 57
  • Created
  • Last Reply

Top Posters In This Topic

When Nyerguds stops being lazy and writes the code to read the hotkey numbers from conquer.ini. I already mapped all the hotkeys in the EXE and it's only a matter of adding code to load them.

 

Were you the person who made a custom .exe for Lovehandles?

 

And for things like team association it's not that simple. The game actually uses the number on the keyboard as index in an array.

 

Team association doesn't need to be changed just the build menu scroll and bookmarks.

Link to comment
Share on other sites

Yes.

 

@Nyerguds: If you made that mapping a while ago then were you surprised when I made that patched EXE with custom key mappings for Lovehandles? Team association doesn't need to be changed, although my code allows allows for changing the 0-9 team keys

 

Here's the code: https://github.com/Iran/cnc106c-iran/blob/master/src/custom_hotkeys.asm

 

All that is needed is code to read custom hotkeys from conquer.ini, the actual hotkey remapping is already done.

Link to comment
Share on other sites

@Nyerguds: If you made that mapping a while ago then were you surprised when I made that patched EXE with custom key mappings for Lovehandles?

Because the whole system checks the input by incrementing ascii values. It's a mess to edit without doing a complete rewrite.

Link to comment
Share on other sites

Fuck that topic and every topic like it. WeaveR, read the reply I gave in that topic before I locked it.

 

Iran: open C&C95 in ida or whatever you use, look for pretty much any mission-related ini reading key (hint: house credits, map width/height/x/y), and you got it.

Link to comment
Share on other sites

custom hotkeys can now be installed via the following command in the cncnet5 lobby:

/install custom-hotkeys

 

    W              Bookmark

    R              Bookmark

    V              Bookmark

    T              Repairs

    A              Allies with someone

    G              Sets all selected units in Area Guard mode

    H              Goes to your primary construction yard

    Z              Sells

    X              Scatters selected units

    S              Stops moving units

    D              Sidebar up   

    F              Sidebar down

 

the 4th bookmark was supposed to be "space", but anyhow it doesnt work cause of some bug

Link to comment
Share on other sites

I'm almost always on IRC when I'm not working..

 

Here's the new EXE with custom hotkeys loading capability:

https://dl.dropboxusercontent.com/u/21865790/cnc95_hotkeys.exe

 

Source: https://github.com/Iran/cnc106c-iran/blob/master/src/custom_hotkeys.asm

 

I also added hotkeys to toggle repair and sell mode, to scroll the map one cell in either 4 directions and to select all units on the screen.

 

Add the following to CONQUER.INI:

 

[WinHotkeys]
KeySidebarToggle=9
KeyScatter=88
KeyStop=83
KeyGuard=71
KeyNext=78
KeyBase=72
KeyResign=82
KeyAlliance=65
KeyBookmark1=120
KeyBookmark2=121
KeyBookmark3=122
KeyBookmark4=123
KeyRepairToggle=84
KeySellToggle=89
KeyMapToggle=85
KeySidebarUp=38
KeySidebarDown=40
KeyTeam1=49
KeyTeam2=50
KeyTeam3=51
KeyTeam4=52
KeyTeam5=53
KeyTeam6=54
KeyTeam7=55
KeyTeam8=56
KeyTeam9=57
KeyTeam10=48
KeyForceMove1=18
KeyForceMove2=18
KeyForceAttack1=17
KeyForceAttack2=17
KeySelect1=16
KeySelect2=16
KeyScrollLeft=0
KeyScrollRight=0
KeyScrollUp=0
KeyScrollDown=0
KeySelectView=0
;EOF

 

Please test, thanks!

 

 

 

Link to comment
Share on other sites

I'm almost always on IRC when I'm not working..

 

Here's the new EXE with custom hotkeys loading capability:

https://dl.dropboxusercontent.com/u/21865790/cnc95_hotkeys.exe

 

Source: https://github.com/Iran/cnc106c-iran/blob/master/src/custom_hotkeys.asm

 

I also added hotkeys to toggle repair and sell mode, to scroll the map one cell in either 4 directions and to select all units on the screen.

 

Add the following to CONQUER.INI:

 

[WinHotkeys]
KeySidebarToggle=9
KeyScatter=88
KeyStop=83
KeyGuard=71
KeyNext=78
KeyBase=72
KeyResign=82
KeyAlliance=65
KeyBookmark1=120
KeyBookmark2=121
KeyBookmark3=122
KeyBookmark4=123
KeyRepairToggle=84
KeySellToggle=89
KeyMapToggle=85
KeySidebarUp=38
KeySidebarDown=40
KeyTeam1=49
KeyTeam2=50
KeyTeam3=51
KeyTeam4=52
KeyTeam5=53
KeyTeam6=54
KeyTeam7=55
KeyTeam8=56
KeyTeam9=57
KeyTeam10=48
KeyForceMove1=18
KeyForceMove2=18
KeyForceAttack1=17
KeyForceAttack2=17
KeySelect1=16
KeySelect2=16
KeyScrollLeft=0
KeyScrollRight=0
KeyScrollUp=0
KeyScrollDown=0
KeySelectView=0
;EOF

 

Please test, thanks!

 

Hi, sweety!

 

Bookmarks don't work, ctrl + f3 opens the resign menu, ctrl + f5 toggles repair mode and control + f10 toggles sell mode.

 

Your old .exe with custom hotkeys didn't have the same issues, but if you enabled caps lock and pressed any of the four bookmark keys, you would bind a new bookmark to the corresponding hotkey.

Link to comment
Share on other sites

I'm not sure if this was a good idea but I just copied and pasted FunkyFr3sh's hotkeys from RA - I don't mind using FunkyFr3sh's exact hotkeys because that's what I'm used to.

 

Would be nice if spacebar could be used as a bookmark rather than menu or nothing at all - 4 bookmarks instead of 3 would come in handy for scouting.

 

What about Resign? That's kinda also "R".

 

I use FunkyFr3sh's hotkeys which makes "R" a bookmark and "End" the resign button.

 

Fuck that topic and every topic like it. WeaveR, read the reply I gave in that topic before I locked it.

 

Don't mind Seth he's just a bit of a hypocrite who has delicious tears.

 

Edit: With Irans edited .exe the game speed keeps snapping back to the 3rd slowest speed every game is anyone else getting this? Is anyone keen to test Irans .exe online sometime?

Link to comment
Share on other sites

Try this new EXE: https://dl.dropboxusercontent.com/u/21865790/cnc95_hotkeys.exe

 

With the following in CONQUER.INI:

 

[WinHotkeys]
KeySidebarToggle=9
KeyScatter=88
KeyStop=83
KeyGuard=71
KeyNext=78
KeyBase=72
KeyResign=82
KeyAlliance=65
KeyBookmark1=118
KeyBookmark2=119
KeyBookmark3=120
KeyBookmark4=121
KeyRepairToggle=84
KeySellToggle=89
KeyMapToggle=85
KeySidebarUp=38
KeySidebarDown=40
KeyTeam1=49
KeyTeam2=50
KeyTeam3=51
KeyTeam4=52
KeyTeam5=53
KeyTeam6=54
KeyTeam7=55
KeyTeam8=56
KeyTeam9=57
KeyTeam10=48
KeyForceMove1=18
KeyForceMove2=18
KeyForceAttack1=17
KeyForceAttack2=17
KeySelect1=16
KeySelect2=16
KeyScrollLeft=0
KeyScrollRight=0
KeyScrollUp=0
KeyScrollDown=0
KeySelectView=0
;EOF

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.

×
×
  • Create New...