Aller au contenu

Photo

Simple Question: Importing characters into a custom module


  • Veuillez vous connecter pour répondre
4 réponses à ce sujet

#1
JWatkins2

JWatkins2
  • Members
  • 3 messages
I'm trying to create a custom module so I can play with custom items made in the toolset. I would like to be able to import an existing character when  I load the module. The only thread I can find that is realevent is this: social.bioware.com/unofficial%20http:/social.bioware.com/forum/Dragon-Age-Toolset/Toolset-General-Discussion/Importing-DAO-Characters-into-your-Modules-2926098-1.html

However when I try to follow the directions in that thread I get the following errors:

E: 11:31:08 - zjw_module_core.nss - zjw_module_core.nss(42): Undefined identifier (Sys_Storage_Load)
E: 11:31:10 - Could not get script resource information.

So could someone please point out what I am doing wrong? And on a related note is there a single site out there that covers most of the basics of using the toolset that will answer questions like this for me?

#2
Sunjammer

Sunjammer
  • Members
  • 926 messages
I've searched every script in the toolset and can't find any reference to Sys_Storage_Load (or variations thereof). This leads me to conclude this is something specific to mikemike37's project. I would suggest simply removing that line and recompiling.

#3
JWatkins2

JWatkins2
  • Members
  • 3 messages
Thanks for the reply. I guess I forgot to mention that I did try that in my OP. When I load the module I just get the generic testing character, no character generation options at all, which makes me think the script isn't running properly (or at all). Here is the relevent section of my script:

case EVENT_TYPE_MODULE_START:
{
object oHero = GetHero();
// preloads resources needed for character generation
PreloadCharGen();
// initiates character generation
StartCharGen(oHero,0, TRUE);
break;
}

The rest of the script is identical to the Custom Module Events template. Does the "E: Could not get script resource information." error mean that the script is not compiling? I still get that error after removing the Sys_Storage_Load line.

Also I have the script set as the module script under manage modules, which is what I am supposed to do right?

Apollogies for the newbish questions, my programing experience only extends to a moderate proffciency with Python, so I am probably in over my head trying to play with this stuff.

#4
FergusM

FergusM
  • Members
  • 460 messages
I've used that exact code myself, and yes the Sys_Storage_Load seems out of place. The error you're getting is certainly a peculiar one; that is not normally how a compilation error is indicated.



I would recommend perhaps creating a new script and using that as your module script, maybe something about the current one has been corrupted in the database?

#5
JWatkins2

JWatkins2
  • Members
  • 3 messages
well, re creating the script seems to have worked... I still don't understand what was wrong in the first place though. Thanks for the help.