Sauerworld Forum

[v3] Demo Controllers GUI Menu (Pseudo Demo Editor)

Salatiel

  • ***
  • 116
  • +25/-1
    • Projects by Salatiel
[v3] Demo Controllers GUI Menu (Pseudo Demo Editor)
« on: August 27, 2019, 05:20:22 PM »
This menu allows you to customize the remaining time of a demo and add keyframes with commands in a given minute and second.

Version 3 (25/07/2021 - 2020 Edition)


The 2020 edition now has the seekdemo command, so it is no longer necessary to use gamespeed, but you can still download the old version for Collect Edition below.



Installation (2020 Edition)
Move demoeditorv3.zip to your sauerbraten root folder and add the following line to you autoexec.cfg file:
Code: [Select]
addzip demoeditorv3.zip; exec demoeditor.cfgTo open the 2020 Edition menu you can either type /demoeditor or add an "edit" argument to the demo command (/demo anydemoname edit).





Version 2.4 (15/10/2019 - Collect Edition)

If the current time is less than your custom time, the demo will reload and stop at the time you chose.

Actions are saved in a variable with the name of your project, they can be seen in the "timeline" tab.
The name of the demo is important so the menu can reload it if you want to go backwards.

Installation (Collect Edition)
Move demoeditorv2.4.zip to your sauerbraten root folder and add the following line to you autoexec.cfg file:
Code: [Select]
addzip demoeditorv2.4.zip; exec demoeditor.cfgThe command to open the Collect Edition menu is /demoeditor.



Update 01/09/2019:
- Fixed the unsynchronized seconds of the timeline (now using mod instead of div).
- Some conditions to remove special characters in text fields (and also avoid letters in number fields).

Update 15/10/2019:
- New button to send projects to maptitle (projects sent to maptitle can be "downloaded" by other players using /do $maptitle, never run this command if you don't trust who sent it to the maptitle).
- Menu no longer changes size wildly.

Update 25/07/2021:
- Menu reworked from scratch, now it uses the new seekdemo command to handle the remaining time.
- The demo name is applied automatically.
- Actions can now be saved and loaded from a .cfg file.
« Last Edit: July 26, 2021, 07:11:18 PM by Salatiel »
@Salatiel#5274

Salatiel

  • ***
  • 116
  • +25/-1
    • Projects by Salatiel
Re: Pseudo Demo Editor (forward, backward and actions)
« Reply #1 on: August 29, 2019, 06:52:13 PM »
I added a menu to save and load the project externally, if in case you want to share the actions.
@Salatiel#5274