Aller au contenu

Photo

Toolset freezes when compiling script


1 réponse à ce sujet

#1
none0421

none0421
  • Members
  • 10 messages
Hi, all
I am new to this DAO toolset.
With you guys' experience, how long does it take to compile a script?
Last couple days, I was following the tutorial on http://dragonagemodd...player-an-item/

Here's the script I used:

#include "utility_h"
#include "wrappers_h"
#include "events_h"
void main()
{
    event ev   = GetCurrentEvent();
    int nEvent = GetEventType(ev);
    Log_Events("", ev);
    switch (nEvent)
    {
        case EVENT_TYPE_MODULE_LOAD:
        {
            // get the object which contains the player
            object oPlayer = GetHero();

            object oBow = GetObjectByTag("gen_im_wep_mel_dag_ros");
            if (!IsObjectValid(oBow))
                UT_AddItemToInventory(R"gen_im_wep_mel_dag_ros.uti",1);
            break;
        }
        default:
        {
            break;
        }
    }
}

Yet, when I clicked complie, the whole toolset was forzen and not responding for hours.
Has any one encounter this situation before?

Thanks in advance.

Modifié par none0421, 18 mars 2010 - 11:21 .


#2
DavidSims

DavidSims
  • BioWare Employees
  • 196 messages
It's not a problem of the contents of the script, as that compiles fine for me. Have you changed any of the include files? Or closed the toolset and tried compiling again?