Fallout 2 with RP 2.3.3 : I can't extract a brain from a companion

Discussion in 'Fallout General Modding' started by Nerevar, Oct 28, 2014.

  1. MIB88

    MIB88 Sonny, I Watched the Vault Bein' Built!
    Modder

    Feb 22, 2005
    Funny that you mention this: Before I posted the above comment, I had in there a line about being shot with a minigun at point blank range and surviving! But, I removed it because I only wanted to mention the aspect of scientific realism. Great minds and all that, right? :wink:
     
  2. CPL

    CPL Still Mildly Glowing
    Modder

    Mar 16, 2013
    Also, don't forget wandering around in a desert without any water or protective clothing, too. :razz:
     
  3. Endocore

    Endocore Look, Ma! Two Heads!
    Modder

    Mar 14, 2010
    [HR][/HR]


    Congratulations and thanks to Nerevar for finding this problem. I never use the extractor, and had no idea this script was such a disaster area. killap made some fixes to allow consideration of security bots in the past, but it's still a mess. In addition to the problem Nerevar found about not getting a brain, there were a number of other serious problems in wsterm4b.int:

    --Dex, Kitsune, and Cat Jules were not included in the functionality at all.
    --Goris could be killed in the extractor, but no organs could be extracted from him.
    --If the extractor was used on someone previously, using the extractor again would re-assess an additional karma penalty for corpses already in the chamber. Also, only the presence of the "no brain given" bug prevented the expression of another blatant bug allowing the extraction of multiple brains from already brainless corpses.
    --The extractor was not even attempting to check if the species setting (lvar 1) matched the victim in the chamber.
    -- The extractor would always extract a brain regardless of the organ selection setting (lvar 0).
    --The extractor clearly states 'Canine' is a valid species category, but would not extract organs from any dogs.
    --The extractor would attempt to extract all sorts of organs from robots, who have no none.
    --Result reporting was unhelpfully vague even in cases where the report matched the result (which was often not the case).

    There were a few other issues, but as I write this I've already forgotten what they were.

    In any case, here's a much more rigorous version with all bugs fixed as far as I can tell, that others may find useful either for standard play or as a base for further modding. I made a few judgement calls-- Goris, dogs, and Lenny give "abnormal" brains since their physiology is different (in the case of Lenny, his brain is irradiated and rotten). Marcus gives a human brain. No brain can be extracted from any variant of Robobrain, because Robobrain is already a jury-rigged contraption and further tampering might cause him to collapse in a pile of bolts, and also because the procedure for removing an animal brain would not be valid ("Step 1: Cut open the skull... oh wait, there is no skull! I don't have a procedure for using a screwdriver, either!").

    Finally, for truly vicious rat-bastards it is not possible to kill someone in the chamber (either in combat, or by extracting an organ) and then go back later to extract the brain (or additional organs) from their corpse. We can presume the tissue deteriorated due to blood/oxygen loss or the brain was violently damaged while extracting a different organ, but the practical reason is that this sort of functionality would require a significant re-design of the script and the addition of new map variables to the map to track how each individual died; all that work is just plain silly in order to cater to such obscure functionality. If Fallout had functionality like Jagged Alliance where you could drag the corpse of a fallen comrade into the chamber such an addition would be worthwhile, but it doesn't so it's not.


    Files available here: wsterm4b for killap's FO2 Restoration Project (version 3 or greater).

    The zip includes four files:
    --wsterm4b.int (put this script file in your folder Fallout2\data\scripts, overwriting whatever is already there.)

    --wsterm4b.msg (put this dialogue file in your folder Fallout2\data\text\english\dialog, overwriting whatever is already there.)

    --wsterm4b.ssl (my updated script, decompiled in Noid's/Ruby format, if you'd like to examine it. This file is not necessary to play the game. Those interested in learning scripting might profit from comparing this file to the decompiled original version that Nerevar posted earlier in this discussion.)

    --readthis.txt (RTFM, as always; not needed to play the game)

    The script should work fine with any existing saved game you have, even if your character is already standing next to the Brain Extractor and has previously used the extractor.

    Offhand, I can't think of any reason this script would not also work perfectly with killap's UP, previous versions of the RP, or Fallout 1.02d, but since I don't have installations of any of those to check I can't say with certainty. MIB88 uses a different process in his Megamod for this script (doesn't kill security bots, party members mustn't be 'waiting' perhaps because it's daft to take a nap in the extraction chamber), so don't use this on that.

    I tested a number of variant circumstances, but if anyone finds additional bugs in the script please post them here and I will fix them.

    Enjoy.




    [HR][/HR]
     
    • [Like] [Like] x 3
  4. J_Fred

    J_Fred Long time lurker

    Dec 22, 2013
    Nice!

    Is there anyway to get Killap's security bot script? Or is that lost?
     
  5. Endocore

    Endocore Look, Ma! Two Heads!
    Modder

    Mar 14, 2010
    It's already included in the version I posted.
     
  6. Nerevar

    Nerevar First time out of the vault

    Oct 28, 2014
    Thanks, Endocore. Good work for your corrected wsterm4b script.
     
  7. J_Fred

    J_Fred Long time lurker

    Dec 22, 2013
    Holy shit. So do I need anything more than the file you posted, or does this just effectively turn Skynet into a security/sentry bot?

    Thanks!
     
  8. Endocore

    Endocore Look, Ma! Two Heads!
    Modder

    Mar 14, 2010
    Sorry, I misunderstood you, J_Fred. This script is just for the brain extractor; in addition to all the fixes I noted it allows the Chosen One to kill security bots by luring them into the chamber (killap's idea). You're talking about allowing Robobrain as a party member with a security bot chassis. That's not too hard to do (it's already in the Megamod), but that would involve wcbrnbot.int rather than wsterm4b.int. One can't just use the Megamod script with the RP, though; in addiition to local and global variable differences and the robot activation terminal script, one would also have to put a security bot avatar on the Depot level three map. It's a little rough though, due to the security bot special weapon restrictions the Chosen One can't trade with him, and to reload his weapons you have to "use" ammo on him.
     
  9. J_Fred

    J_Fred Long time lurker

    Dec 22, 2013
    Yeah, I almost downloaded the MegaMod just for the Skynet/Security bot mod.

    I got excited when you said this script did just that. haha.
     
  10. Kyojinmaru

    Kyojinmaru Anti-FEV Agent

    Jul 7, 2011
    @Endocore

    Your fix works with Unofficial Patch? I might update my master.dat if so.
     
    Last edited by a moderator: Jan 9, 2016
  11. Endocore

    Endocore Look, Ma! Two Heads!
    Modder

    Mar 14, 2010
    It should work fine, Kyojinmaru, but I didn't test it (I don't have any Unofficial Patch installations at this time to experiment).

    In most cases updating master.dat to reflect changed files is a bad idea, though; it's not necessary, and in many cases you're eliminating an important source of backup material if you have problems and need to restore files to their original state one day.
     
  12. Kyojinmaru

    Kyojinmaru Anti-FEV Agent

    Jul 7, 2011
    I prefer it that way. I understand what you say, but I'm no noob in game modding, so I think is more practical and better that way. If i want the original master files, I can install my gog.com versions any time.

    This is a list of what I have in my game versions:

    FALLOUT Version 1.3.5:
    -----------------------
    • Updated dat files
    · TeamX Patch 1.2
    · TeamX Patch 1.2.1
    · TeamX Patch 1.3.5
    · NPC Mod 3.5
    · NPC Mod Fix
    · Restoration Mod 1.0b1
    · Nimrod Dialog Fixes
    · Lenore Script Fix
    · Lou Animations Offset Fix
    · Original Childkiller reputation art
    • Updated exe file
    · Updated game version and date
    · New icon
    • GOG ddraw

    FALLOUT 2 Version 1.02.31:
    ---------------------------
    • Updated dat files
    · Unofficial Patch 1.02.21
    · Original Childkiller reputation art
    • Updated exe file
    · Updated game version and date
    · New icon
    • GOG ddraw

    The games work like a charm, and after playing this, its impossible to go back to vanilla versions.

    If someone is curious to try, send me a PM.