Page 2 of 5 FirstFirst 12345 LastLast
Results 26 to 50 of 123

Thread: Player restrictions (non-EU / foreigners)

  1. #26
    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,075
    vCash
    1547
    I've got it mostly figured out without removing countries from EU membership.... although the home nations still count as non-foreigners




  2. #27
    Join Date
    15-12-11
    Location
    Your Mother
    Posts
    25,859
    vCash
    4300000
    That be an interesting .exe to play mate, nice job

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


  4. #28
    Join Date
    09-03-12
    Location
    London
    Posts
    870
    vCash
    2400
    I did this a while back. Problem is, other countries become unplayable as all their domestic players are suddenly foreigners.

  5. #29
    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,075
    vCash
    1547
    Quote Originally Posted by faz44 View Post
    I did this a while back. Problem is, other countries become unplayable as all their domestic players are suddenly foreigners.
    no... i only changed the rule for England

  6. #30
    Join Date
    09-03-12
    Location
    London
    Posts
    870
    vCash
    2400
    What's the secret?

  7. #31
    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,075
    vCash
    1547
    In the England Rules section of the EXE:

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

    EDX+5 is the restriction type.... in this case I believe it is non-EU players
    3 is the number allowed

    I simply changed it to [EDX+2] which makes it Foreign Players instead of non-EU players..... it's the same restriction used by MLS

  8. #32
    Jesus is offline Official Challenge Team
    Social Media Team
    Join Date
    04-03-12
    Posts
    3,534
    vCash
    681
    Huh? I've already acheived something similar. I used [EDX+0],5 and achieved the same as you but I was able to have five foreigners in the match day squad. I posted a screenshot of the Chelsea team which shows the FGN symbol next to their players. What is the difference between "2" and "0" then? I still want to remove the other home nations though to make them foreigners.

  9. #33
    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,075
    vCash
    1547
    Dunno what the difference is and tbh I read your post at work and couldn't see the screenies.... I just played around a bit when I got home....

    I know EDX+2 is what is used in MLS.... don't think I've ever seen an EDX+0 before... and ya, if I'd changed the 3 to a 5 you'd be able to have 5 foreign players in the squad....

    I'm going to have a look through the EXE and see if can figure out what all the various EDX values represent for squad restrictions

    and I'm poking around at the home nations problem but no ideas as of yet

  10. #34
    Join Date
    05-06-12
    Posts
    1,035
    vCash
    3700
    Quote Originally Posted by Craig Forrest View Post
    don't think I've ever seen an EDX+0 before...
    FYI: EDX+0 will never occur 'naturally' - the compiler would use use [EDX], it can only be [EDX+0] if it was originally EDX+something that has since been edited.

  11. The Following User Says Thank You to JohnLocke For This Useful Post:


  12. #35
    Jesus is offline Official Challenge Team
    Social Media Team
    Join Date
    04-03-12
    Posts
    3,534
    vCash
    681
    Do you know the offsets for Scotland, Ireland, Northern Ireland and Wales? I'm hoping that it's not hard coded that they're part of the UK..

  13. #36
    Join Date
    05-06-12
    Posts
    1,035
    vCash
    3700
    Depends what you mean by offsets... all the [9cf***] values for countries can be found here: http://www.champman0102.co.uk/showthread.php?t=4795

  14. #37
    Jesus is offline Official Challenge Team
    Social Media Team
    Join Date
    04-03-12
    Posts
    3,534
    vCash
    681
    Quote Originally Posted by JohnLocke View Post
    Depends what you mean by offsets... all the [9cf***] values for countries can be found here: http://www.champman0102.co.uk/showthread.php?t=4795
    I was hoping that the code was organised in to chunks for every country, so a search for 9CF*** would get me to the header of each country and I'd be able to mess about with the code or find something in the notes that would point me towards whether or not the country belonged to the UK..

  15. #38
    Jesus is offline Official Challenge Team
    Social Media Team
    Join Date
    04-03-12
    Posts
    3,534
    vCash
    681
    Quote Originally Posted by JohnLocke View Post
    Through the exe you often see code like this:
    MOV EDX,DWORD PTR DS:[ECX+57]

    The bold text can be useful in determining what is being accessed.

    All values are hexadecimal

    +71: nation.continent
    +75: nation.region

    +7f : club.trainingfacilities, nation.eecmember
    JL can you explain the above to me? Maybe I can take the home nations out using the above.

    What does "nation.region" refer to? Is it a file somewhere? Or is it in the .exe somewhere?

  16. #39
    Join Date
    05-06-12
    Posts
    1,035
    vCash
    3700
    Quote Originally Posted by Jesus View Post
    JL can you explain the above to me? Maybe I can take the home nations out using the above.

    What does "nation.region" refer to? Is it a file somewhere? Or is it in the .exe somewhere?
    Open the official editor, nation, details > then you can edit (amongst other things) continent, region and actual region - that what the highlighted values are. They are are stored 0x71, 0x75 & 0x76 bytes into each nation.

    Edit:
    Code:
    If it helps:
    004023A0 -nation.continent
    00402A48 -nation.region
    00402A57 -nation.region
    00402A66 -nation.region
    00402A7F -nation.region
    00406BC9 -nation.region
    00406BE2 -nation.region
    0040A282 -nation.region
    0040A2D6 -nation.region
    0040A2E5 -nation.region
    0040A2F4 -nation.region
    0040A303 -nation.region
    0040A31C -nation.region
    0040BD65 -nation.continent
    0040CAA0 -nation.region
    0040CAAF -nation.region
    0040CB30 -nation.region
    0040CB43 -nation.region
    0040CB5C -nation.region
    0040DCB8 -nation.continent
    0040E738 -nation.region
    0040E747 -nation.region
    0040E756 -nation.region
    0040E76F -nation.region
    0040FF11 -nation.continent
    004105D9 -nation.region
    004105E8 -nation.region
    004105F7 -nation.region
    00410606 -nation.region
    0041061B -nation.region
    004123ED -nation.region
    0041246C -nation.region
    0041247B -nation.region
    0041248A -nation.region
    004124A3 -nation.region
    00417B79 -nation.continent
    00417B9E -nation.continent
    00417D8B -nation.continent
    00417E22 -nation.continent
    00418201 -nation.continent
    00420DDD -nation.region
    00420E08 -nation.region
    00420E21 -nation.region
    004241F2 -nation.region
    0042420B -nation.region
    00426C8D -nation.region
    00426D0C -nation.region
    00426D1B -nation.region
    00426D2A -nation.region
    00426D43 -nation.region
    0042D295 -nation.region
    0042D2AF -nation.region
    0042E1A6 -nation.region
    0042E1B5 -nation.region
    0042E1C4 -nation.region
    0042E1D3 -nation.region
    0042E1E2 -nation.region
    0042E1F1 -nation.region
    0042E22B -nation.region
    0042E2B9 -nation.region
    0042E2C8 -nation.region
    0042E2D7 -nation.region
    0042E2F0 -nation.region
    00432B25 -nation.region
    00432B3F -nation.region
    00433D25 -nation.region
    00433D3F -nation.region
    00435105 -nation.region
    0043511F -nation.region
    00459382 -nation.continent
    00460D1A -nation.continent
    00471891 -nation.continent
    004718A6 -nation.continent
    00471E57 -nation.continent
    00471EFB -nation.actual region
    00471EFE -nation.actual region
    00471F20 -nation.continent
    00471F23 -nation.continent
    00471FC9 -nation.continent
    00473D45 -nation.continent
    0047406C -nation.continent
    0047408A -nation.continent
    0047C28F -nation.region
    0047C294 -nation.actual region
    004823A7 -nation.continent
    004823EA -nation.continent
    004823F0 -nation.continent
    00482466 -nation.continent
    004824B9 -nation.continent
    004824BF -nation.continent
    0048DBB3 -nation.continent
    0048DBF5 -nation.continent
    0048E3D4 -nation.region
    0048F1C4 -nation.region
    0049964A -nation.continent
    004996EF -nation.continent
    0049979F -nation.continent
    0049982B -nation.continent
    0049C446 -nation.continent
    004A4D87 -nation.region
    004A4D8E -nation.region
    004AE456 -nation.region
    004AE4CE -nation.region
    004B042D -nation.region
    004B04FA -nation.region
    004B0CD3 -nation.continent
    004B0CF8 -nation.continent
    004B0D0D -nation.continent
    004C125F -nation.region
    004C1285 -nation.region
    004C2ED0 -nation.region
    004C2EDF -nation.region
    004C2EEE -nation.region
    004C2EFD -nation.region
    004C2F16 -nation.region
    004C41BD -nation.continent
    004C467A -nation.region
    004C4689 -nation.region
    004C469E -nation.region
    004C5F68 -nation.region
    004C5F77 -nation.region
    004C5F86 -nation.region
    004C5F9F -nation.region
    004C610D -nation.continent
    004C6195 -nation.continent
    004C635E -nation.continent
    004C6583 -nation.continent
    004C6966 -nation.continent
    004C6AC6 -nation.continent
    005197FE -nation.continent
    005198F8 -nation.continent
    0051AA4E -nation.actual region
    0051B79C -nation.actual region
    0051B7AA -nation.region
    0052DF97 -nation.continent
    0052DFA6 -nation.continent
    00531F6A -nation.continent
    00531F72 -nation.continent
    00531F8B -nation.continent
    00535CB4 -nation.continent
    005360CD -nation.actual region
    0053AB01 -nation.region
    0053D794 -nation.continent
    0054283B -nation.continent
    00544689 -nation.continent
    005562FF -nation.continent
    00556490 -nation.continent
    00556739 -nation.continent
    0056C273 -nation.region
    0056C28C -nation.region
    005732AC -nation.region
    00573321 -nation.region
    00573338 -nation.region
    0057334F -nation.region
    0057336C -nation.region
    005786AC -nation.region
    00578721 -nation.region
    00578738 -nation.region
    0057874F -nation.region
    0057876C -nation.region
    0057CCB8 -nation.region
    0057CCC7 -nation.region
    0057CCD6 -nation.region
    0057CCEF -nation.region
    0057F6D0 -nation.continent
    0057F825 -nation.continent
    00580A2F -nation.region
    00580A3F -nation.region
    00580A4F -nation.region
    00580A5F -nation.region
    00580A6F -nation.region
    00580ACF -nation.region
    00580ADF -nation.region
    00580AF9 -nation.region
    00586CAF -nation.region
    00586CBF -nation.region
    00586CCF -nation.region
    00586CDF -nation.region
    00586D63 -nation.region
    00586D73 -nation.region
    00586DF3 -nation.region
    00586E03 -nation.region
    00586E1D -nation.region
    0058CC30 -nation.region
    0058CC3F -nation.region
    0058CC4E -nation.region
    0058CC5D -nation.region
    0058CC76 -nation.region
    0058CFBC -nation.continent
    0058CFD2 -nation.continent
    00593E47 -nation.region
    00593ED4 -nation.region
    00593EE4 -nation.region
    00593F5E -nation.region
    00593F6E -nation.region
    00593F87 -nation.region
    0059603C -nation.region
    005A0D02 -nation.continent
    005A0E47 -nation.continent
    005A1286 -nation.continent
    005A13CB -nation.continent
    005A16D4 -nation.continent
    005A24AC -nation.continent
    005A3481 -nation.continent
    005A34A9 -nation.continent
    005ACFDD -nation.continent
    005AD04C -nation.continent
    005C46ED -nation.region
    005C46F0 -nation.region
    005C472D -nation.continent
    005C4730 -nation.continent
    005C4F7C -nation.region
    005C4F7F -nation.region
    005C4FAB -nation.continent
    005C4FAE -nation.continent
    005C5863 -nation.continent
    005C5953 -nation.actual region
    005C5956 -nation.actual region
    005C5961 -nation.continent
    005C5964 -nation.continent
    005C5FF4 -nation.actual region
    005C5FF7 -nation.actual region
    005C6002 -nation.continent
    005C6005 -nation.continent
    005C6384 -nation.continent
    005C63B2 -nation.continent
    005CA48F -nation.continent
    005CC065 -nation.continent
    005CC08F -nation.continent
    005CC112 -nation.continent
    005CC144 -nation.continent
    005CC183 -nation.continent
    005CC186 -nation.continent
    005CC45C -nation.continent
    005CC4B7 -nation.continent
    005CC4DA -nation.continent
    005CC4E9 -nation.continent
    005CD4C1 -nation.region
    005CD5D9 -nation.continent
    005D24CA -nation.region
    005D24CD -nation.region
    005D30C8 -nation.continent
    005D30CB -nation.continent
    005D30D5 -nation.continent
    005D311D -nation.region
    005D3120 -nation.region
    005DE2CB -nation.region
    005E1FCE -nation.continent
    005E2575 -nation.region
    005E2584 -nation.region
    005E2593 -nation.region
    005E25A8 -nation.region
    005EA358 -nation.region
    005EA367 -nation.region
    005EA376 -nation.region
    005EA38F -nation.region
    005F5418 -nation.region
    005F5427 -nation.region
    005F5436 -nation.region
    005F544F -nation.region
    005F7479 -nation.region
    005F74F3 -nation.region
    005F7505 -nation.region
    005F7527 -nation.region
    005F7540 -nation.region
    005F8818 -nation.region
    005FABC6 -nation.continent
    005FAD56 -nation.continent
    00631506 -nation.continent
    00632585 -nation.continent
    006326B1 -nation.continent
    006363CD -nation.region
    0063644B -nation.region
    0063645B -nation.region
    0063647B -nation.region
    00636495 -nation.region
    00638720 -nation.region
    0063872F -nation.region
    0063873E -nation.region
    0063874D -nation.region
    00638766 -nation.region
    0063AB8C -nation.region
    0063E880 -nation.region
    0063E88F -nation.region
    0063E89E -nation.region
    0063E8AD -nation.region
    0063E8C6 -nation.region
    00640510 -nation.region
    0064051F -nation.region
    0064052E -nation.region
    0064053D -nation.region
    00640556 -nation.region
    0064BE43 -nation.region
    00650003 -nation.region
    00654573 -nation.region
    00658703 -nation.region
    0065C893 -nation.region
    00664496 -nation.region
    006644B1 -nation.region
    00669439 -nation.continent
    006695C9 -nation.continent
    006695F3 -nation.continent
    006699E0 -nation.continent
    0066D6E0 -nation.region
    0066D6EF -nation.region
    0066D6FE -nation.region
    0066D70D -nation.region
    0066D726 -nation.region
    006853CE -nation.continent
    006867A4 -nation.continent
    0068F1F0 -nation.continent
    0068FA62 -nation.continent
    0069447B -nation.continent
    006944CC -nation.continent
    0069453F -nation.continent
    00694590 -nation.continent
    006945F2 -nation.continent
    00694643 -nation.continent
    00697CAD -nation.continent
    006983DB -nation.region
    00698A6B -nation.region
    0069BDC5 -nation.region
    0069BDC8 -nation.region
    0069C5F8 -nation.region
    0069C5FB -nation.region
    0069D2D5 -nation.continent
    0069EC90 -nation.continent
    006A3D6B -nation.region
    006A3DAF -nation.region
    006A65EC -nation.continent
    006A65F1 -nation.continent
    006B101A -nation.continent
    006B1552 -nation.continent
    006B6461 -nation.continent
    006B646D -nation.continent
    006B66C5 -nation.continent
    006B7215 -nation.actual region
    006B7218 -nation.actual region
    006BA3B9 -nation.continent
    006C12A9 -nation.continent
    006C65E4 -nation.actual region
    006C6852 -nation.actual region
    006C97D8 -nation.continent
    006E4F61 -nation.actual region
    006E4F96 -nation.actual region
    006E4FB7 -nation.actual region
    006E4FD8 -nation.actual region
    006E4FF9 -nation.actual region
    006E501A -nation.actual region
    006E5038 -nation.actual region
    006E5056 -nation.actual region
    006E5074 -nation.actual region
    006E5092 -nation.actual region
    006E73BD -nation.actual region
    006E73E0 -nation.actual region
    006E73F8 -nation.actual region
    006E7410 -nation.actual region
    006E7428 -nation.actual region
    006E743D -nation.actual region
    006E7452 -nation.actual region
    006E7467 -nation.actual region
    006E747C -nation.actual region
    006E7491 -nation.actual region
    006EDB9F -nation.continent
    006EDBCE -nation.continent
    006EFD83 -nation.continent
    006F2CB4 -nation.continent
    006F2CC4 -nation.continent
    006F2CC7 -nation.continent
    006F32E2 -nation.continent
    006F32F2 -nation.continent
    006F32F5 -nation.continent
    0073E1C2 -nation.continent
    0073E2F9 -nation.continent
    0073E319 -nation.continent
    007427DE -nation.continent
    00744E29 -nation.continent
    0074B961 -nation.continent
    007534A5 -nation.continent
    007534E0 -nation.continent
    00753726 -nation.continent
    00753750 -nation.continent
    00753A3B -nation.continent
    00753A6B -nation.continent
    00753D3B -nation.continent
    00753D7B -nation.continent
    0075449B -nation.continent
    0076497C -nation.continent
    0076AB75 -nation.continent
    0076CC53 -nation.continent
    0076CC56 -nation.continent
    0076CCB5 -nation.continent
    0076CCB8 -nation.continent
    0076CF46 -nation.continent
    0076CF49 -nation.continent
    00775093 -nation.continent
    0078673A -nation.continent
    00786746 -nation.continent
    0078C6AD -nation.region
    0078C72B -nation.region
    0078C73B -nation.region
    0078C75B -nation.region
    0078C775 -nation.region
    0078DFD0 -nation.region
    0078DFDF -nation.region
    0078DFEE -nation.region
    0078DFFD -nation.region
    0078E00C -nation.region
    0078E025 -nation.region
    0078F00E -nation.region
    0079142D -nation.region
    007914AB -nation.region
    007914BB -nation.region
    007914DB -nation.region
    007914F5 -nation.region
    00792D6E -nation.region
    00798324 -nation.continent
    00798828 -nation.region
    00798837 -nation.region
    00798846 -nation.region
    00798855 -nation.region
    0079886E -nation.region
    00799EEB -nation.continent
    0079A4F0 -nation.region
    0079A4FF -nation.region
    0079A50E -nation.region
    0079A527 -nation.region
    0079C5D3 -nation.continent
    0079C8CF -nation.continent
    0079C8E4 -nation.continent
    0079C920 -nation.continent
    007A0D9E -nation.region
    007A0ECA -nation.continent
    007A0F0E -nation.continent
    007A0F52 -nation.continent
    007A0F96 -nation.continent
    007A0FDA -nation.continent
    007A101E -nation.continent
    007A1658 -nation.region
    007A1667 -nation.region
    007A1676 -nation.region
    007A168F -nation.region
    007ABD0D -nation.continent
    007AD064 -nation.continent
    007AFC93 -nation.actual region
    007AFC9A -nation.actual region
    007B0B6C -nation.actual region
    007B0B9F -nation.actual region
    007B0BA5 -nation.actual region
    007B417C -nation.actual region
    007B41A0 -nation.actual region
    007B41A3 -nation.actual region
    007B46F1 -nation.actual region
    007B4C2F -nation.actual region
    007B7000 -nation.actual region
    007B7331 -nation.actual region
    007B75C7 -nation.actual region
    007B75E8 -nation.actual region
    007B7622 -nation.actual region
    007B7625 -nation.actual region
    007CA42F -nation.region
    007CA448 -nation.region
    007CC847 -nation.region
    007CC8C5 -nation.region
    007CC8D5 -nation.region
    007CC8F5 -nation.region
    007CC90F -nation.region
    007E6891 -nation.continent
    007E698D -nation.continent
    007EF160 -nation.region
    007EF1D2 -nation.region
    007EF1E2 -nation.region
    007EF236 -nation.region
    007EF246 -nation.region
    007EF260 -nation.region
    007F31F8 -nation.region
    007F3212 -nation.region
    007F925E -nation.actual region
    007F9261 -nation.actual region
    00805112 -nation.continent
    0080522D -nation.continent
    00805C1A -nation.continent
    00805E4E -nation.continent
    0080691A -nation.actual region
    0080692C -nation.actual region
    00806C90 -nation.actual region
    00806CA2 -nation.actual region
    0080769A -nation.actual region
    008076AF -nation.actual region
    0080799C -nation.actual region
    00807F28 -nation.continent
    00807F98 -nation.continent
    008109AC -nation.continent
    00821DB0 -nation.continent
    00821F36 -nation.continent
    008227B1 -nation.continent
    00830578 -nation.continent
    0083FF66 -nation.region
    0083FF69 -nation.region
    0083FF90 -nation.region
    008465A1 -nation.continent
    008465A4 -nation.continent
    008465C8 -nation.continent
    008465DE -nation.continent
    008465EC -nation.continent
    00847F11 -nation.continent
    00847F14 -nation.continent
    00849734 -nation.continent
    00849737 -nation.continent
    00849759 -nation.continent
    00849772 -nation.continent
    00849780 -nation.continent
    0084B19B -nation.actual region
    008508B8 -nation.region
    008584B5 -nation.region
    00858547 -nation.region
    00858559 -nation.region
    0085856B -nation.region
    0085857D -nation.region
    008585E4 -nation.region
    008585FA -nation.region
    00858657 -nation.region
    0085866F -nation.region
    0085D478 -nation.region
    0085E0F1 -nation.continent
    0085E1CD -nation.continent
    0086328A -nation.actual region
    0086328D -nation.actual region
    008632A3 -nation.actual region
    00865277 -nation.actual region
    0086527A -nation.actual region
    00865290 -nation.actual region
    00869F81 -nation.continent
    00881BC8 -nation.actual region
    00881BCB -nation.actual region
    0088E5B9 -nation.region
    0088E5D2 -nation.region
    0088FA4B -nation.region
    0088FAA0 -nation.region
    0088FAA5 -nation.region
    0088FACE -nation.region
    0088FAFD -nation.region
    008916E8 -nation.region
    008936A9 -nation.region
    008936B9 -nation.region
    008936C9 -nation.region
    008C5C12 -nation.continent
    008C75ED -nation.actual region
    008C7F3E -nation.actual region
    008C7F44 -nation.actual region
    008D1779 -nation.continent
    008D178F -nation.continent
    008D17A1 -nation.continent
    008D1AF8 -nation.continent
    008D1B03 -nation.continent
    008D20CA -nation.continent
    008D20DF -nation.continent
    008D2490 -nation.continent
    008D249B -nation.continent
    008D2FC8 -nation.continent
    008D9CD0 -nation.continent
    008D9D6F -nation.continent
    008D9E37 -nation.continent
    008E4E2B -nation.continent
    008E84CF -nation.continent
    008E86B5 -nation.continent
    00901B55 -nation.region
    00901B7F -nation.region
    009034A4 -nation.continent
    00904119 -nation.continent
    00905F67 -nation.continent
    00908887 -nation.actual region
    009088E0 -nation.region
    00909E3A -nation.region
    00909E49 -nation.region
    00909E58 -nation.region
    00909E67 -nation.region
    00909E8E -nation.region
    00909EA7 -nation.region
    00910766 -nation.continent
    009107B8 -nation.continent
    00910884 -nation.continent
    00911659 -nation.region
    00911669 -nation.region
    00911679 -nation.region
    009116D5 -nation.region
    009116E5 -nation.region
    009117E3 -nation.region
    0091186F -nation.region
    0091187F -nation.region
    0091188F -nation.region
    009118EB -nation.region
    009119B7 -nation.region
    009119C7 -nation.region
    009119D7 -nation.region
    009119E7 -nation.region
    009119F7 -nation.region
    00911A55 -nation.region
    00911A6F -nation.region
    00914037 -nation.continent
    00914089 -nation.continent
    00914154 -nation.continent
    009147D3 -nation.region
    009147E3 -nation.region
    009147F3 -nation.region
    00914803 -nation.region
    0091488F -nation.region
    0091489F -nation.region
    009148AF -nation.region
    009148EC -nation.region
    00914920 -nation.region
    00914954 -nation.region
    00914977 -nation.region
    00916334 -nation.continent
    0091635A -nation.region
    009163A8 -nation.continent
    009163DC -nation.region
    009169BC -nation.continent
    009169F1 -nation.region
    00918076 -nation.region
    0091811F -nation.region
    0091812F -nation.region
    0091813F -nation.region
    00918166 -nation.region
    009181C7 -nation.region
    00919F07 -nation.continent
    00919F59 -nation.continent
    0091A038 -nation.continent
    0091B5BF -nation.region
    0091B5CF -nation.region
    0091B5DF -nation.region
    0091B5EF -nation.region
    0091B5FF -nation.region
    0091B65F -nation.region
    0091B66F -nation.region
    0091B689 -nation.region
    0091FB58 -nation.continent
    0091FBAA -nation.continent
    0091FC75 -nation.continent
    00920184 -nation.region
    0092019D -nation.region
    009201B6 -nation.region
    009201CC -nation.region
    009201E2 -nation.region
    009201F8 -nation.region
    00920210 -nation.region
    00920DE2 -nation.continent
    00920E4E -nation.continent
    00920E76 -nation.continent
    00920FC4 -nation.continent
    009277BF -nation.region
    009277CE -nation.region
    009277E3 -nation.region
    00929107 -nation.region
    00929116 -nation.region
    0092912F -nation.region
    0092ADDC -nation.region
    0092ADEB -nation.region
    0092ADFA -nation.region
    0092AE09 -nation.region
    0092AE22 -nation.region
    0092AFE2 -nation.continent
    0092B43E -nation.continent
    0092B441 -nation.continent
    0092B9B5 -nation.continent
    0092BAE1 -nation.continent
    0092BD0F -nation.continent
    0092BD4A -nation.continent
    0092F54D -nation.continent
    0092FA68 -nation.region
    0092FA77 -nation.region
    0092FA86 -nation.region
    0092FA9F -nation.region
    00930828 -nation.continent
    00931E7C -nation.continent
    00931EB6 -nation.continent
    Last edited by JohnLocke; 11-09-14 at 07:26 PM. Reason: typo

  17. #40
    Jesus is offline Official Challenge Team
    Social Media Team
    Join Date
    04-03-12
    Posts
    3,534
    vCash
    681
    Is that not a lead on to removing the home nations? I really don't know what I'm doing in honesty. Perhaps I'll just have to keep them in the UK..

  18. #41
    Jesus is offline Official Challenge Team
    Social Media Team
    Join Date
    04-03-12
    Posts
    3,534
    vCash
    681
    During my season I'm getting the following error:

    "v3.9.68 match_eng..cpp 652"

    Anyone know what it means and how I suppress it? It doesn't prevent me from continuing, it just pops up every few months.

  19. #42
    Join Date
    05-06-12
    Posts
    1,035
    vCash
    3700
    Fill the following line with NOP, that should suppress it.
    006B8AC5 CALL 005E8290

    If anyone is interested in how I know that... 652 decimal is 28c hex (http://www.statman.info/conversions/hexadecimal.html), then search using Olly (Ctrl+f) for 'push 28c' - there are several but only one near a line mentioning 'match_eng.cpp'. The above line is the first line after: PUSH OFFSET 009870E0; ASCII "Error" - which is the code that tells the game what 'title' to put on the error pop-up. CALL 005E8290 is the code that tells the game to actually display the error - so filling with NOP stops that from happening.

    I think the game originally (just for the developers?) had some sort of logging facility - presumably to help identify problems - the error logged the following message:
    "Only %d away players %s v %s **, %s on %s" - %d would be replaced at run-time by a number, %s by text

  20. The Following 2 Users Say Thank You to JohnLocke For This Useful Post:


  21. #43
    Jesus is offline Official Challenge Team
    Social Media Team
    Join Date
    04-03-12
    Posts
    3,534
    vCash
    681
    Quote Originally Posted by JohnLocke View Post
    Fill the following line with NOP, that should suppress it.
    006B8AC5 CALL 005E8290

    If anyone is interested in how I know that... 652 decimal is 28c hex (http://www.statman.info/conversions/hexadecimal.html), then search using Olly (Ctrl+f) for 'push 28c' - there are several but only one near a line mentioning 'match_eng.cpp'. The above line is the first line after: PUSH OFFSET 009870E0; ASCII "Error" - which is the code that tells the game what 'title' to put on the error pop-up. CALL 005E8290 is the code that tells the game to actually display the error - so filling with NOP stops that from happening.

    I think the game originally (just for the developers?) had some sort of logging facility - presumably to help identify problems - the error logged the following message:
    "Only %d away players %s v %s **, %s on %s" - %d would be replaced at run-time by a number, %s by text
    It's good to have you back JL, amazing stuff

  22. The Following User Says Thank You to Jesus For This Useful Post:


  23. #44
    Join Date
    18-03-14
    Posts
    687
    vCash
    5100

    Player restrictions (non-EU / foreigners)

    There have been lots of changes to leagues' restrictions since the game was released, often having a detrimental effect on the update team's latest effort. Information on what the updated rules are were hard to come by, so I turned to the dark side and had a look at Football Manager's latest demo. AFAIK the following changes are accurate, but any corrections are welcomed.

    Code:
    Argentina		DONE [No change] (4 foreign)
    Australia		DONE [6 foreign -> 5 foreign]
    Belgium			DONE [No change] (no restrictions)
    Brazil			DONE [2 foreign -> 5 foreign; squad 3 foreign -> no restrictions]
    Croatia			DONE [4 foreign -> 6 non-EU]
    Denmark			DONE [See England]
    England			DONE [3 non-EU -> no restrictions; changes here are tied to Denmark & Sweden]
    Finland			DONE [Changed IRL, but unenforceable in-game (Cotonou Agreement & many others)
    France			UNDONE/Done [5/3/3 non-EU -> 4/2/4 non-EU; 3 non-EU -> 4 non-EU French Cups]
    Germany			DONE [3 non-EU -> no restrictions (except the German Cup - remains 3 non-EU)]
    Greece			DONE [National B Divsion 4 non-EU -> 3 non-EU; 4 non-EU -> 5 non-EU Greek Cups]
    Holland			DONE [No change] (no restrictions)
    Italy			DONE [Changed IRL (?), but unenforceable in-game]
    Japan			DONE [3 foreign -> 4 foreign]
    Northern Ireland	DONE [No change] (no restrictions)
    Norway			DONE [2 non-EU -> No restrictions]
    Poland			DONE [5 foreign -> 17 foreign; squad 5 foreign -> no restrictions]
    Portugal		DONE [4/4/3 non-EU -> no restrictions; squad 6/5/4 non-EU -> no restrictions; 4 non-EU -> no restrictions Portuguese Cups]
    Republic Of Ireland	DONE [No change] (no restrictions)
    Russia			UNDONE/Done [No limit/3 foreign -> 7 foreign]
    Scotland		DONE [No change] (no restrictions)
    South Korea		DONE [3 foreign -> 4 foreign]
    Spain			DONE [Changed IRL, but unenforceable in-game (Cotonou Agreement)]
    Sweden			DONE [See England]
    Turkey			UNDONE/Done [6 foreign -> 5 foreign Turkish Premier Division & Turkish FA Cup]
    USA			DONE [4 foreign -> 8 foreign; squad 4 foreign -> 8 foreign]
    Wales			DONE [No change] (no restrictions)
    You'll see something called the Cotonou Agreement mentioned a couple of times above. This is a treaty signed between EU countries and a large number of African, Caribbean and Pacific countries whereby players from these countries do not count as non-EU players. This is probably* impossible to implement in-game, but it could be countered by just adding an extra non-EU place to any league that has the Cotonou Agreement in place (it probably effects France and Spain the most). Feedback from people that regularly play the French and Spanish leagues with updated data would be appreciated.

    Now for some notes on a few leagues:
    Finland: This has the Cotonou Agreement and a number of other treaties that would bypass any non-EU quotas. Given the amount of nationalities affected and the fact that there's no code in the game for Finnish restrictions, I chose to leave the leagues unrestricted.
    France: The French league has non-EU restrictions of 4/2/3 for Ligue 1, 2 & National respectively. The National needs to be reduced from 4 to 3, it should be quite easy to code but I can't do it (there's even space for a few lines).
    Italy: I'm unsure of the rules for Italy. I know that they have restrictions on the amount of non-EU players that they can buy per window, but with regards match day squads I don't know. I looked at some recent IRL line-ups and there didn't seem to be any restrictions, therefore I left the leagues unrestricted.
    Japan: The additional player must be Asian IRL, not much we can do about that for the game.
    Russia: The Russian First Division needs to be changed from 7 foreigners allowed to 3. Like the French league it should be an easy change, but one I can't do.
    South Korea: Like Japan, the additional player must be Asian IRL.
    Turkey: The Turkish 2. Division Category A needs to be changed from 0 players allowed in the squad and line-ups, to 3 players being allowed in both. Unfortunately there's a piece of code that prevents the signing of any non Turkish player. The code can be removed/filled with NOP, but then no restrictions can be applied to the division. I decided to leave it with the restrictions as it was closer to real life than having no restrictions at all.
    USA: FM didn't show any rules but I read online that the restriction was 8 foreign players. The data seems to match this restriction.

    Here are the offsets to change:
    Spoiler!

    If anyone wants to try changing the Turkish rules, the offsets are located at the block starting with 009021D0.

    *I said the Cotonou Agreement was probably impossible to implement, but it might be possible due to the presence of some code in the German leagues. Certain non-EU countries (Turkey, Hungary and a few others) don't count as non-EU possibly due to them being Gasterbeiter, while only affecting the German leagues. As Germany now has no restrictions for almost all its competitions, the code could possibly be altered by changing the countries from Turkey, Hungary etc to Senegal, Cameroon etc and then pointing it to the French/Spanish leagues instead of Germany. I have no idea how to do this or how practical it would be to change, nor do I know where the code is for it, but it's an idea.

    I should also mention that the offsets given are for the .68 exe, they might be different for the .60 or Tapani exes.
    Last edited by saturn; 21-02-15 at 11:26 AM.

  24. The Following 8 Users Say Thank You to saturn For This Useful Post:


  25. #45
    Join Date
    15-12-11
    Location
    Your Mother
    Posts
    25,859
    vCash
    4300000
    If I'm not mistaken Turkey has a similar agreement to the Cotonou agreement with Azerbaijan, Turkemistan, Kazakhstan, Kyrgyzstan and Uzbekistan

  26. #46
    Join Date
    11-09-12
    Posts
    584
    vCash
    1000
    Quote Originally Posted by saturn View Post
    0x3d41ae 0x6 0x32 Portugal
    0x3d41c2 0x5 0x32
    0x3d41c9 0x4 0x32
    0x3d43ec 0x3 0x1
    0x3d43f3 0x3 0x1
    Thank you Saturn.

    One question for my own understanding.

    I am currently changing more offsets than you are. For example:

    Was - 007D41AA C64424 12 06 MOV BYTE PTR SS:[ESP+12],6
    Changed to - 007D41AA C644E4 12 32 MOV BYTE PTR SS:[ESP+12],32

    But I can't see the E4 change in your code?

  27. #47
    Join Date
    18-03-14
    Posts
    687
    vCash
    5100
    Quote Originally Posted by Dermotron View Post
    If I'm not mistaken Turkey has a similar agreement to the Cotonou agreement with Azerbaijan, Turkemistan, Kazakhstan, Kyrgyzstan and Uzbekistan
    That's right, I'd forgotten about that! All the Turkic people count as Turkish (or don't count as being foreign) IRL.

    Quote Originally Posted by View Post
    Thank you Saturn.

    One question for my own understanding.

    I am currently changing more offsets than you are. For example:

    Was - 007D41AA C64424 12 06 MOV BYTE PTR SS:[ESP+12],6
    Changed to - 007D41AA C644E4 12 32 MOV BYTE PTR SS:[ESP+12],32

    But I can't see the E4 change in your code?
    I'm probably the wrong person to ask as a lot of my own understanding is monkey-see monkey-do from Tapani's/JohnLocke's changes. I don't see a reason why the E4 would change though given it's just one value we're changing. Are you using the bog standard .68 exe?

  28. #48
    Join Date
    05-06-12
    Posts
    1,035
    vCash
    3700
    Quote Originally Posted by View Post
    Was - 007D41AA C64424 12 06 MOV BYTE PTR SS:[ESP+12],6
    Changed to - 007D41AA C644E4 12 32 MOV BYTE PTR SS:[ESP+12],32

    But I can't see the E4 change in your code?
    Check the ASM code, it seems that both versions (24 & E4) result in the same code, not sure why.

  29. The Following User Says Thank You to JohnLocke For This Useful Post:


  30. #49
    Join Date
    31-10-11
    Posts
    21,205
    vCash
    3300
    Fantastic stuff, Saturn. Let's hope Tapani picks this up and is able to implement this into his patch.
    The Alphabet Game #3
    Try your luck at winning any trophy in your game but you must go in order from A-Z in the alphabet!
    Click here to find out more and join in!

  31. #50
    Join Date
    18-03-14
    Posts
    687
    vCash
    5100
    Quote Originally Posted by saturn View Post
    You'll see something called the Cotonou Agreement mentioned a couple of times above. This is a treaty signed between EU countries and a large number of African, Caribbean and Pacific countries whereby players from these countries do not count as non-EU players. This is probably* impossible to implement in-game, but it could be countered by just adding an extra non-EU place to any league that has the Cotonou Agreement in place (it probably effects France and Spain the most).

    *I said the Cotonou Agreement was probably impossible to implement, but it might be possible due to the presence of some code in the German leagues. Certain non-EU countries (Turkey, Hungary and a few others) don't count as non-EU possibly due to them being Gasterbeiter, while only affecting the German leagues. As Germany now has no restrictions for almost all its competitions, the code could possibly be altered by changing the countries from Turkey, Hungary etc to Senegal, Cameroon etc and then pointing it to the French/Spanish leagues instead of Germany. I have no idea how to do this or how practical it would be to change, nor do I know where the code is for it, but it's an idea.
    I've found the 'Gasterbeiter' code so we can now essentially add the Contonou Agreement to the game.
    Code:
    0053D772  MOV EAX,DWORD PTR DS:[9CF314]- GERMANY
    0053D777  CMP ESI,EAX
    0053D779  JNZ SHORT cm0102.0053D79B
    0053D77B  MOV ECX,DWORD PTR DS:[9CFA10]- Europe
    All we have to do is change 9CF314 (Germany) to 9CF300 (France) and 9CFA10 (Europe) to 9CFA08 (Africa). The agreement also effects some Carribean and Pacific nations but, bar the odd regen, I don't think there'll be many players from them in the game. There's only enough room in the code to implement this for one country at the moment, but there's some Basque restrictions below for 23 clubs which could easily be reduced to a dozen or so without really affecting the game (a lot of them are small non-league clubs).

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


Page 2 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
  •