Page 1 of 1
Posted: Sat Dec 24, 2005 2:48 am
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.
Posted: Sat Dec 24, 2005 3:15 am
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.
Posted: Tue Dec 27, 2005 4:58 am
by w00t
/rehash server.name.here
Though, as I think of it.. that may accept wildcarding too, so try /rehash *
Posted: Tue Dec 27, 2005 10:27 am
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.
Posted: Tue Dec 27, 2005 10:33 am
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.
Posted: Wed Dec 28, 2005 3:54 am
by static-x
Yea it works goodjob i have 6 servers
Posted: Wed Dec 28, 2005 5:14 am
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 }
Posted: Wed Dec 28, 2005 8:46 am
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
Posted: Thu Dec 29, 2005 1:57 am
by Stealth
That script looks familiar....
Posted: Sat Dec 31, 2005 7:56 am
by jewles
Hey everyone Stealth Rocks for writing the rehashall script!!