![]() |
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? |
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?
|
I didnt think showimg worked serverside, although i have heard that only pngs work serverside with showimg.
|
Re: Showimg serverside
Quote:
|
Re: Re: Showimg serverside
Quote:
edit: nope, don't think it has to do with being .png... still isn't working. |
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.
|
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 :) |
I allways thought 200- would show for everyone to, I'm pretty sure it is 200-..
|
Twusk knows how it goes. We had problem showing gif images serverside with showimg. When converted to PNG they work fine.
|
.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. |
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.
|
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
|
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. |
.PNG don't work for me, only .GIF do :p
|
Quote:
|
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?? |
Quote:
Quote:
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. |
Quote:
Quote:
|
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. |
Sorry, I do not know.
|
Quote:
thanks for the help ;) |
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.