Jump to content

Neat Spriter Project


Recommended Posts

I made a small php script for cropping images in any spriter project.

You can use it for free. :-)

http://pastebin.com/LJcTUzGr

 

Size of your mods is very important in DST. There could be very many mods on the server. Less size of the mod, more happiness of admin (and users). Mostly it affect size of used video memory.

Example:

Before running the script. Size 2048x2048:

  Hide contents
7525299.png

After running the script. Size 1024x1024. The is the same animation and it looks same way in game but takes less size in files (and video memory). Quality of the art is the same too:

  Hide contents
7504819.png

 

How to use (you should be advanced user):

1) Create file crop.php in spriter project's folder and copy script there.

2) (Not necessary) Set correct variable $project in crop.php. Also you may change variable $ADD_SPACE if you like.

3) Install PHP (last version)

4) Enable GD library

5) Configure paths in Windows.

6) Use console command "php crop.php" or make bat file. Bat file helps the script to find current folder so it's easier to use.

8) Compile new animation with autocompiler.exe. 

 

Also you can send me your final version of Spriter project (scml + images in folders) and I will crop it for you. :)

P.S. I can't edit previous topic because of update of the forum. So I had to post it again, sadly.

Edited by Maris
Link to comment
Share on other sites

Script is updated.

  • Added automatic detection of scml file.
  • Improved support of $ADD_SPACE variable. I think it's better to set it to 1 so autocompiler won't do some strange things.
Edited by Maris
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
  • Create New...