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-10-2002, 10:12 PM
Loriel Loriel is offline
Somewhat rusty
Loriel's Avatar
Join Date: Mar 2001
Posts: 5,059
Loriel is a name known to allLoriel is a name known to allLoriel is a name known to allLoriel is a name known to all
showimg2

The showimg2 command allows NPCs to display an image in "3d space", using an x, y and z coordinate. But there is a big flaw with it - the Z coordinate is not sent to other players (at least when used in weapons).
To test it:
//#CLIENTSIDE
if (playerchats && strequals(#c,show bug)) {
showimg 0,@X,30,30;
showimg2 0,@X,30,30,5;
}
You will see 2 Xs: one on 30/30, and one above it.
But every other player will only see one, because they are displayed on the same position.
Reply With Quote
  #2  
Old 09-11-2002, 11:20 PM
emortylone emortylone is offline
Registered User
Join Date: Apr 2002
Location: Control-NPC
Posts: 834
emortylone is on a distinguished road
That ish bad =/ But you should use two different indexes, perhaps that is where your problem lies?
---Shifter
__________________
Quote:
*Stefan: it seems sometimes they hire newbie scripters everywhere x-x
*Stefan: scripters are sometimes like people that draw paintings
*Stefan: all that counts is that it looks nice
Reply With Quote
  #3  
Old 09-11-2002, 11:42 PM
Loriel Loriel is offline
Somewhat rusty
Loriel's Avatar
Join Date: Mar 2001
Posts: 5,059
Loriel is a name known to allLoriel is a name known to allLoriel is a name known to allLoriel is a name known to all
Eek, of course I used two different indexes. Just not when "scripting" that little example.
Reply With Quote
  #4  
Old 10-04-2002, 12:57 AM
Psycho_Goldfish42 Psycho_Goldfish42 is offline
Registered User
Join Date: Sep 2002
Posts: 24
Psycho_Goldfish42 is on a distinguished road
showimg2

The problem could always be that "showimg2" doesn't work the same as "showimg", as do you know if anything below 200 is a thing everyone can see, or is that a command difference? Maybe a programming problem caused above 200 to be everyone-visible? I don't know, but experiment with the Z position aswell as image IDs.
Reply With Quote
  #5  
Old 10-05-2002, 09:16 PM
R0b1n-NPC R0b1n-NPC is offline
Registered User
Join Date: Sep 2002
Posts: 397
R0b1n-NPC is on a distinguished road
How did they do it on 2k2 then? i can see other peoples footsteps
__________________
- R0bin
Reply With Quote
  #6  
Old 10-05-2002, 11:22 PM
Loriel Loriel is offline
Somewhat rusty
Loriel's Avatar
Join Date: Mar 2001
Posts: 5,059
Loriel is a name known to allLoriel is a name known to allLoriel is a name known to allLoriel is a name known to all
Psycho_Goldfish42: If I use showimg2 two times, it is always displayed to other players. Just the Z-thing does not work.
Robin: As far as I know, every client showimgs those footsteps locally. showimg2 does not work on gmaps at all...
Reply With Quote
  #7  
Old 10-06-2002, 04:06 AM
R0b1n-NPC R0b1n-NPC is offline
Registered User
Join Date: Sep 2002
Posts: 397
R0b1n-NPC is on a distinguished road
Works fine for me:

NPC Code:

NPC Code:

// NPC made by R0bin
if (created||timeout) {
showcharacter;
dir=1;
sprite=25;
for (f=29;f>-1;f-=1) {
hideimg f;
sleep 0.05;
}
sleep 0.5;
sprite=15;
shootlight();
timeout=0.5;
}
function shootlight() {
for (f=0;f<30;f+=1) {
this.x=x-f;
this.y=y+2.5;
this.z=getz(this.x,this.y);
showimg2 f,light4.png,this.x-4,this.y-4,this.z;
changeimgzoom f,0.75;
changeimgcolors f,1,1,1,0.99;
sleep 0.05;
}
}



__________________
- R0bin
Reply With Quote
  #8  
Old 10-06-2002, 05:53 AM
CheeToS2 CheeToS2 is offline
That Guy
CheeToS2's Avatar
Join Date: Dec 2001
Location: Seattle, WA
Posts: 2,528
CheeToS2 will become famous soon enough
Send a message via AIM to CheeToS2
Quote:
Originally posted by R0b1n-NPC
Works fine for me:

NPC Code:

NPC Code:

// NPC made by R0bin
if (created||timeout) {
showcharacter;
dir=1;
sprite=25;
for (f=29;f>-1;f-=1) {
hideimg f;
sleep 0.05;
}
sleep 0.5;
sprite=15;
shootlight();
timeout=0.5;
}
function shootlight() {
for (f=0;f<30;f+=1) {
this.x=x-f;
this.y=y+2.5;
this.z=getz(this.x,this.y);
showimg2 f,light4.png,this.x-4,this.y-4,this.z;


NPC Code:
NPC Code:
showimg f+30,light4.png,this.x-4,this.y-4;
changeimgzoom f,0.75;
changeimgcolors f,1,1,1,0.99;
sleep 0.05;
}
}



Your script isn't proving anything if you're only using showimg2. Loriel means if you use showimg2, other players see the z value as 0, instead of whatever you set it at.
__________________

Reply With Quote
  #9  
Old 10-06-2002, 08:10 AM
R0b1n-NPC R0b1n-NPC is offline
Registered User
Join Date: Sep 2002
Posts: 397
R0b1n-NPC is on a distinguished road
Well its proof that showimg2 works on gmaps isnt it?
__________________
- R0bin
Reply With Quote
  #10  
Old 10-06-2002, 08:45 AM
Loriel Loriel is offline
Somewhat rusty
Loriel's Avatar
Join Date: Mar 2001
Posts: 5,059
Loriel is a name known to allLoriel is a name known to allLoriel is a name known to allLoriel is a name known to all
I wasn't clear enough x.x
Stefan and me run around on a gmap and did not see each other's showimg. So I mean, those are not sent to other players on gmaps at all, not just missing the z information.
Reply With Quote
  #11  
Old 10-06-2002, 09:18 PM
Com013 Com013 is offline
Registered User
Join Date: Aug 2002
Location: GMT+1
Posts: 381
Com013 is on a distinguished road
Re: showimg2

Quote:
Originally posted by Loriel
But every other player will only see one, because they are displayed on the same position.
Are you sure they are displayed on the same position? Maybe it is just one image. The showimg2 image was maybe not displayed at all.
__________________
Com013
Former Admin of the LAT on Graal The Adventure

e-mail: [email protected]
Reply With Quote
  #12  
Old 10-06-2002, 10:29 PM
Loriel Loriel is offline
Somewhat rusty
Loriel's Avatar
Join Date: Mar 2001
Posts: 5,059
Loriel is a name known to allLoriel is a name known to allLoriel is a name known to allLoriel is a name known to all
I start to realize I used a very bad example.
Yes, Com, I am sure it is showimg both images.
Reply With Quote
  #13  
Old 10-22-2002, 03:01 PM
user13-xo user13-xo is offline
Registered User
Join Date: Nov 2001
Location: California
Posts: 297
user13-xo is on a distinguished road
Send a message via AIM to user13-xo
Quote:
Originally posted by Loriel
I wasn't clear enough x.x
Stefan and me run around on a gmap and did not see each other's showimg. So I mean, those are not sent to other players on gmaps at all, not just missing the z information.
I noticed this about um i think 2 months ago
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 02:29 PM.


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