causative Posted May 17, 2023 Share Posted May 17, 2023 I want to play a replay for a few minutes and then switch over so it's no longer a replay and I control the units. My question is, has anyone worked out a method for doing this? I'm trying to work out a method myself. Perhaps it could be done by playing the replay, then doing "save game" partway through, and then parsing simulation.dat for the saved game and changing whatever variables mark it as a replay. Link to comment Share on other sites More sharing options...
salmankhan886111 Posted May 23, 2023 Share Posted May 23, 2023 If you load from the game, does it create a new replay file of the old part of the game + the new part of the game -- and can you then load from THAT replay? Meaning, can players engage in a "replay war" where the losing player gets to load from any point 100 seconds later then the last load, until the game progresses to a point where one player can never get out of a losing situation? Link to comment Share on other sites More sharing options...
Yekaterina Posted June 15, 2023 Share Posted June 15, 2023 On 18/05/2023 at 12:56 AM, causative said: want to play a replay for a few minutes and then switch over so it's no longer a replay and I control the units. My question is, has anyone worked out a method for doing this? My idea: find the exact turn where you want to take over, then go inside the replay file and delete all turns after it. Then, you edit this new replay file into a saved game and trick the engine into believing that it's a saved game. I am trying to test my idea. 1 Link to comment Share on other sites More sharing options...
Freagarach Posted June 15, 2023 Share Posted June 15, 2023 (edited) On 18/05/2023 at 1:56 AM, causative said: I'm trying to work out a method myself. Perhaps it could be done by playing the replay, then doing "save game" partway through, and then parsing simulation.dat for the saved game and changing whatever variables mark it as a replay. One can indeed just save the match (during a replay) and load that to continue playing. I don't think there is a replay variable? Edited June 15, 2023 by Freagarach Elaborate. Link to comment Share on other sites More sharing options...
Yekaterina Posted June 15, 2023 Share Posted June 15, 2023 7 minutes ago, Freagarach said: One can indeed just save the match (during a replay) and load that to continue playing. I don't think there is a replay variable? I tested this idea on a replay between Knight and Barcodes. The problem is, if you choose to impersonate Knight, then Barcodes will be unassigned and he will not continue playing with you. He will instead stand idle. So you cannot do it to multiplayer games. This idea will likely work on AI games only. Link to comment Share on other sites More sharing options...
alre Posted June 15, 2023 Share Posted June 15, 2023 1 hour ago, Yekaterina said: This idea will likely work on AI games only. not. AI does not work on saved games unfortunately. it would be very cool if it was possible to play saved games multiplayer. Link to comment Share on other sites More sharing options...
Stan` Posted June 16, 2023 Share Posted June 16, 2023 21 hours ago, alre said: it would be very cool if it was possible to play saved games multiplayer. With the extended deadline maybe we can have https://code.wildfiregames.com/D4770 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now