Jump to content

Home

Trouble running script in SP Game


Obsidian-Jovani

Recommended Posts

Posted

What i am trying to do is run a script when the player enters a trigger and presses the "USE" button.

 

First off I made my script and compiled it in BehavEd. In Radiant I created a trigger_multiple and a target_scriptrunner. Then I connected the two by first selecting the trigger then the target and CTRL+K. Here are the properties involved:

 

trigger_multiple

-->key:target

-->value:t2

-->USE_BUTTON is checked

 

target_scriptrunner

-->key: targetname

-->value: t2

 

-->key: Usescript

-->value: resurgence/sithtext

 

Then I saved the map and compiled it. When I get into the game and use the "USE" button I get the following error: "could not open file 'scripts/resurgence/sithtext.ibi'"

 

Am I doing something wrong here or what?

Posted

Well I figured this one out on my own. The only thing wrong was the way BehavEd saved the script. After the compile the script was saved as .ibi.IBI instead of .IBI

 

Why this happens in BehavEd I have no idea. Does anyone no how I can fix this?

Posted

you should try the mapping forum...but this seems to mean that your script does not exist or is in the wrong directory.

 

edit: nevermind, you posted a minute before i responded... uh, i dunno.

Posted

You have an ibi.IBI because you tried to save the working document as an IBI and not a TXT. Your working script should be in plain ASCII text, such as myscript.txt. Compile converts it to IBI.

 

If that doesn't fix it, rename the file.

Posted

Ah ha. Thank you. I realize my error.

 

The first time I used BehavEd and saved the script I tried saving it as a .ibi

 

But it saved it as an .ibi.txt file.

 

I have now remedied the situation. Thanks for the help.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...