Page 94 of 94 FirstFirst ... 849091929394
Results 2,326 to 2,332 of 2332

Thread: Offsets

  1. #2326

    Join Date
    17-06-12
    Posts
    445
    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
    56
    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
    56
    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
    445
    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
    27
    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
    27
    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
    27
    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.

Page 94 of 94 FirstFirst ... 849091929394

Posting Permissions

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