Gamestudio Links
Zorro Links
Newest Posts
Zorro Trader GPT
by TipmyPip. 04/27/24 13:50
Trading Journey
by 7th_zorro. 04/27/24 04:42
Help with plotting multiple ZigZag
by M_D. 04/26/24 20:03
Data from CSV not parsed correctly
by jcl. 04/26/24 11:18
M1 Oversampling
by jcl. 04/26/24 11:12
Why Zorro supports up to 72 cores?
by jcl. 04/26/24 11:09
Eigenwerbung
by jcl. 04/26/24 11:08
MT5 bridge not working on MT5 v. 5 build 4160
by EternallyCurious. 04/25/24 20:49
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
2 registered members (TipmyPip, VoroneTZ), 769 guests, and 4 spiders.
Key: Admin, Global Mod, Mod
Newest Members
wandaluciaia, Mega_Rod, EternallyCurious, howardR, 11honza11
19049 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 2 of 3 1 2 3
Re: How to Record a Demo [Re: Shinobi] #67599
03/22/06 21:11
03/22/06 21:11
Joined: Sep 2003
Posts: 2,174
Israel, Haifa
ROMAC Offline
Expert
ROMAC  Offline
Expert

Joined: Sep 2003
Posts: 2,174
Israel, Haifa
I've made something like this using a .dll for Action Bird - great to see something not using a dll, but rather simple c-script, this is extremely helpful!

Re: How to Record a Demo [Re: ROMAC] #67600
03/23/06 02:16
03/23/06 02:16
Joined: Feb 2006
Posts: 202
Southern California, USA
G
GhostwriterDoF Offline
Member
GhostwriterDoF  Offline
Member
G

Joined: Feb 2006
Posts: 202
Southern California, USA
This is great! danke Shinobi, lots of other posts asking for something like
this. Mine included


The rivers of time erode away the mountains of existence...
Re: How to Record a Demo [Re: GhostwriterDoF] #67601
03/23/06 08:56
03/23/06 08:56
Joined: Oct 2003
Posts: 560
Germany / NRW / Essen
Shinobi Offline OP
User
Shinobi  Offline OP
User

Joined: Oct 2003
Posts: 560
Germany / NRW / Essen
Quote:

This is great! danke Shinobi, lots of other posts asking for something like
this. Mine included




This is the reason why i made this

Re: How to Record a Demo [Re: Shinobi] #67602
03/24/06 09:53
03/24/06 09:53
Joined: Feb 2006
Posts: 202
Southern California, USA
G
GhostwriterDoF Offline
Member
GhostwriterDoF  Offline
Member
G

Joined: Feb 2006
Posts: 202
Southern California, USA
"This is the reason why i made this "


I guess wishes do come true


The rivers of time erode away the mountains of existence...
Re: How to Record a Demo [Re: GhostwriterDoF] #67603
03/30/06 08:44
03/30/06 08:44
Joined: Oct 2003
Posts: 560
Germany / NRW / Essen
Shinobi Offline OP
User
Shinobi  Offline OP
User

Joined: Oct 2003
Posts: 560
Germany / NRW / Essen
Another thing i forgot to Point out is , you dont have to use while(1);
in your recording and playing functions loop , you dont have to save every tick .
Better for the performance would be 3 or more . Best for me and my slowly Computer is for example wait(3);

function demo_record()

{
if(demo_mode!=0){return;} // if we already recording or playing , end here
demo_mode=1;
counter=0;
start_timer();
filehandle=file_open_write("demo.DEM");
str_cpy(show_info.string,"Recording Demo !!");
while(demo_mode==1)
{
file_var_write(filehandle,player.pan);
file_asc_write(filehandle,13);
file_var_write(filehandle,player.x);
file_asc_write(filehandle,13);
file_var_write(filehandle,player.y);
file_asc_write(filehandle,13);
file_var_write(filehandle,player.z);
file_asc_write(filehandle,13);
file_var_write(filehandle,speed.x);
file_asc_write(filehandle,13);
file_var_write(filehandle,speed.y);
file_asc_write(filehandle,13);
file_var_write(filehandle,speed.z);
file_asc_write(filehandle,13);
counter+=1;
wait(1); // wait(3); for slower Computer play with 3
}
file_close(filehandle);
str_cpy(show_info.string,"Stoped Recording !!");
}




Dont forget to change Both functions , recording and for Playing

if you want the demo to play Faster as recorded so let it (1) in play function and maybe (2) or (3) while recording .

if you want the demo to play in slow motion so let i (3) in play function and maybe (1) or (2) while recording.

Re: How to Record a Demo [Re: Shinobi] #67604
03/30/06 18:32
03/30/06 18:32
Joined: Aug 2005
Posts: 343
Germany
HPW Offline
Senior Member
HPW  Offline
Senior Member

Joined: Aug 2005
Posts: 343
Germany
It's better to use waitt(1) instead of wait(1) to solve speed problems, isn't it?


Evil Blood (v. 0.52) RPG
Commport.de (Social Network Community)
Re: How to Record a Demo [Re: HPW] #67605
03/30/06 19:43
03/30/06 19:43
Joined: Oct 2003
Posts: 560
Germany / NRW / Essen
Shinobi Offline OP
User
Shinobi  Offline OP
User

Joined: Oct 2003
Posts: 560
Germany / NRW / Essen
Giebt es waitt überhaubt ? habe es nie benutzt und mal hier und da gehört , aber dachte eigendlich es ist noch aus der alten syntex .

Was genau ist denn der Unterschied zwischen den beiden ?

arebeitet waitt mit time zusammen ?

Re: How to Record a Demo [Re: Shinobi] #67606
03/30/06 20:13
03/30/06 20:13
Joined: Jan 2004
Posts: 2,013
The Netherlands
E
Excessus Offline
Expert
Excessus  Offline
Expert
E

Joined: Jan 2004
Posts: 2,013
The Netherlands
waitt is indeed old syntax. You should use wait(-x) to wait x seconds.

I guess conitec got inspired by your code.. sys_record.

Re: How to Record a Demo [Re: Excessus] #67607
03/30/06 20:20
03/30/06 20:20
Joined: Oct 2003
Posts: 560
Germany / NRW / Essen
Shinobi Offline OP
User
Shinobi  Offline OP
User

Joined: Oct 2003
Posts: 560
Germany / NRW / Essen
Nice to see , of course we the Community should show Conitec some ideas and incitations too , to help them to give us a better Engine and script.
So iam happy if i could help a bit in that direction.

Re: How to Record a Demo [Re: Shinobi] #67608
03/30/06 22:52
03/30/06 22:52
Joined: Aug 2005
Posts: 343
Germany
HPW Offline
Senior Member
HPW  Offline
Senior Member

Joined: Aug 2005
Posts: 343
Germany
Sorry, I don't know this is old syntax. I still have A5 not A6, but waitt(1) or <?>wait(-1)<?> working with time instead of frames.

With the functions from conitec we can only record the user inputs, this means we can as example only record the player actions but what's with the npc actions?

Last edited by HPW; 03/30/06 22:57.
Page 2 of 3 1 2 3

Moderated by  adoado, checkbutton, mk_1, Perro 

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