TurnTowrd function crashed UOx3.
Posted: Sat Jun 30, 2007 12:52 am
The TurnToward( obj) function crashes UOx3 when an invalid object is selected.
An easy work around is to just put an If statement infront of the function to only fire it if the target is a valid item or NPC.
It is easily repeatable. Set up a function where a GM can select a target for the TurnToward. Select a piece of dirt on the map, UOx3 will crash.
While probably not a serious issue, functions like WalkTo, TextMessage, Follow, etc, just print a waring in Uox3 that says "blah blah blah is an invalid object." or "TextMessage contains no valid <whatever>"
I have never seen Uox3 crash when a bad object type is sent to a function, so I thought I'd post this.
Keep up the good work!
An easy work around is to just put an If statement infront of the function to only fire it if the target is a valid item or NPC.
It is easily repeatable. Set up a function where a GM can select a target for the TurnToward. Select a piece of dirt on the map, UOx3 will crash.
While probably not a serious issue, functions like WalkTo, TextMessage, Follow, etc, just print a waring in Uox3 that says "blah blah blah is an invalid object." or "TextMessage contains no valid <whatever>"
I have never seen Uox3 crash when a bad object type is sent to a function, so I thought I'd post this.
Keep up the good work!