Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   Tech Support (https://forums.graalonline.com/forums/forumdisplay.php?f=7)
-   -   showimg bug (https://forums.graalonline.com/forums/showthread.php?t=57238)

Evil_Trunks 01-22-2005 09:14 PM

showimg bug
 
It doesn't let you show something from before x=1024 in the same showimg as after 1024

PHP Code:

//#CLIENTSIDE
if (created) {
  
showimg 0,pics1.png,30,30;
  
changeimgpart 0,900,0,320,64;


This example cuts off at 1024 in pics1.png

Admins 01-23-2005 02:37 AM

Quote:

Originally Posted by Evil_Trunks
It doesn't let you show something from before x=1024 in the same showimg as after 1024

PHP Code:

//#CLIENTSIDE
if (created) {
  
showimg 0,pics1.png,30,30;
  
changeimgpart 0,900,0,320,64;


This example cuts off at 1024 in pics1.png

Images are not allowed to be that big, never use pics1.png for showimg because it lags majorly.
For drawing the tiles the game is only loading the pixels of the image into a buffer, so not directly transferring it into the video memory, so a size bigger than 1024 is ok, but not for images that are actually drawn on the screen.

Evil_Trunks 01-23-2005 04:37 AM

it's not drawing the whole thing

it uses changeimgpart and draws a little part of it

it's for a tile editor script

i think it's a bug

it stops drawing the image at the 1024 on the image when using changeimgpart with an initial x on the image of less than 1024

calani 01-23-2005 04:47 AM

I still think that adding the ability to draw and manipulate textured triangles would be the way to go for graal. I could finally make a decent 3d engine then, and besides, there would be some very interesting playerworlds that would come about from this addition.. and those would probably draw more players, too.

Evil_Trunks 01-23-2005 05:29 AM

just wondering, why are you posting this completely unreleated thing which has nothing to do with bugs using showimg/changeimgpart?

is it because Stefan posted in this thread?


All times are GMT +2. The time now is 04:54 AM.

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