Select your race!

Started by lovetoby, March 03, 2010, 05:18:35 PM

Previous topic - Next topic

lovetoby

Hi,
just a couple of time since we started to hack around, and spent a lot of time with starcraft2...

so i actually dont know who found this or what found this or if, i tried it myself after someone gave me some broken and diffous inormation...

So i played around with this to get some ack but actually the only info i got is HOW TO SET PLAYER TO TERRANS!!

So... I just only tried it with Kulas Map in Spec mode with 4 PLayers...

http://www4.pic-upload.de/03.03.10/umlaehxwwh1i.jpg

You can change these values, but i noticed while testing for a few hours that it absolutely doesnt depend on the number 1 or actually where it will be placed... look at this...

http://www4.pic-upload.de/03.03.10/vm8l1ccg3l19.jpg

green: player number
yellow: mode (02 spectator ... d0c :-* )
blue: you can also change these blue blox to whatever you want to get terrans
red: i used these blox to set players o terrans and 01 cause im used to it
grey: u are not allowed to change these blox otherwiese the game will crash or give a victory dance :D

so feel free to help out or correct this!
Maybe its a startoff?!



edit:
CraniX posted something a couple of secs at #sc2c:
http://pastebin.com/BTCSwfy4
"So im kinda stuck with the race selection fix


Starcraft 2 Race Loader Video #2 - CraniX


Address is &H235CD74 or 0235CD74, don't what what to do from here.
I can lock the address value so i am the same race every restart, but
once the game is shut down the same value does not work anymore. I need
help making a pre game race selection loader, if you think you can make
one or help give me a shout!"

chetjan

hopefully it is a startoff but i really have no idea...

drakefs

Can't help much, but I did notice that the UI is the wrong type once you started using the race selector (T had Z UI, P had Z UI, T had P UI and Z had T UI).  So that leads me to believe that you are missing another value somewhere.  Sorry I cant be more help, not much of a coder myself...

bassMD

#3
I would definetely be interested in how the ingame race changer was done.

I also played around with the hex values a bit. Your race changing thing only works as long as the user does not want to play - setting the "observer flag" to 01 gives you (but not your enemies) a random race.
If those FFFFFF sections are set to 0, the concerning player's color is set to white. Putting anything else in there results in the default colors.

Out of these observations, I came to the following conclusion:

1. either the values you have to enter are not 01 or some FF, but constants defined by Blizzard we can't manually find out, or

2. MapInfo is rather a kind of trigger file that enables the settings of another file. As you already noticed, there is the Attributes file. It contains sections labeled with strange numbers. According to http://darkblizz.org/Forum2/ai-development/map-disassembling/ (nice read btw), these numbers stand for things like the players' and the AIs' races and colors. You can set values for "slots" that could represent the different players and AIs.
What I assume is that by the flag settings done here in this thread (setting AI race to terran and player/AI colors to white), we tell the game to not use the defaults but those values defined in the Attributes file. I tried to create the appropriate sections there, but I lack the numbers (the races and colors are some decimal constants). There are some of these constants used in that file - I only tried the first one (7955827) but it did not work (again Terran and white). We could try the other ones, but I doubt that they work; it's more probable that we have to use constants here that we do not know yet. Or maybe I'm just completely wrong ;)

Has anyone had any experience in this work for WC3? Maybe Blizzard kept the formats for the file we need and we can just look up the constants in some WC3 maps.

Blackcode

#4
bassMD the real link is http://darkblizz.org/Forum2/ai-development/map-disassembling/

I will start a new dev session this weekend on irc.. chann SC2.map

:D