Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting > Code Gallery
FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply
 
Thread Tools Search this Thread Display Modes
  #16  
Old 04-15-2014, 12:19 AM
fowlplay4 fowlplay4 is offline
team canada
fowlplay4's Avatar
Join Date: Jul 2004
Location: Canada
Posts: 5,200
fowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond repute
Quote:
Originally Posted by Spikedude View Post
We've been using this on Era, and it is the greatest thing ever. The sprite cutter saves so much time and adds so much flexibility, and I love having the script window right there. Best thing ever - especially since I'm stuck on a Mac so all I had before was the old in-game editor (which worked, but not without frustration). I don't think I could thank you enough!

The only problem I've had so far is with crashing while Importing sprites - is this a known issue or something I might be doing wrong?
Thanks!

It shouldn't be could you attach the gani pre-import (if possible), and the gani you're trying to import?

It's possible it could be a Mac thing.
__________________
Quote:
Reply With Quote
  #17  
Old 05-15-2014, 11:15 PM
i8bit i8bit is offline
Registered User
Join Date: Jul 2013
Posts: 146
i8bit is an unknown quantity at this point
I'm looking at it now... it's amazing. But how do you set rotation effect?
Reply With Quote
  #18  
Old 05-16-2014, 12:29 AM
fowlplay4 fowlplay4 is offline
team canada
fowlplay4's Avatar
Join Date: Jul 2004
Location: Canada
Posts: 5,200
fowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond repute
Quote:
Originally Posted by i8bit View Post
I'm looking at it now... it's amazing. But how do you set rotation effect?
Add / edit a sprite and set the rotation (it's a radian value so 0-2pi instead of 0-360) there.
__________________
Quote:
Reply With Quote
  #19  
Old 05-16-2014, 12:35 AM
i8bit i8bit is offline
Registered User
Join Date: Jul 2013
Posts: 146
i8bit is an unknown quantity at this point
Quote:
Originally Posted by fowlplay4 View Post
Add / edit a sprite and set the rotation (it's a radian value so 0-2pi instead of 0-360) there.
wow I feel dumb, it was in the add menu the whole time ;/

sorry!
Reply With Quote
  #20  
Old 08-07-2014, 04:54 AM
scriptless scriptless is offline
Banned
Join Date: Dec 2008
Location: N-Pulse
Posts: 1,412
scriptless is a splendid one to beholdscriptless is a splendid one to beholdscriptless is a splendid one to beholdscriptless is a splendid one to behold
Sorry for the bump but I noticed when I try and save the gani nothing happens.

I can still set my gani online,restarting the client and it doesn't show anymore, but the file seems to be nowhere. Not online, nor on my computer. Both mac and windows. Any help would be awesome. I would love to be able to edit ganis online, or save them offline and upload them at least using my mac.

Edit:
I managed to change the line that saves the file to call a triggeraction and saved the lines serverside. This allowed me to save the gani online. Which accomplishes what I need. Would be cool if I could get it to save locally tho. But this definitely helps me alot. Thanks FP4.

Here is what I did,

PHP Code:
function onActionServerside() {
  
// save to server maybe
  
if ( params[0] == "savegani" ) {
    echo(
params[2SPC "uploaded or updated!");
    
temp.lines params[1];
    
temp.lines.savelines(params[2], 0);
  }

And editing:

PHP Code:
  // Save File
  
temp.lines.savelines(this.filename0); 
to the following, using ASDFG so I could ctr+f to it since its on like line 3,700 something.

PHP Code:
  // Save File
  // ASDFG
  
triggerserver("gui"this.name"savegani"temp.linesthis.filename);
  
//temp.lines.savelines(this.filename, 0); 
I also noticed the NPC Server needed rights to the file.

Last edited by scriptless; 08-07-2014 at 05:53 AM..
Reply With Quote
  #21  
Old 04-24-2015, 02:39 PM
xAndrewx xAndrewx is offline
Registered User
xAndrewx's Avatar
Join Date: Sep 2004
Posts: 5,260
xAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud of
Hey is there an update to the gani editor?

The one on Zodiac (live) is different to this version? (So I've been told) The iEra staff would like me to add the one with the folder view (if that makes sense)

I think what they mean is one that is linked directly to the FTP rather than their own folder (after logging online I'm pretty sure this is what they mean). Would this be possible?

Hahahaha - ok just ignore this post. I've just seen the post above. Thankssssssss
__________________
Reply With Quote
  #22  
Old 06-25-2015, 07:40 AM
xXziroXx xXziroXx is offline
Master of Puppets
xXziroXx's Avatar
Join Date: May 2004
Location: Sweden
Posts: 5,288
xXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant future
Send a message via AIM to xXziroXx Send a message via MSN to xXziroXx
Quote:
Originally Posted by scriptless View Post
Sorry for the bump but I noticed when I try and save the gani nothing happens.

I can still set my gani online,restarting the client and it doesn't show anymore, but the file seems to be nowhere. Not online, nor on my computer. Both mac and windows. Any help would be awesome. I would love to be able to edit ganis online, or save them offline and upload them at least using my mac.

Edit:
I managed to change the line that saves the file to call a triggeraction and saved the lines serverside. This allowed me to save the gani online. Which accomplishes what I need. Would be cool if I could get it to save locally tho. But this definitely helps me alot. Thanks FP4.

Here is what I did,

PHP Code:
function onActionServerside() {
  
// save to server maybe
  
if ( params[0] == "savegani" ) {
    echo(
params[2SPC "uploaded or updated!");
    
temp.lines params[1];
    
temp.lines.savelines(params[2], 0);
  }

And editing:

PHP Code:
  // Save File
  
temp.lines.savelines(this.filename0); 
to the following, using ASDFG so I could ctr+f to it since its on like line 3,700 something.

PHP Code:
  // Save File
  // ASDFG
  
triggerserver("gui"this.name"savegani"temp.linesthis.filename);
  
//temp.lines.savelines(this.filename, 0); 
I also noticed the NPC Server needed rights to the file.

After posting in the wrong thread, I figured I'd share this in the right one!

I changed it so that when saving (and uploading the gani), it checks if the gani already exists on the server, and if it does, overwrites it. Otherwise, it defaults to the file path provided by the client.

Just replace the onActionServerside block with this code:

PHP Code:
function onActionServerside() {
  
// save to server
  
if ( params[0] == "savegani" ) {
    echo(
params[2SPC "updated!");
    
temp.lines params[1];

    
temp.fileName extractFileName(params[2]);
    
temp.fileList findFiles(format("levels/%s"temp.fileName), true);
    
temp.filePath temp.fileList.size() == params[2] : temp.fileList[0];
    
temp.lines.savelines(temp.filePath0);
  }

__________________

"A delayed game is eventually good, but a rushed game is forever bad." - Shigeru Miyamoto
Reply With Quote
  #23  
Old 10-06-2016, 04:19 PM
xAndrewx xAndrewx is offline
Registered User
xAndrewx's Avatar
Join Date: Sep 2004
Posts: 5,260
xAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud of
Has anybody else noticed an issue with the sprites when using rotatesprite? It makes the GANI file size a lot bigger.
__________________
Reply With Quote
  #24  
Old 10-06-2016, 06:14 PM
PlanetOscar PlanetOscar is offline
Registered User
Join Date: Aug 2015
Location: Sweden
Posts: 177
PlanetOscar is just really nicePlanetOscar is just really nice
Nah, not an issue for me. Works flawlessly
Reply With Quote
  #25  
Old 10-06-2016, 08:33 PM
fowlplay4 fowlplay4 is offline
team canada
fowlplay4's Avatar
Join Date: Jul 2004
Location: Canada
Posts: 5,200
fowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond repute
Quote:
Originally Posted by xAndrewx View Post
Has anybody else noticed an issue with the sprites when using rotatesprite? It makes the GANI file size a lot bigger.
open it in notepad and look at the file for oddities.
__________________
Quote:
Reply With Quote
  #26  
Old 10-07-2016, 10:13 AM
xAndrewx xAndrewx is offline
Registered User
xAndrewx's Avatar
Join Date: Sep 2004
Posts: 5,260
xAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud of
Here's an example of one that's messed up - it's duplicating the ROTATESPRITE.

Could this be the batch operations not clearing the rotate sprite flag from a previous gani? The gani staff using it only uses the sprite cutter not the batch operations though.

If you try open the gani in game it won't work - if you open it using GraalShop and just 'save' it, it will clear all the sprites and work again.
Attached Files
File Type: gani era_bitzsam-coinflip-result1.gani (420.7 KB, 245 views)
__________________

Last edited by xAndrewx; 10-07-2016 at 10:24 AM..
Reply With Quote
  #27  
Old 10-07-2016, 05:23 PM
fowlplay4 fowlplay4 is offline
team canada
fowlplay4's Avatar
Join Date: Jul 2004
Location: Canada
Posts: 5,200
fowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond repute
Looks like I used rotation instead of rotate during the gani initialization so rotate effects would stack.

Update lines 3220 and 3221:

PHP Code:
  this.effects.rotation = {};   // Rotation Effects
  
this.effects.rotation.clearvars(); 
to be the following instead:

PHP Code:
  this.effects.rotate = {};     // Rotation Effects
  
this.effects.rotate.clearvars(); 
alternatively download the corrected version attached.
Attached Files
File Type: txt graalshop_preview.txt (142.2 KB, 290 views)
__________________
Quote:
Reply With Quote
  #28  
Old 10-08-2016, 10:10 AM
xAndrewx xAndrewx is offline
Registered User
xAndrewx's Avatar
Join Date: Sep 2004
Posts: 5,260
xAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud of
ooo i'll give it a try!

Thanks
__________________
Reply With Quote
  #29  
Old 11-13-2016, 07:40 PM
xAndrewx xAndrewx is offline
Registered User
xAndrewx's Avatar
Join Date: Sep 2004
Posts: 5,260
xAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud of
Sorry - works a treat! thank you
__________________
Reply With Quote
  #30  
Old 04-05-2017, 09:22 AM
Kamaeru Kamaeru is offline
G2k1
Kamaeru's Avatar
Join Date: Dec 2001
Posts: 1,040
Kamaeru has much to be proud ofKamaeru has much to be proud ofKamaeru has much to be proud ofKamaeru has much to be proud ofKamaeru has much to be proud ofKamaeru has much to be proud of
I really like this Gani editor, and I just spent a few hours making a nice gani with it.
__________________
3DS friendcode: 1118-0226-7975

Last edited by Kamaeru; 04-05-2017 at 10:30 AM..
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


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


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