Open Gnejs opened 8 years ago
Look into using https://github.com/Jam3/preview-dds so we don't have to shell out to the command line.
:+1: - This would be very helpful for me!
I'll probably move that to a different repo because to port it to all platforms would require a crafty flow.
While we wait, @barrett777, I would appreciate you filling in any blanks for any of the references for what each of the enums mean.
Sure I can fill in some :) Also remember you can search my C# replay parser too for more info on some of the fields: https://github.com/barrett777/Heroes.ReplayParser/tree/master/Heroes.ReplayParser/MPQFiles
I comment on any field I had any confusion with, and explain some of the enums.
Here's some others I see for now:
m_region - 1 = US, 2 = EU, 3 = KR, 5 = CN. I think 4 was Taiwan or another Asian region, but I don't think it's active anymore, or at least not used in Heroes. Regions above 90 are dev regions as well. I think PTR is 99.
m_teamId - 0 is blue team/left spawn, and 1 is red team/right spawn
m_timeLocalOffset - Worth noting that last I checked this is local offset for replay files created on Windows, and the full local timestamp for replay files created on Mac
On Thu, Mar 31, 2016 at 6:39 AM, Justin J. Novack notifications@github.com wrote:
I'll probably move that to a different repo because to port it to all platforms would require a crafty flow.
While we wait, @barrett777 https://github.com/barrett777, I would appreciate you filling in any blanks for any of the references https://github.com/nydus/heroprotocol/tree/master/reference for what each of the enums mean.
— You are receiving this because you were mentioned. Reply to this email directly or view it on GitHub https://github.com/nydus/heroesjson/issues/18#issuecomment-203940903
While not the solution, if you extract all the DDS files, you can loop through all the *.dds
files and convert them to *.png
with ImageMagick.
I use Docker since I do not want to install ImageMagick.
for file in *.dds; \ # loop through all the files in the directory
do docker run -it \ # fire up a single docker instance
-v /path/to/dds:/in \ # mount the DDS path as /in in the container
-v /path/to/png:/out \ # mount a directory to output the PNGs as /out in the container
jess/imagemagick \ # use the awesome imagemagick docker so you don't have to install it
convert "/in/$file" /out/"$(basename "$file" .dds).png"; \ # all that to run this command
echo "$file"; \ # echo the progress
done # finish the loop
The Zip archive that used to be available at http://heroesjson.com/images.zip is no longer being generated.