Recordings - playback
by James Novosel · in RTS Starter Kit · 11/06/2008 (3:51 pm) · 4 replies
Recordings appear to be working using F3 and F4.
Playback however does not appear to work (not sure why).
In order to make the RecordingsDlg.gui work from a menu I moved
example\common\client\recordings.cs
to
example\starter.RTS\client\scripts\recordings.cs
and
example\common\ui\RecordingsDlg.gui
to
example\starter.RTS\client\ui\RecordingsDlg.gui
disabled their exec in canvas.cs,
then initialized these from init.cs:
example\starter.RTS\client\init.cs
//110208 moved the following here from canvas.cs:
exec("./ui/RecordingsDlg.gui");
exec("./scripts/recordings.cs");
( and made RecordingsDlg.gui available from mainMenu.gui via Canvas.pushDialog(recordingsDlg) )
The recordingDlg appears and displays saved recordings ( from creator\data\recordings).
They are saved to example\starter.RTS\recordings (moved them to creator\data\recordings).
Selecting and playing a recording does not work.
Has anyone done anything with recordings that could shed some light on why recordings do not playback ?
I'll continue to investigate the C code (challenging and time consuming for me).
Playback however does not appear to work (not sure why).
In order to make the RecordingsDlg.gui work from a menu I moved
example\common\client\recordings.cs
to
example\starter.RTS\client\scripts\recordings.cs
and
example\common\ui\RecordingsDlg.gui
to
example\starter.RTS\client\ui\RecordingsDlg.gui
disabled their exec in canvas.cs,
then initialized these from init.cs:
example\starter.RTS\client\init.cs
//110208 moved the following here from canvas.cs:
exec("./ui/RecordingsDlg.gui");
exec("./scripts/recordings.cs");
( and made RecordingsDlg.gui available from mainMenu.gui via Canvas.pushDialog(recordingsDlg) )
The recordingDlg appears and displays saved recordings ( from creator\data\recordings).
They are saved to example\starter.RTS\recordings (moved them to creator\data\recordings).
Selecting and playing a recording does not work.
Has anyone done anything with recordings that could shed some light on why recordings do not playback ?
I'll continue to investigate the C code (challenging and time consuming for me).
#2
12/08/2008 (9:08 am)
This should be part of the standard Torque stuff, since it is a "feature with its buttons still intact." Its a useful feature that hasnt worked properly for several updates now. Please , maybe take some time to get a fix for this one for us little people.
#3
I have not gone back to test against stock RTS but cannot imagine my minor mods to the engine would break this. Have not tested in 1.5 yet either.
I have a sneaky suspicion it might have something to do with RTSConnection or the RTSCamera....
It works in the standard FPS game ver 1.4
12/08/2008 (9:30 am)
It should be part of the standard Torque stuff, but for some reason it is not working in the RTS kit.I have not gone back to test against stock RTS but cannot imagine my minor mods to the engine would break this. Have not tested in 1.5 yet either.
I have a sneaky suspicion it might have something to do with RTSConnection or the RTSCamera....
It works in the standard FPS game ver 1.4
#4
12/09/2008 (8:23 am)
I noticed even in FPS it is not stable but it is able to play the file most of the times. In RTS, I noticed that when demo is played, malloc is called with a size of over 1 billion and that is when it fails to return a valid pointer. This is followed by engine shutting down.
Torque Owner Swaroop Reddy