Page 3 of 5 FirstFirst 12345 LastLast
Results 51 to 75 of 123

Thread: Player restrictions (non-EU / foreigners)

  1. #51
    Join Date
    21-06-14
    Location
    Canada
    Posts
    489
    vCash
    500
    So this occurred to me.

    What is it that makes players from the Home Nations not be foreign in each others' leagues?

    And, could this thing be applied to the in-game nations that are British dependencies, i.e. Cayman Islands and the like? It occurs to me that if that's doable, I'd also want to make Canada, Australia, NZ, Jamaica etc also 'Home Nations', since there are so many players in England from countries like these.

    I know it's possible to make these countries EU, but then they'd freely be going to elsewhere in the EU. And since an e.g. Welsh player is not a foreigner in England... is there a thing in the code that says this is a Home Nation, as opposed to an EU nation? It just occurred to me that managing in say the Conference in England, you'd see Scots, Welsh and Northern Irish players around, but not many 'actual' foreigners, even EU, which suggests to me there might be some other bit of code there?

  2. #52
    Join Date
    05-06-12
    Posts
    1,035
    vCash
    3700
    I can think of two obvious ways this could have been done:
    1) Nationality
    2) Region or Actual Region (in nation)

    I assume it will be the former, in which case you could try to find the code by looking at each 9cf value for a country you want to change to see if you can see what it does. Or change each one in turn to see which, if any, is controlling this.

  3. #53
    Join Date
    29-03-15
    Posts
    1
    vCash
    500

    No more Foreign players allowed

    Hi

    Im playing Polish league. In OLLY Debugger I removed player restrictions. I have 6 non-polish players in my squad. When trying to sign another I have following message: "Celso Borges proposed transfer from (...) has collapsed as Widzew Lodz cannot have any more foreign players in their squad" and transfer is failed.

    Is there any way to remove this limit?


  4. #54
    Join Date
    18-03-14
    Posts
    703
    vCash
    5100
    Quote Originally Posted by xcamelx View Post
    Hi

    Im playing Polish league. In OLLY Debugger I removed player restrictions. I have 6 non-polish players in my squad. When trying to sign another I have following message: "Celso Borges proposed transfer from (...) has collapsed as Widzew Lodz cannot have any more foreign players in their squad" and transfer is failed.

    Is there any way to remove this limit?
    There's two restrictions for the Polish leagues: one for the match day squad and one for the overall squad.

    The match day squad offset is: 007CD973 MOV BYTE PTR DS:[EDX+2],5 (I'm guessing this is what you changed). EDX+2 refers to the restriction (foreign) while 5 is the number of foreigners allowed.

    The overall squad offset is:
    007CD93A MOV AL,5
    007CD93C MOV BYTE PTR DS:[ESI+13],AL
    007CD93F MOV BYTE PTR DS:[ESI+14],AL

    You can't change AL to a value as it will overwrite the next lines. Instead fill 007CD93C & 007CD93F with NOPs and at 007CD93C enter MOV WORD PTR DS:[ESI+13],532.

    007CD93A MOV AL,5
    007CD93C MOV WORD PTR DS:[ESI+13],532

    No more limits.

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


  6. #55
    Join Date
    18-03-14
    Posts
    703
    vCash
    5100
    Code:
    008CEC51      |> 8B45 53                      MOV EAX,DWORD PTR SS:[EBP+53]                  ; club.nation
    008CEC54      |. 85C0                         TEST EAX,EAX
    008CEC56      |. 74 51                        JE SHORT cm0102.008CECA9
    008CEC58      |. 8B10                         MOV EDX,DWORD PTR DS:[EAX]
    008CEC5A      |. 8B0D DCF49C00                MOV ECX,DWORD PTR DS:[9CF4DC]- TURKEY
    008CEC60      |. 3BD1                         CMP EDX,ECX
    008CEC62      |. 75 45                        JNZ SHORT cm0102.008CECA9
    008CEC64      |. 8B4D 57                      MOV ECX,DWORD PTR SS:[EBP+57]                  ; club.division
    008CEC67      |. 85C9                         TEST ECX,ECX
    008CEC69      |. 74 0C                        JE SHORT cm0102.008CEC77
    008CEC6B      |. 8B09                         MOV ECX,DWORD PTR DS:[ECX]
    008CEC6D      |. 8B15 D8F89C00                MOV EDX,DWORD PTR DS:[9CF8D8]- TURKISH_PREMIER_DIVISION
    008CEC73      |. 3BCA                         CMP ECX,EDX
    008CEC75      |. 74 32                        JE SHORT cm0102.008CECA9
    008CEC77      |> 6A 01                        PUSH 1
    008CEC79      |. 50                           PUSH EAX
    008CEC7A      |. 53                           PUSH EBX
    008CEC7B      |. E8 00EDC6FF                  CALL cm0102.0053D980
    008CEC80      |. 83C4 0C                      ADD ESP,0C
    008CEC83      |. 85C0                         TEST EAX,EAX
    008CEC85      |. 74 7E                        JE SHORT cm0102.008CED05
    008CEC87      |. 8B4424 38                    MOV EAX,DWORD PTR SS:[ESP+38]
    008CEC8B      |. 85C0                         TEST EAX,EAX
    008CEC8D      |. 74 05                        JE SHORT cm0102.008CEC94
    008CEC8F      |. 66:C700 2800                 MOV WORD PTR DS:[EAX],28
    008CEC94      |> 8D4C24 10                    LEA ECX,DWORD PTR SS:[ESP+10]
    008CEC98      |. C74424 28 FFFFFFFF           MOV DWORD PTR SS:[ESP+28],-1
    008CECA0      |. E8 9BE3DBFF                  CALL cm0102.0068D040
    008CECA5      |. 33C0                         XOR EAX,EAX
    008CECA7      |. EB 7F                        JMP SHORT cm0102.008CED28
    This piece of code allows/prevents a Turkish club to bid/from bidding for a non-Turkish player. At 008CEC6D it checks if the Turkish club is from the Turkish Premier Division and then skips the rest of the code if it is.

    008CEC75 JMP 008CECA9
    This will allow any Turkish club to bid for a foreign player.

    008CEC6D MOV EDX,DWORD PTR DS:[9CF8E0]- TURKISH_2__DIVISION_CATEGORY_B
    008CEC75 JNZ 008CECA9
    This changes the rules to match those of today: any Turkish club except those in the Turkish 2. Division Category B can bid for a foreign player.

    008E8840 MOV BYTE PTR SS:[ESP+13],0
    This line sets the number of foreign players allowed at a Turkish club which is not in the Premier Division (that offset is located at 009021AB). Simply change 0 to whatever figure you want.

    Finally, we have to set the number of foreign players allowed in a Turkish match.
    Code:
    009021D0       . 8B5424 08                    MOV EDX,DWORD PTR SS:[ESP+8]
    009021D4       . 57                           PUSH EDI
    009021D5       . B9 0A000000                  MOV ECX,0A
    009021DA       . 83C8 FF                      OR EAX,FFFFFFFF
    009021DD       . 8BFA                         MOV EDI,EDX
    009021DF       . F3:AB                        REP STOS DWORD PTR ES:[EDI]
    009021E1       . 8B4C24 08                    MOV ECX,DWORD PTR SS:[ESP+8]
    009021E5       . 66:AB                        STOS WORD PTR ES:[EDI]
    009021E7       . 8B01                         MOV EAX,DWORD PTR DS:[ECX]
    009021E9       . 8B3D D8F89C00                MOV EDI,DWORD PTR DS:[9CF8D8]- TURKISH_PREMIER_DIVISION
    009021EF       . 3BC7                         CMP EAX,EDI
    009021F1       . 74 3A                        JE SHORT cm0102.0090222D
    009021F3       . 3B05 F8F89C00                CMP EAX,DWORD PTR DS:[9CF8F8]- TURKISH_CUP
    009021F9       . 74 32                        JE SHORT cm0102.0090222D
    009021FB       . 3B05 D0F89C00                CMP EAX,DWORD PTR DS:[9CF8D0]- Unused competition
    00902201       . 75 08                        JNZ SHORT cm0102.0090220B
    00902203       . C642 02 00                   MOV BYTE PTR DS:[EDX+2],0
    00902207       . 5F                           POP EDI
    00902208       . C2 0800                      RETN 8
    0090220B       > 8B41 14                      MOV EAX,DWORD PTR DS:[ECX+14]
    0090220E       . 8B08                         MOV ECX,DWORD PTR DS:[EAX]
    00902210       . A1 84F69C00                  MOV EAX,DWORD PTR DS:[9CF684]- RESERVE
    00902215       . 3BC8                         CMP ECX,EAX
    00902217       . 75 18                        JNZ SHORT cm0102.00902231
    00902219       . C642 16 15                   MOV BYTE PTR DS:[EDX+16],15
    0090221D       . C642 17 00                   MOV BYTE PTR DS:[EDX+17],0
    00902221       . A1 84F69C00                  MOV EAX,DWORD PTR DS:[9CF684]- RESERVE
    00902226       . 5F                           POP EDI
    00902227       . 8942 26                      MOV DWORD PTR DS:[EDX+26],EAX
    0090222A       . C2 0800                      RETN 8
    0090222D       > C642 02 06                   MOV BYTE PTR DS:[EDX+2],6
    00902231       > 5F                           POP EDI
    00902232       . C2 0800                      RETN 8
    0090222D MOV BYTE PTR DS:[EDX+2],6 sets the number of foreign players allowed in a match in the Turkish Premier Division and Turkish Cup.

    00902203 MOV BYTE PTR DS:[EDX+2],0 sets the number of foreign players allowed in a match in the two lower Turkish divisions. Fill the two lines above (009021FB + 00902201) with NOPs first.

  7. The Following 3 Users Say Thank You to saturn For This Useful Post:


  8. #56
    Join Date
    18-03-14
    Posts
    703
    vCash
    5100
    Here's a list of offsets for non-EU/foreigner restrictions for both playing (match) and signings (squad). Any omissions welcomed.

    Match restrictions:
    Code:
    Argentina			0040AA23  MOV BYTE PTR DS:[EDX+2],4
    Australia			00412DC3  MOV BYTE PTR DS:[EDX+2],6
    Brazil				0043F2C8  MOV BYTE PTR DS:[EDX+2],2
    Croatia				00518633  MOV BYTE PTR DS:[EDX],4
    England				00579C63  MOV BYTE PTR DS:[EDX+5],3
    France (First Division)		005C1A53  MOV BYTE PTR DS:[EDX+5],5
    France (Other)			005C1A5A  MOV BYTE PTR DS:[EDX+5],3
    Germany (German Cup)		005E02F8  MOV BYTE PTR DS:[EDX+5],3
    Germany (Other)			005E02FF  MOV BYTE PTR DS:[EDX+5],5
    Greece (National A Division)	005ED048  MOV BYTE PTR DS:[EDX+5],5
    Greece (Other)			005ED04F  MOV BYTE PTR DS:[EDX+5],4
    Japan				006670A3  MOV BYTE PTR DS:[EDX+2],3
    Norway				00794753  MOV BYTE PTR DS:[EDX+5],2
    Poland				007CD973  MOV BYTE PTR DS:[EDX+2],5
    Portugal (Division 2B)		007D43EA  MOV BYTE PTR DS:[EDX+3],3
    Portugal (Other)		007D43F1  MOV BYTE PTR DS:[EDX+3],4
    Russia (First Division)		007EC978  MOV BYTE PTR DS:[EDX+2],3
    South Korea			0066E763  MOV BYTE PTR DS:[EDX],3
    Spain 2001/2+2002/3 (All)	008595D1  MOV BYTE PTR DS:[EDX+5],3
    Spain 2003/4+ (First Div + Cup) 008595D1  MOV BYTE PTR DS:[EDX+5],3
    Spain 2003/4+ (Other)		008595B9  MOV BYTE PTR DS:[EDX+5],2 
    Turkey (Other)			00902203  MOV BYTE PTR DS:[EDX+2],0 (Fill 009021FB + 00902201 with NOPs first)
    Turkey (Premier Division + Cup)	0090222D  MOV BYTE PTR DS:[EDX+2],6
    USA				0090BA88  MOV BYTE PTR DS:[EDX+2],4
    EDX+x values are:
    Code:
    [-] = Foreign players (Croatia & South Korea)
    [+1] = No restrictions
    [+2] = Foreign players
    [+3] = Non-EU players (Portugal)
    [+5] = Non-EU players
    Squad restrictions:
    Code:
    Argentina			0040A5D6  MOV BYTE PTR DS:[ESI+13],14 [20]
    Australia			00412D89  MOV BYTE PTR DS:[ESI+13],CL (CL=6)
    Belgium				00424BE8  MOV BYTE PTR DS:[ESI+13],AL (AL=FF)
    Brazil				0043F1E8  MOV BYTE PTR DS:[ESI+13],DL (DL=3)
    Holland				005F979B  MOV BYTE PTR DS:[ESI+13],AL (AL=32) [50]
    Poland				007CD93C  MOV BYTE PTR DS:[ESI+13],AL (AL=5)
    Portugal (Premier Division)	007D41AA  MOV BYTE PTR SS:[ESP+12],6
    Portugal (Second Division)	007D41BE  MOV BYTE PTR SS:[ESP+12],5
    Portugal (Second Division B)	007D41C5  MOV BYTE PTR SS:[ESP+12],4
    South Korea			0066E738  MOV BYTE PTR DS:[ESI+13],7
    Turkey (Premier Division)	009021AB  MOV BYTE PTR DS:[ESI+13],AL (AL=8)
    Turkey (Other)			008E8840  MOV BYTE PTR SS:[ESP+13],0 (plus 008CEC75 JE 008CECA9 -> JMP 008CECA9)
    USA				0090BA48  MOV BYTE PTR DS:[ESI+13],4
    xxx+12 seems to be non-EU, xxx+13 foreigners.

    There's some offsets for Spain that I've found that don't seem to do what they're supposed to:
    Code:
    008E85B8      |> 3B05 88F49C00                CMP EAX,DWORD PTR DS:[9CF488]- SPAIN
    008E85BE      |. 75 34                        JNZ SHORT cm0102.008E85F4
    008E85C0      |. 8B46 57                      MOV EAX,DWORD PTR DS:[ESI+57]                  ; club.division
    008E85C3      |. 85C0                         TEST EAX,EAX
    008E85C5      |. 74 28                        JE SHORT cm0102.008E85EF
    008E85C7      |. 8B10                         MOV EDX,DWORD PTR DS:[EAX]
    008E85C9      |. 8B1D 24F69C00                MOV EBX,DWORD PTR DS:[9CF624]- SPANISH_FIRST_DIVISION
    008E85CF      |. 3BD3                         CMP EDX,EBX
    008E85D1      |. 75 07                        JNZ SHORT cm0102.008E85DA
    008E85D3      |. C64424 12 04                 MOV BYTE PTR SS:[ESP+12],4                     ; club.foreign.squad (?)
    008E85D8      |. EB 1A                        JMP SHORT cm0102.008E85F4
    008E85DA      |> 85C0                         TEST EAX,EAX
    008E85DC      |. 74 11                        JE SHORT cm0102.008E85EF
    008E85DE      |. 8B00                         MOV EAX,DWORD PTR DS:[EAX]
    008E85E0      |. 8B15 28F69C00                MOV EDX,DWORD PTR DS:[9CF628]- SPANISH_SECOND_DIVISION
    008E85E6      |. 3BC2                         CMP EAX,EDX
    008E85E8      |. C64424 12 03                 MOV BYTE PTR SS:[ESP+12],3                     ; club.foreign.squad (?)
    008E85ED      |. 74 05                        JE SHORT cm0102.008E85F4
    008E85EF      |> C64424 12 00                 MOV BYTE PTR SS:[ESP+12],0                     ; club.foreign.squad (?)
    You can definitely sign more than 4/3 players in the top two divisions, while changing the last offset (which looks like it should relate to Second Division B clubs) doesn't have any effect (they still can't sign non-EU players).

  9. The Following 7 Users Say Thank You to saturn For This Useful Post:


  10. #57
    Join Date
    06-03-12
    Posts
    502
    vCash
    600
    thank you very much saturn, I've been needing some of these! Superb work!

  11. #58
    Join Date
    04-03-12
    Location
    England
    Posts
    199
    vCash
    500
    Would it be possible to remove the 3 NON-EU players in a team for English leagues? I think this isn't in the game for Italy and Germany is set to 18 max so seems doable, and I'm pretty sure England don't have this restriction anymore in real life.
    Last edited by azmaster; 16-09-15 at 09:24 PM.

  12. #59
    Jesus is offline Official Challenge Team
    Social Media Team
    Join Date
    04-03-12
    Posts
    3,534
    vCash
    681
    Quote Originally Posted by azmaster View Post
    Would it be possible to remove the 3 NON-EU players in a team for English leagues? I think this isn't in the game for Italy and Germany is set to 18 max so seems doable, and I'm pretty sure England don't have this restriction anymore in real life.
    It's possible to do but you will have to edit the exe with Olly. Alternatively use the EEC Hack tool from the downloads section.

  13. #60
    Join Date
    15-12-11
    Location
    Your Mother
    Posts
    25,884
    vCash
    4300000
    JLPatch will allow you to remove it too

  14. #61
    Join Date
    04-03-12
    Location
    England
    Posts
    199
    vCash
    500
    Don't suppose you know the offset for it? I can't seem to find it in the forums, thanks Aaron

  15. #62
    Join Date
    04-03-12
    Location
    England
    Posts
    199
    vCash
    500
    Don't suppose anyone knows the offset for the below? I can't seem to find it in the forums.

    Remove the 3 NON-EU player restrictions in a team for English, French and Spanish leagues?

    I think this isn't in the game for Italy and Germany is set to 18 max so seems doable, but I can't find the offsets the these leagues to amend it from 3 MAX
    Last edited by azmaster; 17-09-15 at 06:56 PM.

  16. #63
    Join Date
    04-03-12
    Location
    England
    Posts
    199
    vCash
    500
    Also do you have any offsets to change the number of teams in the following leagues, as they should be 20 rather than 18

    French First
    Italian Serie A

  17. #64
    Join Date
    16-12-11
    Location
    Australia
    Posts
    11,932
    vCash
    1739
    I'm sure it's in the offsets thread Aaron

  18. #65
    Join Date
    04-03-12
    Location
    England
    Posts
    199
    vCash
    500
    I've been looking for 1.5 hours, still no luck. I found Portuguese but no English, any clues?

  19. #66
    Join Date
    16-12-11
    Location
    Australia
    Posts
    11,932
    vCash
    1739
    Why change offsets for non eu player issue. Just run EEC hack tool

  20. #67
    Join Date
    04-03-12
    Location
    England
    Posts
    199
    vCash
    500
    I don't want to make non EU teams EU....

  21. #68
    Join Date
    16-12-11
    Location
    Australia
    Posts
    11,932
    vCash
    1739
    Without searching I wouldn't be able to point you in right direction. I'm sure the 2.20 or 3.12 patch changes a lot of what your asking for.?

  22. #69
    Craig Forrest's Avatar
    Craig Forrest is offline Manager
    Official Challenges Mod
    Programmer
    Forum Enforcer
    VIP
    Holy Trinity Member
    Join Date
    02-03-12
    Location
    The Great White North
    Posts
    4,084
    vCash
    1547
    England foreigner restriction

    00579C63 - MOV BYTE PTR DS:[EDX+5],3


    Increasing teams in a league is very difficult

    - - - Updated - - -

    The EDX+5 value can be changed to make it for different restrictions.... the 3 at the end is the number of players in hexadecimal form

  23. #70
    Join Date
    04-03-12
    Location
    England
    Posts
    199
    vCash
    500
    Thanks Craig, do you have the offsets for Spain and France too for the foreigner restrictions?

  24. #71
    Craig Forrest's Avatar
    Craig Forrest is offline Manager
    Official Challenges Mod
    Programmer
    Forum Enforcer
    VIP
    Holy Trinity Member
    Join Date
    02-03-12
    Location
    The Great White North
    Posts
    4,084
    vCash
    1547
    not handy but they aren't hard to find.... search in the "rules" section in Olly and find a line similar to the England one

  25. #72
    Join Date
    04-03-12
    Location
    England
    Posts
    199
    vCash
    500
    ahh how can you tell the "rules" sections in Olly? I can't see any sort of pattern

  26. #73
    Craig Forrest's Avatar
    Craig Forrest is offline Manager
    Official Challenges Mod
    Programmer
    Forum Enforcer
    VIP
    Holy Trinity Member
    Join Date
    02-03-12
    Location
    The Great White North
    Posts
    4,084
    vCash
    1547
    Click in the bottom box, hit ctrl+B, enter "code\transfer" in the search box..... it will find all the rules sections for various countries... same way you find leagues or cups

  27. #74
    Join Date
    02-03-12
    Posts
    4,850
    vCash
    1075
    Quote Originally Posted by azmaster View Post
    Also do you have any offsets to change the number of teams in the following leagues, as they should be 20 rather than 18

    French First
    Italian Serie A
    this is for italy, no idea for france:

    http://www.champman0102.co.uk/showth...509#post250509

  28. #75
    Jesus is offline Official Challenge Team
    Social Media Team
    Join Date
    04-03-12
    Posts
    3,534
    vCash
    681
    Quote Originally Posted by azmaster View Post
    I've been looking for 1.5 hours, still no luck. I found Portuguese but no English, any clues?
    http://www.champman0102.co.uk/showthread.php?t=5626

    Have a read of this.

Page 3 of 5 FirstFirst 12345 LastLast

Posting Permissions

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