weaveR Posted September 17, 2013 Share Posted September 17, 2013 Will this ever be possible? Link to comment Share on other sites More sharing options...
Iran Posted September 17, 2013 Share Posted September 17, 2013 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. Link to comment Share on other sites More sharing options...
Nyerguds Posted September 17, 2013 Share Posted September 17, 2013 You say that as if mapping the keys is the hard work. I did that ages ago. 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. Link to comment Share on other sites More sharing options...
weaveR Posted September 17, 2013 Author Share Posted September 17, 2013 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 More sharing options...
Iran Posted September 18, 2013 Share Posted September 18, 2013 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 More sharing options...
Nyerguds Posted September 18, 2013 Share Posted September 18, 2013 @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 More sharing options...
Iran Posted September 18, 2013 Share Posted September 18, 2013 Well it's there now. Just needs loading from INI code. Link to comment Share on other sites More sharing options...
Riseofbane Posted September 19, 2013 Share Posted September 19, 2013 I think we should make poll for this before we even apply this change. I personally think CNC is good as it is now. No need custom hotkeys just because weaver is handicapped. Link to comment Share on other sites More sharing options...
FunkyFr3sh Posted September 19, 2013 Share Posted September 19, 2013 custom hotkeys will bring this game to another level, i might even start playing it again when im able to use my hotkeys Link to comment Share on other sites More sharing options...
weaveR Posted September 19, 2013 Author Share Posted September 19, 2013 I personally think CNC is good as it is now. No need custom hotkeys just because weaver is handicapped. http://cnc-comm.com/community/index.php?topic=2467.0 Link to comment Share on other sites More sharing options...
Iran Posted September 19, 2013 Share Posted September 19, 2013 Fine....if Nyerguds gives me code to read an integer from conquer.ini and a place to hook conquer.ini reading I'll add it.. Link to comment Share on other sites More sharing options...
Nyerguds Posted September 19, 2013 Share Posted September 19, 2013 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 More sharing options...
FunkyFr3sh Posted September 19, 2013 Share Posted September 19, 2013 i was about to create a hotkey changer which just changes the bytes in the exe ? got everything prepared and we tested it already but if you wanna add and read it from an ini then i better stop working on it hehe Link to comment Share on other sites More sharing options...
Nyerguds Posted September 19, 2013 Share Posted September 19, 2013 If it edits the original code, it wouldn't work reliably. The game checks the keys by doing greater than / lower than checks all the time, meaning that if you change the values, you risk skipping certain hotkey checks altogether. Link to comment Share on other sites More sharing options...
FunkyFr3sh Posted September 19, 2013 Share Posted September 19, 2013 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 More sharing options...
Nyerguds Posted September 19, 2013 Share Posted September 19, 2013 What about Resign? That's kinda also "R". Link to comment Share on other sites More sharing options...
Iran Posted September 19, 2013 Share Posted September 19, 2013 Are you patching the code via my GitHub C&C project? Link to comment Share on other sites More sharing options...
Nyerguds Posted September 19, 2013 Share Posted September 19, 2013 Are you patching the code via my GitHub C&C project? Yes, he is. He added your code to the exe, and then hex edits the actual values in it. On a related note, hang out on the IRC more Link to comment Share on other sites More sharing options...
Iran Posted September 19, 2013 Share Posted September 19, 2013 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 More sharing options...
Lovehandles Posted September 19, 2013 Share Posted September 19, 2013 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 More sharing options...
FunkyFr3sh Posted September 19, 2013 Share Posted September 19, 2013 im using the code from sonars cnc repo, but the spawner code on there is broken so i used another exe as base Link to comment Share on other sites More sharing options...
weaveR Posted September 20, 2013 Author Share Posted September 20, 2013 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 More sharing options...
Iran Posted September 20, 2013 Share Posted September 20, 2013 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 More sharing options...
weaveR Posted September 20, 2013 Author Share Posted September 20, 2013 That's better except V needs to be a bookmark but the game speed isn't snapping back now which is good. Edit: Are those the original hotkeys or FunkyFr3sh's? Link to comment Share on other sites More sharing options...
Iran Posted September 20, 2013 Share Posted September 20, 2013 Those are RA95's hotkeys, i modified the bookmark ones to be the same as C&C95's. Does setting a bookmark key to 'V' not work? Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now