Staredit Network > Forums > Modding Assistance > Topic: Increase selection limit to 32
Increase selection limit to 32
Oct 11 2011, 8:29 pm
By: Templarfreak  

Oct 11 2011, 8:29 pm Templarfreak Post #1



This is the last thing I need before my small mod is finished. I know it is possible since selection ammounts are changed in hacks such as Oblivion.

What I need is to know what offsets/addresses/codes for GPTP that I can use to make a FireGraft plugin to increase the maximum selection limit of 12 to 32. As a matter of fact, if I could also get this for buildings that would be great as well.



None.

Oct 11 2011, 10:05 pm xAngelSpiritx Post #2

eternal lurker

I doubt anyone at SEN besides Heinermann has the technical knowledge and programming skill to find out what addresses would need to be appropriately modified to allow selection of more than 12 units. And Heinermann is, from what I've seen, not interested in helping modders.

Post has been edited 1 time(s), last time on Oct 12 2011, 6:23 pm by xAngelSpiritx.



None.

Oct 12 2011, 10:58 am Symmetry Post #3

Dungeon Master

Doesn't oblivion handle multiselect outside of SC's code? I could be mistaken.

Either way, what you're asking isn't really possible. People asked for something like that for a while but it was never practical enough to bother doing - seems doubtful that someone would do it now.



:voy: :jaff: :voy: :jaff:

Oct 12 2011, 12:56 pm Pr0nogo Post #4



Yeah, Oblivion works by injecting data extensions (packed into the .dll file) into StarCraft via Zloader, unless my understanding is incorrect.

Basically, you'd have to do a .dll injection, as far as anything like that goes.




Oct 12 2011, 5:25 pm Heinermann Post #5

SDE, BWAPI owner, hacker.

To increase the selection limit isn't just a simple firegraft edit. It doesn't matter how much you modify, you still need the additional memory space to store the selection. Otherwise you're looking at a nasty buffer overflow.

There are several places where starcraft stores selections, but if you're fine with multi-select being client side and sending the commands in groups (emulating >12 selection, but not actually handling it that way in the game or network), then doing it similar to Oblivion would be the easiest. But even the client-side selection is just a global static array
Code
Unit *pSelectedUnitGroup[12];


So you still need to modify several locations, and allocate a new memory block that contains an array of size 32.




Oct 15 2011, 11:59 pm Templarfreak Post #6



Quote from Heinermann
To increase the selection limit isn't just a simple firegraft edit. It doesn't matter how much you modify, you still need the additional memory space to store the selection. Otherwise you're looking at a nasty buffer overflow.

There are several places where starcraft stores selections, but if you're fine with multi-select being client side and sending the commands in groups (emulating >12 selection, but not actually handling it that way in the game or network), then doing it similar to Oblivion would be the easiest. But even the client-side selection is just a global static array
Code
Unit *pSelectedUnitGroup[12];


So you still need to modify several locations, and allocate a new memory block that contains an array of size 32.

Thanks, bud. I'll ask some friends on how to finish the rest, that's all I needed. ...I am also using Micorsoft C++ 2008 for this...Not Firegraft. x.x



None.

Oct 16 2011, 12:34 am Templarfreak Post #7



Quote from Symmetry
Doesn't oblivion handle multiselect outside of SC's code? I could be mistaken.

Either way, what you're asking isn't really possible. People asked for something like that for a while but it was never practical enough to bother doing - seems doubtful that someone would do it now.


Isn't that what a plugin usually does? x.x



None.

Oct 17 2011, 1:10 am Tempz Post #8



I would assume you'd need another program that doesn't exist right now to allocate more memory so it doesn't cause a "buffer overflow" which hinnerman has already explained.



None.

Options
  Back to forum
Please log in to reply to this topic or to report it.
Members in this topic: None.
[01:24 pm]
Vrael -- NEED SOME SPORTBALL> WE GOT YOUR SPORTBALL EQUIPMENT MANUFACTURING
[2024-4-30. : 7:43 am]
NudeRaider -- Vrael
Vrael shouted: if you're gonna link that shit at least link some quality shit: https://www.youtube.com/watch?v=uUV3KvnvT-w
Yeah I'm not a big fan of Westernhagen either, Fanta vier much better! But they didn't drop the lyrics that fit the situation. Farty: Ich bin wieder hier; nobody: in meinem Revier; Me: war nie wirklich weg
[2024-4-29. : 6:36 pm]
RIVE -- Nah, I'm still on Orange Box.
[2024-4-29. : 4:36 pm]
Oh_Man -- anyone play Outside the Box yet? it was a fun time
[2024-4-29. : 12:52 pm]
Vrael -- if you're gonna link that shit at least link some quality shit: https://www.youtube.com/watch?v=uUV3KvnvT-w
[2024-4-29. : 11:17 am]
Zycorax -- :wob:
[2024-4-27. : 9:38 pm]
NudeRaider -- Ultraviolet
Ultraviolet shouted: NudeRaider sing it brother
trust me, you don't wanna hear that. I defer that to the pros.
[2024-4-27. : 7:56 pm]
Ultraviolet -- NudeRaider
NudeRaider shouted: "War nie wirklich weg" 🎵
sing it brother
[2024-4-27. : 6:24 pm]
NudeRaider -- "War nie wirklich weg" 🎵
Please log in to shout.


Members Online: Oh_Man, NudeRaider