Fallout 2 mod GusT. add on mini mod for FoResurrection

gustarballs1983

Vault Fossil
Modder
Hey folks Thanks to conversation with NovaRain I've managed to make a mini mod for Fallout1.5:Resurrection

edited scripts:
mcgyver.int
lystra.int
keri.int
vorech.int

special encounter McGyver now can craft infinite number of times, as long as you provide ingredients for it.
Keri, Lystra and Mutt now level up as long as you do (theoretically), but definetly can level past level 6, and do so every player level instead of every two player levels.
I'm attaching the updated scripts here for you all. have fun.




-------------INITIAL MESAGE FROM OLD THREAD TITLE-------------------------
Hey folks as in thread..


So i I started to toy around resurrection scripts, and mcgyver.ssl went on the workbench first.

I think i managed what i wanted for the edits ( that is delete the requirement of local variable check in a couple of places in order for mcgyver to craft any number of items provided dude still has materials for the crafts).

I get an error Expecting top level statement on this procedure:
procedure div(variable arg0, variable arg1);

and same error on the procedure itself:

procedure div(variable arg0, variable arg1) begin
if (0 > arg0) then begin
return -(-arg0 / arg1);
end
return arg0 / arg1;
end

this procedure was in the script to begin with, and Resurrection team compiled it somehow, so what am i doing wrong, so that this doesn't compile.

I literally decompiled the script, removed few local variable dependeancies/arguments in few lines of the code, and i'm unable to compile it agin.. any help?
 

Attachments

Last edited:
For macgyver.int, you can simply remove the "div" procedure, as it's not used in the script.

The reason of the error is the procedure's name conflicts with newer sfall's "div" opcode. Back in the days, the division operator treated negative integers as unsigned, so Resurrection devs made their own division procedure to handle negative integers.
 
Thanks.. mcgyver tackled i think, will need to test this..

Now I'm getting error with compiling keri script:
if (((global_var(1015) bwand 8388608) != 0) and ((local_var(5) bwand --2147483648) == 0) and (LVar0 <= 6)) then begin

Mismatched parenthesis.

am i seeing things or are they correct?!

ofcourse I had to delete party member near doors function and the div function, as they were causing problems as wwell in mcgyver and mutt's script..

anyways how should i proceed about compiling?
 
thanks @NovaRain

I think I managed to make my first succesfull script modification.

Now Mcgyver should craft as many items as you have ingredients.. ( though some items can still be made once a.k.a there.s only one rubber doll for combat aormor and only one cookie for alient blaster, only one mutated toe etc. the most benefit out of this is the first crafting recepie scorpio tail + lighter = Ultra Stimpack, as theese come plentiful. should be a decent help for the James Bond + cowboy aproach in the Rebirth Base.

Additionally Keri Lystra and Mutt now should level up every player level and up to lvl 98. this plus I've unlocked bonuses they all get the bonuses they'd normally get from lvl 5 and 6 only to all levels starting from level 1. Since Keri Lystra and Mutt do not gain levels the traditional way in Resurrection (a.k.a they don't switch their proto files, but instead keep the same proto and apply permanent buffs to their proto, the script change was relatively an easy tweak. If it weren't for the sfall compiler shenanigans, i might have made it myself entirely :).

Thanks agin @NovaRain ..


Anyways If anybody wants to have a go with the newly modified files, then ask, i'll try to attach the modified files to a post.
In the meantime I'll have a go and check if they acually work..

@NovaRain
Could You tell me how to go around the hardcap of 7 levels per companion NPC?
is it somwhere in the header files? i can't seem to find that in companion scripts neither Mutt's nor Lystra's nor Keri's script seem to have a cap of 7.
they all had a cap of 6 but i changed it to 98, and yet they are all stuck on level 7..
any help?
 
Last edited:
Seemes editing my previous post was to no avail so I'll ask agin..

@NovaRain

Is there any way You know of to bypass the party npc levelup limit of 7 levels?
If so then where to look in order to make a change?

EDIT:
Sorry @NovaRain
False alarm.. everything is as intended in my mod.
Initially i thought npcs are stuck at lvl 7 because they only bumped up +1 level when loading the game. i had to level up myself some more in order for them to gain levels.

regardless they level up every player level and mutt is currently leevel 8 si it's possible to bypas level 7. i suspect the new cap for them is when player hits 99th level
 
Last edited:
Back
Top