SCII Offsets

This is a discussion on SCII Offsets within the Starcraft 2 Coding board part of the Starcraft 2 forum category; If you fellow hackers need some offsets, you can have mine. (Please ignore c#'s _#region_ notation) 2.1.9.34644:   #region PlayerInformation ...

Results 1 to 7 of 7
  1. #1
    bellaPatricia's Avatar
    bellaPatricia is offline Legend




    Array
    Join Date
    Oct 2010
    Posts
    1,408
    Mentioned
    8 Post(s)
    Tagged
    0 Thread(s)
    Rep Power
    15
    Reputation
    1133

    SCII Offsets

    If you fellow hackers need some offsets, you can have mine.
    (Please ignore c#'s _#region_ notation)

    2.1.9.34644:
     

    #region PlayerInformation

    //Playerinfo
    PlayerStruct = (int)starcraft.MainModule.BaseAddress + 0x03625F90; //k

    PlayerStructSize = 0x0E18; //k

    /* 4 Bytes */
    RawPlayerCameraX = 0x008;

    /* 4 Bytes */
    RawPlayerCameraY = 0x00C;

    /* 4 Bytes */
    RawPlayerCameraDistance = 0x010;

    /* 4 Bytes */
    RawPlayerCameraAngle = 0x014;

    /* 4 Bytes */
    RawPlayerCameraRotation = 0x018;

    /* 1 Byte */
    RawPlayerTeam = 0x01C;

    /* 1 Byte */
    RawPlayerPlayertype = 0x01D;

    /* 1 Byte */
    RawPlayerStatus = 0x01E;

    /* 1 Byte */
    RawPlayerDifficulty = 0x020;

    /* Unknown */
    RawPlayerName = 0x064;

    /* 4 Byte */
    RawPlayerClanTagLenght = 0x108;

    /* Max 6 signs */
    RawPlayerClanTag = 0x114;

    /* 1 Byte
    * ####################
    * 0 - White
    * 1 - red
    * 2 - Blue
    * 3 - Teal
    * 4 - Purple
    * 5 - Yellow
    * 6 - Orange
    * 7 - Green
    * 8 - Light Pink
    * 9 - Violet
    * 10 - Light Gray
    * 11 - Dark Green
    * 12 - Brown
    * 13 - Light Green
    * 14 - Dark Gray
    * 15 - Pink
    * #################### */
    RawPlayerColor = 0x01B8;

    /* 4 Bytes
    *
    * Devide by 4 to get actual value */
    RawPlayerNamelenght = 0x0B4;

    /* Unknown */
    RawPlayerAccountId = 0x210; //ok

    /* 4 Bytes
    *
    * Is a bit different when the time ticked a few mins.. */
    RawPlayerApmCurrent = 0x5F0; //ok

    /* 4 Bytes */
    RawPlayerApmAverage = 0x5F8; //ok

    /* 4 Bytes */
    RawPlayerEpmAverage = 0x638; //ok

    /* 4 Bytes
    *
    * Is a bit different when the time ticked a few mins.. */
    RawPlayerEpmCurrent = 0x630; //ok

    /* 4 Bytes */
    RawPlayerWorkers = 0x7E0;

    /* 4 Bytes
    *
    * Devide by 4096 to get actual count */
    RawPlayerSupplyMin = 0x8B8;

    /* 4 Bytes
    *
    * Devide by 4096 to get actual count */
    RawPlayerSupplyMax = 0x8A0;

    /* 4 Bytes */
    RawPlayerMinerals = 0x8F8;

    /* 4 Bytes */
    RawPlayerGas = 0x900;

    /* 4 Bytes */
    RawPlayerMineralsIncome = 0x978;

    /* 4 Bytes */
    RawPlayerGasIncome = 0x980;

    /* 4 Bytes */
    RawPlayerMineralsArmy = 0xC60;

    /* 4 Bytes */
    RawPlayerGasArmy = 0xC88;


    #endregion

    #region UnitInformation

    //Unitinfo
    UnitStruct = (int)starcraft.MainModule.BaseAddress + 0x036A4840; //k

    /* 4 Bytes */
    UnitTotal = (int)starcraft.MainModule.BaseAddress + 0x036A4800;

    /* 4 Bytes
    *
    * Is a pointer */
    UnitStringStruct = 0x7DC; //?

    /* 4 Bytes
    *
    * Is a Pointer */
    UnitString = 0x020; //?

    /* 4 Bytes
    *
    * Is a pointer */
    UnitModel = UnitStruct + 8; //?

    /* 2 Bytes */
    UnitModelId = 0x06; //

    /* 4 Bytes (float)
    *
    * devide by 4096 */
    UnitModelSize = 0x3AC; //?

    /* 4 Bytes */
    UnitMaxHealth = 0x818;

    /* 4 Bytes */
    UnitMaxEnergy = 0x860;

    /* 4 Bytes */
    UnitMaxShield = 0x88C;

    UnitStructSize = 0x1C0;

    //Raw Unitdata

    /* 4 Bytes */
    RawUnitPosX = 0x4C;

    /* 4 Bytes */
    RawUnitPosY = 0x50;

    /* 4 Bytes */
    RawUnitDestinationX = 0x80;

    /* 4 Bytes */
    RawUnitDestinationY = 0x84;

    /* 8 Bytes */
    RawUnitTargetFilter = 0x14;

    /* 1 Byte */
    RawUnitRandomFlag = 0x20;

    /* 4 Bytes */
    /* Till Mule dies: 387328 */
    RawUnitAliveSince = 0x16C;

    /* 4 Bytes
    *
    * Devide by 4096 to get actual value */
    RawUnitDamageTaken = 0x114;

    /* 4 Bytes
    *
    * Devide by 4096 to get actual value */
    RawUnitShieldDamageTaken = 0x118;

    /* 4 Bytes
    *
    * Devide by 4096 to get actual value */
    RawUnitEnergy = 0x11C;

    /* 1 Byte */
    RawUnitOwner = 0x27;

    /* 4 Byte */
    RawUnitSpeedMultiplier = 0x0168;

    /* 4 Bytes */
    RawUnitState = 0x2B;

    /* 4 Bytes */
    RawUnitMovestate = 0x60;

    /* 2 Bytes */
    RawUnitBuildingState = 0x34; //?

    /* 4 Bytes */
    RawUnitModel = 0x008; //

    #endregion

    #region MapInformation

    //Mapinfo
    MapStruct = (int)starcraft.MainModule.BaseAddress + 0x03574130;
    MapFileInfoName = 0x2A0; /* DISAPPEARED */

    //Raw Mapadata
    RawMapLeft = 0x18;
    RawMapBottom = 0x1C;
    RawMapRight = 0x20;
    RawMapTop = 0x24;

    #endregion

    #region Selection - Unused & outdated

    //Selected stuff
    UiSelectionStruct = (int)starcraft.MainModule.BaseAddress + 0x46BB200; //k
    UiTotalSelectedUnits = UiSelectionStruct + 0x0; //
    UiTotalSelectedTypes = UiSelectionStruct + 0x2; //
    UiSelectedType = UiSelectionStruct + 0x4; //
    UiSelectedIndex = UiSelectionStruct + 0xA; //
    UiSize = 4; //147

    UiRawSelectionStruct = (int)starcraft.MainModule.BaseAddress + 0x46BB200;
    UiRawTotalSelectedUnits = 0x0;
    UiRawTotalSelectedTypes = 0x2;
    UiRawSelectedType = 0x4;

    /* Is in a loop, has to be like this */
    UiRawSelectedIndex = 0xA;

    #endregion

    #region Groups - unused & outdated

    /* 4 Bytes */
    RawGroupBase = (int)starcraft.MainModule.BaseAddress + 0x046D8360; //k

    /* 4 Bytes */
    RawGroupSize = 0x1b60;

    /* 2 Bytes */
    RawGroupAmountofUnits = 0x00;

    /* 2 Bytes */
    RawGroupUnitIndex = 0x0A;

    /* 1 Byte? No result! */
    RawGroupUnitIndexSize = 0x04;

    #endregion

    #region Various

    //Race
    RaceStruct = (int)starcraft.MainModule.BaseAddress + 0x2FA5B90; //k
    RaceSize = 0x10;

    //UiChatInput
    ChatBase = (int)starcraft.MainModule.BaseAddress + 0x003145920; //k
    ChatOff0 = 0x398;
    ChatOff1 = 0x208;
    ChatOff2 = 0x000;
    ChatOff3 = 0x000;
    ChatOff4 = 0x014;

    /* 1 Byte */
    Localplayer4 = (int)starcraft.MainModule.BaseAddress + 0x0115EED0; //k

    /* 1 Byte
    *
    * 0 - Teamcolor Off
    * 2 - Teamcolor On*/
    TeamColor1 = (int)starcraft.MainModule.BaseAddress + 0x03147184; //k

    /* 4 Bytes
    *
    * Devide by 4090 to get actual value
    * Is 0 when not Ingame */
    TimerData = (int)starcraft.MainModule.BaseAddress + 0x035740D4; //k

    /* 4 Bytes */
    Gamespeed = (int)starcraft.MainModule.BaseAddress + 0x04F2F6B4; //k

    #endregion



    2.1.11.36281:
     

    #region PlayerInformation

    //Playerinfo
    PlayerStruct = (int)starcraft.MainModule.BaseAddress + 0x0362BF90;

    PlayerStructSize = 0x0E18;

    /* 4 Bytes */
    RawPlayerCameraX = 0x008;

    /* 4 Bytes */
    RawPlayerCameraY = 0x00C;

    /* 4 Bytes */
    RawPlayerCameraDistance = 0x010;

    /* 4 Bytes */
    RawPlayerCameraAngle = 0x014;

    /* 4 Bytes */
    RawPlayerCameraRotation = 0x018;

    /* 1 Byte */
    RawPlayerTeam = 0x01C;

    /* 1 Byte */
    RawPlayerPlayertype = 0x01D;

    /* 1 Byte */
    RawPlayerStatus = 0x01E;

    /* 1 Byte */
    RawPlayerDifficulty = 0x020;

    /* Unknown */
    RawPlayerName = 0x064;

    /* 4 Byte */
    RawPlayerClanTagLenght = 0x108;

    /* Max 6 signs */
    RawPlayerClanTag = 0x114;

    /* 1 Byte
    * ####################
    * 0 - White
    * 1 - red
    * 2 - Blue
    * 3 - Teal
    * 4 - Purple
    * 5 - Yellow
    * 6 - Orange
    * 7 - Green
    * 8 - Light Pink
    * 9 - Violet
    * 10 - Light Gray
    * 11 - Dark Green
    * 12 - Brown
    * 13 - Light Green
    * 14 - Dark Gray
    * 15 - Pink
    * #################### */
    RawPlayerColor = 0x01B8;

    /* 4 Bytes
    *
    * Devide by 4 to get actual value */
    RawPlayerNamelenght = 0x0B4;

    /* Unknown */
    RawPlayerAccountId = 0x210; //ok

    /* 4 Bytes
    *
    * Is a bit different when the time ticked a few mins.. */
    RawPlayerApmCurrent = 0x5F0; //ok

    /* 4 Bytes */
    RawPlayerApmAverage = 0x5F8; //ok

    /* 4 Bytes */
    RawPlayerEpmAverage = 0x638; //ok

    /* 4 Bytes
    *
    * Is a bit different when the time ticked a few mins.. */
    RawPlayerEpmCurrent = 0x630; //ok

    /* 4 Bytes */
    RawPlayerWorkers = 0x7E0;

    /* 4 Bytes
    *
    * Devide by 4096 to get actual count */
    RawPlayerSupplyMin = 0x8B8;

    /* 4 Bytes
    *
    * Devide by 4096 to get actual count */
    RawPlayerSupplyMax = 0x8A0;

    /* 4 Bytes */
    RawPlayerMinerals = 0x8F8;

    /* 4 Bytes */
    RawPlayerGas = 0x900;

    /* 4 Bytes */
    RawPlayerMineralsIncome = 0x978;

    /* 4 Bytes */
    RawPlayerGasIncome = 0x980;

    /* 4 Bytes */
    RawPlayerMineralsArmy = 0xC60;

    /* 4 Bytes */
    RawPlayerGasArmy = 0xC88;


    #endregion

    #region UnitInformation

    //Unitinfo
    UnitStruct = (int)starcraft.MainModule.BaseAddress + 0x036AA840;

    /* 4 Bytes */
    UnitTotal = (int)starcraft.MainModule.BaseAddress + 0x036AA800;

    /* 4 Bytes
    *
    * Is a pointer */
    UnitStringStruct = 0x7DC; //?

    /* 4 Bytes
    *
    * Is a Pointer */
    UnitString = 0x020; //?

    /* 4 Bytes
    *
    * Is a pointer */
    UnitModel = UnitStruct + 8; //?

    /* 2 Bytes */
    UnitModelId = 0x06; //

    /* 4 Bytes (float)
    *
    * devide by 4096 */
    UnitModelSize = 0x3AC; //?

    /* 4 Bytes */
    UnitMaxHealth = 0x818;

    /* 4 Bytes */
    UnitMaxEnergy = 0x860;

    /* 4 Bytes */
    UnitMaxShield = 0x88C;

    UnitStructSize = 0x1C0;

    //Raw Unitdata

    /* 4 Bytes */
    RawUnitPosX = 0x4C;

    /* 4 Bytes */
    RawUnitPosY = 0x50;

    /* 4 Bytes */
    RawUnitDestinationX = 0x80;

    /* 4 Bytes */
    RawUnitDestinationY = 0x84;

    /* 8 Bytes */
    RawUnitTargetFilter = 0x14;

    /* 1 Byte */
    RawUnitRandomFlag = 0x20;

    /* 4 Bytes */
    /* Till Mule dies: 387328 */
    RawUnitAliveSince = 0x16C;

    /* 4 Bytes
    *
    * Devide by 4096 to get actual value */
    RawUnitDamageTaken = 0x114;

    /* 4 Bytes
    *
    * Devide by 4096 to get actual value */
    RawUnitShieldDamageTaken = 0x118;

    /* 4 Bytes
    *
    * Devide by 4096 to get actual value */
    RawUnitEnergy = 0x11C;

    /* 1 Byte */
    RawUnitOwner = 0x27;

    /* 4 Byte */
    RawUnitSpeedMultiplier = 0x0168;

    /* 4 Bytes */
    RawUnitState = 0x2B;

    /* 4 Bytes */
    RawUnitMovestate = 0x60;

    /* 2 Bytes */
    RawUnitBuildingState = 0x34; //?

    /* 4 Bytes */
    RawUnitModel = 0x008; //

    #endregion

    #region MapInformation

    //Mapinfo
    MapStruct = (int)starcraft.MainModule.BaseAddress + 0x0357A130;
    MapFileInfoName = 0x2A0; /* DISAPPEARED */

    //Raw Mapadata
    RawMapLeft = 0x18;
    RawMapBottom = 0x1C;
    RawMapRight = 0x20;
    RawMapTop = 0x24;

    #endregion

    #region Selection - Unused & outdated

    //Selected stuff
    UiSelectionStruct = (int)starcraft.MainModule.BaseAddress + 0x046C1200;
    UiTotalSelectedUnits = UiSelectionStruct + 0x0; //
    UiTotalSelectedTypes = UiSelectionStruct + 0x2; //
    UiSelectedType = UiSelectionStruct + 0x4; //
    UiSelectedIndex = UiSelectionStruct + 0xA; //
    UiSize = 4; //147

    UiRawSelectionStruct = (int)starcraft.MainModule.BaseAddress + 0x46C1200;
    UiRawTotalSelectedUnits = 0x0;
    UiRawTotalSelectedTypes = 0x2;
    UiRawSelectedType = 0x4;

    /* Is in a loop, has to be like this */
    UiRawSelectedIndex = 0xA;

    #endregion

    #region Groups - unused & outdated

    /* 4 Bytes */
    RawGroupBase = (int)starcraft.MainModule.BaseAddress + 0x046DE360;

    /* 4 Bytes */
    RawGroupSize = 0x1b60;

    /* 2 Bytes */
    RawGroupAmountofUnits = 0x00;

    /* 2 Bytes */
    RawGroupUnitIndex = 0x0A;

    /* 1 Byte? No result! */
    RawGroupUnitIndexSize = 0x04;

    #endregion

    #region Various

    //Race
    RaceStruct = (int)starcraft.MainModule.BaseAddress + 0x02FABB90;
    RaceSize = 0x10;

    //UiChatInput
    ChatBase = (int)starcraft.MainModule.BaseAddress + 0x00314B920;
    ChatOff0 = 0x394;
    ChatOff1 = 0x160;
    ChatOff2 = 0x00C;
    ChatOff3 = 0x26C;
    ChatOff4 = 0x014;

    /* 1 Byte */
    Localplayer4 = (int)starcraft.MainModule.BaseAddress + 0x01164ED8;

    /* 1 Byte
    *
    * 0 - Teamcolor Off
    * 2 - Teamcolor On*/
    TeamColor1 = (int)starcraft.MainModule.BaseAddress + 0x0314D184;

    /* 4 Bytes
    *
    * Devide by 4090 to get actual value
    * Is 0 when not Ingame */
    TimerData = (int)starcraft.MainModule.BaseAddress + 0x0357A0D4;

    /* 4 Bytes */
    Gamespeed = (int)starcraft.MainModule.BaseAddress + 0x04F356B4;

    //Not yet
    //4 Bytes
    FramesPerSecond = (int)
    starcraft.MainModule.BaseAddress + 0x05008BC4;

    //1 Byte
    PauseEnabled = (int)starcraft.MainModule.BaseAddress + 0x0357A018;

    #endregion
    Last edited by bellaPatricia; 07-08-2015 at 07:18 PM.


  2. The Following 3 Users Say Thank You to bellaPatricia For This Useful Post:


  3. #2
    rakhking is offline Newbie
    Array
    Join Date
    Sep 2013
    Posts
    5
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Rep Power
    0
    Reputation
    0
    awesome awesome, i need some help with a ahk script im making, are you willing to help me out on skype with this, so its easier to communicate.

    Its a script to a arcade game, i wont discuss here which one but when released you will be credited.

    if you want to help, or just answer some of my questions please add me on skype: whatskillz

    hope to hear from you soon mate.

  4. #3
    bellaPatricia's Avatar
    bellaPatricia is offline Legend




    Array
    Join Date
    Oct 2010
    Posts
    1,408
    Mentioned
    8 Post(s)
    Tagged
    0 Thread(s)
    Rep Power
    15
    Reputation
    1133
    Updated for 2.1.11.


  5. #4
    niht is offline Newbie
    Array
    Join Date
    Apr 2013
    Posts
    1
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Rep Power
    0
    Reputation
    0
    good stuff!
    Any update for 2.1.12?
    and how about lotv? would be so nice of you if you would share lotv base address and offset as well:P

  6. #5
    bellaPatricia's Avatar
    bellaPatricia is offline Legend




    Array
    Join Date
    Oct 2010
    Posts
    1,408
    Mentioned
    8 Post(s)
    Tagged
    0 Thread(s)
    Rep Power
    15
    Reputation
    1133
    Nothing changed for 2.1.12.36657.


  7. #6
    ironer1 is offline Addict
    Array
    Join Date
    Oct 2013
    Posts
    59
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Rep Power
    7
    Reputation
    1
    Bella can you make dumper please?

  8. #7
    bellaPatricia's Avatar
    bellaPatricia is offline Legend




    Array
    Join Date
    Oct 2010
    Posts
    1,408
    Mentioned
    8 Post(s)
    Tagged
    0 Thread(s)
    Rep Power
    15
    Reputation
    1133
    Quote Originally Posted by ironer1 View Post
    Bella can you make dumper please?
    What do you mean with dumper?


Similar Threads

  1. Replies: 1
    Last Post: 02-09-2012, 11:51 PM
  2. [WTB] NA SCII CD Key
    By Glorzap in forum CD-Keys
    Replies: 0
    Last Post: 07-09-2011, 01:37 AM
  3. SCII Mod: Left 2 Die
    By razathru in forum Starcraft 2 forum
    Replies: 7
    Last Post: 05-09-2011, 08:12 AM
  4. [WTB] B> SCII NA & KR CD Keys
    By FuglyV69 in forum CD-Keys
    Replies: 0
    Last Post: 03-19-2011, 05:33 AM
  5. [Discuss] How to be a better player on SCII?
    By razathru in forum Starcraft 2 forum
    Replies: 1
    Last Post: 10-27-2010, 02:11 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •