Page 94 of 95 FirstFirst ... 84909192939495 LastLast
Results 2,326 to 2,350 of 2357

Thread: Offsets

  1. #2326

    Join Date
    17-06-12
    Posts
    455
    Can any1 explain what ST(1)...ST(6) means?

    i find that player value stack in ST(6) but couldnt find it anywhere around code, only ST(1)

  2. #2327

    Join Date
    04-05-20
    Posts
    89
    Quote Originally Posted by MarcoVanBast View Post
    can any1 reminds me how date (day manth) counts in cm0102?

    i want to make function cmp (before december) => my code - else - act as normal
    IIRC, dates are stored as: 2 bytes for day of year (0-364), 2 bytes for year, then 4 bytes for something I don't remember - in the back of my mind it is something to do with leap years (I recall thinking it was very inefficient, as 1 byte would suffice for that).

  3. The Following User Says Thank You to John Locke For This Useful Post:


  4. #2328

    Join Date
    04-05-20
    Posts
    89
    Quote Originally Posted by MarcoVanBast View Post
    Can any1 explain what ST(1)...ST(6) means?

    i find that player value stack in ST(6) but couldnt find it anywhere around code, only ST(1)
    Means nothing to me.

    If it helps, here are all matches for "ST(6)" in the exe.

    009505C8 . D9CE FXCH ST(6)
    009505E7 . D9CE FXCH ST(6)
    009505F2 . D9CE FXCH ST(6)
    00950656 . D9CE FXCH ST(6)
    00950666 . D9CE FXCH ST(6)
    0095067A . D9CE FXCH ST(6)
    00950685 . D9CE FXCH ST(6)
    0095069C . D9CE FXCH ST(6)
    009506AC . D9CE FXCH ST(6)
    009506B9 . D9CE FXCH ST(6)
    009506C4 . D9CE FXCH ST(6)
    009506CE . D9CE FXCH ST(6)
    009506D8 . D9CE FXCH ST(6)
    009506E6 . D9CE FXCH ST(6)
    009506F0 . D9CE FXCH ST(6)

  5. #2329

    Join Date
    17-06-12
    Posts
    455
    Quote Originally Posted by John Locke View Post
    IIRC, dates are stored as: 2 bytes for day of year (0-364), 2 bytes for year, then 4 bytes for something I don't remember - in the back of my mind it is something to do with leap years (I recall thinking it was very inefficient, as 1 byte would suffice for that).
    big thanks John

  6. #2330

    Join Date
    21-02-19
    Posts
    48
    After a bit of time experimenting with Olly (I'm a complete amateur with it and just going by searching for coding that has been found by people on this forum over the years) - I have managed to alter the Inter-Toto Cup.

    There is coding in the game to tell the UEFA coefficients that Liechtenstein and Moldova should not have any teams in the Inter-Toto. I changed Moldova to Iceland and now Moldova have 1 team in the competition while Iceland have none.

    I also found coding that seemed to say that there are 60 teams in the competition (in the game if you count the number of teams per country it is 61, though only 60 clubs would actually compete), the country that is at the bottom of the UEFA coefficients is Luxembourg, they don't have a team compete even though it says 1 for Inter Toto Cup. The code I changed is found at 009050B3 and 00905003 - need to change the 3C value.

    I increased the number of competing teams to 66 and then altered the code in the first three rounds of the competition so that 66 teams would compete (and still have 6 in the final playoff). All has worked perfectly with Luxembourg now having their 1 team competing. The extra 5 teams have come from; England (usually 1, now 2 and it was Wrexham that was the extra team - along with usual Wolves - ...), Spain (extra 2) and Italy (extra 2) - this means Spain and Italy now have 11 teams in Europe - I was hoping to get the extra teams from the smaller nations who never have anyone in Europe, however on the coefficients list they still have 0 beside them so need to figure out how to increase this to 1.

    There seems to be code that points to the number of European nations used for selections, this has always been 50 (I've never seen more than 50 countries have clubs involved in European competition each season). Tried changing it to 55 but does not seem to have impacted the selection process, will keep working. The lines of code I changed were;

    009057EF - CMP CL, 32 (hex value for 50, changed the 32 to 37 - 55 as 55 European countries in the game now)
    0090570E - CMP EAX, 32
    009056FB - PUSH 32
    00905483 - CMP EAX, 32
    00905470 - PUSH 32

    EDIT
    Ignore those lines of code above. They seem to do more than I realised (in fairness I was having a stab in the dark as the hex value equalled 50 so I surmised it was to do with number of European nations). The game loaded up fine after I made those changes. But once saved it would not reload, kept crashing. No such issues when I changed them back thankfully. If anyone has any idea what those lines of code do it would be great to know.

    FURTHER EDIT
    I have tried changing the coefficients for each country in the official game editor so that the bottom 8 or so nations have identical ratings, however the 5 nations now at the bottom of the rankings still have no clubs involved in European competitions, so there must be some code that tells the game there are only 50 European nations.
    Last edited by footballer; 21-10-20 at 01:02 PM.

  7. The Following User Says Thank You to footballer For This Useful Post:


  8. #2331

    Join Date
    21-02-19
    Posts
    48
    As a further update, the changes to the Inter-Toto Cup all work fine, game has updated without errors from first season into second and on. However, it is still selecting extra teams from England, Spain and Italy. In England teams that came 8th and 10th in Premier League have entered the competition. I can only guess that was from invite into Inter-Toto Cup, so perhaps now rather than one invite it is 2.

    On the UEFA coefficients list it still has only 1 place for England (there's been no overall change to numbers displayed even though there are now 6 extra clubs in the competition). Between the 3 competitions there are 252 qualifying places/allotted places for clubs (72 CL, 117 EL, 61 ELQ) although the actual numbers now participating through the rounds totals 274 (71 CL, 137, 66ELQ). Would be good to discover what code changes the display on the rankings for numbers of teams. - Interestingly in season 2 an extra 2 allotted places appeared in the list for EL bringing this to 119 (albeit still 137 clubs competing across the rounds). Possible that this always occurs and I've just never noticed before.

    Looking at the Uefa Coefficient rankings 51 nations out of 55 have clubs involved in one of the 3 european competitions but with the bottom nations in the rankings this seems to be very random (some nations have 1 place allotted to them in say the UEFA Cup yet they have no club in any qualifying round, and then there will be a club involved from a nation with 0 allotted places...)

  9. #2332

    Join Date
    21-02-19
    Posts
    48
    Have tried adding more teams to the Champions League but not going as easy. Check out following offsets;

    00904252 - MOV BYTE PTR DS:[ESP+21],10 - refers to number of teams that join the qualified teams for group stage. The lines directly beneath have values for 18, 19 and 18, which is the number of new teams in each round, working backwards. Have tried adding 9 new teams to the competition and then changed the values to match in the Champions League coding for the first, second and third qualifying rounds.

    I then found a piece of code at 0058499F which relates to number of teams in a competition - but the value is only 55, which strangely enough is the number of teams involved in the first 3 qualifying rounds. There is a PUSH value above this too. Changed these to match the extra 9 teams I added but game still crashes when loading with a Comp_Stats error.

    Stumped now as to what else needs to be changed to add the extra teams to the Champions League qualifying rounds.


    EDIT**
    After some more editing, realised that the number of new teams entering each round is also the number of seeded teams at each stage - so until we find how to change the number of seeded teams we will not be able to change the overall number of teams in the competition.
    Last edited by footballer; 29-10-20 at 12:49 PM.

  10. #2333

    Join Date
    17-11-19
    Posts
    8
    Hi all

    I downloaded Nick's patch for 3.9.68 (thanks, Nick, it's excellent for getting jobs abroad!) but the Confed Cup, Asian Cup Winners, and Aussie League still break. Confed and Asian have the 3rd/4th place issue, and the Aussie League has the closing stage problem. I had previously found olly offsets to fix them for them but now I can't. Any help locating them?

    I'll keep looking but any help would be much appreciated.

  11. #2334

    Join Date
    07-04-13
    Posts
    380
    hi there a kind question to ask here, can anyone tell me how i can turn off relegation to finnish division 1? doesnt matter about the promotion from division 1 to premier league as i am disabling that league. would be very appreciated if someone can find this for me and tell me how as been trying for weeks now trial and error.

  12. #2335

    Join Date
    04-05-20
    Posts
    89
    Quote Originally Posted by totallyaddicted View Post
    hi there a kind question to ask here, can anyone tell me how i can turn off relegation to finnish division 1? doesnt matter about the promotion from division 1 to premier league as i am disabling that league. would be very appreciated if someone can find this for me and tell me how as been trying for weeks now trial and error.
    On a quick search the important lines appear to be:
    00595D08 |. A1 F8F79C00 MOV EAX,DWORD PTR DS:[9CF7F8]
    00595D0D |. 8946 20 MOV DWORD PTR DS:[ESI+20],EAX

    How I found this:
    Went into the 9CF thread to get the value for Finnish First Division, searched Olly for all references, then looked for the +20 line (which is where the game stores the 'relegate to' division - 'promote to' is +1C).

    Replace both lines with:
    MOV DWORD PTR DS:[ESI+20],-1


    [Untested]

  13. #2336

    Join Date
    21-02-19
    Posts
    48
    Apologies if I've posted this query in the wrong thread.

    I'm sure I've previously seen a post about player fitness levels during the game and how to stop players losing fitness in April.

    From what I can see clubs in non-playable European leagues ie Ukraine, Czech Rep, Israel, Cyprus etc, players lose their fitness levels in April, so any clubs from these countries who manage to make it to the quarter finals of European competitions are unable to perform.

    Anyone know how to fix/patch this?

  14. #2337

    Join Date
    04-03-12
    Posts
    237
    @Footballer

    I had an old patch Fiestita created that sorted fitness levels and Nick elaborated and improved on it and it’s built into Nick’s patcher. Whether it covers them leagues or not I couldn’t tell ya but I imagine it would do. If you use Nick’s patcher it’s in the ‘Apply Misc. Patch’ under FitnessPatch.

  15. #2338

    Join Date
    21-02-19
    Posts
    48
    Okay, that's great, thanks, will give that a try and see if it sorts it - had never even thought about it until I saw Shakhtar Donetsk make the QF of Europa and get hammered, then realised why and spotted this was the case for all non-playable leagues.

  16. #2339

    Join Date
    05-02-14
    Posts
    109
    @footballer: the one in Nick's Misc patches definitely works. I've played a good 4-5 seasons with it now.

  17. #2340

    Join Date
    21-02-19
    Posts
    48
    Thanks Hodgy, the Misc patch Nick has for the fitness sorted that out.

    Does anyone have a full list of the ESI+50 offsets? Am I right that this refers to league rules? There seems to be a different value used for each set of leagues/cups. The list I've been able to sort out myself is;

    [ESI+50],1 = Europe
    2 = ??
    3 = Argentina
    4 = Belgium
    5 = ??
    6 = Brazil
    7 =
    8 = Denmark
    9 = England
    0A = Finland & Australia
    0B =
    0C = France
    0D = Germany
    0E =
    0F = Holland
    10 = Ireland
    11 = Italy
    12 =
    13 = Japan
    14 =
    15 = Norway
    16 =
    17 = Portugal
    18 = Scotland
    19 =
    1A = Spain
    1B =
    1C = Sweden
    1D =
    1E = USA
    1F = Poland
    20 = Greece
    21 = Croatia
    22 =
    23 =
    24 = N. Ireland
    25 = Turkey
    26 =
    27 = Russia
    28 = Wales
    29 =
    2A = South Korea

  18. #2341

    Join Date
    04-05-20
    Posts
    89
    Every line that contains "ESI+50" & "BYTE":
    Code:
    0040106C      |. 885E 50        MOV BYTE PTR DS:[ESI+50],BL
    004042A1      |. C646 50 03     MOV BYTE PTR DS:[ESI+50],3               ; |
    00406C41      |. C646 50 03     MOV BYTE PTR DS:[ESI+50],3               ; |
    0040AB65      |. C646 50 29     MOV BYTE PTR DS:[ESI+50],29              ; |
    0040CC65      |. C646 50 29     MOV BYTE PTR DS:[ESI+50],29              ; |
    0040E8CE      |. 885E 50        MOV BYTE PTR DS:[ESI+50],BL
    004106C1      |. C646 50 29     MOV BYTE PTR DS:[ESI+50],29              ; |
    00410EE1      |. C646 50 22     MOV BYTE PTR DS:[ESI+50],22              ; |
    0041D0C2      |. 8846 50        MOV BYTE PTR DS:[ESI+50],AL              ; |
    0041DD99      |. C646 50 04     MOV BYTE PTR DS:[ESI+50],4               ; |
    0041F089      |. C646 50 04     MOV BYTE PTR DS:[ESI+50],4               ; |
    00420F61      |. C646 50 05     MOV BYTE PTR DS:[ESI+50],5               ; |
    00421741      |. C646 50 04     MOV BYTE PTR DS:[ESI+50],4               ; |
    004259F9      |. C646 50 06     MOV BYTE PTR DS:[ESI+50],6               ; |
    00427499      |. C646 50 06     MOV BYTE PTR DS:[ESI+50],6               ; |
    004298A1      |. C646 50 06     MOV BYTE PTR DS:[ESI+50],6               ; |
    0042BE91      |. C646 50 06     MOV BYTE PTR DS:[ESI+50],6               ; |
    0042D317      |. C646 50 07     MOV BYTE PTR DS:[ESI+50],7               ; |
    0042F321      |. C646 50 07     MOV BYTE PTR DS:[ESI+50],7               ; |
    00430501      |. C646 50 07     MOV BYTE PTR DS:[ESI+50],7               ; |
    00431811      |. C646 50 07     MOV BYTE PTR DS:[ESI+50],7               ; |
    00432BA1      |. C646 50 07     MOV BYTE PTR DS:[ESI+50],7               ; |
    00433DA1      |. C646 50 07     MOV BYTE PTR DS:[ESI+50],7               ; |
    00435391      |. C646 50 07     MOV BYTE PTR DS:[ESI+50],7               ; |
    00436441      |. C646 50 07     MOV BYTE PTR DS:[ESI+50],7               ; |
    00437451      |. C646 50 07     MOV BYTE PTR DS:[ESI+50],7               ; |
    00438941      |. C646 50 07     MOV BYTE PTR DS:[ESI+50],7               ; |
    00439A91      |. C646 50 07     MOV BYTE PTR DS:[ESI+50],7               ; |
    0043B181      |. C646 50 07     MOV BYTE PTR DS:[ESI+50],7               ; |
    0043C2D1      |. C646 50 07     MOV BYTE PTR DS:[ESI+50],7               ; |
    004C0CA9      |. C646 50 FF     MOV BYTE PTR DS:[ESI+50],0FF             ; |
    004C1741      |. C646 50 FF     MOV BYTE PTR DS:[ESI+50],0FF             ; |
    004C2FA1      |. C646 50 02     MOV BYTE PTR DS:[ESI+50],2               ; |
    004C4711      |. C646 50 02     MOV BYTE PTR DS:[ESI+50],2               ; |
    004CC707      |. C646 50 02     MOV BYTE PTR DS:[ESI+50],2
    004CC70D      |> C646 50 00     MOV BYTE PTR DS:[ESI+50],0
    004CCADF      |> 807E 50 02     CMP BYTE PTR DS:[ESI+50],2
    004CCBA3      |> 807E 50 02     CMP BYTE PTR DS:[ESI+50],2
    004D4A7D      |. 0FBE56 50      MOVSX EDX,BYTE PTR DS:[ESI+50]
    004D4D32      |. 807E 50 02     CMP BYTE PTR DS:[ESI+50],2
    004D4E72      |. 807E 50 02     CMP BYTE PTR DS:[ESI+50],2
    004D4EC0      |. 807E 50 02     CMP BYTE PTR DS:[ESI+50],2
    00513E61      |. C646 50 21     MOV BYTE PTR DS:[ESI+50],21              ; |
    00515361      |. C646 50 21     MOV BYTE PTR DS:[ESI+50],21              ; |
    00516481      |. C646 50 21     MOV BYTE PTR DS:[ESI+50],21              ; |
    005174F1      |. C646 50 21     MOV BYTE PTR DS:[ESI+50],21              ; |
    00550A19      |. C646 50 08     MOV BYTE PTR DS:[ESI+50],8               ; |
    00551741      |. C646 50 08     MOV BYTE PTR DS:[ESI+50],8               ; |
    00552625      |. C646 50 08     MOV BYTE PTR DS:[ESI+50],8
    00553ED1      |. C646 50 08     MOV BYTE PTR DS:[ESI+50],8               ; |
    0056AAB1      |. C646 50 09     MOV BYTE PTR DS:[ESI+50],9               ; |
    0056C309      |. C646 50 09     MOV BYTE PTR DS:[ESI+50],9               ; |
    0056D3F1      |. C646 50 09     MOV BYTE PTR DS:[ESI+50],9               ; |
    0056DBB1      |. C646 50 09     MOV BYTE PTR DS:[ESI+50],9               ; |
    0056F0A9      |. C646 50 09     MOV BYTE PTR DS:[ESI+50],9               ; |
    00570C71      |. C646 50 09     MOV BYTE PTR DS:[ESI+50],9               ; |
    005716D1      |. C646 50 09     MOV BYTE PTR DS:[ESI+50],9               ; |
    005733D6      |. C646 50 09     MOV BYTE PTR DS:[ESI+50],9               ; |
    005754F1      |. C646 50 09     MOV BYTE PTR DS:[ESI+50],9               ; |
    00576E33      |. C646 50 09     MOV BYTE PTR DS:[ESI+50],9               ; |
    0057A175      |. C646 50 01     MOV BYTE PTR DS:[ESI+50],1               ; |
    0057A8FD      |. C646 50 00     MOV BYTE PTR DS:[ESI+50],0
    0057BB65      |. 0FBE46 50      MOVSX EAX,BYTE PTR DS:[ESI+50]
    0057CE9F      |. 885E 50        MOV BYTE PTR DS:[ESI+50],BL
    0058384A      |. C646 50 01     MOV BYTE PTR DS:[ESI+50],1
    005864DE      |. 0FBE4E 50      |MOVSX ECX,BYTE PTR DS:[ESI+50]
    0058B396      |. 885E 50        MOV BYTE PTR DS:[ESI+50],BL              ; |
    005922C1      |. C646 50 0B     MOV BYTE PTR DS:[ESI+50],0B              ; |
    00592F01      |. C646 50 0A     MOV BYTE PTR DS:[ESI+50],0A              ; |
    005951C1      |. C646 50 0A     MOV BYTE PTR DS:[ESI+50],0A              ; |
    005B922A      |. 8846 50        MOV BYTE PTR DS:[ESI+50],AL
    005BA1A1      |. C646 50 0C     MOV BYTE PTR DS:[ESI+50],0C              ; |
    005BB1B4      |. C646 50 0C     MOV BYTE PTR DS:[ESI+50],0C
    005BC9F1      |. C646 50 0C     MOV BYTE PTR DS:[ESI+50],0C              ; |
    005BD669      |. 8846 50        MOV BYTE PTR DS:[ESI+50],AL
    005BE381      |. C646 50 0C     MOV BYTE PTR DS:[ESI+50],0C              ; |
    005BF389      |. C646 50 0C     MOV BYTE PTR DS:[ESI+50],0C              ; |
    005BFB91      |. C646 50 0C     MOV BYTE PTR DS:[ESI+50],0C              ; |
    005D8C91      |. C646 50 0E     MOV BYTE PTR DS:[ESI+50],0E              ; |
    005D9A01      |. C646 50 0D     MOV BYTE PTR DS:[ESI+50],0D              ; |
    005DC149      |. C646 50 0D     MOV BYTE PTR DS:[ESI+50],0D              ; |
    005DCC21      |. C646 50 0D     MOV BYTE PTR DS:[ESI+50],0D              ; |
    005DE331      |. C646 50 0D     MOV BYTE PTR DS:[ESI+50],0D              ; |
    005E06CE      |. 885E 50        MOV BYTE PTR DS:[ESI+50],BL
    005E88F9      |. C646 50 20     MOV BYTE PTR DS:[ESI+50],20              ; |
    005EA461      |. C646 50 20     MOV BYTE PTR DS:[ESI+50],20              ; |
    005EB301      |. C646 50 20     MOV BYTE PTR DS:[ESI+50],20              ; |
    005EC0B1      |. C646 50 20     MOV BYTE PTR DS:[ESI+50],20              ; |
    005F34AF      |. C646 50 0F     MOV BYTE PTR DS:[ESI+50],0F              ; |
    005F54E1      |. C646 50 0F     MOV BYTE PTR DS:[ESI+50],0F              ; |
    005F7661      |. C646 50 0F     MOV BYTE PTR DS:[ESI+50],0F              ; |
    005F8889      |. C646 50 0F     MOV BYTE PTR DS:[ESI+50],0F              ; |
    006320F5      |. C646 50 FF     MOV BYTE PTR DS:[ESI+50],0FF             ; |
    0063302B      |. C646 50 01     MOV BYTE PTR DS:[ESI+50],1               ; |
    00634111      |. C646 50 10     MOV BYTE PTR DS:[ESI+50],10              ; |
    00634C91      |. C646 50 10     MOV BYTE PTR DS:[ESI+50],10              ; |
    00636511      |. C646 50 10     MOV BYTE PTR DS:[ESI+50],10              ; |
    00636E29      |. C646 50 10     MOV BYTE PTR DS:[ESI+50],10              ; |
    00638811      |. C646 50 10     MOV BYTE PTR DS:[ESI+50],10              ; |
    006392E9      |. C646 50 10     MOV BYTE PTR DS:[ESI+50],10              ; |
    00639BFD      |. C646 50 10     MOV BYTE PTR DS:[ESI+50],10
    0063AD29      |. C646 50 10     MOV BYTE PTR DS:[ESI+50],10              ; |
    0063C651      |. C646 50 11     MOV BYTE PTR DS:[ESI+50],11              ; |
    0063CC99      |. C646 50 12     MOV BYTE PTR DS:[ESI+50],12              ; |
    0063E959      |. C646 50 12     MOV BYTE PTR DS:[ESI+50],12              ; |
    00640721      |. C646 50 11     MOV BYTE PTR DS:[ESI+50],11              ; |
    00645861      |. C646 50 11     MOV BYTE PTR DS:[ESI+50],11              ; |
    0064AAC1      |. C646 50 11     MOV BYTE PTR DS:[ESI+50],11              ; |
    0064EC71      |. C646 50 11     MOV BYTE PTR DS:[ESI+50],11              ; |
    00652EE1      |. C646 50 11     MOV BYTE PTR DS:[ESI+50],11              ; |
    006573A1      |. C646 50 11     MOV BYTE PTR DS:[ESI+50],11              ; |
    0065B531      |. C646 50 11     MOV BYTE PTR DS:[ESI+50],11              ; |
    0065F6E1      |. C646 50 11     MOV BYTE PTR DS:[ESI+50],11              ; |
    00661DA1      |. C646 50 14     MOV BYTE PTR DS:[ESI+50],14              ; |
    00662B81      |. C646 50 13     MOV BYTE PTR DS:[ESI+50],13              ; |
    00664511      |. C646 50 13     MOV BYTE PTR DS:[ESI+50],13              ; |
    006653F1      |. C646 50 14     MOV BYTE PTR DS:[ESI+50],14              ; |
    00665DD9      |. C646 50 14     MOV BYTE PTR DS:[ESI+50],14              ; |
    0066A4C9      |. C646 50 2A     MOV BYTE PTR DS:[ESI+50],2A              ; |
    0066AEC1      |. C646 50 2A     MOV BYTE PTR DS:[ESI+50],2A              ; |
    0066BF59      |. C646 50 2A     MOV BYTE PTR DS:[ESI+50],2A              ; |
    0066D891      |. C646 50 2A     MOV BYTE PTR DS:[ESI+50],2A              ; |
    00789E61      |. C646 50 24     MOV BYTE PTR DS:[ESI+50],24              ; |
    0078A621      |. C646 50 24     MOV BYTE PTR DS:[ESI+50],24              ; |
    0078B061      |. C646 50 24     MOV BYTE PTR DS:[ESI+50],24              ; |
    0078C7D9      |. C646 50 24     MOV BYTE PTR DS:[ESI+50],24              ; |
    0078E0C1      |. C646 50 24     MOV BYTE PTR DS:[ESI+50],24              ; |
    0078F091      |. C646 50 16     MOV BYTE PTR DS:[ESI+50],16              ; |
    0078FD91      |. C646 50 15     MOV BYTE PTR DS:[ESI+50],15              ; |
    00791551      |. C646 50 15     MOV BYTE PTR DS:[ESI+50],15              ; |
    00797062      |. C646 50 23     MOV BYTE PTR DS:[ESI+50],23              ; |
    00798913      |. 885E 50        MOV BYTE PTR DS:[ESI+50],BL
    0079F59E      |. 885E 50        MOV BYTE PTR DS:[ESI+50],BL
    007C7DF1      |. C646 50 1F     MOV BYTE PTR DS:[ESI+50],1F              ; |
    007C8AD7      |. C646 50 1F     MOV BYTE PTR DS:[ESI+50],1F              ; |
    007CA549      |. C646 50 1F     MOV BYTE PTR DS:[ESI+50],1F              ; |
    007CB221      |. C646 50 1F     MOV BYTE PTR DS:[ESI+50],1F              ; |
    007CC991      |. C646 50 1F     MOV BYTE PTR DS:[ESI+50],1F              ; |
    007CD9E9      |. C646 50 17     MOV BYTE PTR DS:[ESI+50],17              ; |
    007CE771      |. C646 50 17     MOV BYTE PTR DS:[ESI+50],17              ; |
    007D09A1      |. C646 50 17     MOV BYTE PTR DS:[ESI+50],17              ; |
    007D1971      |. C646 50 17     MOV BYTE PTR DS:[ESI+50],17              ; |
    007D2EA9      |. C646 50 17     MOV BYTE PTR DS:[ESI+50],17              ; |
    007E9281      |. C646 50 27     MOV BYTE PTR DS:[ESI+50],27              ; |
    007E9F81      |. C646 50 27     MOV BYTE PTR DS:[ESI+50],27              ; |
    007EAAD1      |. C646 50 27     MOV BYTE PTR DS:[ESI+50],27              ; |
    007EC9F1      |. C646 50 19     MOV BYTE PTR DS:[ESI+50],19              ; |
    007ED381      |. C646 50 19     MOV BYTE PTR DS:[ESI+50],19              ; |
    007EE011      |. C646 50 18     MOV BYTE PTR DS:[ESI+50],18              ; |
    007EFA51      |. C646 50 19     MOV BYTE PTR DS:[ESI+50],19              ; |
    007F0BE4      |. C646 50 18     MOV BYTE PTR DS:[ESI+50],18              ; |
    007F32A1      |. C646 50 18     MOV BYTE PTR DS:[ESI+50],18              ; |
    007F4241      |. C646 50 18     MOV BYTE PTR DS:[ESI+50],18              ; |
    0084CFC1      |. C646 50 1B     MOV BYTE PTR DS:[ESI+50],1B              ; |
    0084E181      |. C646 50 1A     MOV BYTE PTR DS:[ESI+50],1A              ; |
    0085107C      |. C646 50 FF     MOV BYTE PTR DS:[ESI+50],0FF             ; |
    008539F1      |. C646 50 1A     MOV BYTE PTR DS:[ESI+50],1A              ; |
    00855F91      |. C646 50 1A     MOV BYTE PTR DS:[ESI+50],1A              ; |
    00858721      |. C646 50 1A     MOV BYTE PTR DS:[ESI+50],1A              ; |
    0088CC25      |. C646 50 1D     MOV BYTE PTR DS:[ESI+50],1D              ; |
    0088E631      |. C646 50 1C     MOV BYTE PTR DS:[ESI+50],1C              ; |
    0088FB61      |. C646 50 1C     MOV BYTE PTR DS:[ESI+50],1C              ; |
    00891746      |. C646 50 1C     MOV BYTE PTR DS:[ESI+50],1C              ; |
    008FC421      |. C646 50 26     MOV BYTE PTR DS:[ESI+50],26              ; |
    008FCFB1      |. C646 50 25     MOV BYTE PTR DS:[ESI+50],25              ; |
    008FE741      |. C646 50 25     MOV BYTE PTR DS:[ESI+50],25              ; |
    008FF511      |. C646 50 25     MOV BYTE PTR DS:[ESI+50],25              ; |
    00902355      |. C646 50 01     MOV BYTE PTR DS:[ESI+50],1               ; |
    00906FD1      |. C646 50 1E     MOV BYTE PTR DS:[ESI+50],1E              ; |
    0090A1B9      |. C646 50 FF     MOV BYTE PTR DS:[ESI+50],0FF             ; |
    0090AF19      |. C646 50 1E     MOV BYTE PTR DS:[ESI+50],1E              ; |
    0090F29A      |. 885E 50        MOV BYTE PTR DS:[ESI+50],BL
    00911C6F      |. 885E 50        MOV BYTE PTR DS:[ESI+50],BL
    00914A76      |. 885E 50        MOV BYTE PTR DS:[ESI+50],BL              ; |
    0091828F      |. 885E 50        MOV BYTE PTR DS:[ESI+50],BL
    0091E001      |. 885E 50        MOV BYTE PTR DS:[ESI+50],BL
    00920320      |. 885E 50        MOV BYTE PTR DS:[ESI+50],BL
    00924489      |. C646 50 28     MOV BYTE PTR DS:[ESI+50],28              ; |
    00924E81      |. C646 50 28     MOV BYTE PTR DS:[ESI+50],28              ; |
    00925EE9      |. C646 50 28     MOV BYTE PTR DS:[ESI+50],28              ; |
    00927849      |. C646 50 FF     MOV BYTE PTR DS:[ESI+50],0FF             ; |
    009291C3      |. 885E 50        MOV BYTE PTR DS:[ESI+50],BL              ; |
    0092B525      |. C646 50 FF     MOV BYTE PTR DS:[ESI+50],0FF             ; |
    0092BFC1      |. 885E 50        MOV BYTE PTR DS:[ESI+50],BL
    0092D795      |. 0FBE46 50      MOVSX EAX,BYTE PTR DS:[ESI+50]
    0092E924      |. 0FBE4E 50      MOVSX ECX,BYTE PTR DS:[ESI+50]

  19. The Following User Says Thank You to John Locke For This Useful Post:


  20. #2342

    Join Date
    18-07-15
    Posts
    795
    Fed up of your board cancelling your transfers at the last minute because they deem they are unrealistic?

    Code:
    004CDC56: 01 00
    With that patch, if you want to pay 50m for an untested 17 yr old regen, now you can without your board interfering

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


  22. #2343

    Join Date
    07-03-12
    Location
    Peterborough, UK
    Posts
    1,291
    Quote Originally Posted by Nick+Co View Post
    Fed up of your board cancelling your transfers at the last minute because they deem they are unrealistic?

    Code:
    004CDC56: 01 00
    With that patch, if you want to pay 50m for an untested 17 yr old regen, now you can without your board interfering
    You bloody gem Nick -

  23. #2344
    Dermotron is offline Sir Mergements
    Director
    Manager
    VIP
    Captain

    Join Date
    15-12-11
    Location
    Your Mother
    Posts
    29,995
    Quote Originally Posted by Nick+Co View Post
    Fed up of your board cancelling your transfers at the last minute because they deem they are unrealistic?

    Code:
    004CDC56: 01 00
    With that patch, if you want to pay 50m for an untested 17 yr old regen, now you can without your board interfering
    This would make for a very interesting economic change globally

  24. The Following User Says Thank You to Dermotron For This Useful Post:


  25. #2345

    Join Date
    18-07-15
    Posts
    795
    Not sure if this has been fixed/noted elsewhere, but just in case:

    Some managers/non-players you might want to include from real-life, but the game might consider them too old or too young (and therefore changes their age for you). This is the code that checks it:
    Code:
    00537C71  |> \3C 1D                     CMP AL,1D                              <--- 1D = 29
    00537C73  |.  7C 04                     JL SHORT 00537C79                  <--- If less than 29 reject
    00537C75      3C 4B                     CMP AL,4B                                <--- 4B = 75
    00537C77  |.  7E 4A                     JLE SHORT 00537CC3                <--- if older than 75 reject
    These limits are probably in for good reason (to not allow anything too wacky through) - but young managers are all the rage nowadays (and having old managers still lingering in the database would be good), so a patch to expand it a little would be:
    Code:
    00137C72: 1D 14
    00137C76: 4B 5A
    This way managers ranging from age 20 to 89 will be loaded with the correct age.

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


  27. #2346

    Join Date
    04-03-12
    Location
    Serbia,Belgrade,Zemun
    Posts
    984
    Quote Originally Posted by Nick+Co View Post
    Fed up of your board cancelling your transfers at the last minute because they deem they are unrealistic?

    Code:
    004CDC56: 01 00
    With that patch, if you want to pay 50m for an untested 17 yr old regen, now you can without your board interfering
    Can you give instructions for Olly what to change?

    Sent from my VOG-L29 using Tapatalk

  28. #2347

    Join Date
    18-07-15
    Posts
    795
    @djole: copy and paste the file offset 004CDC56 into my patcher -> tools -> offset calculator. The olly offset it gives you in hex go to in Olly (Ctrl+G to go there direct). Should be pretty obvious what's being changed by doing that.

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


  30. #2348

    Join Date
    05-02-14
    Posts
    109
    Has anyone got the offset for number of subs you are allowed to make in a match? Everything I'm finding is only referring to number of subs named in the squad.

  31. #2349

    Join Date
    18-07-15
    Posts
    795
    @hodgy: https://champman0102.co.uk/showthrea...653#post468653 <--- not what you're looking - but might get you looking in roughly the right direction.

    EDIT
    Some other help

    The code for the English Premier League "named" subs is here:
    Code:
    00574BF3  |.  8BCE                          MOV ECX,ESI
    00574BF5  |.  FF52 3C                       CALL DWORD PTR DS:[EDX+3C]
    00574BF8  |.  8986 BA000000                 MOV DWORD PTR DS:[ESI+0BA],EAX
    00574BFE  |.  B8 01000000                   MOV EAX,1
    00574C03  |.  C646 49 07                    MOV BYTE PTR DS:[ESI+49],7   <--- Named Subs is 7
    00574C07  |.  5E                            POP ESI
    00574C08  \.  C3                            RETN
    00574C09      90                            NOP
    The code for the Asian Club Championship tournament is:
    Code:
    0040AB69  |.  C646 49 05                    MOV BYTE PTR DS:[ESI+49],5               ; |   <---- Named Subs
    0040AB6D  |.  C646 4A 03                    MOV BYTE PTR DS:[ESI+4A],3               ; |   <---- Subs allowed to be used
    From this one could infer that +49 is the offset for Named Subs and +4A is for the number that's allowed to be used. So you could add:
    Code:
    00574C03  |.  C646 49 07                    MOV BYTE PTR DS:[ESI+49],7
    00574C07      C646 4A 05                    MOV BYTE PTR DS:[ESI+4A],5
    00574C0B      5E                            POP ESI
    00574C0C      C3                            RETN
    To the above code and the English Premier League (and others that use this function) will now be allowed 5 subs to be used out of the 7 named.
    Last edited by Nick+Co; 18-11-20 at 05:13 PM.

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


  33. #2350

    Join Date
    18-07-15
    Posts
    795
    Retirement has always felt a little young to me - basically from 30 onwards your players could retire. There's lots of other factors at play, but there is a first check here:
    Code:
    007A5A8B  |.  3C 1E                     |CMP AL,1E
    007A5A8D  |.  7D 30                     |JGE SHORT 007A5ABF
    So the patch:
    Code:
    003A5A8C: 1E 23
    Will raise that to 35, which might be more palatable for some. (I picked 35 from here: https://www.thepfa.com/equalities/commitment-to-all/age - although that might a bit high to set as that's the average. So change to whatever you want )

  34. The Following 5 Users Say Thank You to Nick+Co 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
  •