Page 91 of 95 FirstFirst ... 81878889909192939495 LastLast
Results 2,251 to 2,275 of 2357

Thread: Offsets

  1. #2251

    Join Date
    18-07-15
    Posts
    795
    It means return near (that's what the n means) and move the stack pointer (ESP) by that many bytes to clean up the stack (i.e. if you've push'd eax and ecx onto the stack, instead of popping them off in a function to return with the ESP register (aka stack pointer) exactly the same as when it was called, you could call RETN 8).

  2. #2252

    Join Date
    05-02-17
    Posts
    112
    I really try to find out, after using tapanyfied exe, northern ireland fitst division has relegation to lower div and promotion from it. What offset handle the leagues from what league to promote and what to relegate ? I created an easy patch file to change offsets from northern irish leagues to austria (as Saturn's thread: https://champman0102.co.uk/showthrea...361#post442361 ) everything works, but promotion and relegation i not.

    thanks for help me!

  3. #2253

    Join Date
    05-02-17
    Posts
    112
    Quote Originally Posted by Bhaalspawn View Post
    I really try to find out, after using tapanyfied exe, northern ireland fitst division has relegation to lower div and promotion from it. What offset handle the leagues from what league to promote and what to relegate ? I created an easy patch file to change offsets from northern irish leagues to austria (as Saturn's thread: https://champman0102.co.uk/showthrea...361#post442361 ) everything works, but promotion and relegation i not.

    thanks for help me!

    I found it:
    007EBEAC |> 3B05 E4F39C00 CMP EAX,DWORD PTR DS:[9CF3E4] to CMP EAX,DWORD PTR DS:[nation cf code you want to use ]
    and
    007EBEB4 |. FF35 B8F89C00 PUSH DWORD PTR DS:[9CF8B8] to PUSH value the lower league competition value either in cf, or hex value.

    Also i found the northern irish cup replay abolish code in saturn's exe, so you are the best!!

  4. #2254

    Join Date
    02-01-19
    Location
    Brazil
    Posts
    33
    Hi guys! Does anyone have any idea how to enable mouse scrolling in CM 00/01?

  5. #2255

    Join Date
    22-07-19
    Posts
    103
    Is it possible to change the system of matches from the Polish League to the Belgian League?

  6. #2256

    Join Date
    18-07-15
    Posts
    795
    Just a quick brain dump of info from Tapani's patch:

    So in a normal 3.9.68 game the player has attributes like any other manager. And key to this is their Current Ability and their Potential Ability. In the original game, these are random and tend to be quite low. And even worse, they never change. This used to, amongst other things, affect the players chance of getting other managerial jobs. The way Tapani fixed this was firstly with this:

    Code:
    005FBAFE   .  60                        PUSHAD                    
    005FBAFF   .  8D7E 36                   LEA EDI,[ESI+36]
    005FBB02   .  8D7424 66                 LEA ESI,[ESP+66]
    005FBB06   .  6A 18                     PUSH 18
    005FBB08   .  59                        POP ECX
    005FBB09   .  F3:A4                     REP MOVS BYTE PTR ES:[EDI],BYTE PTR DS:[
    005FBB0B   .  61                        POPAD
    005FBB0C   .  8B4C24 08                 MOV ECX,DWORD PTR SS:[ESP+8]
    005FBB10   .  81F9 0000F000             CMP ECX,0F00000
    005FBB16   .  7C 3C                     JL SHORT 005FBB54
    005FBB18   .  8B49 69                   MOV ECX,DWORD PTR DS:[ECX+69]         <--- ECX Holds the "Staff" data, +69 holds the pointer to the "Player" data
    005FBB1B   .  E3 3D                     JECXZ SHORT 005FBB5A
    005FBB1D   .  66:C741 04 0100           MOV WORD PTR DS:[ECX+4],1           <--- Make CA = 1 for the player
    005FBB23   .  66:C741 06 C800           MOV WORD PTR DS:[ECX+6],0C8       <--- Make PA = 200 for the player
    But, if we just used this code, the player's PA would be 200, but it's CA would forever stay 1.

    So Tapani added this call:
    Code:
    006B5CD7  |.  E8 6CD0F4FF   CALL 00602D48
    Which fires at the end of each day and recalibrates the players CA based on things like reputation.

    After some checks/jumps it then does:
    Code:
    00602C9D  |>  8B7E 69                   /MOV EDI,DWORD PTR DS:[ESI+69]                <---- Get player data
    00602CA0  |.  85FF                      |TEST EDI,EDI
    00602CA2  |.  74 2A                     |JZ SHORT 00602CCE
    00602CA4  |.  0FB747 08                 |MOVZX EAX,WORD PTR DS:[EDI+8]                <---- Get Home Rep
    00602CA8  |.  66:0347 0A                |ADD AX,WORD PTR DS:[EDI+0A]
    00602CAC  |.  66:0347 0C                |ADD AX,WORD PTR DS:[EDI+0C]
    00602CB0  |.  0FB757 04                 |MOVZX EDX,WORD PTR DS:[EDI+4]               <--- Get CA
    00602CB4  |.  83C0 60                   |ADD EAX,60
    00602CB7  |.  C1F8 07                   |SAR EAX,7
    00602CBA  |.  3BC2                      |CMP EAX,EDX
    00602CBC  |.  72 03                     |JB SHORT 00602CC1
    00602CBE  |.  42                        |INC EDX
    00602CBF  |.  EB 03                     |JMP SHORT 00602CC4
    00602CC1  |>  74 0B                     |JE SHORT 00602CCE
    00602CC3  |.  4A                        |DEC EDX
    00602CC4  |>  66:3B57 06                |CMP DX,WORD PTR DS:[EDI+6]                    <--- Get PA
    00602CC8  |. /73 04         		|JAE SHORT 00602CCE
    00602CCA  |. |66:8957 04    		|MOV WORD PTR DS:[EDI+4],DX                 <--- Set CA
    00602CCE  |> \83EE 6E       		|SUB ESI,6E
    00602CD1  |.^ E2 CA         		\LOOP SHORT 00602C9D
    The other function that he added that gets called every day is at 00602CD9 (which I think affects player development). It certainly looks up a player's club details. But not sure on that one yet.

  7. #2257

    Join Date
    05-02-17
    Posts
    112
    bTW if i swap two nations, i swapped Denmark with Hungary, with mass swap etc, all my hungarian staff got the norways and sweden language. What offset handle that?
    I found a Scandinavia offset: 0083941D |. 3B05 C0F29C00 CMP EAX,DWORD PTR DS:[9CF2C0] -denamrk
    but that not stop to give two languagaes to Hungarian players after swap.

  8. #2258

    Join Date
    25-10-19
    Posts
    3
    Fixing the modern formats for Champions League and Europe League would be really good. I hate the second group stage and UEL that was in 2002.

  9. #2259

    Join Date
    20-09-12
    Posts
    649
    Don't hold your breath. It's been 18 years and the biggest connundrum of them all remains unsolved.

  10. #2260

    Join Date
    05-02-17
    Posts
    112
    I found the offset for northern irish charty shield venue : 0078A16D

    0078A16D 6A 04 PUSH EBX - change to PUSH 4 (neutral ground, the national stadium of the nation).
    The tricky is to need to copy paste the whole next commands until 0078A1D1 \. C2 1000 RETN 10

  11. #2261

    Join Date
    05-02-17
    Posts
    112
    Golly previously posted some cup fixture venue offsets and values.
    Here is is what i found, if it was alread posted sorry.
    Northern Irish cup semi final venues offsets:
    0078AB14 6A 28 PUSH 40
    0078AB24 6A 28 PUSH 80

    the 40 and 80 can be changed to 0(home team stadium), 4 (country's national stadium), 40 (biggest stadiums in country that not the national), 28 (random stadiums from country).
    Unfortunately the 40 and 80 are change the following line, so you need to copy the next command down to the next retn 10 command and paste behind the changed lines.

  12. #2262

    Join Date
    17-06-12
    Posts
    455
    Trying to find offset which answers that in olympic games - under 21 teams participated

  13. #2263

    Join Date
    13-01-20
    Posts
    156
    Quote Originally Posted by MarcoVanBast View Post
    Trying to find offset which answers that in olympic games - under 21 teams participated
    Does this post help?

    https://champman0102.co.uk/showthrea...811#post297811

  14. #2264

    Join Date
    17-06-12
    Posts
    455
    Quote Originally Posted by MaxiShagilko View Post
    thanks but not really

  15. The Following User Says Thank You to MarcoVanBast For This Useful Post:


  16. #2265

    Join Date
    14-04-20
    Posts
    6
    Quote Originally Posted by JosephMe View Post
    hi guys, i'm new here. not sure it has been posted here before, but may i ask how to disable third place playoffs game of club world cup (original 3.9.68)? thx for help.
    anyone can help me with this one?

  17. #2266

    Join Date
    18-07-15
    Posts
    795
    @Joseph: It's probably doable - but not sure anyone has done it before, so doubt anyone can help - so it would mean work to figure it out. What would you want to do that for anyway?

  18. #2267

    Join Date
    14-04-20
    Posts
    6
    Quote Originally Posted by Nick+Co View Post
    @Joseph: It's probably doable - but not sure anyone has done it before, so doubt anyone can help - so it would mean work to figure it out. What would you want to do that for anyway?
    i just want to make a few minor changes for the original game. for now i'm trying to disable 3rd place playoffs game of confed cup and fifa club world cup because i know it's a bug that made those competitions stop happening somewhere around 2007-2009.

  19. #2268

    Join Date
    12-11-18
    Location
    Portugal
    Posts
    64
    I've got an Austrian league patch pending for release, swapped with the Nortern Irish leagues and with an extended format of 12+16 teams instead of the basic 10+10.

    Once i increased the number of teams, the cup doesn't load all teams from the top two tiers. It only loads 8 from the premier and 12 from the first division, always the same ones no matter last year's final position in the db.

    Do you have any idea which offsets i'm looking for?
    Last edited by ®usso; 28-04-20 at 11:09 PM.

  20. #2269

    Join Date
    22-07-19
    Posts
    103
    Is it possible to remove the rematch match from the Polish Cup final? How to do it?

  21. #2270

    Join Date
    31-03-19
    Posts
    141
    Is it possible to run more than once instance of CM0102 at a time? The benchmark .exes made by Tapani make it possible but I'd like to edit my own .exe so that I can run two games parallel to each other. Any idea what offset controls this?

    Found the solution here: https://champman0102.co.uk/showthrea...037#post336037

  22. #2271

    Join Date
    31-03-19
    Posts
    141
    Does anyone know what offsets control the resolution of the window?

  23. #2272

    Join Date
    18-07-15
    Posts
    795
    MCFC: It's complicated - but you can see some of it at: https://github.com/nckstwrt/CM0102Pa...tionChanger.cs
    The "make portable" option of my patcher will allow multiple instances to run

  24. #2273

    Join Date
    31-03-19
    Posts
    141
    Quote Originally Posted by Nick+Co View Post
    MCFC: It's complicated - but you can see some of it at: https://github.com/nckstwrt/CM0102Pa...tionChanger.cs
    The "make portable" option of my patcher will allow multiple instances to run
    Wow that's a lot more complicated than anticipated. Thanks for the insight.

  25. #2274

    Join Date
    03-03-12
    Posts
    32
    Quote Originally Posted by saturn View Post
    0085B83D CMP WORD PTR DS:[EBX+2],7D3 -> 7D1

    Wembley is used for English cup finals, playoffs and England internationals from the start of the game.

    Spoiler!


    For some reason a couple of England games in late 2002/early 2003 (Euro 2004 qualifers) are played in club grounds (mostly Old Trafford but others too), seems to revert back to Wembley afterwards.
    Sorry for dragging up the old post, but I couldn't find anything else on this.

    Would I need to do anything different when starting the game in 1989? I've tried making the change but the Charity Shield and finals are still in Wales in the first season.

  26. #2275

    Join Date
    20-09-12
    Posts
    649
    7D1 is 2001 in HEX
    7D3 is 2003 in HEX
    and...
    7C5 is 1989

  27. The Following User Says Thank You to Alan For This Useful Post:


Posting Permissions

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