Author Topic: The revert command  (Read 3737 times)

Owl

  • Posts: 33
  • Turrets: +3/-3
The revert command
« on: December 15, 2007, 02:28:59 am »
So how does one use this command, exactly? It used to be quite easy, but with a new stuff on a server, it's a little more complicated.

!revert (xnum) (#ID) (-player) (team)

Lulwhat?

Rocinante

  • Posts: 642
  • Turrets: +252/-668
    • My Homepage
Re: The revert command
« Reply #1 on: December 15, 2007, 07:19:12 am »
Code: [Select]
< jabrwock> !help: help for '!revert':
< jabrwock>  Function: revert one or more buildlog events, optionally of only one team
< jabrwock>  Syntax: !revert (xnum) (#ID) (-player) (team)
< jabrwock>  Flag: 'v'
< jabrwock> maybe some examples would be helpful
< Lakitu7> Most simple way is !revert x3 h   = revert last 3 things on the humans
< Lakitu7> All-in-one example:   !revert #20 x3 -unnamedplayer h    = start at event #20, revert 3 things by unnamedplayer on humans

It's a bit confusing, but quite powerful.  And the help & docs might be rewritten before Lakitu releases the QVM as a whole, but he's been busy with other things lately.
}MG{Mercenaries Guild
"On my ship, the Rocinante, wheeling through the galaxies, headed for the heart of Cygnus, headlong into mystery." -- Rush, "Cygnus X-1"

Lakitu7

  • Tremulous Developers
  • *
  • Posts: 1002
  • Turrets: +120/-73
Re: The revert command
« Reply #2 on: December 15, 2007, 07:51:37 am »
I didn't know Ben had gone ahead and released anything with the new syntax. I mean, it's sort of ready but we could have used to clean up the help and such more first.

Oh well. When I do qvm release I'll have a good writup in MY docs, anyway.

benmachine

  • Posts: 915
  • Turrets: +99/-76
    • ben's machinery
Re: The revert command
« Reply #3 on: December 15, 2007, 01:26:28 pm »
I realise that the syntax is confusing but people kept asking for features and what I did seemed the best way to accommodate them all.

My documentation is here:

http://www.bandstand.org.uk/~benm/coding/done.php#buildlog-revert
benmachine

doomagent13

  • Posts: 506
  • Turrets: +18/-18
Re: The revert command
« Reply #4 on: December 19, 2007, 06:26:43 pm »
You should probably make it parse arguements in such a way that it can still handle the old format.

Btw, did you fix the inconsistencies in it? (!revert 10h would only revert 1 buildable)

And could you make teh buildlog store !reverts, maybe at teh front?

Lakitu7

  • Tremulous Developers
  • *
  • Posts: 1002
  • Turrets: +120/-73
Re: The revert command
« Reply #5 on: December 20, 2007, 07:19:45 am »
xnum is roughly the old format. It was changed to be "broken" on purpose because so much was changed that it shouldn't be used blindly with the old syntax anymore. Consider this the "read the help before proceeding" point.

It should be better at parsing the h and a at different locations, but it's still best to just put them at the end with a space separation

The last one I can't answer for him.

benmachine

  • Posts: 915
  • Turrets: +99/-76
    • ben's machinery
Re: The revert command
« Reply #6 on: December 20, 2007, 05:26:28 pm »
Lakitu's right about the old syntax. With regards to "does X work", try it and see.
And could you make teh buildlog store !reverts, maybe at teh front?
No. Often, I'll revert some decon, and realise some buildables are still missing - so I'll want to be able to 'pick up where I left off' as it were. Putting reverts in the buildlog would only serve to confuse, especially if one were alowed to revert those reverts.

!undo and !redo have been considered, however things are already damned complicated.
benmachine

doomagent13

  • Posts: 506
  • Turrets: +18/-18
Re: The revert command
« Reply #7 on: December 21, 2007, 02:01:36 am »
I was thinking more along the lines of to be able to re!revert.  There have been times when !revert would print the success message but not actually make the buildable.

kevlarman

  • Posts: 2737
  • Turrets: +291/-295
Re: The revert command
« Reply #8 on: December 21, 2007, 02:44:58 am »
use the console, then you can always repeat a command with a simple up+enter
Quote from: Asvarox link=topic=8622.msg169333#msg169333
Ok let's plan it out. Asva, you are nub, go sit on rets, I will build, you two go feed like hell, you go pwn their asses, and everyone else camp in the hallway, roger?
the dretch bites.
-----
|..d| #
|.@.-##
-----

Paradox

  • Posts: 2612
  • Turrets: +253/-250
    • Paradox Designs
Re: The revert command
« Reply #9 on: January 02, 2008, 12:52:36 am »
A good command would be !undo and !undolog...

∧OMG ENTROPY∧