Start position in worldmap.

Discussion in 'Fallout General Modding' started by Mario_Dweller, Mar 25, 2007.

  1. Mario_Dweller

    Mario_Dweller It Wandered In From the Wastes

    153
    Apr 9, 2004
  2. Cubik2k

    Cubik2k Where'd That 6th Toe Come From?
    Modder

    465
    Nov 22, 2005
    Search my webpage, section download,
    there is wonderfull tool named:

    WORLDMAP STARTER 1.03b

    I am sure, this will be useful for you :)
     
  3. Mario_Dweller

    Mario_Dweller It Wandered In From the Wastes

    153
    Apr 9, 2004
    Very nice util :idea:... But I need to patch it in memory, because I need it to our mod (F1.5:Resurrection)... Can U reveal the offset :wink: ?
     
  4. Cubik2k

    Cubik2k Where'd That 6th Toe Come From?
    Modder

    465
    Nov 22, 2005
    I do not know how to reveal the offsets, sorry. However, you should know, that changes in "city.txt" file are needed to good work. I mean coordinates of Arroyo in city.txt. I hope, somebody will reveal the offsets.
     
  5. Mario_Dweller

    Mario_Dweller It Wandered In From the Wastes

    153
    Apr 9, 2004
    Ok. I will try to compare original and patched fallout2.exe. Thank for your util 8)
     
  6. Mario_Dweller

    Mario_Dweller It Wandered In From the Wastes

    153
    Apr 9, 2004
    Well, it gave me the same results as guys in teamX forum :?. So problem was between chair and keyboard :lol:
     
  7. Cubik2k

    Cubik2k Where'd That 6th Toe Come From?
    Modder

    465
    Nov 22, 2005
    Strange, if you use my tool then all must be ok. Do you have patch000.dat in Fallout2 folder? But I tested the tool on different versions with patch000.dat and without the patch000.dat file and all was ok.
    Remember, U must start new game.
     
  8. lisac2k

    lisac2k Vault Senior Citizen
    Modder

    Oct 26, 2004
    So, add $411a00 to the current offset values and that's it. More info.
     
  9. Mario_Dweller

    Mario_Dweller It Wandered In From the Wastes

    153
    Apr 9, 2004
    Don't worry, your util is awesome. Mayve i've just haven't switched bytes. But I understand it now.

    So I gonna make virtual starter for our mod...
     
  10. FaFaFa

    FaFaFa First time out of the vault

    2
    Mar 26, 2007
    This may help... I dont know where I downloaded it...

    Code:
    [US 1.02]
    Feature                     Memory  Fallout2.exe    Number      Original
                                Offset  File Offset     Of Bytes    Value
    
    Enable Pipboy               497011  085611          1           0x7E 
    Remove City Limit           4BF3BB  0AD9BB          1           0x24 
    Disable Movies              44E690  03CC90          1           0x89 
    Male Start Appearance       5002E8  0EE8E8          6           hmwarr 
    Female Start Appearance     5002F0  0EE8F0          6           hfprim 
    Male Default Appearance     5002D8  0EE8E0          6           hfjmps 
    Female Default Appearance   5002E0  0EE8E0          6           hfjmps 
    Starting Map                5194C8  107AC8          12          artemple.map 
    DAT Name                    5023C8  0F09C8          13          patch%03d.dat 
    Mod Name (Main Menu)        50EA18  0FD018          19          FALLOUT II %d. %02d
    Start Year                  4A336C  09196C          2           0x84A8 
    Start Month                 4A3382  091982          1           0x00 
    Start day                   4A3356  091956          1           0xF8 
    World Viewport X            10C42C  091956          2           0x0000 
    World Viewport Y            51DE30  10C430          2           0x0000 
    
     
  11. Mario_Dweller

    Mario_Dweller It Wandered In From the Wastes

    153
    Apr 9, 2004
    But I don't need to change Worldmap ViewPort. I wanna change Worldmap Highlight. Hex offsets are OK :

    Offset bytes orig. val. descr
    0AD008: 4 0хAD000000 World Highlight X
    0ACD90: 4 0хAD000000 World Highlight X
    0AD00D: 4 0х7A000000 World Highlight Y
    0ACD95: 4 0х7A000000 World Highlight Y

    Overwriting exe file works, but patching it in memory does not.

    C Example:

    /* world highlight X */ WriteProcessMemory(processInfo.hProcess, (void*)0x4BE790, "\x72", 1, &bytesWritten);
    WriteProcessMemory(processInfo.hProcess, (void*)0x41EA08, "\x72", 1, &bytesWritten);
    /* world highlight Y */ WriteProcessMemory(processInfo.hProcess, (void*)0x4BE795, "\x45", 1, &bytesWritten);
    WriteProcessMemory(processInfo.hProcess, (void*)0x4BEA0D, "\x45", 1, &bytesWritten);

    So... In this case formula (Memory_offset = File_Offset + 0x411A00) doesn't... work ? I can't find it's memory offset
    :?
     
  12. Mario_Dweller

    Mario_Dweller It Wandered In From the Wastes

    153
    Apr 9, 2004
    I found them...

    BEGTEXT:004BCC07 mov esi, 0ADh
    BEGTEXT:004BCC0C mov edi, 7Ah

    BEGTEXT:004BC98F mov esi, 0ADh
    BEGTEXT:004BC994 mov edi, 7Ah

    So, memory offsets of World Highlights are :

    X - 4BC990
    X - 4BCC08
    Y - 4BC995
    Y - 4BCC0D