|
Post by xavra42 on Dec 31, 2018 4:14:22 GMT -6
Hey I recently got this mod after playing with the unofficial patch mod and i am loving it. One big thing that is missing is the option to change how units are selected. I want it so that units are selected individually rather than clicking on a unit and selecting all 3 (like in wc3). I've been trying to figure it out on my own, but i am stuck. The settings.cfg and gs5's cfg are completely different. I read that the unofficial patch's author didn't create the feature but that it was already embedded into the game. How can I change the setting manually? I was digging through gs/dlg/options.gs but nothing in it is really making sense to me. Also the code appears are one line of text and its hard skimming the structure. I do have a bit of programming experience. Anyways, a few tips to put me in the right direction would be nice! And thanks for the mod it really breathed new life into the game because now all the units are useful in some way now.
|
|
|
Post by Boaster on Dec 31, 2018 6:18:56 GMT -6
Hey I recently got this mod after playing with the unofficial patch mod and i am loving it. One big thing that is missing is the option to change how units are selected. I want it so that units are selected individually rather than clicking on a unit and selecting all 3 (like in wc3). I've been trying to figure it out on my own, but i am stuck. The settings.cfg and gs5's cfg are completely different. I read that the unofficial patch's author didn't create the feature but that it was already embedded into the game. How can I change the setting manually? I was digging through gs/dlg/options.gs but nothing in it is really making sense to me. Also the code appears are one line of text and its hard skimming the structure. I do have a bit of programming experience. Anyways, a few tips to put me in the right direction would be nice! And thanks for the mod it really breathed new life into the game because now all the units are useful in some way now. Easy: Hold down the CTRL key while you make your mouse selection with the left click.
|
|
|
Post by xavra42 on Dec 31, 2018 7:13:45 GMT -6
That's what i have been doing but it really sucks. You have to be really fast in this game in order to minimize the amount of pausing that you need to do. Too much pausing and the game loses its 'flow' and becomes much less enjoyable. control click works differently on gs5 and official. when you control click you add a unit rather than select only what is chosen. also you cant drag click with it to select groups. with the military selection mode set to 0 on the 3.02 patched version it works just like in every other micro intensive strategy game which i love. it's more intuitive and allows you to keep units behind to protect your archer line. also helps in having say 1 cavalry distract the army and dodge shots. Since gs5 repurposed cav into a anti-ranged unit this would work even better. I have tried using autohotkey to replicate it but I can't. I made a hotkey which right clicks (to deselect current selection) then control clicks but i can't manage to emulate the dragging selection. The selecting by 3 units never made sense to me and the devs designed the other selection methods but i guess were too lazy to give you the option. you have 30 units in a full army you have to constantly move them around in battles which barely last a minute. This isn't feasible without tremendous pausing. I liked to do no pause runs on the patched versions for like the 3 months i've been playing it.
|
|
|
Post by Boaster on Dec 31, 2018 7:43:40 GMT -6
I suppose I could add it as an option.
I've been meaning to try an experiment on a new way of saving configurations. I don't know why I'll be getting to that though.
|
|
|
Post by xavra42 on Dec 31, 2018 8:41:55 GMT -6
the settings file gs5r.cfg literally just changes 1 number somewhere in the mpq correct? for example:
/combat_scrolling 1 def finds combat scrolling in the dlg/options.gs and changes that number to 1 or something right? just tell me what to ctrl+f for and I can change in like 5 seconds. I know the value needs to be 0. also I might change show HP bars to all units if i can find that too. I really hate how when i open to .gs file in notepad++ it all goes on 1 line. It is really hard to interpret the program structure even though i don't know postscript or whatever this was written in.
|
|
|
Post by Boaster on Dec 31, 2018 9:48:38 GMT -6
The variable would have to first be created in the game and setup before it would register.
The variable was not setup in my mod, therefore there is no variable that can be referenced in the config.
What I was thinking was setting up a clickable option in the menu the player could manually execute to get the effect you're desiring, then implement it into the configuration later.
|
|
|
Post by xavra42 on Dec 31, 2018 10:00:30 GMT -6
I think you're thinking of a option to add to the general game. I understand the variable in your config doesn't exist like the one in the unofficial patch does. However that variable is a flag that makes a change in the mpq does it not? I am only looking to make the change. It sounds like it would be straight forward if i can only locate it in the code. but you know way more than me.
|
|
|
Post by Boaster on Dec 31, 2018 20:49:47 GMT -6
I think you're thinking of a option to add to the general game. I understand the variable in your config doesn't exist like the one in the unofficial patch does. However that variable is a flag that makes a change in the mpq does it not? I am only looking to make the change. It sounds like it would be straight forward if i can only locate it in the code. but you know way more than me. The flag isn't in the MPQ, it runs in memory from the EXE.
|
|
|
Post by xavra42 on Jan 1, 2019 16:24:39 GMT -6
hmm when you said it is held in the memory of the exe inspired me to try and use cheat engine to find a way to change the setting without having an options menu. I can change the value using cheat engine but i can't find the base/static address to try it when i switch to your mod. probably wouldnt work anyways. Don't you think a quick memory edit could be a quick solution? I am new to cheatengine too so perhaps i am missing something
|
|
|
Post by Boaster on Jan 1, 2019 17:18:02 GMT -6
Here are the two procedures to work with.
getmilitaryselectionmode setmilitaryselectionmode
I haven't worked with them or experimented with them, so I don't know.
It is probably expecting a range of -1 to 3.
You could probably run the console from Ascension's mod and do the 'getmilitaryselectionmode' to see what his options change.
Quite honestly, I've never used the in-game console myself.
|
|
|
Post by xavra42 on Jan 1, 2019 17:51:42 GMT -6
he has an option in the menu that does it. 0, 1, and 2 select the mode. I changed the mode and found the memory address it was changing and changed it from cheat engine. what i am stuck on is switching to your game and trying to change the same static memory address to the same value. I doubt this will work to be honest because it could just be something added he added to the game even though the base functionality is in the original. But yeah it's a complicated change and not worth it but thanks for your time i really appreciate it man. I thought it would just be an easy lookup.
|
|