Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   Graphic Design (https://forums.graalonline.com/forums/forumdisplay.php?f=9)
-   -   Graal Char Viewer (https://forums.graalonline.com/forums/showthread.php?t=134261118)

xXziroXx 11-20-2010 10:11 AM

Graal Char Viewer
 
3 Attachment(s)
This is an amazing tool for viewing heads, bodies, shields and swords in an easily navigated window. I personally don't know what I would do without it when I try to make good looking NPC's for my levels. Full credit goes to the author, BinaryCrash, and not to me. I am just posting this because I think it would be a shame to not inform people about it.

Attachment 51963
Attachment 51964

It's not perfect, but pretty damn close to it. It would be cool to have the scroll scrollable with mousewheel for example, but I guess you can't have it all.

Crono 11-20-2010 10:14 AM

binary is pretty oldschool :) enigma sup

zephirot 11-20-2010 10:27 AM

It does looks pretty nice indeed.

Luda 11-20-2010 11:50 AM

This is cool and useful, thanks.

Dnegel 11-20-2010 03:17 PM

I remember this, it's a very useful program. ;)

xAndrewx 11-20-2010 08:38 PM

haha cool
i made one similar on Bravo, but not as advanced. gg

DemonSpawnn 11-21-2010 04:50 AM

nice!

MysticalDragon 11-21-2010 09:12 PM

Yea this is awsome, what ever happened to BC?
On the side note (Sorry to take this off track), Snake I been looking for you message me.

Supaman771 11-22-2010 05:07 AM

Quote:

Originally Posted by xXziroXx (Post 1612497)
I personally don't know what I would do without it

Windows Photo Gallery?
Change folder view to full tiles?
Etc?

fowlplay4 11-22-2010 06:13 AM

1 Attachment(s)
Quote:

Originally Posted by Supaman771 (Post 1612769)
Windows Photo Gallery?
Change folder view to full tiles?
Etc?

Write your own!

PHP Code:

//#CLIENTSIDE

function onCreated() {
  
createGUI();
}

function 
createGUI() {
  if (
isObject("Heads")) Heads.destroy();
  
// Load Heads
  
temp.files.loadfolder("levels/heads/*"false);
  
temp.spaces int(400 32) - 1;
  
// Create GUI
  
new GuiWindowCtrl("Heads") {
    
width 400 24;
    
height 300 12;
    
isexternal true;
    
text "Head Viewer";
    new 
GuiScrollCtrl("Heads_Scroll") {
      
2;
      
width Heads.width 4;
      
height Heads.height 4;
      
this.clearcontrols();
      
// Add Heads
      
for (temp.filetemp.files) {
        new 
GuiShowImgCtrl("Head_" extractfilebase(temp.file)) {
          
32 * (temp.temp.spaces);
          
32 int(temp.temp.spaces);
          
image temp.file;
          
partw parth 32;
          
partx 0;
          
party 32 2;
          
thiso.catchevent(this.name"onMouseDown""onHeadSelected");
        }
        
temp.i++;
      }
    }
  }
}

function 
onHeadSelected(obj) {
  echo(
obj.image);


I could really make this thing shine had I put more than 15 minutes into it.

xXziroXx 11-22-2010 07:18 AM

Quote:

Originally Posted by Supaman771 (Post 1612769)
Windows Photo Gallery?
Change folder view to full tiles?
Etc?

Yeah because that totally only shows a 32x32 square of the facing down sprite. Silly me. :blush:

BinaryCrash 08-08-2012 02:24 AM

In early 2004 when i was developing something for Maloria i was constantly searching for images in the folders and i didn't like to see every image in full, specially the bodies images.
So i created an app to just show what i wanted, for personal use.
I sent it to some friends working with me and they asked me if it could be distributed to others, and i said yes.

I could make it in java or php, but i did choose Delphi for this one.

The program was made in 2004.
In 2010 i just did put skin on it and made some adjustments as the original app had many bugs.
Later i was going to implement some new features, like mng support, search, categorizing and hosting it in a central server for sharing.
But this idea needed the staff approval.

EDIT: Sorry to post on an old thread.

Imperialistic 08-08-2012 02:28 AM

This deserves a bump Binary, no worries. +rep

Hezzy002 08-08-2012 01:56 PM

THIS IS cool BECAUSE THE GUI HADS A NICE SKIN

scriptless 08-08-2012 03:05 PM

Quote:

Originally Posted by BinaryCrash (Post 1701385)
In early 2004 when i was developing something for Maloria i was constantly searching for images in the folders and i didn't like to see every image in full, specially the bodies images.
So i created an app to just show what i wanted, for personal use.
I sent it to some friends working with me and they asked me if it could be distributed to others, and i said yes.

I could make it in java or php, but i did choose Delphi for this one.

The program was made in 2004.
In 2010 i just did put skin on it and made some adjustments as the original app had many bugs.
Later i was going to implement some new features, like mng support, search, categorizing and hosting it in a central server for sharing.
But this idea needed the staff approval.

EDIT: Sorry to post on an old thread.

Glad to see I am not the only one that knows Delphi. However is this just GIF support of do you also use TPngImage in your uses? I am not sure on adding MNG support. Would be neat.

Does this only work on Heads, Swords, Shields, etc? and does it support for different head directions by chance? I haven't had a chance to check it out.

Crow 08-08-2012 03:55 PM

Quote:

Originally Posted by scriptless (Post 1701414)
I am not sure on adding MNG support. Would be neat.

As far as I know, gif2mng.exe converts to non-standards MNG.

BinaryCrash 08-09-2012 01:53 AM

Quote:

Originally Posted by scriptless (Post 1701414)
Glad to see I am not the only one that knows Delphi. However is this just GIF support of do you also use TPngImage in your uses? I am not sure on adding MNG support. Would be neat.

Does this only work on Heads, Swords, Shields, etc? and does it support for different head directions by chance? I haven't had a chance to check it out.

When i started to play Graal in 1998 (other acc name) i was programming in Visual Basic, then after seeing Graal was made in Delphi and i found some cool directx components i changed from VB to Delphi and so continued only in Delphi for years, until i started in Java and PHP in 2004. I can say graal motivated me.

I used omega components at first, because in old times Delphi only supported bmp in native img components. You would need to declare some new classes to use more.

I used two classes, TPngImage and another one i don't remember now.
The source is somewhere in my backups hdd, offline right now, but if you want i can search for it again.

The image is set to show pre-defined coordinates, to show face down of head, body, and shield. sword use the diagonal sprite.

It could easily be changed to show other sprites, like facing right. I just didn't do it. All i wanted is browse the images and get the filename of what i liked.

I added pngimage in "uses".
But you would need these classes files, dunno if Delphi already have one in today's version.


Quote:

Originally Posted by Crow (Post 1701415)
As far as I know, gif2mng.exe converts to non-standards MNG.

What i was saying is that i planned to make my app load and work with mng files. Like it already do with png.

Crow 11-30-2012 01:53 PM

Quote:

Originally Posted by BinaryCrash (Post 1701475)
What i was saying is that i planned to make my app load and work with mng files. Like it already do with png.

Meh, what the hell, I only saw this just now. What I was saying is that Graal's gif2mng.exe does not convert to a correct MNG format, therefore you'd have to implement support for MNG yourself and can't rely on any public libraries/source code for it.


All times are GMT +2. The time now is 06:47 AM.

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