View Full Version : Help troubleshooting an object error
jasonduskey
11th Sep 2009, 05:21 AM
I've found an error with an object in my game that I added a custom BHAV to. I'm not sure exactly what it's telling me, the error report states a problem with a Material Change, but the actual BHAV doesn't call Change Materials. I'm not very good with BHAVS, but I do have the error report. Any help would be greatly appreciated. I've attached the faulty object.
The error log is attached below.
Numenor
11th Sep 2009, 06:18 PM
The BHAV *is* actually calling a Change Material.
The "Function - Main" BHAV (that is executed as soon as the object is placed in the lot) contains only one line, that calls the semiglobal "Function - Main - SG"; this last BHAV, at line 0x01, calls a Change Material over the subset "screen". Problem is, your object does not have a "screen" subset, thus the error.
You should either rename (in the GMDC) the subset "display" to "screen", or modify the "screen" line in the STR# 0x87 (Group Names) into "display".
Personally, I prefer the first solution (modifying the GMDC), because there are several Change Material over the "screen" during the "Play" interaction.
jasonduskey
12th Sep 2009, 12:24 AM
Okay. Thanks much. I can work the rest out myself.
Just to clarify, "Function- Main" is calling for the Arcade Game Globals? (So this is why it's calling for a Change Material?)
Numenor
12th Sep 2009, 02:55 AM
Yes, from the Arcade game globals; you can see which globals are called by looking at the GLOB resource (each object can have only one GLOB).
jasonduskey
12th Sep 2009, 06:32 AM
Okay. That helps a lot. Thank you.
vBulletin v3.0.14, Copyright ©2000-2013, Jelsoft Enterprises Ltd.