New tools for Fallout 1/2

Discussion in 'Fallout General Modding' started by Cubik2k, Aug 11, 2011.

  1. Korney San

    Korney San First time out of the vault

    2
    Jan 29, 2014
    I see that all skills calculation for Fallout creatures are made as for Fallout 2.
    I'm almost build my own pro viewer tool, so I just show you a piece of code here.
    Code:
    //IT = IN
    procedure CalculateSkills(const SPECIAL: TSPECIAL; var Skills: TSkills; Game: Integer = gmFallout);
    begin
     with Skills, SPECIAL do
      begin
       case Game of
        gmFallout2:
         begin
          SmallGuns:= 5 + 4*AG;
          BigGuns:= 2*AG;
          EnergyWeapons:= 2*AG;
          Melee:= 20 + 2*(AG + ST);
          Throwing:= 4*AG;
          FirstAid:= 2*(PE + IT);
          Doctor:= PE + IT - 5;
          Speech:= 5*CH - 10;
          Barter:= 4*CH - 10;
          Gambling:= 5*LK - 10;
          Outdoorsman:= 2*(EN + IT) - 10;
         end;
        else
         begin
          SmallGuns:= 35 + AG;
          BigGuns:= 10 + AG;
          EnergyWeapons:= 10 + AG;
          Melee:= 55 + (AG + ST) div 2;
          Throwing:= 40 + AG;
          FirstAid:= 30 + (PE + IT) div 2;
          Doctor:= 15 + (PE + IT) div 2;
          Speech:= 25 + 2*CH;
          Barter:= 20 + 2*CH;
          Gambling:= 20 + 3*LK;
          Outdoorsman:= 5 + (EN + IT) div 2;
         end;
       end;
       Unarmed:= 30 + 2*(AG + ST);
       Sneak:= 25 + AG;
       Lockpick:= 20 + (PE + AG) div 2;
       Steal:= 20 + AG;
       Traps:= 20 + (PE + AG) div 2;
       Science:= 25 + 2*IT;
       Repair:= 20 + IT;
      end;
    end;
    
    And I think that Speech, Barter, Gambling and Outdoorsman in Fallout 2 was negated by 10 in 1.02d patch (comparing to 1.02), because I can get negative numbers in them with low CH, LK, EN or IN, especially with Gifted trait.
     
    • [Like] [Like] x 1
  2. Cubik2k

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

    489
    Nov 22, 2005
    @Korney, thanks for tip, I send you PM.
     
  3. Blacksun

    Blacksun First time out of the vault

    29
    Apr 20, 2013
    hi, i am using a german version of Fallout 2 and your F2wedit 1.4.8.25 shows after proper selection of folders: Can not unpack file "stat.msg" from FO2 master.dat
    any solutions to this?

    Fallout 1/2 Critters Editor v.1.2.3.7 works perfect!
     
  4. J_Fred

    J_Fred Long time lurker

    286
    Dec 22, 2013
    double post, my apologies.
     
    Last edited: Jul 7, 2014
  5. J_Fred

    J_Fred Long time lurker

    286
    Dec 22, 2013
     
  6. phobos2077

    phobos2077 Mildly Dipped
    Modder

    596
    Apr 24, 2010
    I personally use critter editor like this:
    1) create separate folder for editor, with file structure from the archive
    2) make a full set of actual critter PRO files (unpack DATA\PROTO\CRITTERS folder from Master.dat + copy all PRO files from actual folder over it, with all RP or other mods changes) and copy them to appropriate folder inside Critter Editor folder
    3) Run the tool, it loads nicely because it has full set of PRO files. Edit anything you want.
    4) Open CRITTERS folder inside Critter Editor folder, sort files by date, copy files that you actually changed to your game/mod directory
    5) Test changes in-game.

    Not the easiest way but I have full control over what changes goes to my mod/game.
     
  7. J_Fred

    J_Fred Long time lurker

    286
    Dec 22, 2013
    Brilliant. Thank you.

    One issue I have is that I cannot scroll right to see and/or modify the other skills (small guns, unarmed, etc...). Is this an issue that can also be fixed?
     
  8. Cubik2k

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

    489
    Nov 22, 2005
    There is new F2wedit 1.4.8.27, supported German version of Fallout 2. Read first post.
     
  9. Blacksun

    Blacksun First time out of the vault

    29
    Apr 20, 2013
    Perfect! thank you very much, Cubik2k!
     
  10. Blacksun

    Blacksun First time out of the vault

    29
    Apr 20, 2013
    sorry, bad news! if i try to extract PRO files from DAT and choose just one category, extraction begins, but after a while the message "file not found" pop up and the editor stops working. tried serveral times, all the same. :-(
    the editor extracted some files, but i don't know, if that are all files of the category.
    if i select "all files", it work flawless!
     
  11. Cubik2k

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

    489
    Nov 22, 2005
    Sorry, I can't reproduce this problem, I tried with German and English version of Fallout 2 and all is working good... I had no problem with extracting both one-category items and all items from master.dat.
     
  12. Blacksun

    Blacksun First time out of the vault

    29
    Apr 20, 2013
    at least "extract all" works. thank you very much for your great tools!
     
  13. phobos2077

    phobos2077 Mildly Dipped
    Modder

    596
    Apr 24, 2010
    There is a bug and it is still reproduced in 1.4.8.27: power pid, type and number of charges doesn't get saved for misc items.
     
  14. Ghoul [BB]

    Ghoul [BB] First time out of the vault

    44
    Aug 3, 2014
    Cubik2k could you add a possibility to your f2wedit to load custom ammo types into weapon clip? (now I have to edit weapon .pro manually with hex-editor to add new ammo type into weapon)
     
  15. phobos2077

    phobos2077 Mildly Dipped
    Modder

    596
    Apr 24, 2010
    There IS such possibility. Are you trying to add new ammo caliber? In that case you need to write it's name in proto.msg, after that it will show up in f2wedit.
     
  16. Cubik2k

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

    489
    Nov 22, 2005
    Next version F2wedit 1.4.9.28. Fixed bug for MISC items, thanks Phobos2077 for reporting :)
     
    • [Like] [Like] x 1
  17. Ghoul [BB]

    Ghoul [BB] First time out of the vault

    44
    Aug 3, 2014
    Sure, sure. I know this. The modifyed proto.msg already in f2wedit folder, ewerything goes fine - I can add NEW CALIBER type to the weapon. BUT i can not add DEFAULT ammo of new type to the weapon. Also I edited f2wedit.ini and added new ammo there, but every time i started f2wedit, all settings changed to defaults in this ini file.
     
  18. Cubik2k

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

    489
    Nov 22, 2005
    Write (add) new type of caliber in proto.msg (for example 5.45mm), then make new prototype of your new ammo in F2wedit (File->New->Ammo), set proper caliber (your new 5.45mm) for this new ammo prototype.
    From now you should have new position in Default Ammo list in WEAPON tabsheet.
     
  19. Ghoul [BB]

    Ghoul [BB] First time out of the vault

    44
    Aug 3, 2014
    Ok, thanks. This should work!
    But what to do, if I already have new ammo types? How to register them?
     
  20. Cubik2k

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

    489
    Nov 22, 2005
    If you have registered new ammo type in proto.msg, then next step is make new ammo prototype (File>New>Ammo), and set Caliber Type in this new ammo prototype. Ammo will be registered, and available in WEAPON tabsheet.
    If you have already made ammo prototype with new Caliber Type, just re-edit it (button DONE should be pressed). Ammo will be registered in this way and available for Weapon's Default ammo.