Record And Replay

Need help seting up a server, or have a question on how to run one? This is the place.
Post Reply
User avatar
enrico123
Private First Class
Private First Class
Posts: 91
Joined: Tue Jul 14, 2009 10:49 am
Contact:

Record And Replay

Post by enrico123 » Tue Apr 06, 2010 10:16 pm

WHAT IS THE DIFFERENCE
BETWEEN THE COMMANDS

/record start
/record save
/record file

they all seem to do pretty much the Same thing
"See a need fill a need"-(Bigweld from the movie "Robots")

User avatar
Cobra_Fast
Dev Monkey
Dev Monkey
Posts: 321
Joined: Sat Oct 07, 2006 11:51 am
Location: Germany
Contact:

Re: Record And Replay

Post by Cobra_Fast » Tue Apr 06, 2010 10:18 pm

1.) Please don't shout.
2.) Please read the manual: http://my.bzflag.org/w/Replay_Server

User avatar
enrico123
Private First Class
Private First Class
Posts: 91
Joined: Tue Jul 14, 2009 10:49 am
Contact:

Re: Record And Replay

Post by enrico123 » Tue Apr 06, 2010 10:43 pm

I don't inderstand the manual.... memory buffer?????
"See a need fill a need"-(Bigweld from the movie "Robots")

User avatar
Bambino
Private First Class
Private First Class
Posts: 1210
Joined: Mon Apr 21, 2008 10:27 pm
Location: Alberta, Canada

Re: Record And Replay

Post by Bambino » Tue Apr 06, 2010 11:06 pm

IIRC, the memory buffer is used for how far back the recording goes when you save a recording (in seconds)
"Anyone who has never made a mistake has never tried anything new." -- Albert Einstein
GU League | Ducati League | OpenLeague

User avatar
enrico123
Private First Class
Private First Class
Posts: 91
Joined: Tue Jul 14, 2009 10:49 am
Contact:

Re: Record And Replay

Post by enrico123 » Wed Apr 07, 2010 8:54 am

so if i want to start a recording i should just do /record file
"See a need fill a need"-(Bigweld from the movie "Robots")

User avatar
Bambino
Private First Class
Private First Class
Posts: 1210
Joined: Mon Apr 21, 2008 10:27 pm
Location: Alberta, Canada

Re: Record And Replay

Post by Bambino » Wed Apr 07, 2010 2:56 pm

Or you could read how to do it correctly...

Setup a replay server then do

Code: Select all

/record save <filename> <seconds>
"Anyone who has never made a mistake has never tried anything new." -- Albert Einstein
GU League | Ducati League | OpenLeague

User avatar
Cobra_Fast
Dev Monkey
Dev Monkey
Posts: 321
Joined: Sat Oct 07, 2006 11:51 am
Location: Germany
Contact:

Re: Record And Replay

Post by Cobra_Fast » Wed Apr 07, 2010 3:03 pm

Bambino wrote:Or you could read how to do it correctly...

Setup a replay server then do

Code: Select all

/record save <filename> <seconds>
doing /record on a replay server wouldn't do anything except throwing error messages.
the commands for replay servers are in /replay

if you specified -recdir on a normal server the /record command will be enabled.

to record a proper recording do the following on a /record-enabled server:
  1. /record start
  2. play...
  3. /record save filename
  4. /record stop

User avatar
Bambino
Private First Class
Private First Class
Posts: 1210
Joined: Mon Apr 21, 2008 10:27 pm
Location: Alberta, Canada

Re: Record And Replay

Post by Bambino » Wed Apr 07, 2010 3:14 pm

Sorry, I should have made myself more clear. I ment, setup a replay server *then* go back onto the game server and save a recording and watch it on the replay server.
"Anyone who has never made a mistake has never tried anything new." -- Albert Einstein
GU League | Ducati League | OpenLeague

User avatar
enrico123
Private First Class
Private First Class
Posts: 91
Joined: Tue Jul 14, 2009 10:49 am
Contact:

Re: Record And Replay

Post by enrico123 » Wed Apr 07, 2010 5:56 pm

just another quick question

when i do /say hi

it looks like SERVER: hi (enrico123)

how do i get rid of my name in the brackets?
"See a need fill a need"-(Bigweld from the movie "Robots")

User avatar
Cobra_Fast
Dev Monkey
Dev Monkey
Posts: 321
Joined: Sat Oct 07, 2006 11:51 am
Location: Germany
Contact:

Re: Record And Replay

Post by Cobra_Fast » Wed Apr 07, 2010 6:39 pm

Get rid of lines 3492 to 3494 of commands.cxx of bzfs and recompile it.

The lines look like

Code: Select all

  // no anonymous messages
  messageText += " (";
  messageText += playerData->player.getCallSign();
  messageText += ")";

User avatar
enrico123
Private First Class
Private First Class
Posts: 91
Joined: Tue Jul 14, 2009 10:49 am
Contact:

Re: Record And Replay

Post by enrico123 » Wed Apr 07, 2010 7:21 pm

but loads of people have this already and they have not done the above an i cant do that
"See a need fill a need"-(Bigweld from the movie "Robots")

User avatar
Cobra_Fast
Dev Monkey
Dev Monkey
Posts: 321
Joined: Sat Oct 07, 2006 11:51 am
Location: Germany
Contact:

Re: Record And Replay

Post by Cobra_Fast » Wed Apr 07, 2010 7:24 pm

how can you tell?

User avatar
blast
General
General
Posts: 4792
Joined: Fri Mar 21, 2003 3:49 pm
Location: playing.cxx
Contact:

Re: Record And Replay

Post by blast » Wed Apr 07, 2010 7:42 pm

The only way to do it is to write some kind of code. Either the modification that Cobra_Fast mentioned, or a custom plugin that adds a new command that acts like /say.
"In addition to knowing the secrets of the Universe, I can assure you that I am also quite potty trained." -Koenma (Yu Yu Hakusho)

Image

User avatar
enrico123
Private First Class
Private First Class
Posts: 91
Joined: Tue Jul 14, 2009 10:49 am
Contact:

Re: Record And Replay

Post by enrico123 » Wed Apr 07, 2010 8:28 pm

oh i have just realized there is the anonsay plugin
"See a need fill a need"-(Bigweld from the movie "Robots")

User avatar
enrico123
Private First Class
Private First Class
Posts: 91
Joined: Tue Jul 14, 2009 10:49 am
Contact:

Re: Record And Replay

Post by enrico123 » Wed Apr 07, 2010 8:29 pm

by any chance blast could you do my groups please

thanks
"See a need fill a need"-(Bigweld from the movie "Robots")

User avatar
enrico123
Private First Class
Private First Class
Posts: 91
Joined: Tue Jul 14, 2009 10:49 am
Contact:

Re: Record And Replay

Post by enrico123 » Wed Apr 07, 2010 9:26 pm

does anybody know why my anonsay plugin won't work???
"See a need fill a need"-(Bigweld from the movie "Robots")

User avatar
blast
General
General
Posts: 4792
Joined: Fri Mar 21, 2003 3:49 pm
Location: playing.cxx
Contact:

Re: Record And Replay

Post by blast » Wed Apr 07, 2010 9:55 pm

enrico123 wrote:does anybody know why my anonsay plugin won't work???
Are you compiling it to match your copy of bzfs?
"In addition to knowing the secrets of the Universe, I can assure you that I am also quite potty trained." -Koenma (Yu Yu Hakusho)

Image

User avatar
enrico123
Private First Class
Private First Class
Posts: 91
Joined: Tue Jul 14, 2009 10:49 am
Contact:

Re: Record And Replay

Post by enrico123 » Wed Apr 07, 2010 10:25 pm

bassicly I am running my server on fairserve.bzflag.net and when I do /say it comes up with the brackes thing at the end (enrico123) but on honeytanks server also hosted on fairserve it doesn't
"See a need fill a need"-(Bigweld from the movie "Robots")

User avatar
blast
General
General
Posts: 4792
Joined: Fri Mar 21, 2003 3:49 pm
Location: playing.cxx
Contact:

Re: Record And Replay

Post by blast » Wed Apr 07, 2010 11:11 pm

Ask the server owner then.
"In addition to knowing the secrets of the Universe, I can assure you that I am also quite potty trained." -Koenma (Yu Yu Hakusho)

Image

User avatar
McSpider
Private First Class
Private First Class
Posts: 49
Joined: Mon May 11, 2009 10:11 pm
Location: Yukon Canada
Contact:

Re: Record And Replay

Post by McSpider » Wed Apr 07, 2010 11:12 pm

enrico123 wrote:does anybody know why my anonsay plugin won't work???
annoSay uses /asay command not the /say command.
read here: http://theme.freehostia.com/bzflag/plugins/#anonSay

And it only removes the SERVER: as far as I know.
I don't know what the other plugin is called that removes the senders name at the end.
McSpider - BZFlag Maps

User avatar
Bambino
Private First Class
Private First Class
Posts: 1210
Joined: Mon Apr 21, 2008 10:27 pm
Location: Alberta, Canada

Re: Record And Replay

Post by Bambino » Wed Apr 07, 2010 11:26 pm

McSpider wrote: I don't know what the other plugin is called that removes the senders name at the end.
The "asay" plugin removes the name. It uses the "asay" group permission. Anonsay makes it look like anonymous /me. It uses the "anonsay" group permission.
"Anyone who has never made a mistake has never tried anything new." -- Albert Einstein
GU League | Ducati League | OpenLeague

User avatar
enrico123
Private First Class
Private First Class
Posts: 91
Joined: Tue Jul 14, 2009 10:49 am
Contact:

Re: Record And Replay

Post by enrico123 » Thu Apr 08, 2010 9:30 am

ok tanks
"See a need fill a need"-(Bigweld from the movie "Robots")

User avatar
mrapple
Sergeant Major
Sergeant Major
Posts: 460
Joined: Wed May 27, 2009 11:59 am
Location: Unknown
Contact:

Re: Record And Replay

Post by mrapple » Fri Apr 09, 2010 2:43 am

Just a little update to your previous post about not adding the name to who used /say.

I use a nice mod on my server which doesnt send it in the message, but instead sends a message to the admin channel saying "Callsign used the say command".

Heres the mod on line 3491

Code: Select all

  std::string adminMessage = playerData->player.getCallSign();
  adminMessage += " used the say command";

  // send the message
  sendMessage(ServerPlayer, AllPlayers, messageText.c_str() + messageStart );

  // send the admin message
  sendMessage(ServerPlayer, AdminPlayers, adminMessage.c_str());
  return true;
}
Image

User avatar
enrico123
Private First Class
Private First Class
Posts: 91
Joined: Tue Jul 14, 2009 10:49 am
Contact:

Re: Record And Replay

Post by enrico123 » Fri Apr 09, 2010 8:33 am

but im using fairserve so cannot edit bzfs and cannot compile
"See a need fill a need"-(Bigweld from the movie "Robots")

Post Reply