Page 3 of 66 FirstFirst 123456713 ... LastLast
Results 51 to 75 of 1632

Thread: Offsets

  1. #51
    Join Date
    18-12-11
    Location
    Dresden
    Posts
    7,729
    vCash
    4030
    Slight problem, what I'm searching for are the values in the second column in Olly (0x74 0x24 in this case). That combination appears in the exe 5013 times!

    Will all the lines be followed by: MOV EDX,DWORD PTR DS:[9CF860] ? If so I can include this to see if that reduces the number of matches.

  2. #52
    Join Date
    18-12-11
    Location
    Dresden
    Posts
    7,729
    vCash
    4030
    Quote Originally Posted by Patinoz View Post
    as i can remember all lines with disable/enable competition are in format

    JE PUSH ******** than JE must be replaced with JMP in order to disable it...
    8322a2 - Argentinian Premier
    8322f7 - Argentinian Second
    832792 - Belgian First
    8327e7 - Belgian Second
    83283a - Belgian Third
    83288d - Belgian FA Cup
    8328e0 - Belgian Super Cup
    832c0f - Brazilian Reg Bahia
    832cb0 - Brazilian Reg Gaucho
    832e44 - Brazilian Reg Parana
    832e94 - Brazilian Reg Pern
    832f35 - Brazilian Reg Santa
    833027 - Brazilian Champions Cup
    833275 - Croatian A1
    8332ca - Croatian A2A
    83331d - Croatian A2B
    833370 - Croatian Cup
    8335c3 - Danish Premier
    833618 - Danish First
    83366b - Danish Second
    8336be - Danish Cup
    83392c - English Premier
    833981 - English First (Championship)
    8339d4 - English Second (League One)
    833a27 - English Third (League Two)
    833b37 - English CC Cup (Conference Cup I think)
    833b8f - English Auto Windscreens Cup
    833eb3 - Finnish Premier
    833f09 - Finnish First
    833f60 - Finnish Cup
    8341b4 - French First
    834209 - French Second
    83425c - French Third
    8342af - French Cup
    834302 - French League Cup
    834355 - French Super Cup
    8345c9 - German First
    83461e - German Second
    834985 - Greek Premier
    8349da - Greek Second
    834a2d - Greek Cup
    834a80 - Greek Super Cup
    834cd5 - Dutch Premier
    834d2a - Dutch First
    834d7d - Dutch Cup
    834dd0 - Dutch Super Cup
    835023 - Irish Premier
    835078 - Irish First
    8350cb - Irish Challenge Cup
    83511e - Irish League Cup
    835171 - Irish Super Cup
    8351c4 - Irish Presidents Cup
    835217 - Irish Munster Cup
    83526a - Irish Leinster Cup
    8354fb - Italian Serie A
    835550 - Italian Serie B
    8355a3 - Italian Serie C1A
    8355f6 - Italian Serie C1B
    8356af - Italian Serie C2B
    835702 - Italian Serie C2C
    83580a - Italian Super Cup
    835862 - Italian Serie C1 Super Cup
    835abe - Japanese J League
    835b13 - Japanese J2
    835b66 - Japanese Emporers Cup
    835bb9 - Japanese J Cup
    835c0c - Japanese Super Cup
    835e4f - Northern Irish Premier
    835ea4 - Northern Irish First
    835ef7 - Northern Irish Cup
    835f4a - Northern Irish League Cup
    835f9d - Northern Irish Charity Shield
    836214 - Norwegian Premier
    83626a - Norwegian First
    8362c1 - Norwegian Cup
    836513 - Polish First
    836568 - Polish Second
    8365bb - Polish Cup
    83660e - Polish League Cup
    836661 - Polish Super Cup
    8368be - Portuguese Premier
    836913 - Portuguese Second
    836c8f - Russian Premier
    836ce4 - Russian First
    836f84 - Scottish Premier
    836fd9 - Scottish First
    83702c - Scottish Second
    83707f - Scottish Third
    8370d2 - Scottish FA Cup
    837125 - Scottish League Cup
    837178 - Scottish Challenge Cup
    8373c1 - South Korean K League
    837416 - South Korean FA Cup
    837469 - South Korean League Cup
    8374bc - South Korean Super Cup
    83773b - Spanish First
    837790 - Spanish Second
    8377f3 - Spanish Second Division B
    837846 - Spanish Cup *
    8378fd - Spanish Cup *
    837950 - Spanish Super Cup
    837bd5 - Swedish Premier
    837c2a - Swedish First
    837f35 - Turkish First (Super Lig)
    837f8a - Turkish Second
    837fdd - Turkish Second B
    838030 - Turkish Cup
    838282 - USA MLS
    8382d7 - USA Open Cup
    83832a - USA MLS All Stars
    838577 - English Northern Premier / Welsh Premier
    8385cc - Welsh Cup
    83861f - Welsh League Cup
    838672 - Welsh Premier Cup

    * Not sure why its there twice.

    I searched for: 0x74 0x24 0x8b 0x15, which found 127 matches, the 114 are the only ones that related to a competition.

    Also:
    92C077 CALL 0092DA40
    92C07E CALL 0092D200

    These are, I believe, the calls to create the World Cup. These are within a block starting at: 0092C047 JNE 0092C190. Wikiepedia tells me that JNE is jump on inequality, so if it was changed to JE (jump on equality) would the World Cup be disabled?

  3. #53
    Join Date
    18-12-11
    Location
    Dresden
    Posts
    7,729
    vCash
    4030
    In answer to my own question, YES! Changing the JNE to JE disables the World Cup! Not had any errors after 1 season - although the World Cup still appears on the menu in the game and if you select it the game crashes.

    Anyone know how to remove a competition from the menu? Would I have to delete the competition in the editor?

  4. #54
    Join Date
    18-12-11
    Location
    Dresden
    Posts
    7,729
    vCash
    4030
    John,when i disable competition i only change command JE PUSH to JMP PUSH,after that when starting game,that disabled competition does not appear in the menu.
    i'v tried to disable WC long ago when i was creating league with only national teams participating in it...i remember i'v change around 50 lines...no,i get it,my idea was to disable all nation competitions,WC,Euro Championship,Copa America...that why i changed so many lines.In the end that worked but with many error messages,but game didn't crashed...

  5. #55
    Join Date
    18-12-11
    Location
    Dresden
    Posts
    7,729
    vCash
    4030
    International competitions must be different from domestic.

    Here's a screenshot to show no World Cup in 2002 (Japan as co-host would have played if it had). Clicking on the highlighted menu crashes the game.



    I'll have to holiday on a bit to see if anything breaks. The game still says the qualifying draw will be made in March 2004 - so it might break then or when the teams qualify for the non-existent competition.

  6. #56
    Join Date
    18-12-11
    Location
    Dresden
    Posts
    7,729
    vCash
    4030
    Looks like I spoke too soon, the game crashed 4 weeks later.

  7. #57
    Join Date
    18-12-11
    Location
    Dresden
    Posts
    7,729
    vCash
    4030
    the problem is this line for FA cup not existin the original v68 file it was add by tapani patch
    and i tried to add it but nothing changed in the game
    thats the problem
    (and i know what i requested before)

  8. #58
    Join Date
    18-12-11
    Location
    Dresden
    Posts
    7,729
    vCash
    4030
    yeah... icy is right.... some of those offsets are for tapanified patches, not the regular, untouched EXE file.... I have no idea how to change subs in Engerland

  9. #59
    Join Date
    18-12-11
    Location
    Dresden
    Posts
    7,729
    vCash
    4030
    icy wants offset for england FA cup subs inside the untapanified official 3.9.68 .exe file...

    you should go to the this offset:

    9c42cc E:\dev\CM3\cm3 00-01\cm3\code\comp\cups\eng_fa_cup.cpp

    13.Change number of subs in cup:
    1.Go to the 1st reference line in the cup references list
    2.Scroll up a bit until you see the block start (should start with:"Push -1")
    2.Look down for the same lines as the league subs lines
    3.Change it as you like
    4.Save the changes
    5.Close olly

    and somewhere inside that block should be a line like this:

    MOV BYTE PTR DS:[ESI+49],value

  10. #60
    Join Date
    18-12-11
    Location
    Dresden
    Posts
    7,729
    vCash
    4030
    00570C6B MOV BYTE PTR DS:[ESI+49],AL (this is the offset for changing how many subs can be assigned for the FA cup)

    00570C6E MOV BYTE PTR DS:[ESI+4A],AL (this is the offset for changing how many subs you can use during match)

    now,they don't have numeric value and changing offset will affect other lines and game would crash...i don't know how to change this...this is the question for Tapani or Zozoa.

  11. #61
    Join Date
    18-12-11
    Location
    Dresden
    Posts
    7,729
    vCash
    4030
    what is the offset to disable the League Cup in Korea?

  12. #62
    Join Date
    18-12-11
    Location
    Dresden
    Posts
    7,729
    vCash
    4030
    00837469 JE SHORT 0083748F change it to JMP SHORT 0083748F

  13. #63
    Join Date
    18-12-11
    Location
    Dresden
    Posts
    7,729
    vCash
    4030
    00835023 - Irish Premier
    00835078 - Irish First
    008350cb - Irish Challenge Cup
    0083511e - Irish League Cup
    00835171 - Irish Super Cup
    008351c4 - Irish Presidents Cup
    00835217 - Irish Munster Cup
    0083526a - Irish Leinster Cup

    all JE commands just replace with JMP commands for the competitions you like.That is all.

  14. #64
    Join Date
    18-12-11
    Location
    Dresden
    Posts
    7,729
    vCash
    4030
    I'm looking to change the size of the Irish First Division from 12 to maybe 16 or 18. Have gotten fed up of playing the same clubs so many times, would rather play each team twice only. I know Djole managed to do this with the scottish premier, second and third divisions. And as the correct league sizes are now in place I guessed someone must have found a way to change the size of the leagues. I'm just having difficulty finding the offsets in Olly.

  15. #65
    Join Date
    18-12-11
    Location
    Dresden
    Posts
    7,729
    vCash
    4030
    for Ireland i only managed to reduce number of rounds from 3 to 2,22 fixtures...offsets for number of teams for ireland premier are not in HEXADECIMAL value,instead they are something like ECX or EPB...and that is tricky part...

  16. #66
    Join Date
    18-12-11
    Location
    Dresden
    Posts
    7,729
    vCash
    4030
    Quote Originally Posted by Patinoz View Post
    what is the offset to change the italian Serie B, Round,team and Fixtures?
    thank's

    00646792 MOV WORD PTR DS:[ESI+3E],16 (number of clubs) 16 is 22 in decimal

    0064678B PUSH 512 (number of clubs *59) 512 is 1298 in decimal 1298/22=59 ,if you change number of clubs,let's say on 24 you will have to change PUSH command like this:24*59=1416 and to convert 1416 to hexadecimal,that is 588 so command should be PUSH 588

    00645B2D MOV WORD PTR DS:[EAX],2A (number of fixtures)

    006468B2 MOV WORD PTR DS:[ESI+3C],CX (number of rounds)
    CX is a variant that contain some value(in this case it contains the value 2)
    We can't edit this line and put 3 instead of CX because it will overwrite the next line and we aren't allowed to do it.
    We can't either change the value CX gets above("MOV ECX,2") because it may affect other things like number of subs or number of points for winning a game
    Therefore we will have move all the following lines 1 step down.
    4.Mark all this block in grey using Shift+key down
    5.Right-click somewhere on the grey block->copy->to file
    6.Now change the "MOV WORD PTR DS:[ESI+3C],CX" to "MOV WORD PTR DS:[ESI+3C],3"
    7.Copy the the following lines as they are in the file you have created

    Note:when copying the lines it may give the message:"unknown identifier",in this case you just need to add 0 before the variant name.
    For example,if the line you want to copy is:"MOV WORD PTR DS:[ESI+AB],AX",write it as "MOV WORD PTR DS:[ESI+0AB],AX"

  17. #67
    Join Date
    18-12-11
    Location
    Dresden
    Posts
    7,729
    vCash
    4030
    I'm looking to make a new application to simplify the process of editing player restrictions in various leagues. I'm looking for as many offsets as I can get, I've done some scanning and found the following but if anyone that has any more I'd really appreciate it.

    +5
    579c63 (England Match Rules)
    5c1a53 x
    5c1a5a x
    5e02f8 Unknown (3), Germany
    5e02ff Unknown (18) Germany
    5ed048 Unknown (5), Greece
    5ed04f Unknown (4), Greece
    6397f1 Unknown (0), Irish Presidents Cup?
    6d79ed Unknown (0), ?
    6d7adc Unknown (0), ?
    6d7ae6 Unknown (0), ?
    794753 Unknown (3), Norway
    8595a5 Unknown (4), Spain
    8595b9 Unknown (2), Spain
    8595c9 Unknown (4), Spain
    8595d1 Unknown (3), Spain
    90a731 Unknown (0), MLS All Stars


    +2
    40aa23 Unknown (4), Argentina
    412dc3 Unknown (6), Australia
    43f2c8 Unknown (2), Brazil
    6670a3 Unknown (3), Japan
    7cd973 Unknown (18), Poland
    7ec978 Unknown (3), Russia
    902203 Unknown (0), Turkey
    90222d Unknown (6), Turkey
    90ba88 Unknown (18), USA

    If anyone can confirm what any of the are I'd also appreciate it. The number in brackets is the number of players allowed.
    +5 is for non-eu restriction, +2 wasn't in the tutorial but, as a guess, I'd say it is non-region or non-continent restriction (I've only played in Australia from that list).

    I'll see if I can find some more at the weekend.

    John

  18. #68
    Join Date
    18-12-11
    Location
    Dresden
    Posts
    7,729
    vCash
    4030
    Offsets for the names of continents, should anyone wish to rename them (.dat files would also need changing):
    Africa - 0x5d9458
    Asia - 0x5d9450
    Europe - 0x5d9448
    North America - 0x5d9438
    Oceania - 0x5d9430
    South America - 0x5d9420

    Offsets are literal, add 0x400000 for Olly offsets.

  19. #69
    Join Date
    18-12-11
    Location
    Dresden
    Posts
    7,729
    vCash
    4030
    Data directory name offset: 0x9c3824.

    Not particularly important but it would allow one to run multiple databases without needing to swap data directories. With the later versions of the Tapani patch there is no requirement for the exe to be called cm0102.exe. So you could have an exe called odb.exe that reads data from a directory call odbdata, an exe called sim.exe that reads data from a directory called simdata etc. You could also have a different directory for Tapanified data, 3.9.60 data etc etc.

    There is limited space available - only 8 bytes (enough for 7 characters and the null termination).

  20. #70
    Join Date
    18-12-11
    Location
    Dresden
    Posts
    7,729
    vCash
    4030
    A huge collection of text offsets - http://www.sendspace.com/file/347me9

    The file includes a line that is pre-formatted to work with the Flex Editor along with the original value.

    There is a problem with the way Flex Editor, and my software generally, handles the endline character (ASCII value 10), as a result I have replaced it with a '$' sign. If you want to edit text with '$' signs then the only think I can suggest is to replace it with a ' ' - this would result in some news stories being squashed into one paragraph rather than being split. The endline is also used by the game on buttons where the text is over two lines - at present there is no way of keeping editing these values with the Flex Editor.

    Values wrapped with '{}' appear to be those that can be clicked in the game, e.g. club names in news items, you could remove them if you really wanted to.

    Some values will contain comments that can safely be removed to give more space, e.g. 'Club chairman <%s - Chairman Name eg Peter Johnson> is glad that you are not getting over confident about the club's chances of beating the drop this season.' - here the text ' - Chairman Name eg Peter Johnson' can be removed without impacting on the visible message.

    I have been working on a tutorial for the Flex Editor, it can be found here: http://champman0102.co.uk/forum/show...ditor+Tutorial

    Please note - the text file was auto-generated, some of the values will be critical to the game working properly, others will be linked to the names of things in the data files. Please back-up your .exe.

  21. #71
    Join Date
    18-12-11
    Location
    Dresden
    Posts
    7,729
    vCash
    4030
    0x60d780: change from MOV EAX,DWORD PTR SS:[ESP+4]
    to: JMP 0060D800 (make sure Fill rest with NOPs is ticked, this will insert two lines of NOP).

    This disables the error message displayed when a hard-coded club name has been changed; i.e. you can rename Barcelona, Manchester United etc and not get an annoying error message when the game loads.

    The official editor still won't let you make the changes so you'll have to use something like Tri Wasono's editor.

    I have just noticed that editing Barcelona's name has broken the link with Barcelona B, i.e. you can't promote / relegate player between the two. So you might want to bear that in mind before renaming a club.

  22. #72
    Join Date
    18-12-11
    Location
    Dresden
    Posts
    7,729
    vCash
    4030
    Someone has probably noticed this pattern before but if not the following offsets represent a date. In this case it is the date of the Charity Shield.

    0056D70D |. 6A 04 PUSH 4 ; |Arg9 = 4
    0056D70F |. 51 PUSH ECX ; |Arg8
    0056D710 |. 6A 01 PUSH 1 ; |Arg7 = 1
    0056D712 |. 6A 06 PUSH 6 ; |Arg6 = 6
    0056D714 |. 53 PUSH EBX ; |Arg5
    0056D715 |. 6A 07 PUSH 7 ; |Arg4 = 7
    0056D717 |. 6A 0D PUSH 0D ; |Arg3 = 0D
    0056D719 |. 53 PUSH EBX ; |Arg2
    0056D71A |. 56 PUSH ESI ; |Arg1

    Arg3 is the day of the month (0 is the 1st).
    Arg4 is the month (0 is January)
    Arg6 is day of the week (Monday is 0)
    Arg7 is the time of day (0=AM, 1=PM, 2=EVE).

    Arg6 overrides Arg3, i.e. it picks the nearest day specified (e.g. Saturday) to the date specified (e.g. 20th); so if you use Saturday and 20th but the 20th is a Thursday then the game will use the 22nd. I think I have previously seen a date that was fixed irrespective of the day of the week it was but can't remember where or how it worked.

  23. #73
    Join Date
    18-12-11
    Location
    Dresden
    Posts
    7,729
    vCash
    4030
    just started a game in croatia, so I've edited its prizes

    CROATIA

    005148AC - This is the prize for 1st div
    005148BA - This is TV money
    00515DAC - this is the prize for 1st div A
    00515DBA - This is TV money
    00516ECC - this is the prize for 1st div B
    00516EDA - This is TV money

  24. #74
    Join Date
    18-12-11
    Location
    Dresden
    Posts
    7,729
    vCash
    4030
    Note to self:

    Just copied across all posts with valuable infos in them or problems (only the ones which got solved though)

    left out the "thank you" and pasquale / probe stuff


    this obviously needs serious sorting, perhaps somebody with a slight understanding of these things can help there? i only see random numbers and letters there

  25. #75
    Join Date
    18-12-11
    Location
    Dresden
    Posts
    7,729
    vCash
    4030
    CHARITY SHIELD NORTHERN IRELAND

    0078A174 (MONTH)
    0078A176 (DAY)
    00789E5B (NUMER SUBS)


    PLAY-OFF SECOND DIVISION NORTHERN IRELAND

    0078BBD2 (MONTH)
    0078BBD4 (DAY)



    OFFSET DRAW NORTHERN IRELAND CUP:

    0078A932 (MONTH)
    0078A934 (DAY)

    DATE OF THE CUP:

    0078A934 (JANUARY - 5 TURN)
    0078A9C3 (FEBRUARY - 6 TURN)
    0078AA5C (MARCH - QUARTERS)
    0078AB03 (APRIL - SEMI-FINAL)
    0078ABE4 (MAY - FINAL)


    Date of transfer windows of Northern Ireland:

    OPEN TRANSFERT:

    007937B2 (MONTH)
    007937B6 (DAY)

    CLOSE TRANSFER:

    007937CD (MONTH)
    007937C9 (DAY)

Page 3 of 66 FirstFirst 123456713 ... 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
  •