The Ultimate Site of Worms Armageddon

Worms: Armageddon => General discussion => Topic started by: Masta on May 23, 2020, 12:00 PM

Title: Ghost Replays 0.4.1
Post by: Masta on May 23, 2020, 12:00 PM
(https://i.imgur.com/qDQeQMf.png)
Title: Re: Ghost Replays
Post by: Sensei on May 23, 2020, 02:08 PM
Lol! Last night was playing with Cueshark and was telling him how angry I am on you to give us a sneak peak of this module months ago and then disappear! As he mentioned, this one should be game changer.

Great work man, thank you!
Title: Re: Ghost Replays
Post by: LEGi0N on May 23, 2020, 03:27 PM
Nice one! Managed to get the "WAghost" file created, but not sure how to replay it during a game. Is there a special key combination?

Edit: Managed to get it working. Misread the first line as needing to press Ctrl+N twice, but you only need to do it once and it creates the ghost from the beginning of the turn up until the point you press Ctrl+N.

Also, disabling both vsync settings prevents the ghost from flickering if anyone has that issue. There is screen tearing without vsync, but you can disable it, create a ghost using a replay file, then enable vsync again for racing against it.
Title: Re: Ghost Replays
Post by: j0e on May 24, 2020, 03:52 PM
This looks awesome! So far I haven't been able to make it work. My ghosts folder stays empty no matter what I do. I have all wk modules disabled except GhostReplays. Both vsync options off and using Direct3d9shader.
Title: Re: Ghost Replays
Post by: Kradie on May 24, 2020, 05:27 PM
This module will likely be more incompatible when 3.8 releases in the coming days.
Title: Re: Ghost Replays
Post by: philie on May 25, 2020, 10:36 PM
eh, i dont get it...

so i press ctrl+n (once) during a replay and it records the current turn as ghost. right?
(at least a WAghost file gets created)

and then i start a game and the ghost should load automatically? at least it doesnt with me...
Title: Re: Ghost Replays
Post by: j0e on May 26, 2020, 01:52 AM
Which version of the game is this for? I'm using 3.7.2.1 CD version. Maybe it only works on the Steam version?

Also I assume you're supposed to press Ctrl+N during your actual turn, but can you also press it during a replay, so you don't mess up your run?
Title: Re: Ghost Replays
Post by: philie on May 26, 2020, 09:05 AM
Which version of the game is this for? I'm using 3.7.2.1 CD version.

yea, me too.
anyway, with the wk in my wa-folder, every game crashes after a few mins. without the wk, everything is fine.
Title: Re: Ghost Replays
Post by: Sensei on May 27, 2020, 11:38 AM
Which version of the game is this for? I'm using 3.7.2.1 CD version.

yea, me too.
anyway, with the wk in my wa-folder, every game crashes after a few mins. without the wk, everything is fine.

That's weird. Maybe graphics from advanced settings interfeer with wkghost. Try setting them on direct3d 9 shader and turn off vsyncs if you didn't.
Title: Re: Ghost Replays
Post by: pavlepavle on May 27, 2020, 01:07 PM
Which version of the game is this for? I'm using 3.7.2.1 CD version. Maybe it only works on the Steam version?

Also I assume you're supposed to press Ctrl+N during your actual turn, but can you also press it during a replay, so you don't mess up your run?

Works on non steam version. And yes, it works from replay too.


yea, me too.
anyway, with the wk in my wa-folder, every game crashes after a few mins. without the wk, everything is fine.
It crashes when I shift+esc or alt+F4 (sometimes), but no crash if I press escape and minimize on game button.
Title: Re: Ghost Replays
Post by: philie on May 31, 2020, 10:28 PM
Try setting them on direct3d 9 shader and turn off vsyncs if you didn't.

seems like my standard settings xD

It crashes when I shift+esc or alt+F4 (sometimes), but no crash if I press escape and minimize on game button.

it even crashes, when i just watch a game and dont press anything.
Title: Re: Ghost Replays
Post by: Masta on June 03, 2020, 10:58 AM
(https://i.imgur.com/qDQeQMf.png)
Title: Re: Ghost Replays
Post by: rUNaW4y on June 03, 2020, 04:17 PM
Unfortunate that it does not work for everyone. At this point I am not completely sure why, but I have created a test module which can bring us closer to figuring out why it does not work on all computers.

In the frontend the test module will show Test with a white line under it.
Go ingame and press Ctrl + N. A a still worm should appear below the white line:
(https://i.imgur.com/elT5RwS.png)
[attachment=1]

Hi man, making the exception for several game crashes due to .dll, your testing module works for me if I press ctrl+n but my Ghost folder is still empty.
Title: Re: Ghost Replays
Post by: j0e on June 03, 2020, 05:52 PM
Same as rUn4w4y: The testing module works (worm shows up) but Ghosts folder remains empty. This is on Windows 7, CD version, 3.7.2.1

Game hangs every time after round ends- black screen with nothing but Test and the worm below it,  must kill process in Task Manager with Ctrl+Alt+Del to exit.

Tried with and without other WK modules - same behaviour in both cases. (I thought game hanging on black screen might have been caused by lack of d3d9wnd but it isn't - it's caused by GhostReplaysTest)

Tried also on my Win10 PC - WA notifies on startup it failed to load  wkGhostReplays.dll
Title: Re: Ghost Replays
Post by: Masta on June 04, 2020, 12:51 PM
(https://i.imgur.com/qDQeQMf.png)
Title: Re: Ghost Replays
Post by: rUNaW4y on June 04, 2020, 04:59 PM
That test was just related to drawing. Here is another test module which should create some folders. This time go ingame and check the Ghosts folder. Four folders should now be located in the User/Ghosts/ directory.


Even this module works fine for me, but only 3 folders are created (not 4): Test1, Test2 and Test3. Did I miss one folder?
Moreover, I am wondering if you could attach one ghost file so that I could try to put it in Ghosts folder and check whether the replay is loaded since I can't produce it by myself (assuming cross compatibility is going to work).
Title: Re: Ghost Replays
Post by: Sensei on June 04, 2020, 06:45 PM
I managed to get that image under test in game after pressing ctrl+n, but that's it. Ghosts folders still empty.
Title: Re: Ghost Replays
Post by: Masta on June 04, 2020, 08:15 PM
(https://i.imgur.com/qDQeQMf.png)
Title: Re: Ghost Replays
Post by: Sensei on June 04, 2020, 08:22 PM
I managed to get that image under test in game after pressing ctrl+n, but that's it. Ghosts folders still empty.
Just to be sure, did you use wkGhostReplaysDirectoryTest.dll?

Si Señor.  :(

Btw, would it be able for players to send ghost file to each other and place them in their folder?
So once they're in online game together they both can activate, let's say - rr turn by you from few years ago,
and try to have a race with your ghost during their turns. Since both players got the same ghost file, it should be visible to both of them, even tho one is not racing!? Hard to explain better what I'm thinking of, hope someone understood it..
Title: Re: Ghost Replays
Post by: Masta on June 04, 2020, 08:55 PM
(https://i.imgur.com/qDQeQMf.png)
Title: Re: Ghost Replays
Post by: j0e on June 04, 2020, 11:35 PM
Both the Directory test and File test work for me. I get 3 folders and 3 files.

What map is your sample ghost played on? I'd like to try it also.
Title: Re: Ghost Replays
Post by: Sensei on June 05, 2020, 05:21 AM

Thanks for testing. I believe just creating files would be simpler, does the following create 3 files in the Ghosts folder after going ingame?


Oh, sry for misunderstanding. I have 3 folders, but they remain empty. So ctrl+n is not working or I'm doing it wrong.


I want this to work with a multi turn based scheme like big rr too, maybe in the future.

That would be great, hope to see more updates on this module soon. Even now we can relive lots of time trial bigrr/rrs from TUS replays.
Title: Re: Ghost Replays
Post by: rUNaW4y on June 05, 2020, 08:18 AM
I managed to get that image under test in game after pressing ctrl+n, but that's it. Ghosts folders still empty.
Just to be sure, did you use wkGhostReplaysDirectoryTest.dll?

Si Señor.  :(
Thanks for testing. I believe just creating files would be simpler, does the following create 3 files in the Ghosts folder after going ingame?
[attachment=1]

Btw, would it be able for players to send ghost file to each other and place them in their folder?
So once they're in online game together they both can activate, let's say - rr turn by you from few years ago,
and try to have a race with your ghost during their turns. Since both players got the same ghost file, it should be visible to both of them, even tho one is not racing!? Hard to explain better what I'm thinking of, hope someone understood it..
Yes, that should be possible. I want this to work with a multi turn based scheme like big rr too, maybe in the future.

Yes it does for me (3 test files are created).
Instead (assuming your referenced map is this one: https://www.tus-wa.com/maps/map-1125/) your ghost file is not loaded/processed.
Title: Re: Ghost Replays
Post by: Masta on June 10, 2020, 10:13 PM
(https://i.imgur.com/qDQeQMf.png)
Title: Re: Ghost Replays
Post by: j0e on June 10, 2020, 11:57 PM
IT WORKS!
Title: Re: Ghost Replays
Post by: rUNaW4y on June 11, 2020, 10:08 AM
Works for me as well, ty. The only remark is: after ending the session game, wa crashes (black screen) and I need to kill wa.exe from TM in order to stop it.
Title: Re: Ghost Replays
Post by: rUNaW4y on June 11, 2020, 10:42 AM
Works for me as well, ty. The only remark is: after ending the session game, wa crashes (black screen) and I need to kill wa.exe from TM in order to stop it.
[attachment=1]
Title: Re: Ghost Replays 0.4
Post by: Masta on June 19, 2020, 09:03 PM
(https://i.imgur.com/qDQeQMf.png)
Title: Re: Ghost Replays 0.4
Post by: j0e on June 24, 2020, 01:04 AM
Version 0.4 works for me on Windows 7, but not Windows 10.  On Windows 10, CD version, all other modules disabled, I get:
Quote
Failed to load WormKit module wkGhostReplays.dll: Error 0x0000007E

Not sure how to reliably get a ghost to play back. Sometimes it works, sometimes it doesn't. Not sure what I'm doing wrong. Ideally a ghost would play back every turn automatically without hotkeys needed.

I suggest altering the functionality as follows: instead of using a hotkey to manually trigger recording a ghost, each turn should automatically be cached and after the run you are given 5 seconds to overwrite the previously saved ghost (if one exists) using a hotkey. Reason being, often you start recording only to fall 3 seconds later, and your old ghost replay is now gone (or at least not active for playback anymore).

My main issue so far (if it's working as intended) is the module is just confusing. I suggest adding more text at top-left to make things more transparent/easily understandable. The text is unobtrusive so there's little harm in adding tons of detail, at least for these test builds:
"Recording..."
"Playing ghost #X. Press Backspace+Tab to reselect/cycle active ghost. Press Backspace+L to always play the previous turn's ghost"
"Error: No ghost found"
"Error: Module stopped working: restart WA to fix"
"Ghost recorded to temporary cache. Press Backspace+Enter to replace active ghost for playback, or Backspace+N to archive as new file. (Ghost will be discarded in 5 ..  4  ..  3  ..  2  .. 1 (countdown))

I used different hotkeys because Ctrl, Alt, and nearby letters are often used in RemapKeys.. however my examples might not be ideal either.

This is after limited testing... so my confusion reflects that..  my computer is broken currently and won't boot >:\  Will fix and try again later.

Ty masta! This is one of the most fun and promising wormkit modules ever, IMO
Title: Re: Ghost Replays 0.4
Post by: Korydex on June 24, 2020, 04:21 AM
Quote
Failed to load WormKit module wkGhostReplays.dll: Error 0x0000007E
that probably means you're missing a shared library (Visual C++ Redistributable)
Title: Re: Ghost Replays 0.4.1
Post by: Masta on June 24, 2020, 12:42 PM
(https://i.imgur.com/qDQeQMf.png)