Results 1 to 8 of 8

Thread: Change number of teams and fixtures

  1. #1
    Join Date
    04-01-13
    Posts
    40
    vCash
    500

    Change number of teams and fixtures

    I'm working in a '1996/97 patch' and just trying to change number of teams and fixtures from Spanish 1st and 2nd divisions following this tutorial: http://champman0102.co.uk/showthread.php?t=381 (unfortunately images have expired)

    Should be easy.
    1st Division - change from 20 teams to 22 teams
    2nd Division - change from 22 teams to 20 teams


    So it's basically to change the number of fixtures from one to another and viceversa.

    I've changed number of teams and number of fixtures but I'm struggling with increasing number of fixtures.

    Tutorial says:

    1.Go to the other league fixtures reference (in our case we will go to the Danish Premier League fixture reference)
    2.Look for the closest JNZ command above the reference line
    3.Copy this line to somewhere
    4.Look for the "Push value" command above the "MOV WORD PTR DS:[EAX],value" line
    5.Copy this line also
    6.Go to the fixture reference line of the league we want to increase its fixtures.
    7.Replace the "Push value" command above the "MOV WORD PTR DS:[EAX],value" line with the one you have copied before.
    8.Change of course the "MOV WORD PTR DS:[EAX],value" line,if you haven't done it already
    9.Click once on the "JNZ" command above the reference line
    10.Press Enter
    11.It will move the grey line a bit down.
    12.Replace the grey line with JNZ command you have copied before,but change the JNZ to JMP and remove the SHORT.
    For example,if the line you have copied was:"JNZ SHORT 00551A6B",change it to:"JMP 00551A6B"
    13.Change the next command to RETN 8.
    14.Save the changes
    15.Close Olly
    It has to be a "JNZ SHORT" command? The first above "MOV WORD PTR DS:[EAX],value" is "JE SHORT" command. Then above "JNZ (no short)" command. Which is the right command? I've tried with "JE SHORT" but it doesn't work.

  2. #2
    Join Date
    04-01-13
    Posts
    40
    vCash
    500
    I've tried now with the above "JNZ (no short)" command but it crashes when I start a new game.

  3. #3
    Join Date
    04-01-13
    Posts
    40
    vCash
    500
    Solved. I was reducing 2nd Division fixtures and that's why game crashed. Now finally works.

  4. #4
    Join Date
    04-01-13
    Posts
    40
    vCash
    500
    Last edited by Mercurio; 25-08-17 at 12:51 PM.

  5. #5
    Join Date
    04-01-13
    Posts
    40
    vCash
    500
    I'm definitely failing from the step 9.

    9.Click once on the "JNZ" command above the reference line
    10.Press Enter
    11.It will move the grey line a bit down.
    12.Replace the grey line with JNZ command you have copied before,but change the JNZ to JMP and remove the SHORT.
    For example,if the line you have copied was:"JNZ SHORT 00551A6B",change it to:"JMP 00551A6B"
    13.Change the next command to RETN 8.
    Could someone explain please?

  6. #6
    Join Date
    04-01-13
    Posts
    40
    vCash
    500
    Code:
    0084E48A   66:C700 2A00     MOV WORD PTR DS:[EAX],2A (Number of fixtures - 42)
    0084E48F   66:C701 0000     MOV WORD PTR DS:[ECX],0
    0084E494   E8 AD690F00      CALL cm0102_f.00944E46
    0084E499   8BF0             MOV ESI,EAX
    0084E49B   83C4 04          ADD ESP,4
    0084E49E   85F6             TEST ESI,ESI
    0084E4A0   75 69            JNZ SHORT cm0102_f.0084E50B (JNZ command, I press Enter)
    0084E4A2   8D5424 10        LEA EDX,DWORD PTR SS:[ESP+10]
    0084E4A6   8D8424 10010000  LEA EAX,DWORD PTR SS:[ESP+110]
    0084E4AD   52               PUSH EDX
    0084E4AE   50               PUSH EAX
    0084E4AF   56               PUSH ESI
    0084E4B0   56               PUSH ESI
    0084E4B1   68 4428A800      PUSH cm0102_f.00A82844                   ; ASCII "E:\dev\CM3\cm3 00-01\cm3\code\comp\leagues\spa_first.cpp"
    0084E4B6   E8 44680F00      CALL cm0102_f.00944CFF
    0084E4BB   83C4 14          ADD ESP,14
    0084E4BE   8D4C24 10        LEA ECX,DWORD PTR SS:[ESP+10]
    0084E4C2   8D9424 10010000  LEA EDX,DWORD PTR SS:[ESP+110]
    0084E4C9   68 B0000000      PUSH 0B0
    0084E4CE   51               PUSH ECX
    0084E4CF   52               PUSH EDX
    0084E4D0   E8 5BEC0B00      CALL cm0102_f.0090D130
    0084E4D5   50               PUSH EAX
    0084E4D6   68 E8709800      PUSH cm0102_f.009870E8                   ; ASCII "v%s %s.%s %d"
    0084E4DB   68 D024AE00      PUSH cm0102_f.00AE24D0
    0084E4E0   E8 BA670F00      CALL cm0102_f.00944C9F
    0084E4E5   56               PUSH ESI
    0084E4E6   68 D024AE00      PUSH cm0102_f.00AE24D0
    0084E4EB   68 E0709800      PUSH cm0102_f.009870E0                   ; ASCII "Error"
    0084E4F0   E8 9B9DD9FF      CALL cm0102_f.005E8290
    0084E4F5   83C4 24          ADD ESP,24
    0084E4F8   8935 347AB600    MOV DWORD PTR DS:[B67A34],ESI
    0084E4FE   5F               POP EDI
    0084E4FF   33C0             XOR EAX,EAX
    0084E501   5E               POP ESI
    0084E502   81C4 08020000    ADD ESP,208
    0084E508   C2 1000          RETN 10
    0084E50B   66:8B47 40       MOV AX,WORD PTR DS:[EDI+40] (here appears the grey line)
    Should I replace the last line with "JMP 0056DEE6" (English Conference fixtures)? And the line above (RETN 10) with "RETN 8"? Fill with NOP's marked?

  7. #7
    Join Date
    18-03-14
    Posts
    703
    vCash
    5100
    Quote Originally Posted by Mercurio View Post
    Should I replace the last line with "JMP 0056DEE6" (English Conference fixtures)?
    Yes. Or you could have the Spanish First Division use the Second Division's fixture block (change 0084E50B to JMP 00853D4B).

    Quote Originally Posted by Mercurio View Post
    And the line above (RETN 10) with "RETN 8"? Fill with NOP's marked?
    No, just leave that line. I don't think anything needs to be NOPed either.

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


  9. #8
    Join Date
    04-01-13
    Posts
    40
    vCash
    500
    Thank you. Finally I achieved it. The problem was that Conference dates didn't match. So I put Spanish Second Division and worked it.

Posting Permissions

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