Skip to content
This repository has been archived by the owner on Oct 22, 2019. It is now read-only.

Images Zip Archive no longer being generated. #18

Open
Gnejs opened this issue Mar 2, 2016 · 5 comments
Open

Images Zip Archive no longer being generated. #18

Gnejs opened this issue Mar 2, 2016 · 5 comments

Comments

@Gnejs
Copy link

Gnejs commented Mar 2, 2016

The Zip archive that used to be available at http://heroesjson.com/images.zip is no longer being generated.

@jnovack
Copy link
Member

jnovack commented Mar 9, 2016

Look into using https://github.com/Jam3/preview-dds so we don't have to shell out to the command line.

@barrett777
Copy link

👍 - This would be very helpful for me!

@jnovack
Copy link
Member

jnovack commented Mar 31, 2016

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.

@barrett777
Copy link

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
#18 (comment)

@jnovack
Copy link
Member

jnovack commented Apr 19, 2016

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants