Graalians

Graalians (https://www.graalians.com/forums/index.php)
-   General Graal Discussion (https://www.graalians.com/forums/forumdisplay.php?f=2)
-   -   Graal Previewer (https://www.graalians.com/forums/showthread.php?t=6959)

Downsider 05-29-2012 09:00 PM

Graal Previewer
 
2 Attachment(s)
Features:
-Multi + Singledirection ganis
-Drag + drop a head/body/sword/shield/gani onto the frame and it'll update.
-Hit save in your image editing program and it'll automatically update in the animation viewer.
-Shields are properly scaled + placed on the character. (Be careful which ganis you use, the iPhone versions place the shield in the character's left hand when facing down, which can affect the results, as the PC version normally places the shield in the right hand when facing down. The program starts with the iPhone idle animation by default.)
-Hats.

http://i.imgur.com/aefgO.gif

This program is mostly to facilitate artists making heads + bodies that want to be able to preview their results in realtime without the hassle of starting up the editor or something stupid like that

It's attached.

EDIT: Attached source.

Kiko 05-29-2012 09:01 PM

this would be so usefull, but if u want the avatar on the side to be walking, while previewing, u have to do that to all the different angles :)

BboyEatsbacon 05-29-2012 09:02 PM

Quote:

Posted by Downsider (Post 128508)
It's attached.

Lies.

Kiko 05-29-2012 09:03 PM

Quote:

Posted by BboyEatsbacon (Post 128512)
Lies.

oh ya, i didnt read the 'its attached' part

Downsider 05-29-2012 09:05 PM

oops. I didn't attach it. Hold on, I'll add support for multi-directional viewing as Kiko suggested real quick and then reupload it.

EDIT:

http://i.imgur.com/OBpKV.gif

Added and fixed link.

Dylan 05-29-2012 10:57 PM

Nice work.

Downsider 05-30-2012 12:42 AM

Quote:

Posted by Bam (Post 128622)
Nice work.

Thanks, mate. Added the source code to the OP.

MrSimons 05-30-2012 12:47 AM

Will it run on a Mac?

Downsider 05-30-2012 12:52 AM

Quote:

Posted by Mr.$imons (Post 128792)
Will it run on a Mac?

Unfortunately not. I might be able to make a platform-agnostic version using Mono, but right now it uses p/invoke functions from SFML.NET to render everything. I think I can move it over to Mono-compliant stuff fairly easily, though, so I'll try and do that when I get a chance.

tl;dr, not in it's current state, but I can probably modify it to run on Mono for a Mac with minimal effort.

Skyzer 05-30-2012 01:45 AM

You shouldn't use Macs, anyways.

xXziroXx 05-30-2012 02:58 AM

Would you be able to add support for custom sprites? Maybe a predefined list of custom sprites (GK, G2K1, etc.). I'd love it for use with my own sprites that have been brought into daylight once again.

Downsider 05-30-2012 03:03 AM

Quote:

Posted by xXziroXx (Post 128914)
Would you be able to add support for custom sprites? Maybe a predefined list of custom sprites (GK, G2K1, etc.). I'd love it for use with my own sprites that have been brought into daylight once again.

You can use any gani you'd like. You just have to drop the images into the images folder and it'll load them up. Do you mean stuff like setting attributes of the gani or updating non-head/body/whatever images in realtime in a similar manner?

Ace 05-30-2012 03:04 AM

sweet

xXziroXx 05-30-2012 03:20 AM

Quote:

Posted by Downsider (Post 128918)
You can use any gani you'd like. You just have to drop the images into the images folder and it'll load them up. Do you mean stuff like setting attributes of the gani or updating non-head/body/whatever images in realtime in a similar manner?

Ideally support for setting attributes. Our character ganis uses attributes 1-10 to account for head, torso, arms, legs, hair, hat, belt, boots, cloak and pauldrons. If somehow your program could account for that, it'd be quite amazing, but I guess it steps more into the turf of a gani editor.

MrSimons 05-30-2012 03:34 AM

Quote:

Posted by Skyzer (Post 128877)
You shouldn't use Macs, anyways.

They look pretty.

Rexx 05-30-2012 03:38 AM

looks like you've one upped Gunderak's viewer

Tricxta 05-30-2012 03:55 AM

Gunderaks gunna be sad when he sees this, oh boy!

Downsider 05-30-2012 05:55 AM

Quote:

Posted by xXziroXx (Post 128928)
Ideally support for setting attributes. Our character ganis uses attributes 1-10 to account for head, torso, arms, legs, hair, hat, belt, boots, cloak and pauldrons. If somehow your program could account for that, it'd be quite amazing, but I guess it steps more into the turf of a gani editor.

I can do that no problem. I'll do it tomorrow afternoon during one of my classes.

Yephenpeace 05-30-2012 06:13 AM

http://i45.tinypic.com/fdr3eu.png

Is there any reason in particular as to why my head isn't working? This is the original file for my head, but it isn't loading properly on the viewer.

Downsider 05-30-2012 06:35 AM

Quote:

Posted by Yephenpeace (Post 129002)
http://i45.tinypic.com/fdr3eu.png

Is there any reason in particular as to why my head isn't working? This is the original file for my head, but it isn't loading properly on the viewer.

The only way it can differentiate between image types is by dimensions. It looks like it's trying to load your head as a shield. The dimensions for a head should be 32x560. Anything that's not a known dimension (head, body, hat, or sword) is assumed to be a shield when you drag and drop it in.

Yephenpeace 05-30-2012 06:45 AM

Quote:

Posted by Downsider (Post 129005)
The only way it can differentiate between image types is by dimensions. It looks like it's trying to load your head as a shield. The dimensions for a head should be 32x560. Anything that's not a known dimension (head, body, hat, or sword) is assumed to be a shield when you drag and drop it in.

It is 32x560, and it won't load any other heads. I've tried re-downloading it also. :dazed:

Downsider 05-30-2012 06:46 AM

Quote:

Posted by Yephenpeace (Post 129007)
It is 32x560, and it won't load any other heads. I've tried re-downloading it also. :dazed:

Can you send me one or two images that won't work? And the head you tried to load in the screenshot.

Yephenpeace 05-30-2012 06:48 AM

Quote:

Posted by Downsider (Post 129008)
Can you send me one or two images that won't work? And the head you tried to load in the screenshot.

Sure, I'll private message you.

xXziroXx 06-04-2012 03:07 AM

Quote:

Posted by Downsider (Post 128998)
I can do that no problem. I'll do it tomorrow afternoon during one of my classes.

Any progress to that? :o

Downsider 06-07-2012 04:29 AM

Quote:

Posted by xXziroXx (Post 133190)
Any progress to that? :o

I forgot about it. I'll do it tomorrow.

MattKan 06-07-2012 04:35 AM

Quote:

Posted by Mr.$imons (Post 128940)
They look pretty.

Well, you're paying $1,000 for that prettiness alone.

MariahNicole 06-07-2012 05:28 AM

I downloaded this! LOVE IT. Perfect for making customs :D
Edit: Nvrm I got the one from graaldepot people where talking about, this one looks better though 0.0

Downsider 06-08-2012 04:08 AM

1 Attachment(s)
Quote:

Posted by xXziroXx (Post 128928)
Ideally support for setting attributes. Our character ganis uses attributes 1-10 to account for head, torso, arms, legs, hair, hat, belt, boots, cloak and pauldrons. If somehow your program could account for that, it'd be quite amazing, but I guess it steps more into the turf of a gani editor.

Updated the gani viewer to support this.

http://i.imgur.com/9yvM6.png

That's the best way I could think of updating attributes.

Added:
-Attribute support
-DEFAULTHEAD, DEFAULTBODY, DEFAULTSHIELD, DEFAULTSWORD, and DEFAULTATTR support.
-Fixed issue where heads loaded as shields.

If you don't feel like dragging and dropping every time you load up the gani, use DEFAULTATTR in the gani file and drop the images in the images folder, I added support for default stuff as defined in the gani file.

Update is attached to the OP. I'd appreciate it if you could confirm that this behaviour works as expected in both loading/rendering and automatic updating when you save the file.

EDIT: Nevermind, I'll put the update here. My edit button disappeared on the OP, kind of lame.

Higbey 06-08-2012 04:15 AM

Would be nice if you did the platform agnostic thing. Mac users cant use the level editor or the graalshop, so we really need this..

Downsider 06-08-2012 04:16 AM

Quote:

Posted by Higbey (Post 136172)
Would be nice if you did the platform agnostic thing. Mac users cant use the level editor or the graalshop, so we really need this..

Maybe if I get a chance tomorrow I'll rewrite it to be Mono-compatible.

xXziroXx 06-09-2012 03:07 AM

Awesome, thanks man, that's gonna be a really helpful tool. :)

Now, you should totally take it upon you to fix/finish Gonstruct too!

Dusty 06-09-2012 04:25 AM

Man, now is your time to shine, Java! But alas I am lazy. And busy.

xXziroXx 06-12-2012 12:26 AM

2 Attachment(s)
It doesn't seem to like my ganis.

Dusty 06-12-2012 12:33 AM

Mmm, ye ol' index out of range error. Lovely stuff.

Downsider 06-12-2012 02:08 AM

1 Attachment(s)
It's because you have a DEFAULTHEAD setting without anything following it. Here's a patched version that checks for that.

xXziroXx 06-12-2012 02:57 AM

Quote:

Posted by Downsider (Post 138853)
It's because you have a DEFAULTHEAD setting without anything following it. Here's a patched version that checks for that.

Thanks! :)

xXziroXx 06-12-2012 11:42 PM

Would you be willing to add a way to save defined attributes? Would be very helpful, but chances are I'm the only one even remotely interested in such a feature.

Downsider 06-12-2012 11:46 PM

Quote:

Posted by xXziroXx (Post 139492)
Would you be willing to add a way to save defined attributes? Would be very helpful, but chances are I'm the only one even remotely interested in such a feature.

You could just use the DEFAULTATTR stuff in the file. If you can give me a reason as to why DEFAULTATTR wouldn't be suited for what you want to do, I can find the time to add that. Wouldn't be difficult.

xXziroXx 06-13-2012 12:13 AM

Quote:

Posted by Downsider (Post 139494)
You could just use the DEFAULTATTR stuff in the file. If you can give me a reason as to why DEFAULTATTR wouldn't be suited for what you want to do, I can find the time to add that. Wouldn't be difficult.

I hadn't noticed that it loaded the DEFAULTATTR stuff. Apparently that's because the program thought I would've put them in the ../images/ folder. Is it possible to make it scan all subfolders for the location of images instead?

Downsider 06-13-2012 12:20 AM

Quote:

Posted by xXziroXx (Post 139500)
I hadn't noticed that it loaded the DEFAULTATTR stuff. Apparently that's because the program thought I would've put them in the ../images/ folder. Is it possible to make it scan all subfolders for the location of images instead?

Yeah. I hadn't thought of making it run out of the Graal folder. I'll allow the user to specify a folder for his Graal installation by the end of the night.

Downsider 06-14-2012 03:19 PM

1 Attachment(s)
Updated.

Added:
-Can run out of your Graal folder to automatically load images. Drop the GraalViewerRev5 folder in the same directory that holds Graal.exe.

Some images aren't loading properly, namely some GIF images and some old, 4-bit PNG's (Only a few images are actually 4-bit, mostly the default Graal head and body, as they're so damn old) remain unsupported.

Can someone update the OP for me?

XENA* 06-14-2012 03:23 PM

Awesome! +repped.

Emera 06-14-2012 04:15 PM

Great work :) Would it be possible to add functionality so it can view ganis which contain particle effects?

Downsider 06-14-2012 08:13 PM

Quote:

Posted by Emera (Post 140824)
Great work :) Would it be possible to add functionality so it can view ganis which contain particle effects?

Nope, that'd require me to parse GS2 source and also reverse engineer all the particle related functions that Graal has, AKA way too much work.

Emera 06-14-2012 08:17 PM

Quote:

Posted by Downsider (Post 140940)
Nope, that'd require me to parse GS2 source and also reverse engineer all the particle related functions that Graal has, AKA way too much work.

Thought so :P It's a really nice tool anyway though!

Gunderak 02-22-2013 06:17 AM

Great name, you named it GraalViewer....
Seriously.

LavaClaw 02-22-2013 06:27 AM

Welp, here's the flamewar, kids.
http://i38.photobucket.com/albums/e1...ndHereWeGo.gif

Myst 02-22-2013 06:49 AM

virus alert-

Downsider 02-22-2013 07:44 AM

wow the source is even attached. no malicious code, hrurrr. speaking of, gunderak's mad that i named it something similar or whatever, but this guy's digging through the source to rip out all my nice features and put it in his ****ey tool

shame, shame, shame

Gunderak 02-22-2013 08:51 AM

I don't want your crappy code.


All times are GMT. The time now is 08:33 AM.

Powered by vBulletin/Copyright ©2000 - 2026, vBulletin Solutions Inc.