• Welcome to Valhalla Legends Archive.
 

Reading a Warcraft III Replay???

Started by Miraglade, July 10, 2004, 04:15 AM

Previous topic - Next topic

Forged

This is a bump, but did you ever get around to making the viewer?  Some people on my forum were asking for one today.
QuoteI wish my grass was Goth so it would cut itself

UserLoser.


Forged

QuoteI wish my grass was Goth so it would cut itself

UserLoser.


Tuberload

I am able to parse the headers (code is available here), and I was able to decompress the data blocks and read in their headers as well. From there is a bunch of Actions and such that you use to display a replay. From what I understand there is no actual movie formatted data saved anywhere?

I will release an updated version in Java shortly. Maybe from there I can make my own simple 2D player.
Quote"Pray not for lighter burdens, but for stronger backs." -- Teddy Roosevelt
"Your forefathers have given you freedom, so good luck, see you around, hope you make it" -- Unknown

Forged

from what I understand the replays only excute the action which is why the 1.07+ are diffrent.

So unless you drew from the game I have no idea how you would make a movie maker.  I am not a very smart person though so I have no idea.
QuoteI wish my grass was Goth so it would cut itself

Tuberload

What I meant is there is no compressed movie data present in the replay files so you can not just pull out the data and pass it to a media player. You have to produce the movie yourself based on the actions present in the replay I believe.

I am by no means an expert on this subject, but during the brief period I worked on it that is what I discovered.

Although there could possibly be a library present that will play the movie when the actions are passed to it. This is of course complete speculation due to the fact that I have not looked into it, and currently do not posses the knowledge required to find out.
Quote"Pray not for lighter burdens, but for stronger backs." -- Teddy Roosevelt
"Your forefathers have given you freedom, so good luck, see you around, hope you make it" -- Unknown

UserLoser.

Correct, if you want to have a movie, then you'll have to come up with the graphics to cooperate with the actions in the replay file (Which would be a lot of work).

Adron

Why not just make something to capture movies from War3?

Noodlez

Couldn't you just display the units from the MPQ files?

UserLoser.

Quote from: Noodlez on September 14, 2004, 10:01 PM
Couldn't you just display the units from the MPQ files?

If you feel like figuring that out and sharing it with us, ok :)

MyndFyre

Quote from: Noodlez on September 14, 2004, 10:01 PM
Couldn't you just display the units from the MPQ files?

At that point, how much harder is it to just make another Warcraft-III game?  :P
QuoteEvery generation of humans believed it had all the answers it needed, except for a few mysteries they assumed would be solved at any moment. And they all believed their ancestors were simplistic and deluded. What are the odds that you are the first generation of humans who will understand reality?

After 3 years, it's on the horizon.  The new JinxBot, and BN#, the managed Battle.net Client library.

Quote from: chyea on January 16, 2009, 05:05 PM
You've just located global warming.

Tuberload

Quote from: MyndFyre on September 15, 2004, 07:36 PM
Quote from: Noodlez on September 14, 2004, 10:01 PM
Couldn't you just display the units from the MPQ files?

At that point, how much harder is it to just make another Warcraft-III game?  :P

If I were to try and make my own replay player it would use crude 2D images that looked nothing like they should. It would be up to the user and my documentation to figure the rest out. :) Other than that I think Adron has the best solution.
Quote"Pray not for lighter burdens, but for stronger backs." -- Teddy Roosevelt
"Your forefathers have given you freedom, so good luck, see you around, hope you make it" -- Unknown

Noodlez

It's not hard at all... there are open source programs that do it already.

MyndFyre

Quote from: Noodlez on September 18, 2004, 05:31 PM
It's not hard at all... there are open source programs that do it already.

Such as?

By the way, my suggestion in re: to the comment, "Couldn't you just display the units from the MPQ files?" was that, if you're going to go through the trouble to display the fully-3D graphics extracted from the MPQ files, you might as well make the full game, because you're already practically there.

But that's dumb.  :P
QuoteEvery generation of humans believed it had all the answers it needed, except for a few mysteries they assumed would be solved at any moment. And they all believed their ancestors were simplistic and deluded. What are the odds that you are the first generation of humans who will understand reality?

After 3 years, it's on the horizon.  The new JinxBot, and BN#, the managed Battle.net Client library.

Quote from: chyea on January 16, 2009, 05:05 PM
You've just located global warming.

|