Page 4 of 95 FirstFirst 1234567814 ... LastLast
Results 76 to 100 of 2357

Thread: Offsets

  1. #76

    Join Date
    18-12-11
    Location
    Dresden
    Posts
    6,344
    International competitions must be different from domestic.

    Here's a screenshot to show no World Cup in 2002 (Japan as co-host would have played if it had). Clicking on the highlighted menu crashes the game.



    I'll have to holiday on a bit to see if anything breaks. The game still says the qualifying draw will be made in March 2004 - so it might break then or when the teams qualify for the non-existent competition.

  2. #77

    Join Date
    18-12-11
    Location
    Dresden
    Posts
    6,344
    Looks like I spoke too soon, the game crashed 4 weeks later.

  3. #78

    Join Date
    18-12-11
    Location
    Dresden
    Posts
    6,344
    the problem is this line for FA cup not existin the original v68 file it was add by tapani patch
    and i tried to add it but nothing changed in the game
    thats the problem
    (and i know what i requested before)

  4. #79

    Join Date
    18-12-11
    Location
    Dresden
    Posts
    6,344
    yeah... icy is right.... some of those offsets are for tapanified patches, not the regular, untouched EXE file.... I have no idea how to change subs in Engerland

  5. #80

    Join Date
    18-12-11
    Location
    Dresden
    Posts
    6,344
    icy wants offset for england FA cup subs inside the untapanified official 3.9.68 .exe file...

    you should go to the this offset:

    9c42cc E:\dev\CM3\cm3 00-01\cm3\code\comp\cups\eng_fa_cup.cpp

    13.Change number of subs in cup:
    1.Go to the 1st reference line in the cup references list
    2.Scroll up a bit until you see the block start (should start with:"Push -1")
    2.Look down for the same lines as the league subs lines
    3.Change it as you like
    4.Save the changes
    5.Close olly

    and somewhere inside that block should be a line like this:

    MOV BYTE PTR DS:[ESI+49],value

  6. #81

    Join Date
    18-12-11
    Location
    Dresden
    Posts
    6,344
    00570C6B MOV BYTE PTR DS:[ESI+49],AL (this is the offset for changing how many subs can be assigned for the FA cup)

    00570C6E MOV BYTE PTR DS:[ESI+4A],AL (this is the offset for changing how many subs you can use during match)

    now,they don't have numeric value and changing offset will affect other lines and game would crash...i don't know how to change this...this is the question for Tapani or Zozoa.

  7. #82

    Join Date
    18-12-11
    Location
    Dresden
    Posts
    6,344
    what is the offset to disable the League Cup in Korea?

  8. #83

    Join Date
    18-12-11
    Location
    Dresden
    Posts
    6,344
    00837469 JE SHORT 0083748F change it to JMP SHORT 0083748F

  9. #84

    Join Date
    18-12-11
    Location
    Dresden
    Posts
    6,344
    00835023 - Irish Premier
    00835078 - Irish First
    008350cb - Irish Challenge Cup
    0083511e - Irish League Cup
    00835171 - Irish Super Cup
    008351c4 - Irish Presidents Cup
    00835217 - Irish Munster Cup
    0083526a - Irish Leinster Cup

    all JE commands just replace with JMP commands for the competitions you like.That is all.

  10. #85

    Join Date
    18-12-11
    Location
    Dresden
    Posts
    6,344
    I'm looking to change the size of the Irish First Division from 12 to maybe 16 or 18. Have gotten fed up of playing the same clubs so many times, would rather play each team twice only. I know Djole managed to do this with the scottish premier, second and third divisions. And as the correct league sizes are now in place I guessed someone must have found a way to change the size of the leagues. I'm just having difficulty finding the offsets in Olly.

  11. #86

    Join Date
    18-12-11
    Location
    Dresden
    Posts
    6,344
    for Ireland i only managed to reduce number of rounds from 3 to 2,22 fixtures...offsets for number of teams for ireland premier are not in HEXADECIMAL value,instead they are something like ECX or EPB...and that is tricky part...

  12. #87

    Join Date
    18-12-11
    Location
    Dresden
    Posts
    6,344
    SCOTLAND


    00836F84 - Scottish Premier
    00836FD9 - Scottish First
    0083702C - Scottish Second
    0083707F - Scottish Third
    008370D2 - Scottish FA Cup
    00837125 - Scottish League Cup
    00837178 - Scottish Challenge Cup
    007F2A43 - Scotland Premier subs named
    007F2A35 - Scotland Premier subs allowed
    007EEEE9 - Scotland First Division subs named
    007EEEDE - Scotland First Division subs allowed
    007F4014 - Scotland Second Division subs named
    007F4009 - Scotland Second Division subs allowed
    007F4F9C - Scotland Third Division subs named
    007F4F7E - Scotland Third Division subs allowed
    007ED379 - Scottish Cup subs named
    007ED37D - Scottish Cup subs allowed
    007EC9E9 - Scottish Challenge Cup subs named
    007EC9ED - Scottish Challenge Cup subs allowed
    007ED379 - Scottish FA Cup subs named
    007ED37D - Scottish FA Cup subs allowed
    007EFA49 - Scottish League Cup subs named
    007EFA4D - Scottish League Cup subs allowed
    007F293A - Scotland Premier Prize Money
    007F2948 - Scotland Premier TV Money
    007ED6F7 - Scottish FA Cup Prize Money
    007ED883 - Scottish FA Cup Prize Money
    007ED8D6 - Scottish FA Cup Prize Money
    007ED97F - Scottish FA Cup Prize Money
    007EDA27 - Scottish FA Cup Prize Money
    007EDAD1 - Scottish FA Cup Prize Money

    007F29CF – MOV BYTE PTR DS:[ESI+C1],BL (…+0C1],DL) - Scottish Premier Division Relegation
    007F29A1 - MOV BYTE PTR DS:[ESI+C1],AL (…+0C1],DL) - Scottish Premier Division Relegation
    007EEE90 - MOV BYTE PTR DS:[ESI+BE],BL (…+0BE],DL) - Scottish First Division Promotion
    007EEEB0 - MOV BYTE PTR DS:[ESI+C1],CL (…+0C1],DL) - Scottish First Division Relegation
    007F3FBD - MOV BYTE PTR DS:[ESI+BE],AL (…+0BE],DL) - Scottish Second Division Promotion
    007F3FDD - MOV BYTE PTR DS:[ESI+C1],AL (…+0C1],DL) - Scottish Second Division Relegation
    007F4F33 - MOV BYTE PTR DS:[ESI+BE],AL (…+0BE],CL) - Scottish Third Division Promotion

    007EDBBB |. A1 5CF49C00 |MOV EAX,DWORD PTR DS:[9CF45C] - SCOTLAND
    007EDD99 |. 8B2D DCF59C00 |MOV EBP,DWORD PTR DS:[9CF5DC] - Scotland Premier Clubs in Scottish Cup
    007EDCCC |. 8B2D E0F59C00 |MOV EBP,DWORD PTR DS:[9CF5E0] - Scotland First Division Clubs in Scottish Cup
    007EDC35 |. 3B05 E4F59C00 |CMP EAX,DWORD PTR DS:[9CF5E4] - Scotland Second Division Clubs in Scottish Cup
    007EDC2B |. 8B2D E8F59C00 |MOV EBP,DWORD PTR DS:[9CF5E8] - Scotland Third Division Clubs in Scottish Cup
    007EDBCF |. 8B0D 64F79C00 |MOV ECX,DWORD PTR DS:[9CF764] - Scotland A Lower Division Clubs in Scottish Cup



    Spoiler!

  13. #88

    Join Date
    18-12-11
    Location
    Dresden
    Posts
    6,344
    SOUTH KOREA


    008373C1 - South Korean K League
    00837416 - South Korean FA Cup
    00837469 - South Korean League Cup
    008374BC - South Korean Super Cup
    0066BC92 - K League Prize Money
    0066BD46 - Korean League subs named
    0066D885 - Korean Super Cup subs named
    0066D889 - Korean Super Cup subs allowed
    0066BF55 - Korean League Cup subs named
    0066BF51 - Korean League Cup subs allowed
    0066BBB2 - Number of Teams in K League

  14. #89

    Join Date
    18-12-11
    Location
    Dresden
    Posts
    6,344
    Quote Originally Posted by Patinoz View Post
    what is the offset to change the italian Serie B, Round,team and Fixtures?
    thank's

    00646792 MOV WORD PTR DS:[ESI+3E],16 (number of clubs) 16 is 22 in decimal

    0064678B PUSH 512 (number of clubs *59) 512 is 1298 in decimal 1298/22=59 ,if you change number of clubs,let's say on 24 you will have to change PUSH command like this:24*59=1416 and to convert 1416 to hexadecimal,that is 588 so command should be PUSH 588

    00645B2D MOV WORD PTR DS:[EAX],2A (number of fixtures)

    006468B2 MOV WORD PTR DS:[ESI+3C],CX (number of rounds)
    CX is a variant that contain some value(in this case it contains the value 2)
    We can't edit this line and put 3 instead of CX because it will overwrite the next line and we aren't allowed to do it.
    We can't either change the value CX gets above("MOV ECX,2") because it may affect other things like number of subs or number of points for winning a game
    Therefore we will have move all the following lines 1 step down.
    4.Mark all this block in grey using Shift+key down
    5.Right-click somewhere on the grey block->copy->to file
    6.Now change the "MOV WORD PTR DS:[ESI+3C],CX" to "MOV WORD PTR DS:[ESI+3C],3"
    7.Copy the the following lines as they are in the file you have created

    Note:when copying the lines it may give the message:"unknown identifier",in this case you just need to add 0 before the variant name.
    For example,if the line you want to copy is:"MOV WORD PTR DS:[ESI+AB],AX",write it as "MOV WORD PTR DS:[ESI+0AB],AX"

  15. #90

    Join Date
    18-12-11
    Location
    Dresden
    Posts
    6,344
    SPAIN


    0083773B - Spanish First
    00837790 - Spanish Second
    008377F3 - Spanish Second Division B
    00837846 - Spanish Cup
    008378FD - Spanish Cup
    00837950 - Spanish Super Cup
    0084FDB9 - Spanish Premier Division prize money
    0084FE8F - Spanish First subs named
    00855D66 - Spanish Second subs named
    00856F74 - Spanish Second B subs named
    00853811 - Spanish Lower subs named
    0084CBF9 - Spanish Cup subs named
    0084CFBD - Spanish Cup subs allowed
    00858719 - Spanish Super Cup subs named
    0085871D - Spanish Super Cup subs allowed

    0053D819: MOV ECX,DWORD PTR DS:[9D0120] ---> MOV ECX,-1 (Disabling the Basque-only restriction at Athletic Bilbao)
    008CECAC: MOV ECX,DWORD PTR DS:[9D0128] ---> MOV ECX,-1 (Disabling the Basque-only restriction at Real Sociedad)
    008CECB1: NOP (Disabling the Basque-only restriction at Real Sociedad)


    The code that deals with the basque-only restriction:

    Code:
    0053D7EF     90             NOP
    0053D7F0  /$ 8B4C24 04      MOV ECX,DWORD PTR SS:[ESP+4]
    0053D7F4  |. 85C9           TEST ECX,ECX
    0053D7F6  |. 0F84 F9000000  JE cm0102.0053D8F5
    0053D7FC  |. 8B41 53        MOV EAX,DWORD PTR DS:[ECX+53] = (83, get nation id of club)
    0053D7FF  |. 85C0           TEST EAX,EAX		  check if it is -1 (none), I think.
    0053D801  |. 0F84 EE000000  JE cm0102.0053D8F5
    0053D807  |. 8B00           MOV EAX,DWORD PTR DS:[EAX]    get the id of the club
    0053D809  |. 8B15 88F49C00  MOV EDX,DWORD PTR DS:[9CF488] = Spain
    0053D80F  |. 3BC2           CMP EAX,EDX			  tests if club is spanish
    0053D811  |. 0F85 DE000000  JNZ cm0102.0053D8F5		  skip next section if not spanish
    0053D817  |. 8B01           MOV EAX,DWORD PTR DS:[ECX]
    0053D819  |. 8B0D 20019D00  MOV ECX,DWORD PTR DS:[9D0120] = Athletic Bilbao
    0053D81F  |. 3BC1           CMP EAX,ECX
    0053D821  |. 0F84 C8000000  JE cm0102.0053D8EF
    0053D827  |. 3B05 34019D00  CMP EAX,DWORD PTR DS:[9D0134] = Athletic Bilbao B
    0053D82D  |. 0F84 BC000000  JE cm0102.0053D8EF
    0053D833  |. 3B05 E4029D00  CMP EAX,DWORD PTR DS:[9D02E4] = SD Eibar
    0053D839  |. 0F84 B0000000  JE cm0102.0053D8EF
    0053D83F  |. 3B05 E8029D00  CMP EAX,DWORD PTR DS:[9D02E8] = Amurrio CF
    0053D845  |. 0F84 A4000000  JE cm0102.0053D8EF
    0053D84B  |. 3B05 EC029D00  CMP EAX,DWORD PTR DS:[9D02EC] = CD Aurrera Vitoria
    0053D851  |. 0F84 98000000  JE cm0102.0053D8EF
    0053D857  |. 3B05 F0029D00  CMP EAX,DWORD PTR DS:[9D02F0] = Barakaldo
    0053D85D  |. 0F84 8C000000  JE cm0102.0053D8EF
    0053D863  |. 3B05 F4029D00  CMP EAX,DWORD PTR DS:[9D02F4] = SD Beasain
    0053D869  |. 0F84 80000000  JE cm0102.0053D8EF
    0053D86F  |. 3B05 F8029D00  CMP EAX,DWORD PTR DS:[9D02F8] = Berneo Club
    0053D875  |. 74 78          JE SHORT cm0102.0053D8EF
    0053D877  |. 3B05 FC029D00  CMP EAX,DWORD PTR DS:[9D02FC] = Gernika Club
    0053D87D  |. 74 70          JE SHORT cm0102.0053D8EF
    0053D87F  |. 3B05 04039D00  CMP EAX,DWORD PTR DS:[9D0304] = SD Lemona
    0053D885  |. 74 68          JE SHORT cm0102.0053D8EF
    0053D887  |. 3B05 08039D00  CMP EAX,DWORD PTR DS:[9D0308] = Elgoibar CD
    0053D88D  |. 74 60          JE SHORT cm0102.0053D8EF
    0053D88F  |. 3B05 0C039D00  CMP EAX,DWORD PTR DS:[9D030C] = Hernani CD
    0053D895  |. 74 58          JE SHORT cm0102.0053D8EF
    0053D897  |. 3B05 10039D00  CMP EAX,DWORD PTR DS:[9D0310] = Zalla UC
    0053D89D  |. 74 50          JE SHORT cm0102.0053D8EF
    0053D89F  |. 3B05 14039D00  CMP EAX,DWORD PTR DS:[9D0314] = Cultural Durango
    0053D8A5  |. 74 48          JE SHORT cm0102.0053D8EF
    0053D8A7  |. 3B05 18039D00  CMP EAX,DWORD PTR DS:[9D0318] = SD Amorebieta
    0053D8AD  |. 74 40          JE SHORT cm0102.0053D8EF
    0053D8AF  |. 3B05 1C039D00  CMP EAX,DWORD PTR DS:[9D031C] = Arenas Getxo Bilbao
    0053D8B5  |. 74 38          JE SHORT cm0102.0053D8EF
    0053D8B7  |. 3B05 20039D00  CMP EAX,DWORD PTR DS:[9D0320] = Aurrera Ondarroa CD
    0053D8BD  |. 74 30          JE SHORT cm0102.0053D8EF
    0053D8BF  |. 3B05 24039D00  CMP EAX,DWORD PTR DS:[9D0324] = Baskonia CD
    0053D8C5  |. 74 28          JE SHORT cm0102.0053D8EF
    0053D8C7  |. 3B05 28039D00  CMP EAX,DWORD PTR DS:[9D0328] = SD Eibar B
    0053D8CD  |. 74 20          JE SHORT cm0102.0053D8EF
    0053D8CF  |. 3B05 2C039D00  CMP EAX,DWORD PTR DS:[9D032C] = San Pedro UD
    0053D8D5  |. 74 18          JE SHORT cm0102.0053D8EF
    0053D8D7  |. 3B05 30039D00  CMP EAX,DWORD PTR DS:[9D0330] = Santurtzi CD
    0053D8DD  |. 74 10          JE SHORT cm0102.0053D8EF
    0053D8DF  |. 3B05 34039D00  CMP EAX,DWORD PTR DS:[9D0334] = Sestto River Club
    0053D8E5  |. 74 08          JE SHORT cm0102.0053D8EF
    0053D8E7  |. 3B05 38039D00  CMP EAX,DWORD PTR DS:[9D0338] = Tolosa CF
    0053D8ED  |. 75 06          JNZ SHORT cm0102.0053D8F5
    0053D8EF  |> B8 01000000    MOV EAX,1
    0053D8F4  |. C3             RETN
    0053D8F5  |> 33C0           XOR EAX,EAX
    0053D8F7  \. C3             RETN
    
    
    I have discovered a new way of understanding the code during decoding the section.
    
    MOV EAX,DWORD PTR DS:[ECX+53] would previously have been a bit of a mystery but I now know that it is accessing the value 83 (53 in hex) bytes into a club - which is the field 'nation id'. I'll post some more examples of this that should help improve our understanding of the code.
    
    
    Editing the nation 'basque' clubs are restricted to:
    
    008CEBB5: MOV EAX,DWORD PTR DS:[9CF424] - original value, basque restriction
    008CEBB5: MOV EAX,DWORD PTR DS:[9CF488] - restricts them to just Spanish players.

  16. #91

    Join Date
    18-12-11
    Location
    Dresden
    Posts
    6,344
    I'm looking to make a new application to simplify the process of editing player restrictions in various leagues. I'm looking for as many offsets as I can get, I've done some scanning and found the following but if anyone that has any more I'd really appreciate it.

    +5
    579c63 (England Match Rules)
    5c1a53 x
    5c1a5a x
    5e02f8 Unknown (3), Germany
    5e02ff Unknown (18) Germany
    5ed048 Unknown (5), Greece
    5ed04f Unknown (4), Greece
    6397f1 Unknown (0), Irish Presidents Cup?
    6d79ed Unknown (0), ?
    6d7adc Unknown (0), ?
    6d7ae6 Unknown (0), ?
    794753 Unknown (3), Norway
    8595a5 Unknown (4), Spain
    8595b9 Unknown (2), Spain
    8595c9 Unknown (4), Spain
    8595d1 Unknown (3), Spain
    90a731 Unknown (0), MLS All Stars


    +2
    40aa23 Unknown (4), Argentina
    412dc3 Unknown (6), Australia
    43f2c8 Unknown (2), Brazil
    6670a3 Unknown (3), Japan
    7cd973 Unknown (18), Poland
    7ec978 Unknown (3), Russia
    902203 Unknown (0), Turkey
    90222d Unknown (6), Turkey
    90ba88 Unknown (18), USA

    If anyone can confirm what any of the are I'd also appreciate it. The number in brackets is the number of players allowed.
    +5 is for non-eu restriction, +2 wasn't in the tutorial but, as a guess, I'd say it is non-region or non-continent restriction (I've only played in Australia from that list).

    I'll see if I can find some more at the weekend.

    John

  17. #92

    Join Date
    18-12-11
    Location
    Dresden
    Posts
    6,344
    SWEDEN


    00837BD5 - Swedish Premier
    00837C2A - Swedish First
    0089052C - Swedish Premier League Prize Money
    008905DC - Swedish Premier subs named
    0088F136 - Swedish First subs named
    0088CC1D - Swedish Cup subs named
    0088CC21 - Swedish Cup subs allowed

    0088DAD8 |. 3B0D A8F49C00 |CMP ECX,DWORD PTR DS:[9CF4A8] - Sweden
    0088DB8B |. 8B1D ECF59C00 |MOV EBX,DWORD PTR DS:[9CF5EC] - Sweden Premier Division Clubs in Swedish Cup
    0088DB2E |. 3B0D F0F59C00 |CMP ECX,DWORD PTR DS:[9CF5F0] - Sweden First Division Clubs in Swedish Cup
    0088DAA1 |. 3B0D C8F79C00 |CMP ECX,DWORD PTR DS:[9CF7C8] - Sweden Second Division Clubs in Swedish Cup
    0088DAE9 |. 3B0D ACF69C00 |CMP ECX,DWORD PTR DS:[9CF6AC] - Sweden Lower Division Clubs in Swedish Cup
    0088D5AF |. 66:C746 3E 1E0>MOV WORD PTR DS:[ESI+3E],1E - The 30 clubs for the cup needed

  18. #93

    Join Date
    18-12-11
    Location
    Dresden
    Posts
    6,344
    Offsets for the names of continents, should anyone wish to rename them (.dat files would also need changing):
    Africa - 0x5d9458
    Asia - 0x5d9450
    Europe - 0x5d9448
    North America - 0x5d9438
    Oceania - 0x5d9430
    South America - 0x5d9420

    Offsets are literal, add 0x400000 for Olly offsets.

  19. #94

    Join Date
    18-12-11
    Location
    Dresden
    Posts
    6,344
    TURKEY


    00837F35 - Turkish First
    00837F8A - Turkish Second
    00837FDD - Turkish Second B
    00838030 - Turkish Cup

    008FE020 - Turkish First subs named
    008FF312 - Turkish Second subs named
    009004DF - Tukish Second B subs named
    008FC419 - Turkish Cup subs named
    008fC41D - Turkish Cup subs allowed

  20. #95

    Join Date
    18-12-11
    Location
    Dresden
    Posts
    6,344
    Data directory name offset: 0x9c3824.

    Not particularly important but it would allow one to run multiple databases without needing to swap data directories. With the later versions of the Tapani patch there is no requirement for the exe to be called cm0102.exe. So you could have an exe called odb.exe that reads data from a directory call odbdata, an exe called sim.exe that reads data from a directory called simdata etc. You could also have a different directory for Tapanified data, 3.9.60 data etc etc.

    There is limited space available - only 8 bytes (enough for 7 characters and the null termination).

  21. #96

    Join Date
    18-12-11
    Location
    Dresden
    Posts
    6,344
    A huge collection of text offsets - http://www.sendspace.com/file/347me9

    The file includes a line that is pre-formatted to work with the Flex Editor along with the original value.

    There is a problem with the way Flex Editor, and my software generally, handles the endline character (ASCII value 10), as a result I have replaced it with a '$' sign. If you want to edit text with '$' signs then the only think I can suggest is to replace it with a ' ' - this would result in some news stories being squashed into one paragraph rather than being split. The endline is also used by the game on buttons where the text is over two lines - at present there is no way of keeping editing these values with the Flex Editor.

    Values wrapped with '{}' appear to be those that can be clicked in the game, e.g. club names in news items, you could remove them if you really wanted to.

    Some values will contain comments that can safely be removed to give more space, e.g. 'Club chairman <%s - Chairman Name eg Peter Johnson> is glad that you are not getting over confident about the club's chances of beating the drop this season.' - here the text ' - Chairman Name eg Peter Johnson' can be removed without impacting on the visible message.

    I have been working on a tutorial for the Flex Editor, it can be found here: http://champman0102.co.uk/forum/show...ditor+Tutorial

    Please note - the text file was auto-generated, some of the values will be critical to the game working properly, others will be linked to the names of things in the data files. Please back-up your .exe.

  22. #97

    Join Date
    18-12-11
    Location
    Dresden
    Posts
    6,344
    UNITED STATES


    00838282 - USA MLS
    008382D7 - USA Open Cup
    0083832A - USA MLS All Stars

  23. #98

    Join Date
    18-12-11
    Location
    Dresden
    Posts
    6,344
    0x60d780: change from MOV EAX,DWORD PTR SS:[ESP+4]
    to: JMP 0060D800 (make sure Fill rest with NOPs is ticked, this will insert two lines of NOP).

    This disables the error message displayed when a hard-coded club name has been changed; i.e. you can rename Barcelona, Manchester United etc and not get an annoying error message when the game loads.

    The official editor still won't let you make the changes so you'll have to use something like Tri Wasono's editor.

    I have just noticed that editing Barcelona's name has broken the link with Barcelona B, i.e. you can't promote / relegate player between the two. So you might want to bear that in mind before renaming a club.

  24. #99

    Join Date
    18-12-11
    Location
    Dresden
    Posts
    6,344
    WALES


    00838577 - Welsh Premier
    008385CC - Welsh Cup
    0083861F - Welsh League Cup
    00838672 - Welsh Premier Cup

    00925CD1 - Welsh Premier subs named
    00925EE5 - Welsh League Cup subs named
    00925EE1 - Welsh League Cup subs allowed
    00927845 - Welsh Premier Cup subs named
    00927841 - Welsh Premier Cup subs allowed


    Code:
    00460D77 MOV ECX,DWORD PTR DS:[9D0430] //9D0430 - Swansea City, set using a name lookup elsewhere.
    00460D7D CMP EAX,ECX
    00460D7F JE 00460E0A
    00460D85 CMP EAX,DWORD PTR DS:[9D0434] //9DO434 -Cardiff City
    00460D8B JE SHORT 00460E0A
    00460D8D CMP EAX,DWORD PTR DS:[9D043C] // - Wrexham
    ...
    00460E0F PUSH OFFSET 009904F4 ; ASCII "Wales<%s - COMMENT - Country Name>"
    
    All the above (and nearby code) does is display the text 'Wales' (the '<' onwards is ignored, it's there to tell the developers what the text is for only) if the club being looked at is one of the 3 mentioned.
    Code:
    Welsh Premier Cup invites (untested):
    
    00928A3D MOV EAX,DWORD PTR DS:[9D0434] - Cardiff City
    
    00928A62 MOV EAX,DWORD PTR DS:[9D0430] - Swansea City
    
    00928AA6 MOV EAX,DWORD PTR DS:[9D0438] - Merthyr Tydfil
    
    00928A85 MOV EAX,DWORD PTR DS:[9D043C] - Wrexham

  25. #100

    Join Date
    18-12-11
    Location
    Dresden
    Posts
    6,344
    Someone has probably noticed this pattern before but if not the following offsets represent a date. In this case it is the date of the Charity Shield.

    0056D70D |. 6A 04 PUSH 4 ; |Arg9 = 4
    0056D70F |. 51 PUSH ECX ; |Arg8
    0056D710 |. 6A 01 PUSH 1 ; |Arg7 = 1
    0056D712 |. 6A 06 PUSH 6 ; |Arg6 = 6
    0056D714 |. 53 PUSH EBX ; |Arg5
    0056D715 |. 6A 07 PUSH 7 ; |Arg4 = 7
    0056D717 |. 6A 0D PUSH 0D ; |Arg3 = 0D
    0056D719 |. 53 PUSH EBX ; |Arg2
    0056D71A |. 56 PUSH ESI ; |Arg1

    Arg3 is the day of the month (0 is the 1st).
    Arg4 is the month (0 is January)
    Arg6 is day of the week (Monday is 0)
    Arg7 is the time of day (0=AM, 1=PM, 2=EVE).

    Arg6 overrides Arg3, i.e. it picks the nearest day specified (e.g. Saturday) to the date specified (e.g. 20th); so if you use Saturday and 20th but the 20th is a Thursday then the game will use the 22nd. I think I have previously seen a date that was fixed irrespective of the day of the week it was but can't remember where or how it worked.

Page 4 of 95 FirstFirst 1234567814 ... LastLast

Posting Permissions

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