Alas, I have not found favor among the gods of the wood. Still getting:
E: 04:22:43 - sys_chargen_h.nss - sys_chargen_h.nss(72): No right bracket on expression (while compiling bih_test.nss)
This is after replacing sys_chargen_h with a clean copy and scouring the override directories and subfolders.
I've not modified any of the core resources (that I know of), so that shouldn't be an issue.
More info:
I was incorrect when I said every script causes this error. I just compiled successfully some of my older scripts. In fact it's only the plot events scripts that do it. Here's the code:
//::///////////////////////////////////////////////
//:: Plot Events Template
//:: Copyright © 2003 Bioware Corp.
//:://////////////////////////////////////////////
/*
Plot events
*/
//:://////////////////////////////////////////////
//:: Created By: Yaron
//:: Created On: July 21st, 2006
//:://////////////////////////////////////////////
#include "log_h"
#include "utility_h"
#include "wrappers_h"
#include "plot_h"
#include "plt_escape_dgn_bih"
int StartingConditional()
{
event eParms = GetCurrentEvent(); // Contains all input parameters
int nType = GetEventType(eParms); // GET or SET call
string strPlot = GetEventString(eParms, 0); // Plot GUID
int nFlag = GetEventInteger(eParms, 1); // The bit flag # being affected
object oParty = GetEventCreator(eParms); // The owner of the plot table for this script
object oConversationOwner = GetEventObject(eParms, 0); // Owner on the conversation, if any
int nPlotType = GetEventInteger(eParms, 5);
int bIsTutorial = GetM2DAInt(TABLE_PLOT_TYPES, "IsTutorial", nPlotType);
int bIsCodex = GetM2DAInt(TABLE_PLOT_TYPES, "IsCodex", nPlotType);
int nResult = FALSE; // used to return value for DEFINED GET events
object oPC = GetHero();
plot_GlobalPlotHandler(eParms); // any global plot operations, including debug info
if(nType == EVENT_TYPE_SET_PLOT) // actions -> normal flags only
{
int nValue = GetEventInteger(eParms, 2); // On SET call, the value about to be written (on a normal
//SET that should be '1', and on a 'clear' it should be '0')
int nOldValue = GetEventInteger(eParms, 3); // On SET call, the current flag value (can be either 1 or
//0 regardless if it's a set or clear event)
// IMPORTANT: The flag value on a SET event is set only AFTER this script finishes running!
switch(nFlag)
{
case KEYS_BRUTE_FORCE: // This section is to make an non-interactive door active.
{
object oDoor = GetObjectByTag("door_cell_pc");
SetObjectInteractive(oDoor, TRUE);
}
case KEYS_PILFER: // This section is to make an non-interactive door active.
{
object oDoor = GetObjectByTag("door_cell_pc");
SetObjectInteractive(oDoor, TRUE);
}
case PICK_CELL_DOOR: // This section is to make an non-interactive door active.
{
object oDoor = GetObjectByTag("door_cell_pc");
SetObjectInteractive(oDoor, TRUE);
}
}
}
else // EVENT_TYPE_GET_PLOT -> defined conditions only
{
switch(nFlag)
{
}
}
plot_OutputDefinedFlag(eParms, nResult);
return nResult;
}
-r
Modifié par ravenlok, 08 juin 2010 - 11:40 .