Gamestudio Links
Zorro Links
Newest Posts
AlpacaZorroPlugin v1.3.0 Released
by kzhao. 05/20/24 20:05
Free Live Data for Zorro with Paper Trading?
by AbrahamR. 05/18/24 13:28
Change chart colours
by 7th_zorro. 05/11/24 09:25
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
2 registered members (Ayumi, kzhao), 1,354 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Hanky27, firatv, wandaluciaia, Mega_Rod, EternallyCurious
19051 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 1 of 2 1 2
In a perfect world how would you do this?... #203571
04/22/08 20:09
04/22/08 20:09
Joined: Oct 2007
Posts: 116
S
sydan Offline OP
Member
sydan  Offline OP
Member
S

Joined: Oct 2007
Posts: 116
Im not seriously suggesting it but what sort of code would you need to make this.

A game where your every action is recorded so that you can go back and replay from any moment as if you had a time machine. Everything in the game would have to be remembered (if only for a limited time period) you could also carry objects with you to realky make things interesting. So how would you do it?

How would you make a real time travel game?


For some reason, my ambition always seems to beat my ability.
Re: In a perfect world how would you do this?... [Re: sydan] #203572
04/22/08 20:24
04/22/08 20:24
Joined: Jun 2007
Posts: 74
Berlin -> Germany
Arcaine Offline
Junior Member
Arcaine  Offline
Junior Member

Joined: Jun 2007
Posts: 74
Berlin -> Germany
I dont know how...but i think this will be a very hard piece for u to realise^^


Lasst uns brechen und auf den Weg machen,
mir nach, ich folge euch...!!!

Project: Lost Lands
Re: In a perfect world how would you do this?... [Re: Arcaine] #203620
04/23/08 05:58
04/23/08 05:58
Joined: Apr 2005
Posts: 3,815
Finland
Inestical Offline
Rabbit Developer
Inestical  Offline
Rabbit Developer

Joined: Apr 2005
Posts: 3,815
Finland
using sys_record and sys_replay?


"Yesterday was once today's tomorrow."
Re: In a perfect world how would you do this?... [Re: Inestical] #203660
04/23/08 09:57
04/23/08 09:57
Joined: Jul 2007
Posts: 959
nl
F
flits Offline
User
flits  Offline
User
F

Joined: Jul 2007
Posts: 959
nl
saving every handle wat you are doing in a file and then you can load the frame white a reading code

you would need to store much like movement angles animation deletions creation
and some what more


"empty"
Re: In a perfect world how would you do this?... [Re: flits] #203949
04/25/08 09:30
04/25/08 09:30
Joined: Jan 2003
Posts: 4,615
Cambridge
Joey Offline
Expert
Joey  Offline
Expert

Joined: Jan 2003
Posts: 4,615
Cambridge
yep. it's already inbuilt, allthough not very known. sys_record and sys_replay, as inestical said.

Re: In a perfect world how would you do this?... [Re: Joey] #204084
04/26/08 10:59
04/26/08 10:59
Joined: Oct 2007
Posts: 116
S
sydan Offline OP
Member
sydan  Offline OP
Member
S

Joined: Oct 2007
Posts: 116
So this allows you to replay a game from a particular point?


For some reason, my ambition always seems to beat my ability.
Re: In a perfect world how would you do this?... [Re: sydan] #204105
04/26/08 17:29
04/26/08 17:29
Joined: Jan 2003
Posts: 4,615
Cambridge
Joey Offline
Expert
Joey  Offline
Expert

Joined: Jan 2003
Posts: 4,615
Cambridge
theoretically, yes.

Re: In a perfect world how would you do this?... [Re: Joey] #204106
04/26/08 17:36
04/26/08 17:36
Joined: Feb 2008
Posts: 337
V
Vadim647 Offline
Senior Member
Vadim647  Offline
Senior Member
V

Joined: Feb 2008
Posts: 337
Theoretically. At practice, you will need to make a fast forward scroll in replay, or manual setting to time point, or maybe even splitting replays into small parts - just for making avaible returning back for fixed time.

Maybe it will be better to create array per every entity that will record variables 4 times per second and shift last recorded vars back. Maybe it's not easy, because I have seen not many games with this feature.


I switched to other account since marth 2010. Guess which.
Re: In a perfect world how would you do this?... [Re: Vadim647] #206151
05/11/08 15:54
05/11/08 15:54
Joined: Oct 2007
Posts: 116
S
sydan Offline OP
Member
sydan  Offline OP
Member
S

Joined: Oct 2007
Posts: 116
sys_record and sys_replay are not in the help files. Where can i find them?


For some reason, my ambition always seems to beat my ability.
Re: In a perfect world how would you do this?... [Re: sydan] #206153
05/11/08 16:14
05/11/08 16:14
Joined: Feb 2008
Posts: 337
V
Vadim647 Offline
Senior Member
Vadim647  Offline
Senior Member
V

Joined: Feb 2008
Posts: 337
It is in manual. If you cannot find it, paste this to NotePad and save as html file. (code from manual)
 PHP:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <title>sys_record, sys_replay</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <link href="css.css" rel="stylesheet" type="text/css"> </head> <body link="#000000" vlink="#333333" alink="#666666"> <h2>sys_record(STRING* name,<span class="unpara">var</span> mode)</h2> <h2><span class="TutorialText"> </span> sys_replay(STRING* name) </h2> Records or replays the user input in a file in the <a href="asavedir.htm">savedir</a> folder. This can be used for recording or replaying a demo. <h3>Parameters:</h3> <table border="0" cellspacing="2" cellpadding="2"> <tr> <td valign="top"><span class="param">name</span></td> <td>name of the file to be recorded or replayed, or NULL to stop recording or replaying.</td> </tr> <tr> <td valign="top"><span class="param">mode</span></td> <td><p><b>0</b> - record only keys and mouse buttons (file size ca. 1 kb/sec).<br> <b>1</b> - record keys and mouse movements and buttons (ca. 3 kb/sec).<br> <b>3 </b>- record keys, mouse, and joystick movements and buttons (ca. 10 kb/sec). </p> </td> </tr> </table> <h3>Returns:</h3> &gt; <span class="param">0</span> - operation successful,&nbsp;&lt;= <span class="param">0</span> - operation failed. <h3>Speed:</h3> Medium <h3>Remarks:</h3> <ul> <li> When using <b>sys_record()</b> and <b>sys_replay()</b> during gameplay for recording a demo, execute a <b>game_save()</b> / <b>game_load()</b> instruction before for starting the demo from the same position within the level.</li> <li><span class="tast">[Ctrl-Alt-Esc]</span> stops recording and replaying (development version only). Setting <a href="record_mode">record_mode</a> to 0 also stops recording and replaying.</li> <li> The command line options <b>-rec</b> and <b>-rpl</b> automatically record or replay all keyboard and mouse input from the beginning to the file <b>tape.rec</b> (development version only). Joystick movements and buttons are not recorded. This can be used to reproduce a certain movement sequence for debugging purposes.</li> <li>During replay, the application will still react on hitting keyboard or mouse buttons, but not on mouse or joystick movements.</li> <li>The <a href="atime.htm">time_step</a> and <a href="atime.htm">time_frame</a> variables are recorded and replayed also for precisely reproducing movements. </li> </ul> <h3>Example:</h3> <pre><em>// Record a demo from the current position</em><i> </i>game_save("record",0,SV_ALL-SV_INFO); wait(1); sys_record(&quot;record.rec&quot;,1); ... game_load("record",0); wait(1); sys_replay(&quot;record.rec&quot;);</pre> <h3>See also:</h3> <A href="asave.htm"> <span class="links">game_save</span></A>, <a href="asavedir.htm"></a><A href="aload.htm"><span class="links">game_load</span></A>, <a href="asavedir.htm">savedir</a>,<span class="TutorialText"> </span> <a href="record_mode.htm">record_mode</a> </body> </html>



I switched to other account since marth 2010. Guess which.
Page 1 of 2 1 2

Moderated by  HeelX, Lukas, rayp, Rei_Ayanami, Superku, Tobias, TWO, VeT 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1