Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   Showimg serverside (https://forums.graalonline.com/forums/showthread.php?t=51164)

konidias 02-17-2004 07:27 AM

Showimg serverside
 
So what's up with this? I didn't notice it ever happening before...

I thought showimg's with an index of 200 or less, were supposed to show serverside... But, they aren't?

No matter what I do, I can't get a showimg under index 200 to show serverside. (for all players)

If I try showimg serverside, nothing shows up. If I try showimg clientside, it shows up for the client, but not everyone else.

What's up?

VeX_RaT_Boy 02-17-2004 12:31 PM

I've had problems showing an animated GIF serverside. I don't know why, maybe try to turn it into MNG if it's a GIF?

R0bin 02-17-2004 03:39 PM

I didnt think showimg worked serverside, although i have heard that only pngs work serverside with showimg.

ZeLpH_MyStiK 02-17-2004 04:08 PM

Re: Showimg serverside
 
Quote:

Originally posted by konidias
So what's up with this? I didn't notice it ever happening before...

I thought showimg's with an index of 200 or less, were supposed to show serverside... But, they aren't?

No matter what I do, I can't get a showimg under index 200 to show serverside. (for all players)

If I try showimg serverside, nothing shows up. If I try showimg clientside, it shows up for the client, but not everyone else.

What's up?

Isn't the index suppose to be 50 and below, with the excluding of 0? I tried doing showtext serverside, but didn't work. Then I switched to showimg with an index of 19 and it worked fine.

konidias 02-17-2004 05:11 PM

Re: Re: Showimg serverside
 
Quote:

Originally posted by ZeLpH_MyStiK

Isn't the index suppose to be 50 and below, with the excluding of 0? I tried doing showtext serverside, but didn't work. Then I switched to showimg with an index of 19 and it worked fine.

Nah it's 200 and below, Stefan has mentioned it a lot. 200 and below is supposed to show for everyone. Maybe it's the png thing, I might have to try that, all the stuff I was using was gif.

edit: nope, don't think it has to do with being .png... still isn't working.

VeX_RaT_Boy 02-17-2004 05:51 PM

That's strange, I've always gotten showimg to work serverside with non-animated files...Test with block.png and see if the same thing happens.

TB3 02-17-2004 07:43 PM

I too have been confused by showimg's and how exactly they are shown either serverside or just clientside or clientside to all viewing (Such as ganis).
I would like how they are shown in all cases to be better verified because it is a little confusing and showimg / showtext are important factors in gameplay.

Showimg 200- and 200+ with a serverside npc
Showimg 200- and 200+ with a clientside npc
Showimg 200- and 200+ with a clientnpc inside of a gani shown by the player and shown by the npc
Could someone more close to the situation explain who see's what in everyone sees with each of these conditions?
Im pretty sure with a few but I thought I'd show most of the conditions anyways. Thanks :)

WanDaMan 02-17-2004 09:58 PM

I allways thought 200- would show for everyone to, I'm pretty sure it is 200-..

MarkB 02-17-2004 11:03 PM

Twusk knows how it goes. We had problem showing gif images serverside with showimg. When converted to PNG they work fine.

DarkShadows_Legend 02-18-2004 12:21 AM

.gif images don't work at all for me when I use it with setimg or showimg. When I search for the files in RC I get the problem file not found even if it is there in the folder.
As for images I know that 200+ shows only for the current player clientside and 199- shows for all players.

Serverside I don't know. You'll just have to test them. I do know that showimg does work serverside.

Termina_Owner 02-18-2004 02:23 AM

Clientside scripts with a showimg below 200 is shown to all players. As for a showimg on the server, I doubt that's be able to work all too well. I haven't tested it, however I wouldn't think it would be the most effective solution none-the-less.

ZeLpH_MyStiK 02-18-2004 02:31 AM

On the contrary serverside showimg does work, although showtext doesnt work for some reason. =\ I think its just the buggy npcserver...wait until tomorrow and see if it works xD

konidias 02-18-2004 04:02 AM

Okay, I've tested it all out, and here is my results:

I made an npc on a level, and made a showimg with an index under 200, serverside. This shows up for everyone. This is the only way it shows up, you can't do it clientside, you can't use an index over 200.

Next, the image had to be a png. I don't know why, but gif wasn't working, but when I turned it into png, it worked.

Finally, and most importantly. The image x,y can only be a solid value, or a half. Like 1, 1.5, 2, 2.5, 3, 3.5, 4... and so on. You can't do a serverside showimg with an x position of 1.3. It will set the image to the closest rounded off position. (1 or 1.5) So you can't really have precise x,y display.

So to sum it up, you can use showimg serverside, if you follow the below guidelines:

1. the image is png
2. the showimg is serverside (not under //#CLIENTSIDE part)
3. the image index is under 200

However there is one exception. I believe that you can use showimg under 200 clientside, if it's inside a weapon. I'm pretty sure of it, but somebody correct me if I'm mistaken.

WanDaMan 02-18-2004 10:10 PM

.PNG don't work for me, only .GIF do :p

-Ramirez- 02-19-2004 12:46 AM

Quote:

Originally posted by konidias
Finally, and most importantly. The image x,y can only be a solid value, or a half. Like 1, 1.5, 2, 2.5, 3, 3.5, 4... and so on. You can't do a serverside showimg with an x position of 1.3. It will set the image to the closest rounded off position. (1 or 1.5) So you can't really have precise x,y display.
This isn't unique to showimgs, it happens with NPC and player coordinates as well. I've griped all I can at Stefan about this... I just hope he actually makes it more accurate.

TB3 02-20-2004 07:58 AM

This is what I have found out about database npcs.

A DB NPC (Not Weapon)

//#SERVERSIDE

Showimg 200 + or 200 - / with .gif format - Doesnt show
Showimg 200+ / with .png - Doesnt show
Showimg 200- / with .png - Shows to everyone

//#CLIENTSIDE

Showimg 200+ : Shows to current player not others
Showimg 200- : Shows to current player not others

A GANI

//#SERVERSIDE

N/A Because in gani is a clientside operation

//#CLIENTSIDE

Showimg 200 + or 200 - : Shows to all players as clientside no info to server.


A WEAPON

//#SERVERSIDE
N/A

//#CLIENTSIDE
Showimg 200+ : Shows to all players
Showimg 200- : Shows to client only
These show even when vis is set to 4 lolz

Im guessing that showani's and showtexts both follow this trend too but im not verifying it this should help alot of people I hope.

It also seems that from a weapon you can only 1 showani will show to all players at a time can this be veryfied? Its whats proving correct for me I just want to make sure.

IT Also seems that you cant use a showimg in a showani through a weapon so that all players see it MY god thats alot of manipulation.

{MY PROBLEM PLZ HELP}
One thing bothers me, in a GANI SCRIPT if you use a client.string as one of the variables, such as the color of a showimg, I don't know how to read the client string from the PLAYER THAT IS DISPLAYING THE GANI and not the player SEEING the gani. Any help?
Scenario. I have 2 players one has a green apple and one a red
Player A has a red apple
Player B has a green apple
They are both using a gani attached to their current animation with a showimg for the apple . client.applecolor is set to red on player A and green on Player B. In the showimg it uses changeimgcolors to change the color of the apples to client.applecolor. The problem is Player A see's both apples as red and Player B sees both apples as green. HOW DO YOU STOP / Prevent this??

Loriel 02-20-2004 02:57 PM

Quote:

Originally posted by TB3
A WEAPON
//#SERVERSIDE
N/A

... ?
Quote:

{MY PROBLEM PLZ HELP}
One thing bothers me, in a GANI SCRIPT if you use a client.string as one of the variables, such as the color of a showimg, I don't know how to read the client string from the PLAYER THAT IS DISPLAYING THE GANI and not the player SEEING the gani. Any help?


Obviously not - you cannot just read strings from another player, that has never been possible clientside.
You will need to put the things you are interested in into the #P(i) attributes.

TB3 02-20-2004 06:59 PM

Quote:

Originally posted by Loriel
... ?
[/B]
I didn't test actionserver side with the weapons

Quote:

Originally posted by Loriel
Obviously not - you cannot just read strings from another player, that has never been possible clientside.
You will need to put the things you are interested in into the #P(i) attributes. [/B]
I figured I would have to, but can you explain how I would do that considering Im using a gani attached to the player inside of a gani? ( or is it supposed to read it the same? ) It might not be working the way im trying it ill go try again and post status

TB3 02-20-2004 07:21 PM

I found a solution!! I must tokenize #P3 then set a this.c={#t(0),#t(1)};
in order to use it as a variable, I wish I could use #I() with it but thats not possible as it reads #P3 dynamicaly so if #P3 was 343 it would try and find the string named #P3 unless there is another way.

Loriel 02-20-2004 07:26 PM

Sorry, I do not know.

TB3 02-20-2004 07:45 PM

Quote:

Originally posted by Loriel
Sorry, I do not know.
I edited post above i had to regress my scripting a bit in order to do something more complicated... Thank god i figured it out i wouldnt sleep tonight lolz

thanks for the help ;)

Kadar 02-21-2004 06:33 PM

Cant show big pics.

I tried showing light2.png and it didnt work , is that the problem?

Just use showani and put the gif in the gani, its alittle bit more work but atleast it works ..


All times are GMT +2. The time now is 09:20 PM.

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