Page 90 of 90 FirstFirst ... 808687888990
Results 2,226 to 2,239 of 2239

Thread: Offsets

  1. #2226

    Join Date
    15-12-11
    Location
    Your Mother
    Posts
    32,928
    vCash
    570000
    Semi ironic you found this code given Tapani's patches remove the ability to find these players due to them being sub 100 in World Rep (or something along those lines)

  2. #2227

    Join Date
    20-09-15
    Posts
    271
    vCash
    345
    Quote Originally Posted by saturn View Post
    I don't know the location for any signing-on fee calculations, but I might be able to tell you what to look out for. The offset +4F relates to squad status, so that should be your first thing to search for in cm0102.exe.txt. I don't really know how the +4F offset works: it's not as straightforward as +4F = 1 is Indispensable, +4F = 2 is Important etc, but it shouldn't be too difficult to figure out. Anyway, once the +4F offset is in the code, I'd imagine there'll be some checking of its value and subsequent jumps to different floating point numbers depending on that value. Code at 004D2A16 is what I'd imagine the calculations to look like, so maybe try there first (though there is similar looking code beyond that too).
    Actually, I tried several times, but could not find any part of code related . Only thing I found is to limit or cancel signing on fee. Need your support

  3. #2228

    Join Date
    18-07-15
    Posts
    240
    vCash
    0
    The increased pool of players seems to fit the leagues chosen too - in the 1.96 test almost half the players were Northern Irish. So, increasing this value should solve the problem of no regens being promoted to your reserve teams.
    This is awesome I gave it a try with just the English league. Without modification I had 1350 players 19 and younger who were on Free Transfers. Modding it to 1.9 I got 47307! Some proper wonderkids in that lot too!

  4. #2229

    Join Date
    18-07-15
    Posts
    240
    vCash
    0
    For those interested, Tapani's patcher could shift the start year and although it shifted the player histories, it never did the same for the Club + National histories. Wrote a rough lazy patch today to do that:
    Code:
    00539AE9      E9 12D44200         JMP 00966F00
    00539AEE      90                  NOP
    And then...
    
    00966F00      8B35 D423AE00       MOV ESI,DWORD PTR DS:[0AE23D4]
    00966F06      60                  PUSHAD
    00966F07      31C0                XOR EAX,EAX
    00966F09      66:8346 08 15       ADD WORD PTR DS:[ESI+8],12
    00966F0E      83C6 1A             ADD ESI,1A
    00966F11      40                  INC EAX
    00966F12      39C8                CMP EAX,ECX
    00966F14    ^ 75 F3               JNE SHORT 00966F09
    00966F16      61                  POPAD
    00966F17    ^ E9 D32BBDFF         JMP 00539AEF
    That will push histories out by 18 years (the ADD... ,12 line above). I've had for a while all the tapani code for doing the rest of the year changing, so now I could make my patcher change the year without changing any of the data files. I've also added code into my patcher to load the exe and then do the patches in memory, so never even changing the exe. So with this I might take my patcher in a new direction. Or I might do nothing with it So thought I should post here rather than the info just get lost....

  5. The Following 3 Users Say Thank You to Nick+Co For This Useful Post:


  6. #2230

    Join Date
    18-07-15
    Posts
    240
    vCash
    0
    Oh and xeno:
    The code to calc the signing on fee is a bit complicated.....far as I can work out:
    Code:
    004DECCA  |.  E8 810F3800   CALL 0085FC50
    Is the call to calc it. If you just wanted to do a messy hack, you could just divide the int32 at EDI+8 after the call by 2 and that would make all signing on fees 50% less ? Probably not what you're after - but 85FC50 is a bit of a beast and I think the signing on fee depends on a lot of factors, so it's not just a case of changing one float or similar.....

    EDIT:
    Here's an example to try:
    Code:
    004DECCF     /E9 9C814800             JMP 00966E70
    004DECD4     |90                      NOP
    004DECD5     |90                      NOP
    ...
    Code:
    00966E70      D16F 08                 SHR DWORD PTR DS:[EDI+8],1
    00966E73      8B84E4 84000000         MOV EAX,DWORD PTR SS:[ESP+84]
    00966E7A    ^ E9 577EB7FF             JMP 004DECD6
    ^ that will right shift it by 1 (i.e. divide the number by 2) therefore cutting all signing on fees by half.
    (I think this works! Hopefully I'm not just changing the signing on fee that gets displayed )
    Last edited by Nick+Co; 23-12-19 at 08:01 PM.

  7. The Following 3 Users Say Thank You to Nick+Co For This Useful Post:


  8. #2231

    Join Date
    20-09-15
    Posts
    271
    vCash
    345
    Quote Originally Posted by Nick+Co View Post
    Oh and xeno:
    The code to calc the signing on fee is a bit complicated.....far as I can work out:
    Code:
    004DECCA  |.  E8 810F3800   CALL 0085FC50
    Is the call to calc it. If you just wanted to do a messy hack, you could just divide the int32 at EDI+8 after the call by 2 and that would make all signing on fees 50% less ? Probably not what you're after - but 85FC50 is a bit of a beast and I think the signing on fee depends on a lot of factors, so it's not just a case of changing one float or similar.....

    EDIT:
    Here's an example to try:
    Code:
    004DECCF     /E9 9C814800             JMP 00966E70
    004DECD4     |90                      NOP
    004DECD5     |90                      NOP
    ...
    Code:
    00966E70      D16F 08                 SHR DWORD PTR DS:[EDI+8],1
    00966E73      8B84E4 84000000         MOV EAX,DWORD PTR SS:[ESP+84]
    00966E7A    ^ E9 577EB7FF             JMP 004DECD6
    ^ that will right shift it by 1 (i.e. divide the number by 2) therefore cutting all signing on fees by half.
    (I think this works! Hopefully I'm not just changing the signing on fee that gets displayed )
    Thanks Nick+Co.
    This will improve club finances a lot. The reason of bankrupt clubs is mostly paying high signing fees to their own players. Also, transfer ability of all clubs will improve .
    Note: I did not try it yet.

  9. #2232

    Join Date
    17-02-19
    Posts
    9
    vCash
    500
    Anyone tried to research screens drawing?
    Can we change layout? Add new screens? New elements (club, player pictures)?

  10. #2233

    Join Date
    18-07-15
    Posts
    240
    vCash
    0
    This will improve club finances a lot. The reason of bankrupt clubs is mostly paying high signing fees to their own players. Also, transfer ability of all clubs will improve .
    Ahhh, my patch will just affect the player's negotiations - as 0085FC50 is called from many places. if you want signing on fees lower for all then, hooking the end of the 0085FC50 is the best bet so:
    Code:
    00862682      E9 E9471000       JMP 00966E70
    00862687      90                NOP
    ....
    00966E70     \57                 PUSH EDI
    00966E71      8B7CE4 24          MOV EDI,DWORD PTR SS:[ESP+24]
    00966E75      D16F 08            SHR DWORD PTR DS:[EDI+8],1
    00966E78      5F                 POP EDI
    00966E79      81C4 64020000      ADD ESP,264
    00966E7F      C2 1C00            RETN 1C
    EDIT: Fixed the above - originally assumed it was always in EDI for every call. Stooopid.
    Last edited by Nick+Co; 26-12-19 at 09:55 PM.

  11. The Following User Says Thank You to Nick+Co For This Useful Post:


  12. #2234

    Join Date
    18-03-14
    Posts
    1,249
    vCash
    7700
    0069CA55 JE 0069CC92 --> JMP
    Code:
    0x29ca55 0xf 0xe9
    0x29ca56 0x84 0x38
    0x29ca57 0x37 0x2
    0x29ca58 0x2 0x0
    0x29ca5a 0x0 0x90
    The above will stop you from suffering board confidence and loyalty penalties when applying for jobs elsewhere. Useful for when you're applying to managerless clubs in unselected leagues just to get them to hire a manager.

  13. The Following User Says Thank You to saturn For This Useful Post:


  14. #2235

    Join Date
    18-07-15
    Posts
    240
    vCash
    0
    Nice! I like these type of things Here's one, just for fun:
    Code:
    0x2b89c4 0x0 0xe9
    0x2b89c5 0x0 0x15
    0x2b89c6 0x0 0x01
    0x2b89c7 0x0 0x00
    0x2b89c9 0x0 0x90
    0x3273ae 0x0 0xe9
    0x3273af 0x0 0x33
    0x3273b0 0x0 0x01
    0x3273b1 0x0 0x00
    0x3273b3 0x0 0x90
    ^ That will make it so you no longer have to field 11 players. Although just fielding a goalie can crash it, but tried with 3 and it worked fine. Might have good testing purposes.

  15. The Following User Says Thank You to Nick+Co For This Useful Post:


  16. #2236

    Join Date
    18-07-15
    Posts
    240
    vCash
    0
    This game has always been prejudice against Prince, Cher and Madonna In that it forces you always to put in a second name when creating a new game:
    Code:
    0x421656 0xf 0x90
    0x421657 0x84 0x90
    0x421658 0x6d 0x90
    0x421659 0x1 0x90
    0x42165a 0x0 0x90
    0x42165b 0x0 0x90
    Means you can just play using a single first name

  17. The Following User Says Thank You to Nick+Co For This Useful Post:


  18. #2237

    Join Date
    18-07-15
    Posts
    240
    vCash
    0
    Been wanting to do this one for ages. Anyone else get annoyed by this when you want to compare two players?:



    This patch gets rid of this screen so you don't get asked if you really want to set a player for comparison.

    Code:
    004F4210: 81 C3
    004F4211: EC 90
    004F4212: 9C 90
    004F4213: 01 90
    004F4214: 00 90
    004F4215: 00 90
    004F4598: 75 EB
    004F45AF: 6A 53
    004F45B0: 01 90
    004F45D1: 66 50
    004F45D2: 83 6A
    004F45D3: FE 01
    004F45D4: FF B9
    004F45D5: 74 50
    004F45D6: 25 44
    004F45D7: 0F B7
    004F45D8: BF 00
    004F45D9: C2 E8
    004F45DA: 0F 32
    004F45DB: BF AA
    004F45DC: CE F0
    004F45DD: 8D FF
    004F45DE: 14 89
    004F45DF: 40 C3
    004F45E0: 8B 58
    004F45E1: C1 EB
    004F45E2: C1 B7
    004F45E3: E0 90
    004F45E4: 05 90

  19. The Following 3 Users Say Thank You to Nick+Co For This Useful Post:


  20. #2238

    Join Date
    07-04-13
    Posts
    378
    vCash
    500
    saturn any idea on how to control more than 16 teams on game?

  21. #2239

    Join Date
    15-10-12
    Location
    Grantham
    Posts
    375
    vCash
    0
    Anybody know how to change how many days before an international fixture that a squad has to be picked. It's 14 days which is a bit too long in advance in my opinion.

Page 90 of 90 FirstFirst ... 808687888990

Posting Permissions

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