Contents
English (United Kingdom)French (Fr)Deutsch (DE-CH-AT)
Random Thumbnail
coop001.jpg
Search
Login
Navigation
Home Descent 3 Descent 3 construction Script error: Invalid Special Parameter Warning
Most Recent
Featured Articles
Joomla 1.5 Featured Articles
Navigation
Home Descent 3 Descent 3 construction Script error: Invalid Special Parameter Warning
Who Is Online?
We have 56 guests online
English (United Kingdom)French (Fr)Deutsch (DE-CH-AT)
Script error: Invalid Special Parameter Warning E-mail
User Rating: / 3
PoorBest 
Descent 3 - Descent 3 construction
Written by Thomas   
Sunday, 15 February 2009 15:11

 

When trying to 'Save' a script in the Dallas script editor every now and then an error message like this one pops up:

Warning: Script xy references an invalid object

There are several reasons for this error message, but they are all related to each other.

The script owner is an object which does not have to be close or related to the player at the time of its execution. Sounds nasty, doesn't it? Wink

Example:

Owner is an object, event is a timer, action is to show a HUD message to the player.

When the event occurs (the timer elapses) the player object is not related to the script owner. It is not known who or what the player object is. That's why the script editor comes up with that error message.

You can overcome the issue in this example by either changing the event to something that knows the player object (like "collided" instead of "timer went off") or by displaying the HUD message to all players ("Show HUD message"). In the first case make sure that a reference exists, in the latter the reference is not required since the message is diesplayed to everyone in the game unconditionally.

 

Last Updated on Sunday, 21 March 2010 18:13
 
You need to login or register to post comments.
Discuss this item on the forums. (0 posts)
Discuss (0 posts)