planetmaker wrote:A grf contains all that information and it's moderately easy to de-compile it in order to retreive them. So yes, a grf will do fine.
Well, the grf I was thinking about is
here (as linked in the earlier post). It's the whole ogfx1_base.grf though, just with my sprites pasted in and reencoded. Which I guess can get annoying to extract things from...
planetmaker wrote:EDIT: In principle the copy&paste approach in order to obtain a grf as you describe works. You'll need an action 08, though, which defines the grf. There are a number of examples of simple, separate grfs in the OpenGFX repo (in sprites/nfo).
OK, I'll read up on this stuff a bit and see what I can come up with.
EDIT:
OK, I think I've got something now... Started with a .nfo from the repo, modded the Action8, used grfdiff to get the sprite numbers and grepped those lines into the new nfo, and modified the ActionA appropriately (I hope; dec2hex by hand...), then ran nforenum and grfcodec on it. I seem to recall reading about a parameter to one of these that stripped out unneeded transparency (there is some), but couldn't find it in my versions...
- wrapping.grf
- NewGRF for toyland house wrapping
- (36.63 KiB) Downloaded 107 times
In case anyone's interested, the changed sprites are: 4627-4628, 4630-4631, 4633-4634, 4636-4637, 4639-4640, 4642-4643, 4645-4646, 4648-4649, 4657-4658, 4666-4667, 4669-4670, 4672-4673, 4695-4696 (26 total)
(I found a grd-to-grf converter, but it didn't work and was closed-source :/ (maybe I should write my own, shouldn't be that hard...))