Aller au contenu

Photo

Characters Turning Up Completely blank/black in Module


  • Veuillez vous connecter pour répondre
1 réponse à ce sujet

#1
Somatrasiel

Somatrasiel
  • Members
  • 25 messages
Hello Everyone,

I've created a new test module and I've gotten everything I want to work in my little test room (I'm new at mod building). The Character generation script works, but once I create my character and enter my module, she/he becomes a black silhouette! I have absolutely not even an inkling of how to fix this. So far, this is my ONLY script in the game;

#include "global_objects_h"

 

void main()

{

    // keep track of whether the event has been handled

    int nEventHandled = FALSE;

 

    event ev = GetCurrentEvent();

    switch(GetEventType(ev))

    {

         case EVENT_TYPE_MODULE_START:

         {

            // preloads resources needed for character generation

            PreloadCharGen();

 

            // initiates character generation

            StartCharGen(GetHero(),0);

 

            break;

         }

    }

 

    // if this event wasn't handled by this script fall through to the
core script

    if(!nEventHandled)

    {

        HandleEvent(ev, RESOURCE_SCRIPT_MODULE_CORE);

    }

}




And this is a picture of what happens in game. Strangely enough, he comes up perfectly in the character/inventory window.

http://i85.photobuck...20015341537.jpg

http://i85.photobuck...015330287-1.jpg

I would really appreciate some help. Thank you!

#2
Challseus

Challseus
  • Members
  • 1 032 messages
Did you add ambient baked lighting to your level? Regardless, you'll probably get your answer faster in the Level and Area Creation forums.