Player Resource Consortium

 

Author Topic: prc_alterations and some others not found  (Read 9015 times)

0 Members and 1 Guest are viewing this topic.

February 17, 2010, 05:14:41 AM
  • Jr. Associate
  • **
  • Posts: 50
  • Karma: +0/-0
    • View Profile

I don't find some scripts of the prc in my mod.

When i open or compile the prc_onact or the other module events scripts in my mod with prc 3.2, i don't find the include script:
#include "prc_alterations"
#include "inc_leto_prc"
#include "x2_inc_switches"
#include "prc_inc_teleport"
#include "prc_inc_leadersh"
#include "prc_inc_domain"
#include "prc_inc_shifting"
#include "true_inc_trufunc"
#include "prc_craft_inc"
#include "prc_inc_dragsham"

and all the other include of these main scripts.

An american scripter is following my problem with the Dm Crash. We have seen that the problem is in the module events scripts, cause without these scripts, the module does not have dm crash.
Now he has requested me these include scripts and i don't find them; he wants to look at them to see if the bug is in there.

Where can i find those??(they are not in my toolset, cause i've searched them in the edit script box, "all scripts" search and there is no include script; in fact when i compile the toolset tell me that it does not find the include scripts. I think it's important, can you help me?)

Thanks


February 17, 2010, 06:49:56 AM
Reply #1
  • Hero Member
  • *****
  • Posts: 1439
  • Karma: +27/-0
  • Gender: Male
    • View Profile

They are in prc_include.hak. By default this hak is not added to modules because it's not needed if you don't change the scripts (and most players don't ;) )


February 28, 2010, 06:11:56 AM
Reply #2
  • Jr. Associate
  • **
  • Posts: 50
  • Karma: +0/-0
    • View Profile

xwarren, we have to compile some scripts in my mod, that are the events module scripts.

So, using the prc compiler, it does not find the include file, do you have a solution for this?

If i add the include.hak to my mod, does it solve the problem?
« Last Edit: February 28, 2010, 06:18:31 AM by Hillyan84 »


February 28, 2010, 06:20:01 AM
Reply #3
  • Hero Member
  • *****
  • Posts: 1439
  • Karma: +27/-0
  • Gender: Male
    • View Profile

You need to extract prc_include.hak somewhere (ie c:\prc_include).

Run the compiler with '-i [path to extracted files]' switch:
Code: [Select]
nwnnsscomp.exe  -i c:\prc_include script_name.nss

Works for me :)


February 28, 2010, 06:52:14 AM
Reply #4
  • Jr. Associate
  • **
  • Posts: 50
  • Karma: +0/-0
    • View Profile

Ok, i've done this but it tells me about an error occurred. The compilation does not start
i've written

nwnnsscomp.exe -i C:\NeverwinterNights\NWN\prc_include oda_onactivateit

But it does not work...i've extracted the include file in the folder in the code
« Last Edit: February 28, 2010, 07:06:57 AM by Hillyan84 »


February 28, 2010, 08:04:29 AM
Reply #5
  • Hero Member
  • *****
  • Posts: 1439
  • Karma: +27/-0
  • Gender: Male
    • View Profile

Is oda_onactivateit in the same dir as nwnnsscomp.exe? If not you need to provide path to it.
 ie:
nwnnsscomp.exe -i C:\NeverwinterNights\NWN\prc_include c:\nwn\oda_onactivateit



February 28, 2010, 10:10:12 AM
Reply #6
  • Jr. Associate
  • **
  • Posts: 50
  • Karma: +0/-0
    • View Profile