What a perfect opportunity to showcase
GFXtract
Code:
# Halfbrick Studios .tex
#
# Written by puggsoy
# GFXtract Script (https://github.com/puggsoy/GFXtract/releases)
goto 4
get WIDTH short
get HEIGHT short
get DUMMY long
setformat 32 BGRA
read IMG WIDTH HEIGHT
savepng IMG
Copy this into a text file, change the extension to .gsl and use it in GFXtract. Hopefully it should be fairly straightforward.
(01-13-2016, 12:17 AM)puggsoy Wrote: [ -> ]What a perfect opportunity to showcase GFXtract
Code:
# Halfbrick Studios .tex
#
# Written by puggsoy
# GFXtract Script (https://github.com/puggsoy/GFXtract/releases)
goto 4
get WIDTH short
get HEIGHT short
get DUMMY long
setformat 32 BGRA
read IMG WIDTH HEIGHT
savepng IMG
Copy this into a text file, change the extension to .gsl and use it in GFXtract. Hopefully it should be fairly straightforward.
It's working with
SuperTVGRFan18496 .tex
But not working with my halfbrick .tex =>
https://www.dropbox.com/sh/r108zesxd2hs4...ejaga?dl=0
Please help!
I'm getting something, but they need a palette:
I can't find one in the files, can you find a separate file that may contain the palettes?
(06-13-2016, 06:42 AM)puggsoy Wrote: [ -> ]I'm getting something, but they need a palette:
I can't find one in the files, can you find a separate file that may contain the palettes?
hmm uploaded all files in the same link /assets/common0/textures/characters
(06-13-2016, 06:42 AM)puggsoy Wrote: [ -> ]I'm getting something, but they need a palette:
I can't find one in the files, can you find a separate file that may contain the palettes?
Any luck?
maybe color chanels not right RGBA, BGRA, ABGR
What script do you use?
i can't get HEIGHT of image
Image.hx:46: WIDTH: 404
Image.hx:47: HEIGHT: 0
Image.hx:48: fileNum: 0
Image.hx:49: lengthCheck: 0
Saving image: 404 x 0 - barrygun_01_SD.png
OK, I think I might have it. Unfortunately right now it would require me to write up a whole program especially for this, which I'd like to avoid.
I'm currently busy with exams, but afterwards what I can do then is to try implement something into GFXtract that I've meaning to add for a while already. Once that's done I should hopefully be able to make a script that works for these.
My last exam is in 2 days so after that I'll start working on this.
(06-16-2016, 02:24 AM)puggsoy Wrote: [ -> ]OK, I think I might have it. Unfortunately right now it would require me to write up a whole program especially for this, which I'd like to avoid.
I'm currently busy with exams, but afterwards what I can do then is to try implement something into GFXtract that I've meaning to add for a while already. Once that's done I should hopefully be able to make a script that works for these.
My last exam is in 2 days so after that I'll start working on this.
And by the way, compiled GFXtract on mac - and Dialogs.openFile - filefilter with extension '*.*' don't work :
you need to define exact extensions for script file and sprite like >
private var TXT:FILEFILTERS = { count: 1, descriptions: ['Text files'], extensions: ['*.txt'] };
private var TEX:FILEFILTERS = { count: 1, descriptions: ['TEX files'], extensions: ['*.tex'] };
https://app.minbox.com/files/PRgoZHg
Wow, that's a bummer. To avoid doing that you can use the command-line to run it, but yeah that's still annoying.
I've only tested my programs on Windows so far, I plan to go through them sometime and make them work on Linux as well (probably release binaries for it too). However I don't own a Mac so unfortunately I can't test for that, I do intend to get one eventually though, specifically for this sort of thing. Until then people will unfortunately have to fix these things themselves
(06-16-2016, 05:12 AM)puggsoy Wrote: [ -> ]Wow, that's a bummer. To avoid doing that you can use the command-line to run it, but yeah that's still annoying.
I've only tested my programs on Windows so far, I plan to go through them sometime and make them work on Linux as well (probably release binaries for it too). However I don't own a Mac so unfortunately I can't test for that, I do intend to get one eventually though, specifically for this sort of thing. Until then people will unfortunately have to fix these things themselves
you can define more than one extension, atleast on mac filedialog allow to select .txt and .tex
private var ALLFILES:FILEFILTERS = { count: 1, descriptions: ['All Files (*.*)'], extensions: ['*.*;*.txt;*.tex'] };
(06-16-2016, 02:24 AM)puggsoy Wrote: [ -> ]OK, I think I might have it. Unfortunately right now it would require me to write up a whole program especially for this, which I'd like to avoid.
I'm currently busy with exams, but afterwards what I can do then is to try implement something into GFXtract that I've meaning to add for a while already. Once that's done I should hopefully be able to make a script that works for these.
My last exam is in 2 days so after that I'll start working on this.
i know this is a bit of an old post, but did this ever end up in anything? i'm trying to get jetpack joyride uploaded to the spriter's resource but that's kinda tricky if yknow, all the sprites are black and white