Graal Forums  

Go Back   Graal Forums > Development Forums > Tech Support
FAQ Members List Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 09-01-2001, 12:24 AM
BocoC BocoC is offline
Registered User
BocoC's Avatar
Join Date: Jun 2001
Location: Washington State, USA
Posts: 980
BocoC is on a distinguished road
Send a message via AIM to BocoC Send a message via Yahoo to BocoC
A Weird NPC Bug in Level Editor Mode

There is a bug in the Level Editory Mode. It deals with NPCs. In case Stefan reads this thread, I will explain everthing in detail. I made this level called mines00.graal. I finished it, and started work on mines01.graal. I wanted to use the lights from mines00.graal, so I copied the npc to mines01.graal. Then, I right-clicked the npc and made multiple copies of it and positioned them in different places in the level. I ran the level, and they blinked once and stopped working. Here is the light code:
NPC Code:

// NPC made by Boco
//#CLIENTSIDE
if (playerenters || created) {
dontblock;
drawaslight;
setcoloreffect 1,1,0,0.5;
timeout=0.1;
}
if (timeout) {
if (this.flash) {
unset this.flash;
setzoomeffect 1.25;
} else {
set this.flash;
setzoomeffect 1;
}
timeout=0.1;
}


I was perplexed, because this was an EXACT copy of the light npc's in mines00.graal, which worked perfectly. I went back and forth through the levels through the link I made, and the light npc's in mines00.graal worked, and the ones in mines01.graal didn't. Now for the confusing part. I right-clicked on of the lights in mines01.graal and created another light npc. The lights suddenly worked! Then I deleted the npc. The lights stopped working.

If anybody wants to try it out, I attached the level. Don't worry about the blank npcs. They are just little rocks that add detail.
Attached Files
File Type: zip mines01.zip (1.2 KB, 178 views)
__________________
-Boco

FLKJH$TRFG*$(&%>FMG >REN<>F ;.kjsd
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 05:11 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.