Advanced Replay / Map question

G

Goodmanners

Guest
I'm considering writing a program that converts a war3 replay to triggers.
So, for example, if in the replay the program encounters a line like

"Issue Order: smart, {-6063.52, -1161.85), 50179"

it will output a JASS trigger that does something like

"call IssuePointOrderLocBJ( (whatever unit 50179 is), "smart", OffsetLocation(GetRectCenter(GetPlayableMapRect()), -6063.52, -1161.85) )"

If you have an entire replay in custom game format this will let you adjust the camera angle, game speed etc etc with a lot more freedom than simply watching the replay in warcraft 3 would.
The complications are, It's been a long time since I did any map editing in warcraft 3 and I don't really remember the nitty gritty when it comes to triggers:
How often do triggers update? I seem to remember it being something very low like 1/20th of a second. To simulate a replay you'd need triggers to fire with fidelity in the milliseconds. If the game gets even a thousandths of a second out of sync then suddenly a hero will die where it shouldn't and the whole replay is broken.
Other than that, I think this should be doable. What do you think?
 
General chit-chat
Help Users

      The Helper Discord

      Staff online

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top