Staredit Network > Forums > Modding Discussion > Topic: Animosity
Animosity
Apr 18 2018, 1:55 pm
By: Neiv  

Apr 18 2018, 1:55 pm Neiv Post #1







Animosity is a converter for SCR graphics. It can convert .anim, mainsd.anim and .dds.grp files to/from PNGs.

Currently it should work (tell me if it doesn't), but since there are 3 different files, hd, hd2 and sd for each grp/anim, it is a bit cumbersome to use. Maybe someday it can automatically downscale the sprites when importing the HD sprite.

There are no progress indicators, when working with very large sprites the program may just freeze for a moment when encoding or decoding the textures.

I believe that SCR still uses the .grp files for SD sprite dimensions (Since they are just 0/0 in mainsd.anim), so at the end of day you still need to use GRP tool as well >:l
Afaik also the mouse clickability area is defined by GRP pixels, even in HD mode.
Screen visibility is also controlled by something.. Not sure what.

I believe that HD2 sprite is 2x the resolution of a SD sprite, and HD is 4x SD resolution.
Also, the width/height values for HD2 sprites have to be twice as large as the frame dimensions (That is, a 40x60 frames in HD get centered when dimensions are set to 40x60, but the Hd2 sprite should be downscaled to 20x30 pixels with dimensions still 40x60)

HD2 sprites should just be 50% downscaled HD sprites, as there is some sort of dependecy between two if best quality sprites are enabled. Maybe they could just be considered manual mipmaps. Because of that they have to be imported simultaneously to work properly.

Thanks to Farty for documenting the file formats.

Edit Apr 19th: Fixed some bugs
Edit Apr 20th: Fixed a crash
Edit Apr 25th: Fixed HD-HD2 relation
Edit May 4th: Fixed .dds.grp scaling
Edit June 5th: Fixed dds decoding for textures with dimensions not divisible by 4
Edit July 3rd: Added multiple instance support and fixed some more bugs

Download: https://github.com/neivv/animosity/releases/download/v0.1.7/animosity.7z

Post has been edited 10 time(s), last time on Jul 3 2018, 10:58 am by Neiv.



None.

Apr 18 2018, 4:49 pm Corbo Post #2

ALL PRAISE YOUR SUPREME LORD CORBO

This is great. This is very much indeed very great.

Thank you.



fuck you all

Apr 21 2018, 12:47 am O)FaRTy1billion[MM] Post #3

👻 👾 👽 💪

Is it confirmed that it uses the GRP for the dimensions? I couldn't figure out how it determined the frame sizes is why I stopped playing with it. XD



TinyMap2 - Latest in map compression! ( 7/09/14 - New build! )
EUD Action Enabler - Lightweight EUD/EPD support! (ChaosLauncher/MPQDraft support!)
EUDDB - topic - Help out by adding your EUDs! Or Submit reference files in the References tab!
MapSketch - New image->map generator!
EUDTrig - topic - Quickly and easily convert offsets to EUDs! (extended players supported)
SC2 Map Texture Mask Importer/Exporter - Edit texture placement in an image editor!
\:farty\: This page has been viewed [img]http://farty1billion.dyndns.org/Clicky.php?img.gif[/img] times!

Apr 21 2018, 9:56 am Neiv Post #4



Switching the grp in images.dat changes sprite centering in SD mode without actually changing graphics. Seems that BW also reads the frame-specific coordinates from grp even though they are also set in mainsd.anim.



None.

May 29 2018, 5:48 am jun3hong Post #5



The download site is blocked now.



None.

May 29 2018, 7:43 am Neiv Post #6



Oh, my bad. The link is now fixed.



None.

Jun 4 2018, 10:48 am jun3hong Post #7



Some frames look broken. I uploaded some screenshots. Well...can be fixed?

Attachments:
bandicam 2018-06-04 19-47-42-120.jpg
Hits: 7 Size: 28.54kb
bandicam 2018-06-04 19-48-28-708.jpg
Hits: 3 Size: 39.04kb



None.

Jun 4 2018, 4:48 pm Neiv Post #8



Which file is that?

Does it only look like that after editing it, or is it like that with the default file which was extracted?

What are they supposed to look like?



None.

Jun 5 2018, 9:01 am jun3hong Post #9



It's HD2's cmdbtns. It has a same problem with SD's one. Once I opened it with default, it looked like that.
But there's no problem with the original HD's cmdbtns.

For example, I uploaded screenshots fot cmdbtns' number frame.
In the original HD, there's no problem. But in the HD2, it looks broken.
When I export it, Animosity exports with broken frames like that.
When I import them again and run wuth samase to test it, it looks broken in-game too.
Not every frames are broken. Only a few frames do. I also uploaded screenshots for in-game.

Attachments:
bandicam 2018-06-05 17-45-30-474.jpg
Hits: 2 Size: 29.92kb
bandicam 2018-06-05 17-45-51-475.jpg
Hits: 1 Size: 32.73kb
bandicam 2018-06-05 17-58-46-833.jpg
Hits: 2 Size: 489.56kb
bandicam 2018-06-05 17-58-52-626.jpg
Hits: 3 Size: 466.09kb



None.

Jun 5 2018, 1:00 pm Neiv Post #10



Okay, I fixed the problem and updated the download.

Thanks for letting me know of the bug =)



None.

Aug 18 2018, 1:33 am TheBigDingus Post #11



Hello, I don't seem to be able to load a grp.
I exported it from PyGRP, but its not listed as an acceptable file. Am I doing something wrong?




Aug 18 2018, 11:07 am Neiv Post #12



No, the program is just bad and only accepts pngs for its frames.

I hope to improve the situation eventually, but as of now you'd have to use some other tool to convert the paletted bmps from PyGRP to a full-color png :/

You'll currently also have to export the anim frames you want to replace once to get the .json file which contains necessary information for importing other frames.



None.

Options
  Back to forum
Please log in to reply to this topic or to report it.
Members in this topic: None.
[01:31 pm]
jjf28 -- Suicidal Insanity
Suicidal Insanity shouted: http://photos.arlinghaus.org/Misc/ESK_5612.jpg <- That was a couple of days ago, 1:1 export
you and your $20k camera :P
[09:49 am]
Suicidal Insanity -- I mainly went out to take a photo of it because it looked so red actually
[07:35 am]
NudeRaider -- Suicidal Insanity
Suicidal Insanity shouted: http://photos.arlinghaus.org/Misc/ESK_5612.jpg <- That was a couple of days ago, 1:1 export
Corbo
Corbo shouted: I didn't say moon ;o
dude, that's obviously mars. Don't you see how red it is?
[11:32 pm]
Bar Refaeli -- Nice moon shot
[11:04 pm]
Suicidal Insanity -- Well it fills less than 10% of the frame ;(
[11:01 pm]
Corbo -- but you can get decent shots of the moon with your 600
[11:01 pm]
Corbo -- ok mars might have been a stretch :P
[10:57 pm]
Suicidal Insanity -- Corbo
Corbo shouted: but if you wanna focus on objects, say, photograph the moon, mars and such a good telephoto will do
:P
[10:56 pm]
Corbo -- I took a couple of shots at the eclipse we had
[10:56 pm]
Corbo -- I didn't say moon ;o
Please log in to shout.


Members Online: Roy, C(a)HeK