Jump to content

problem with the script


Gixcaririxen

Recommended Posts

when compiling the following script:

//::///////////////////////////////////////////////
//:: Module Template
//:: Copyright (c) 2003 Bioware Corp.
//:://////////////////////////////////////////////
/*
   Module events
*/
//:://////////////////////////////////////////////
//:: Created By:
//:: Created On:
//:://////////////////////////////////////////////

#include "log_h"
#include "utility_h"
#include "wrappers_h"
#include "events_h"

void main()
{
   event ev = GetCurrentEvent();
   int nEventType = GetEventType(ev);
   string sDebug;
   object oPC = GetHero();
   object oParty = GetParty(oPC);
   int nEventHandled = FALSE;

   switch(nEventType)
   {
       ////////////////////////////////////////////////////////////////////////
       // Sent by: The engine
       // When: The module starts. This can happen only once for a single
       //       game instance.
       ////////////////////////////////////////////////////////////////////////
       case EVENT_TYPE_MODULE_START:
       {
           object oMapId = GetObjectByTag("hut_exterior");
           WR_SetWorldMapPrimary(oMapId);

           PreloadCharGen();
           StartCharGen(GetHero(),0);
           break;
       }
       ////////////////////////////////////////////////////////////////////////
       // Sent by: The engine
       // When: The module loads from a save game. This event can fire more than
       //       once for a single module or game instance.
       ////////////////////////////////////////////////////////////////////////
       case EVENT_TYPE_MODULE_LOAD:
       {
           break;
       }
   ////////////////////////////////////////////////////////////////////////
       // Sent by: The engine
       // When: A player enters the module
       ////////////////////////////////////////////////////////////////////////
       case EVENT_TYPE_ENTER:
       {
           object oCreature = GetEventCreator(ev);

           break;
       }
   ////////////////////////////////////////////////////////////////////////
       // Sent by: The engine
       // When: the player clicks on a destination in the world map
       ////////////////////////////////////////////////////////////////////////
       case EVENT_TYPE_WORLD_MAP_USED:
       {
           int nFrom = GetEventInteger(ev, 0); // travel start location
           int nTo = GetEventInteger(ev, 1); // travel target location
           break;
       }
   }
   if (!nEventHandled)
   {
       HandleEvent(ev, RESOURCE_SCRIPT_MODULE_CORE);
   }
}

I get this message: demo_module1.nss Unable to get resource information for the "log_h" of type "nss"

What does it mean?

Edited by ghershan
Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...