Page 1 of 83 1234511 ... LastLast
Results 1 to 25 of 2064

Thread: Offsets

  1. #1
    Join Date
    18-12-11
    Location
    Dresden
    Posts
    7,673
    vCash
    4030

    Offsets for Merge

    So since there are a few of us doing patches now, I thought I'd start a thread where we could list all the offsets by country for the things that we need to change when making patches (number of teams, prize and TV money, number of subs, etc...).

    Post whatever you know and I'll keep the first post as up-to-date as I can

    BY NATION:

    ARGENTINA
    AUSTRALIA
    BELGIUM
    BRAZIL
    CROATIA
    DENMARK
    ENGLAND
    FINLAND
    FRANCE
    GERMANY
    GREECE
    HOLLAND
    ITALY
    JAPAN
    N. IRELAND
    NORWAY
    POLAND
    PORTUGAL
    REP. IRELAND
    RUSSIA
    SCOTLAND
    SOUTH KOREA
    SPAIN
    SWEDEN
    TURKEY
    UNITED STATES
    WALES


    BY CONTINENT:

    AFRICA
    ASIA
    EUROPE
    NORTH AMERICA
    OCEANIA
    SOUTH AMERICA
    WORLD




    BY SUBJECT:

    START YEAR
    COMPETITIONS
    MISCELLANEOUS

  2. #2
    Join Date
    18-12-11
    Location
    Dresden
    Posts
    7,673
    vCash
    4030

    Offsets for Tapani Patches (to merge)

    So since there are a few of us doing patches now, I thought I'd start a thread where we could list all the offsets by country for the things that we need to change when making patches (number of teams, prize and TV money, number of subs, etc...).

    Post whatever you know and I'll keep the first post as up-to-date as I can

    ARGENTINA

    004045AA - Argentine Premier Opening Stage Number of Fixtures
    00404D9A - Argentine Premier Closing Stage Number of Fixtures
    008322A2 - Argentine Premier League (Change JE to JMP to disable league)
    00405552 - Argentine Premier Number of Teams
    0040564A - Argentine Premier Prize Money
    008322F7 - Argentine 2nd Division (Change JE to JMP to disable league)
    00407530 - Argentine 2nd Division Number of Fixtures - Group Stage
    00406F36 - Argentine 2nd Division Number of Fixtures - League
    00407EE5 - Argentine 2nd Division Number of Subs
    00407CE2 - Argentine 2nd Division Number of Teams

    AUSTRALIA

    004111DD - Australia Number of league fixtures
    00411D24 - Australia Number of rounds (hard-coded as DX)
    00411D70 - Australia Number of subs in Opening Stage
    00411B82 - Australia Number of teams in the league
    00411659 - Australia Playoff fixtures

    BELGIUM

    0041E9AC - Belgium First Division Prize or TV Money
    0041E9BA - Belgium First Division Prize or TV Money
    0041FE6E - Belgium Second Division Prize or TV Money
    0041FE7A - Belgium Second Division Prize or TV Money

    BRAZIL

    CROATIA

    005148AC - Croatian First Division Prize or TV Money
    005148BA - Croatian First Division Prize or TV Money
    00515DAC - Croatian Second North Prize or TV Money
    00515DBA - Croatian Second North Prize or TV Money
    00516ECC - Croatian Second South Prize or TV Money
    00516EDA - Croatian Second South Prize or TV Money

    DENMARK

    005539CC - Danish Premier Division Prize or TV Money
    005539DA - Danish Premier Division Prize or TV Money
    0055238C - Danish Division 1 Prize Money
    00554B3C - Danish Division 2 Prize Money

    ENGLAND

    00574BF5 - English Premier number of subs
    0056EDAC - English Conference Prize Money
    00572CED - English Division 1 Prize Money
    0057672C - English Division 2 Prize Money
    0057806C - English Division 3 Prize Money
    0056444A - English FA Cup Prize Money
    0056F5E2 - English FA Cup Prize Money
    0056F702 - English FA Cup Prize Money
    0056F7CB - English FA Cup Prize Money
    0056F890 - English FA Cup Prize Money
    0056F93C - English FA Cup Prize Money
    0056F9E7 - English FA Cup Prize Money
    0056FA98 - English FA Cup Runner-up
    0056FA8D - English FA Cup Winner
    00574B1C - English Premier Prize Money

    FINLAND

    00595C6C - Finnish Premier Prize Money

    FRANCE

    GERMANY

    005DB3C5 - German Bundesliga Prize Money
    005DF3AC - German Zweite Bundesliga Prize Money

    GREECE

    005EAE5C - Greek A Prize or TV Money
    005EAE6A - Greek A Prize or TV Money
    005EBDAC - Greek B Prize or TV Money
    005EBDBA - Greek B Prize or TV Money

    HOLLAND

    005F852C - Dutch Premier Division Prize or TV Money
    005F853A - Dutch Premier Division Prize or TV Money

    ITALY

    0064160C - Italian Serie A Prize Money
    0064687C - Italian Serie B Prize Money
    0063EE80 - Italian Cup Prize Money
    0063EF15 - Italian Cup Prize Money
    0063EFBA - Italian Cup Prize Money
    0063F05B - Italian Cup Prize Money
    0063F106 - Italian Cup Prize Money
    0063F3C2 - Italian Cup Prize Money - Winner

    JAPAN

    006635E5 - J-League 1 Prize or TV Money
    006635F3 - J-League 1 Prize or TV Money

    N. IRELAND

    0078ED5C - Northern Ireland Premier Division Prize Money
    0078AA2E - Northern Ireland Cup Prize Money
    0078AAD9 - Northern Ireland Cup Prize Money
    0078ABB9 - Northern Ireland Cup Prize Money
    0078AC5F - Northern Ireland Cup Prize Money WINNER
    0078AC69 - Northern Ireland Cup Prize Money RUNNER UP

    CHARITY SHIELD NORTHERN IRELAND

    0078A174 (MONTH)
    0078A176 (DAY)
    00789E5B (NUMER SUBS)

    PLAY-OFF SECOND DIVISION NORTHERN IRELAND

    0078BBD2 (MONTH)
    0078BBD4 (DAY)

    OFFSET DRAW NORTHERN IRELAND CUP:

    0078A932 (MONTH)
    0078A934 (DAY)

    DATE OF THE CUP:

    0078A934 (JANUARY - 5 TURN)
    0078A9C3 (FEBRUARY - 6 TURN)
    0078AA5C (MARCH - QUARTERS)
    0078AB03 (APRIL - SEMI-FINAL)
    0078ABE4 (MAY - FINAL)


    NORWAY

    007926DC - Norwegian Premier League Prize Money

    POLAND

    007C966E - Poland Premier Division Prize Money

    PORTUGAL

    007CF8FC - Portuguese Premier Division Prize or TV Money
    007CF90A - Portuguese Premier Division Prize or TV Money

    REP. IRELAND

    0063A8D3 - Republic of Ireland Premier Division Prize Money

    RUSSIA

    007EB71A - Russian Premier Division Prize Money

    SCOTLAND

    007F2A43 - Scotland Premier Maximum subs named
    007F2A35 - Scotland Premier Maximum subs used
    007F293A - Scotland Premier Prize Money
    007F2948 - Scotland Premier TV Money
    007EEEE9 - Scotland First Division Maximum subs named
    007EEEDE - Scotland First Division Maximum subs used
    007F4014 - Scotland Second Division Maximum subs named
    007F4009 - Scotland Second Division Maximum subs used
    007F4F9C - Scotland Third Division Maximum subs named
    007F4F7E - Scotland Third Division Maximum subs used
    007ED379 - Scottish Cup Maximum subs named
    007ED37D - Scottish Cup Maximum subs used
    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
    007EC9E9 - Scottish League Challenge Cup Maximum subs named
    007EC9ED - Scottish League Challenge Cup Maximum subs used
    007EFA49 - Scottish League Cup Maximum subs named
    007EFA4D - Scottish League Cup Maximum subs used

    SOUTH KOREA

    0066BC92 - K League Prize Money

    SPAIN

    0084FDB9 - Spanish Premier Division prize money

    SWEDEN

    0089052C - Swedish Premier League Prize Money

    TURKEY

    UNITED STATES

    WALES

    OTHER (UEFA CUP, CL, etc...)

    00584533 - CL Champions Prize Money
    00583BD6 - CL Draw 1 of 4 Prize Money
    00583BF1 - CL Draw 2 of 4 Prize Money
    00583C0F - CL Draw 3 of 4 Prize Money
    00583C28 - CL Draw 4 of 4 Prize Money
    00585803 - CL First Group 1 of 2 Prize Money
    00585822 - CL First Group 2 of 2 Prize Money
    00586065 - CL Second Group 1 of 2 Prize Money
    00586084 - CL Second Group 2 of 2 Prize Money
    00583BAA - CL Win 1 of 2 Prize Money
    00583BC5 - CL Win 2 of 2 Prize Money
    009028C8 - UEFA Cup 3rd Round Prize Money
    0090295D - UEFA Cup 4th Round Prize Money
    00902B67 - UEFA Cup Champions Prize Money
    00902AE4 - UEFA Cup Final Prize Money
    009029DE - UEFA Cup Quarter Finals Prize Money
    00902A61 - UEFA Cup Semi Finals Prize Money

  3. #3
    Join Date
    18-12-11
    Location
    Dresden
    Posts
    7,673
    vCash
    4030
    ARGENTINA


    008322A2 - Argentinian Premier
    008322F7 - Argentinian Second
    004045AA - Argentine Premier Opening Stage Number of Fixtures
    00404D9A - Argentine Premier Closing Stage Number of Fixtures
    00405552 - Argentine Premier Number of Teams
    00407CE2 - Argentine Second Division Number of Teams
    0040564A - Argentine Premier Prize Money
    00405708 - Argentinian Premier subs named
    00407EE5 - Argentinian Second subs named
    00407530 - Argentine 2nd Division Number of Fixtures - Group Stage
    00406F36 - Argentine 2nd Division Number of Fixtures - League
    0040AA23 - Argentina Foreigner Rule

  4. #4
    Join Date
    18-12-11
    Location
    Dresden
    Posts
    7,673
    vCash
    4030
    Northern Irish Cup offset's:

    0078AA2E
    0078AAD9
    0078ABB9
    0078AC5F WINNER
    0078AC69 RUNNER UP

  5. #5
    Join Date
    18-12-11
    Location
    Dresden
    Posts
    7,673
    vCash
    4030
    AUSTRALIA


    004111DD - Australia Number of league fixtures
    00411D24 - Australia Number of rounds (hard-coded as DX)
    00411D70 - Australia Number of subs in Opening Stage
    00411B82 - Australia Number of teams in the league
    00411659 - Australia Playoff fixtures
    00411D70 - Australian NSL subs named

  6. #6
    Join Date
    18-12-11
    Location
    Dresden
    Posts
    7,673
    vCash
    4030
    German Bundesliga

    Number of Teams - 005DB24A
    Fixtures - 005D9CAA


    Croatia Premier Division

    Teams - 0051411D
    Fixtures - 005147C2

    (Only problem is that I have not been able to get the game to load after changing the croatian offsets.)

    IN Australia you have marked that the number of rounds is hard-coded as DX. Does this mean it cannot be changed?

  7. #7
    Join Date
    18-12-11
    Location
    Dresden
    Posts
    7,673
    vCash
    4030
    no, if you look at other lines in other leagues that are hard coded, it just means that if you replace the DX value with a number, it will probably also overwrite the following line or 2 with NOPs.... so you ned to copy down what the line or 2 following is going to be and change them back if NOPs do over write them

  8. #8
    Join Date
    18-12-11
    Location
    Dresden
    Posts
    7,673
    vCash
    4030
    Or set DX to the right value (but make sure it is not used elsewhere). There can also be some tricks how to avoid squeeze in more code into the same space (no need for the NOPs).

  9. #9
    Join Date
    18-12-11
    Location
    Dresden
    Posts
    7,673
    vCash
    4030
    BELGIUM


    00832792 - Belgian First
    008327E7 - Belgian Second
    0083283A - Belgian Third
    0083288D - Belgian FA Cup
    008328E0 - Belgian Super Cup
    0041E9AC - Belgium First Division Prize or TV Money
    0041E9BA - Belgium First Division Prize or TV Money
    0041DD91 - Begian First subs named
    0041DD95 - Belgian First subs allowed
    0041FE6E - Belgium Second Division Prize or TV Money
    0041FE7A - Belgium Second Division Prize or TV Money
    0041F081 - Belgian Second subs named
    0041F085 - Belgian Second subs allowed
    00422794 - Belgian Third subs named
    0041D0BE - Belgian FA Cup subs allowed



    this is the Belgium rules offsets:

    Code:
    00424F80 . 8B5424 08 MOV EDX,DWORD PTR SS:[ESP+8]
    00424F84 . 57 PUSH EDI
    00424F85 . B9 0A000000 MOV ECX,0A
    00424F8A . 83C8 FF OR EAX,FFFFFFFF
    00424F8D . 8BFA MOV EDI,EDX
    00424F8F . F3:AB REP STOS DWORD PTR ES:[EDI]
    00424F91 . 66:AB STOS WORD PTR ES:[EDI]
    00424F93 . C642 06 15 MOV BYTE PTR DS:[EDX+6],15 - no player restrictions for belgium
    00424F97 . E9 C8F41200 JMP cm0102.00554464
    00424F9C > C2 0800 RETN 8
    
    00424F97 . E9 C8F41200 JMP cm0102.00554464 - when u press ENTER on this line it takes u right at the Danish 2nd div block where i found Belgium competition references:
    
    00554464 > C642 08 02 MOV BYTE PTR DS:[EDX+8],2
    00554468 . 8B4424 08 MOV EAX,DWORD PTR SS:[ESP+8]
    0055446C . 5F POP EDI
    0055446D . 85C0 TEST EAX,EAX
    0055446F . 74 25 JE SHORT cm0102.00554496
    00554471 . 8B40 14 MOV EAX,DWORD PTR DS:[EAX+14]
    00554474 . 8B08 MOV ECX,DWORD PTR DS:[EAX]
    00554476 . A1 A0F59C00 MOV EAX,DWORD PTR DS:[9CF5A0] - belgian 2nd div
    0055447B . 3BC8 CMP ECX,EAX
    0055447D . 75 07 JNZ SHORT cm0102.00554486
    0055447F . C642 02 03 MOV BYTE PTR DS:[EDX+2],3
    00554483 . C2 0800 RETN 8
    00554486 > A1 C4F79C00 MOV EAX,DWORD PTR DS:[9CF7C4] - belgian 3rd div
    0055448B . 3BC8 CMP ECX,EAX
    0055448D . 75 07 JNZ SHORT cm0102.00554496
    0055448F . C642 02 00 MOV BYTE PTR DS:[EDX+2],0
    00554493 . C2 0800 RETN 8
    00554496 > C642 06 15 MOV BYTE PTR DS:[EDX+6],15
    0055449A .^E9 FD0AEDFF JMP cm0102.00424F9C
    0055449F 90 NOP
    005544A0 > 74 08 JE SHORT cm0102.005544AA
    005544A2 . 3B3D FCF69C00 CMP EDI,DWORD PTR DS:[9CF6FC] - belgian super cup
    and also this:
    00554398 > 3B3D 04F79C00 CMP EDI,DWORD PTR DS:[9CF704] - belgian super cup

  10. #10
    Join Date
    18-12-11
    Location
    Dresden
    Posts
    7,673
    vCash
    4030
    BRAZIL


    00832C0F - Brazilian Reg Bahia
    00832CB0 - Brazilian Reg Gaucho
    00832E44 - Brazilian Reg Parana
    00832E94 - Brazilian Reg Pern
    00832F35 - Brazilian Reg Santa
    00833027 - Brazilian Champions Cup
    042A461 - Brazilian First Division TV Money (£)
    042CA51 - Brazilian Second Division TV Money (£)
    004259F5 - Brazilian Champions Cup subs named
    004259F1 - Brazilian Champions Cup subs allowed
    00427501 - Brazilian Cup subs named
    00427ED3 - Brazilian Cup subs named
    00427505 - Brazilian Cup subs allowed
    00427ED7 - Brazilian Cup subs allowed
    0042A625 - Brazilian First subs named
    0042CBF9 - Brazilian Second subs named
    0042DED5 - Brazilian Third subs named
    0043107E - Brazilian Central State Championship subs named
    0043234F - Brazilian Gaúcho State Championship subs named
    004336CF - Brazilian Goiás State Championship subs named
    0043803F - Brazilian Paraná State Championship subs named
    004394AF - Brazilian Pernambucco State Championship subs named
    0043A67E - Brazilian Rio State Championship subs named
    0043BCF2 - Brazilian Santa Catarina State Championship subs named


    And if you follow that pattern for Brazilian Third Division TV Money...
    0042DC79 - MOV DWORD PTR DS:[ESI+60],EBX
    But as that value = 0 you will need to be clever to change it to a value > 0. (Probably why JL didn't automate it)

  11. #11
    Join Date
    18-12-11
    Location
    Dresden
    Posts
    7,673
    vCash
    4030
    Quote Originally Posted by Patinoz View Post
    Is possible to edit number of substitutes in French National ?
    5C07B1 ........

  12. #12
    Join Date
    18-12-11
    Location
    Dresden
    Posts
    7,673
    vCash
    4030
    is it possible to decrease the number of the teams of the Korean League?

  13. #13
    Join Date
    18-12-11
    Location
    Dresden
    Posts
    7,673
    vCash
    4030
    CROATIA


    00833275 - Croatian First Division
    008332CA - Croatian Second Division North
    0083331D - Croatian Second Division South
    00833370 - Croatian Cup
    005148AC - Croatian First Division Prize
    005148BA - Croatian First Division TV Money
    0051497A - Croatian First Division subs named
    00515DAC - Croatian Second North Prize
    00515DBA - Croatian Second North TV Money
    00515E7C - Croatian Second North subs named
    00516ECC - Croatian Second South Prize
    00516EDA - Croatian Second South TV Money
    00516F9A - Croatian Second South subs named
    0051411D - Number of Teams in Croatia Premier Division
    005147C2 - Number of Fixtures in Croatia Premier Division
    005174E9 - Croatian Cup subs named
    005174ED - Croatian Cup subs allowed


    Code:
    00518633 MOV BYTE PTR DS:[EDX],4 - player restriction offset for croatian league, change it as u like
    
    POP EDI 
    RETN 8 (also this two lines must be added because changing the first offset will overwrite them)
    
    ASCII "the CROATIAN_CUP"
    
    00607364 > 393D 98F89C00 CMP DWORD PTR DS:[9CF898],EDI
    
    00517C68 |. C605 A7F89C00 >MOV BYTE PTR DS:[9CF8A7],0C - croatia 1st
    00517D08 |. 3B35 A4F89C00 |CMP ESI,DWORD PTR DS:[9CF8A4] - croatia 3rd central
    00517F39 |. A1 ACF29C00 MOV EAX,DWORD PTR DS:[9CF2AC] - Croatia

  14. #14
    Join Date
    18-12-11
    Location
    Dresden
    Posts
    7,673
    vCash
    4030
    Quote Originally Posted by Patinoz View Post
    is it possible to decrease the number of the teams of the Korean League?
    66BBB2 .....

  15. #15
    Join Date
    18-12-11
    Location
    Dresden
    Posts
    7,673
    vCash
    4030
    Have I decreased the teams of the Korean League from 10 to 8 removing from her two teams in excess, but when I make to depart the game me from error of the national cup and the cup of league, because?

  16. #16
    Join Date
    18-12-11
    Location
    Dresden
    Posts
    7,673
    vCash
    4030
    You need to keep 10 teams in the league,2 teams will be hidden.

  17. #17
    Join Date
    18-12-11
    Location
    Dresden
    Posts
    7,673
    vCash
    4030
    Zozoa then as I can make for Ireland break the championship of the North Ireland? I have decreased the teams from 10 to 8 and diminuto the games from 36 to 21, but the championship has gone since August to December. How can I make to end the championship in January?

  18. #18
    Join Date
    18-12-11
    Location
    Dresden
    Posts
    7,673
    vCash
    4030
    You have to edit the fixtures dates.

  19. #19
    Join Date
    18-12-11
    Location
    Dresden
    Posts
    7,673
    vCash
    4030
    Go to the Northern Irish fixtures area and change the dates you want.

  20. #20
    Join Date
    18-12-11
    Location
    Dresden
    Posts
    7,673
    vCash
    4030
    Hi Zozoa, i'm green to this what i have to do with french national offsets ??

  21. #21
    Join Date
    18-12-11
    Location
    Dresden
    Posts
    7,673
    vCash
    4030
    I gave you the offset - 5C07B1.
    Change the value from 5 to whatever you want.

  22. #22
    Join Date
    18-12-11
    Location
    Dresden
    Posts
    7,673
    vCash
    4030
    It has to be like this ? Because before i start editing there wasn't be anything, and i copy that line from tutorial about adding new leagues.


  23. #23
    Join Date
    18-12-11
    Location
    Dresden
    Posts
    7,673
    vCash
    4030
    From the pic you posted I suggest you to do this:
    1.Go to offset 5C0782
    2.Change it to JMP 5C07B1
    3.Change offset 5C07B5 to JMP 5C0785

  24. #24
    Join Date
    18-12-11
    Location
    Dresden
    Posts
    7,673
    vCash
    4030
    any idea to change number of subs in the english cups (FA-League cup- Vans Trophy- Charity Sheild)?

  25. #25
    Join Date
    18-12-11
    Location
    Dresden
    Posts
    7,673
    vCash
    4030
    english FA CUP

    0056F227 MOV BYTE PTR DS:[ESI+49],7 (7 is number of how many players can be registered as subs)



    english FA trophy

    00570C6B MOV BYTE PTR DS:[ESI+49],AL (AL is a number of how many players can be registered as subs)
    00570C6E MOV BYTE PTR DS:[ESI+4A],AL (AL is a number of how many subs can be used during match)

    note:If the line doesn't have numeric value but use a variant like in the rounds line,than you will have to do the same trick again and move all the following lines one step down.
    But make sure you don't overwrite the next block.



    english charity shield

    0056D3E9 MOV BYTE PTR DS:[ESI+49],7 (7 is a number of how many players can be registered as subs)
    0056D3ED MOV BYTE PTR DS:[ESI+4A],5 (5 is a number of how many subs can be used during match)



    english Auto cup (in olly says auto cup,i am not sure what english cup is it,i have no time to test,so if someone is willing to try,thanks)

    0056AAB5 MOV BYTE PTR DS:[ESI+49],5 (5 is a number of how many players can be registered as subs)
    0056AAB9 MOV BYTE PTR DS:[ESI+4A],3 (3 is a number of how many subs can be used during match)



    english CC cup (in olly says CC cup,i am not sure what english cup is it,i have no time to test,so if someone is willing to try,thanks)

    0056C477 MOV BYTE PTR DS:[ESI+49],7 (7 is a number of how many players can be registered as subs)

Page 1 of 83 1234511 ... 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
  •