refunct-tas icon indicating copy to clipboard operation
refunct-tas copied to clipboard

Store metadata in the record file

Open oberien opened this issue 2 years ago • 0 comments

Currently the record file contains a list of RecordFrames, each of which contains:

  • delta time
  • input events
  • location
  • rotation
  • velocity
  • acceleration

In addition, we should put metadata next to the frame-data-list. Therefore, instead of saving a list, a struct containing the name and the list should be stored. Metadata might be (list not complete):

  • player name
  • timestamp of recording start
  • timestamp of recording end
  • timestamp of saving
  • filename the recording was saved as
  • max character speed
  • playercontroller base speed
  • playercontroller max base speed

Steps:

  • add a new external struct in rebo_init.rs next to the RecordFrame, which contains the metadata as fields and the list of frames also as a field (don't forget to add the external type to rebo)
  • take the new struct as argument in save_replay and return the new struct from load_replay • build refunct-tas to get the latest refunct-tas.exe and rtil.dll • change rebo to use the new struct everywhere

oberien avatar Apr 19 '22 21:04 oberien