causative Posted May 17, 2023 Report 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. Quote Link to comment Share on other sites More sharing options...
salmankhan886111 Posted May 23, 2023 Report 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? Quote Link to comment Share on other sites More sharing options...
Yekaterina Posted June 15, 2023 Report 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 Quote Link to comment Share on other sites More sharing options...
Freagarach Posted June 15, 2023 Report 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. Quote Link to comment Share on other sites More sharing options...
Yekaterina Posted June 15, 2023 Report 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. Quote Link to comment Share on other sites More sharing options...
alre Posted June 15, 2023 Report 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. Quote Link to comment Share on other sites More sharing options...
Stan` Posted June 16, 2023 Report 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 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.