Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   Graal V4 Main Forum (https://forums.graalonline.com/forums/forumdisplay.php?f=143)
-   -   bitmaps (https://forums.graalonline.com/forums/showthread.php?t=69934)

ryu_no_bishie 11-08-2006 01:44 AM

bitmaps
 
players can load and set bodies, and players can upload boddies,
what i want to know, is there a way a player can draw a body and use it as an item, as a seamless part of the game? the body would have to exist as a bitmap file(for ganis) so it would need to also be saved as a file

kinetaro 11-09-2006 01:50 AM

Can you clarify what you mean? Your post looks kind of rushed. however these are the two possible meanings I assume you are talking about.
A.) Accessing an image without it being uploaded on the server.
which would be done like this.

NPC Code:
 with (findimg(###)) { this.image = "http://www.website.com/image.type"; }



B.) Drawing an image in graal and then exporting it out as a file type.
I dont really think that is possible but who knows.

kinetaro 11-09-2006 01:58 AM

I realise I shouldnt double post but I wanted to split this message up from the other one.

For those who remember my *** Bar on era the script I made for displaying images from websites was this.

NPC Code:

function onPlayerChats()
{
temp.tok = player.chat.tokenize();
if (temp.tok[0] == ";webimage")
{
serverr.kinetaro = temp.tok[1];
}
}
//#CLIENTSIDE
function onPlayerenters()
{
with (findimg(200)) { this.image = serverr.kinetaro; }
setTimer(0.5);
}
function onTimeout()
{
with (findimg(200)) { this.image = serverr.kinetaro; }
setTimer(0.5);
}


ryu_no_bishie 11-09-2006 03:16 AM

its basicaly the latter, i thought it would be jawsome to have outfits be created with items!

hmm, there might be one way however, in PNGs you can set the prop of the bitmaps color to another color, what if you simply made each part a different color pixel 1 pixel 2 pixel 3 etc, and this would work for a majority of premade outfits as well as entirely new ones. would this be possible, or is graal limited to the 5 colors that you can commonly change on most servers?

zokemon 11-09-2006 04:51 AM

Unless you can script some file conversion thing on Graal (like converting a pixal location format to a .png or .gif format), you arn't going to be able to export any graphics work in Graal. This is why I give only the graphics staff rc on Maloria (Since ganis, scripts and levels can be edited in-game and be controled via in-game editor scripts)

kinetaro 11-10-2006 04:12 PM

Yeah thats why I said I dont think its possible, you may be able to create a "drawing" script, but you wouldnt be able to export it, and the quality would be absolutely horrible. This script would also lag graal quite a bit.

KuJi 11-11-2006 12:31 AM

Quote:

Originally Posted by kinetaro (Post 1241007)
I realise I shouldnt double post but I wanted to split this message up from the other one.

For those who remember my *** Bar on era the script I made for displaying images from websites was this.

PHP TAGS PLEASE KTHX

zokemon 11-20-2006 11:12 AM

Quote:

Originally Posted by kinetaro (Post 1241564)
Yeah thats why I said I dont think its possible, you may be able to create a "drawing" script, but you wouldnt be able to export it, and the quality would be absolutely horrible. This script would also lag graal quite a bit.

That is an understatement :asleep:

Admins 11-20-2006 10:20 PM

I am not sure what you want to do, but there are following things implemented:

- drawing panels can be saved (next Graal release)
- you can only draw images into drawing panels, so no lines or similar
- files can be uploaded to the server via graal script (you need RC folder rights though)
- files can be downloaded from websites

zokemon 11-21-2006 12:24 AM

Quote:

Originally Posted by Stefan (Post 1245289)
- drawing panels can be saved (next Graal release)

SWEET! That just made my day.

Quote:

Originally Posted by Stefan (Post 1245289)
- you can only draw images into drawing panels, so no lines or similar

You could essentially just draw pixals of an image which could sorta do "lines" and such. Would be horribly ugly though :(

Quote:

Originally Posted by Stefan (Post 1245289)
- files can be uploaded to the server via graal script (you need RC folder rights though)

Or you could make it in the next version that savelines()/loadlines() works with gifs and pngs ;)

Chompy 11-21-2006 06:55 PM

1 Attachment(s)
Quote:

Originally Posted by zokemon (Post 1245312)
Or you could make it in the next version that savelines()/loadlines() works with gifs and pngs ;)

That would be weird, because:

Attachment 38652

That's a little image, if you opened with notepad:

HTML Code:

‰PNG

 
IHDR  [      ’w|  sRGB ®Îé  gAMA  ± üa    cHRM  z&  €„  ú  €è  u0  ê`  :˜  pœºQ< 
¾IDATXG•ØylÖõðz ó³,Y–,Ñd[¦1*l(¬”«¥mŸ–ç¡…B¹¡PD(‚‚º Ç¡¢FQQ¼‡ (r¢âQa* @[©*@{J¹µ{ý¬©µTƒML¤}žÏïóý|Þ×÷wQcccÔy?¡Ô;ëj~õÍïÛ_tù¹³ß5Ô•}Óþôµ±+WM8ÿÿð›kòo?{¦¼]ãW—_Òþ²Æ+Νj÷õ©Ë¯½ÿWÉ\óî×—œþîÜÙsçÎ]ÕnËÀÔ_õuŽOZ~ѹv§N~ý*¥—}}ñÅß´¿èÒ+~³omJÛuL¤åORlîøÈ¤»LzvèÔµCnßÐ7o}ïœ-±ƒW§O»5þž´î$u»¯ÕWÚüçŸî˜~ýìQÏåæ¿~ëì·gÌÛ6ëžWÿ=oõ‚ÛÍMÈ}]xÐ…¹ñŸ›þ<sIçç^Ý¸=s÷îì÷w…w¼ž¼qM¯e/wbÕ…TH
-Ç<=²ûª)I;¦¤üorä*¨Œ’ßêÐmõ•]—þ5*•ó‹DµüU$ZxGî¶ùc÷Ü‘Y01R4"òQ(²79烴ñ»Rg¼‘öÈÊ´%÷÷XœÛqþ/tó‡)S¯yprʺ)y{óï*ý@ɰ§KG¼Tš»êpîÆÃù;>Ÿ½ñÀÜiê>,闏ôÛᏇ–¾?nOÕˆ¿UܘwüäèÒ#Cì|xóÀ×dï\uõ¼9¿\!Ôõ¾        ±Kì³ãÙäýK“‹—¤UÌïñéìÔcÓ”P”ñލ©¯w軥ÃÀ*-ëü8‘„AIO?qó5“KŸÈª˜Ý«>?拜袄®‡âB}n>”0ëóÔÇ‹3Vmï³þ¡®ÿÓóá6»é0gnâú{Òß¹cxÁ„IÇ*Ï,Í;÷ØÑ¸e¥q›?¿:üVaâ‡e¹Ÿzä¡¥yžØf‘›Æï½rØÚ¡Ë+**/¾£2ëƒoû5.«VU8úË=c¶åVmväÅчVtZ|§'¶YD‡w',ß8äã}#k÷¤Wÿ·gåÆu/Äžx(éËYé5y™e'ú¤ÇÀ=ÏÙé‰ÍE~˜ˆiñÍ7ÆÖîRõâ*ºé
Sãk‡u-Mú[Illyü˜£½î,}òxòæû¼½9u»‡ÙÀù*h1q×”~GÆæÖŽ[ÓtI÷‰…^Yßkש^»Žuü´¦GiEèwÓ=Ë ²UÓbä®*¡ OŒ_ýÕ€
Õé{O%Uö¯;4èô{ýêß̪۔]¿&«|ñØ =Ë ²U(¶6}î I©8ܳvo—úmÑgÖ'6.L8;)¥¡HIƨ㙓«<Ë~2¬c{ÓhÉîpåªþµENޝtb|LYƵåñ1õ½n®‰ž_ÖeIIÌ–ƒÝv{ŒÙ$–¶lŒ*M£¿œ®>Î)Kίî=¿¶Ç³Õ]6•wø¸¦kyelÉþžbôðˆ¤”«e0¶7ü׉áOžÎYw:üÁ™´’ò
ûŸÙ•ZûZ¨~CøÄK© <ÅèáI"…ÝîCmX¶<Ý–üãðñÕ…ÝO½ÝýìS]ªçÆÕß’VY–6ôhF~¥§=<"iS‘ #¤·Ùö´[¹-³vE¿*Gj§w*ͺêx\ç31·Ÿ*üÌ©ž[kb÷y€©ƒ"~*æVHn³*i7µjvZÕäÔ²ì!)3kã**y½*®°2£º` ú*‰èI³ysR‡ÛÀl{Ú
Ý]6`Y}Òk)ûeW}©ý0¡|kŸšu
KÕ7tHDOšEÈ›‹z‡*m…zþ2¥¼0¡ê„ª§R*g¦)Lx vÜ!õ
Ñ“fò`"×ô½þ< i;Ôt*;ٵ뒎ÞÃþ¡,Œ9³*\×*
ñû•6o ÄLrEÃ{'¾ØÔ
ý'xÒv¨é´ú‡“+'÷/4µ6mQuÜ®ºôâ’HPyE?DLjEÂùZZʬ¦"ôŸ*a8HÛ¡¦Sî-‰®¸ïö²‘Ǫsª ?5¾â•“Z‘p¾ÖT!«ß#<‘        P=4‡k‹ÔyQÜ‘}*ŸTÝ.e*ë5î#•“Z‘p¾Lä*œ‰L‘ =<l›ÔzÙ')Ÿ®‰~wÚ
{#™eñ¯ÔÅ+jÒ*‡“„*z³´øØ•M*0E.@öð°mRë½KçG*o™Vžý|uè“*þj4ô¡$"ލͧFS¡cßÍL‘ ²—X
Ø6´>§8çåÊÉOŒ/+
}¶BMƒ*>”¤SÄ›£±ù«'ަȰk3ÎÈ
h²C·uêÿPJÃK''$¤9 ¦ACJÒ)âÍÑØ|¿Õ»£:')°F^@ü°¼*ÓöÈÚúXøµ¼©ûÂï)gÆ€‡$*n33}Ó²`Ë7I
¬‘?loût€áE ç|6}ýщª1Ü!#…"ہ—ˆH=C¢)¹.nµ¤ÀyñÃvð¶OÈžq õþ©¶«fÄp‡Œ*ló2/õ\•›£ÈôBÒ“¸ÀDy·T§X”ún^x§jF wÈH¡Ù.jdðROhÝ›Q׏ÍŸäÉH ι*:ÆÆ7ïyrÆ"…Läð8Ql6ÆÛžÎÑF—¯ŸäÉH ι*:Æ‚*Ϩc¸‡*´‰`s1Ö.{        0³J|’$G 8ä¶êÓæ½¬ŽáBÒ&‚ÍÅX»¼#þet¦"3c**”2”Ðð½KÆÐAćt«uu âА6‚]wˆµË;B`ê+›¢RNQ¥=Àc<Ì#=Øã5¡„*´¥9-jT»šÖº8*>
RNQ¥=Àc<Ì#=ØãUÐ**´¥9-jT»šÖº8*"*kÄmÜ*nô`
–a%*«%Y•…Y›åY¡EZ§¥Z*"*kÄmÜ*Œ>
ë*k° +QÁ‰,ɪ,ÌÚ,Ï
ƒ¤SzÄR*6
Ø@ðÀA Á8AÔ—        Ì@€Á˜A°ÁÈA]Àr€~@*        –Àé»êH@ º ÆÀ Ò€
Þ@ê*  "#J"&z")ª"¬ï¨#¡:#5j#8š#;Ê#>ú+‚€hˆŒ(‰˜=§wBU„õ]µfçBg¤FmGsdGù**°|SA"KĉD*rE´Hó5³´g#EDŽÔ<²GüH !$‡ú Hd‰8‘(BE®ˆéò-£„/{v0òFäHÁ#{ďBr¨‘&Õ›loNÈɹo%|Ù³ƒ‘gÂOþ™ +`l9°ˆ *ÑãH5Á&ÛÄ;p1b]’o%|Á¾e;á'ÿL€0¶À¯ñëb`lŒ™±4ÆÆÞ|ÁA øm;8Þ½%ì)²FÉ&™e“Ñøa] Œ1³ÀÒ–Õû¼!Bº¿m;#d‡L‘52H6É,Y¦
Œœ3uÖÎ*Ù<³÷yC„,tþ@˜×%±pAP„ÑA€#aä윩³vÏæ³'Û! ÝX¹3*‚‚¸ 4ˆÄo„QG*{„5? Â4*€vî"*$>        Q¢TË»£x#äˆ:Øã“ÆSˆF}(
عC1/f‹ø$D‰RUóXE>ÁOüEAŸ4>˜B4êCP Øù*~bž0)R
–⥐Ù\DäüÄ?!PôIãƒ)D£>T’,*A «f “"¥`)^6ݧ¸×Ââ°P,ûÉŽ2IÁæUì±mq»¹‰¦ÿ„Åa¡Øg šPŒîc2IÁæU¸±mq»åë×—ƒ*z.xÌhB±ïu'¸RÐD°yGup*pùpiùzÁµÀåÀÁEÁg šPŒîcÖA+‰6X¿óºv¸|4ߤ˜ˆË’+“‹“?›Yp•ªÛDr+*;D,©:Ø¿»¹ŒµºD7
Å•É_ Žr%–’aÞÄ;ˆ%u@‡*.p
s;ÿÅ‚ ¤k¤¿!WpÉŒÛx±¤è`ÿìºè‚zþ‹H×H528B.*C*y?e “D*8µ jóv|*Z*¦BxEl(0[
µ¨‘dÒ¤€Çny}n‰¿7,B+ZC€¹«f¨„dÒ¤€Çþ¹W
~oX„V´* ¯#âB •ƒLP*Ø?÷JÁï
‚Ð*Ö`®Äª… ®ÊFè&¡À PhùJá'oŒœ
x0*ÌÐÞ ƒ–‘2Ø*!œ”¢ùŽØ*2Íÿ„„¢2¤—1iÉEÊ`«|„pR
ÔhóeBsØA(*Czù“–\‚”1"ÂG'¥@ó_&´ì
v*ʯ©ç3iÉEò5x+3¡žä¢ÕË„ÖQ‘ÀP]VÄŸ…ÑKÖ`®Ü¤évx!?D—±g™E½d
æÊMÈg«×m¤/D—±g™E½d
æÊMÈg«×m¡/D—±ç*µæ¶Yâ¨ü%ppØ–7æ6Xs~EqE*“G0‰ãBÑê3Ò*'×Ê£˜ÄÑ|W¾ÀjŒYZáäZyT “8šïÊX„1K+"œ\+£ ¥M×Â6þ`3Ô6*lÆ    IEND®B`‚

The only line there which are obvious must be:

PHP Code:

‰PNG 


ryu_no_bishie 11-23-2006 04:25 AM

why cant you just tell a file what color to make each little pixel, i cant fathom why this would be so hard :/

this drawing panel you pention seems like the deal though, not sure untill i can interact with it though


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

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