Rehash all leafs

These are old archives. They are kept for historic purposes only.
Post Reply
Ryzer

Post by Ryzer »

Is there a way to let the hub rehash all leafs?
For example when you update olines and you want to rehash all leafs, it can take some time... A single command would be nice for this.
jewles
Posts: 263
Joined: Thu Mar 11, 2004 7:41 pm
Location: Herndon, VA

Post by jewles »

i did have a script for mirc that rehashed all servers with a command "rehashall" or something. but as far as server side. No you can't rehash all servers.
FBSD-DEV Project
http://www.fbsd-dev.org

YatesDev Hosting
http://www.yatesdev.com

The Wrong Way
http://www.thewrongway.net
w00t
Posts: 1136
Joined: Thu Mar 25, 2004 3:31 am
Location: Nowra, Australia

Post by w00t »

/rehash server.name.here

Though, as I think of it.. that may accept wildcarding too, so try /rehash *
-ChatSpike IRC Network [http://www.chatspike.net]
-Denora Stats [http://denora.nomadirc.net]
-Omerta [http://www.barafranca.com]
jewles
Posts: 263
Joined: Thu Mar 11, 2004 7:41 pm
Location: Herndon, VA

Post by jewles »

i actually found the mirc script if you would like it... a follow unreal supporter wrote it. I can post it somewhere so you can download it.
FBSD-DEV Project
http://www.fbsd-dev.org

YatesDev Hosting
http://www.yatesdev.com

The Wrong Way
http://www.thewrongway.net
Mark
Posts: 57
Joined: Mon Dec 26, 2005 4:01 pm

Post by Mark »

Code: Select all

raw 006:*:{
  if (%rehashall == yes) {
    var %a $remove($2 , $chr(96), $chr(124))
    if ($left(%a,1) == $chr(45)) { var %a $right(%a, $calc($len(%a) - 1)) }
    rehash %a
    halt
  }
}

alias rehashall {
  set %rehashall yes
  .timer 1 2 unset %rehashall
  map
}

Just wrote it, tested it on Unreal3.2.3 with 3 client servers and 2 services servers, worked there..

Can't say for sure it will work with hellalot more servers, but it should.
static-x
Posts: 28
Joined: Sat Jul 23, 2005 2:43 am

Post by static-x »

Yea it works goodjob i have 6 servers
jewles
Posts: 263
Joined: Thu Mar 11, 2004 7:41 pm
Location: Herndon, VA

Post by jewles »

JUST BECAUSE IT'S MY TOPIC

Code: Select all

alias allrehash {
  set %rehash on
  map
}
 
raw 006:*:{ 
  if (%rehash) { 
    if (. isin $3) { rehash $right($3,-2) }
    elseif ($left($2,1) == `) { rehash $right($2,-2) } 
    elseif ($left($2,1) == $chr(124)) { rehash $right($2,-2) }
    else { rehash $2 }
  }
}
 
raw 007:*:{ unset %rehash }
FBSD-DEV Project
http://www.fbsd-dev.org

YatesDev Hosting
http://www.yatesdev.com

The Wrong Way
http://www.thewrongway.net
Mark
Posts: 57
Joined: Mon Dec 26, 2005 4:01 pm

Post by Mark »

lol jewles :p

yours is better anyway, I didn't notice the raw 007 at the end of a map, so had to use a timer :|
Stealth
Head of Support
Posts: 2086
Joined: Tue Jun 15, 2004 8:50 pm
Location: Chino Hills, CA, US
Contact:

Post by Stealth »

That script looks familiar....


:P
jewles
Posts: 263
Joined: Thu Mar 11, 2004 7:41 pm
Location: Herndon, VA

Post by jewles »

Hey everyone Stealth Rocks for writing the rehashall script!!

:)
FBSD-DEV Project
http://www.fbsd-dev.org

YatesDev Hosting
http://www.yatesdev.com

The Wrong Way
http://www.thewrongway.net
Post Reply