Help compiling a script compatible with latest RPU? (error in upu.h)

banjo_oz

First time out of the vault
I've been away from Fallout 2 modding for a few years but was eager to dive in, when I hit a snag!

To re-familiarize myself with basic scripting and prepare for a proper mod idea, I made some small edits to the scripts acwarior.ssl (taken from the git of RPU v2.4.32) however when I try and compile them (using sFall script editor 4.1.6.0) I get an error that traces back to upu.h (an expected ";" in the line 17: "ndebug("UseFileSystemOverride is disabled, enabling");"). I have no idea what the issue is with that script nor how to fix it since it isn't anything to do with my own changes. Is it actually a problem with the script (and nothing to do with me) or an error caused by the changes I made to acwarior.ssl?

The only script changes I made were to this section of acwarior.ssl:
Code:
procedure map_enter_p_proc begin
   Only_Once:=0;
   set_self_team(TEAM_ARROYO);
   set_self_ai(AI_ARROYO_WARRIOR);

   /* Test spear swap for knife, by Banjo */
   if map_first_run then begin
      variable item := 0;
      item := obj_carrying_pid_obj(self_obj, PID_SPEAR);
      rm_obj_from_inven(self_obj, item);
      destroy_object(item);
      item := create_object(PID_KNIFE, 0, 0);
      add_obj_to_inven(self_obj, item);
      wield_obj_critter(self_obj, item);
   end

end
It's just a test to remove spears from any critter with this script and give them a knife instead. The script might not even work, but I did it from memory as a practice so wanted to compile it and try it out.

Any help would be greatly appreciated, as I really want to get back into messing around with Fallout 2 and scripting was something I thought I figured out ages ago, but not it has been long enough that I've forgotten what I did!

PS I used the scripts and headers from the RPU git latest release source code (https://github.com/BGforgeNet/Fallout2_Restoration_Project/releases/tag/v2.4.32), but also had to copy the sfall_headers (renamed sfall) folder from the script editor to my scripts source folder too... that was correct, right? In the scripter's settings, I am compiling to the data folder, and my headers are pointed to scripts_src\headers and scripts\headers\scripts.h respectively).
 
Back
Top