Author |
Message |
ExplodyThingy Server Help Squatter
Age:37 Gender: Joined: Dec 15 2002 Posts: 528 Location: Washington DC Offline
|
Posted: Mon Feb 17, 2003 7:03 pm Post subject: Woooo Doors. |
|
|
|
|
How can you use MERVBot to open the doors.
For example:
case EVENT_FlagDrop:
openDoor(5);
this way when a player drops a flag, the door number '5' is toggled. What server settings and bot code do i need to do this? _________________ There are no stupid question, but there are many inquisitive idiots.
Loot
Dr Brain> I hate clean air and clean water. I'm a member of Evil Conservitive Industries |
|
Back to top |
|
|
Dr Brain Flip-flopping like a wind surfer
Age:38 Gender: Joined: Dec 01 2002 Posts: 3502 Location: Hyperspace Offline
|
Posted: Mon Feb 17, 2003 9:33 pm Post subject: |
|
|
|
|
parse out the number from ?get door:doormode then and then OR the number with 2^5 and ?set door:doormode newnumber _________________ Hyperspace Owner
Smong> so long as 99% deaths feel lame it will always be hyperspace to me |
|
Back to top |
|
|
ExplodyThingy Server Help Squatter
Age:37 Gender: Joined: Dec 15 2002 Posts: 528 Location: Washington DC Offline
|
Posted: Mon Feb 17, 2003 11:46 pm Post subject: |
|
|
|
|
eh? cant i just seee the source to raceref, wherever that may be hiding? |
|
Back to top |
|
|
Dr Brain Flip-flopping like a wind surfer
Age:38 Gender: Joined: Dec 01 2002 Posts: 3502 Location: Hyperspace Offline
|
Posted: Tue Feb 18, 2003 9:17 am Post subject: |
|
|
|
|
I will bet that is what it does. |
|
Back to top |
|
|
VampZ Guest
Offline
|
Posted: Tue Feb 18, 2003 2:18 pm Post subject: |
|
|
|
|
there are eight dofferemt doors(one for each tile).
there are 256 possiblities for open / closed combinations.
if you type ?set door:doormode:0 it will open all the doors
0 as an ascii byte is 0000000 (all 0's = all open)
if you type ?set door:doormode:255 it will close all the doors
255 as an ascii byte is 11111111 (all 1's = all open)
now say you want just door 5 closed.
you want ascii byte 00001000 (all 0's execpt the fifth bit)
00001000 in decimal is 8.
so if you type ?set door:doormode:8 it will open all doors except door 5.
if you want only doors 1,2,5,8 open and the rest closed you are looking at ascii byte 10010011 = (decimal) 128 + 16 + 2 + 1 = (decimal) 147.
so you would type ?set door:doormode:147 to get this combination. |
|
Back to top |
|
|
Dr Brain Flip-flopping like a wind surfer
Age:38 Gender: Joined: Dec 01 2002 Posts: 3502 Location: Hyperspace Offline
|
Posted: Tue Feb 18, 2003 4:44 pm Post subject: |
|
|
|
|
These functions should return the new value to ?set when you input the proper door to open (doorNum) and the old door setting (oldDoor).
public int CalcOpenDoor(int doorNum, int oldDoor)
{
return oldDoor | (2 ^ (doorNum-1));
}
public int CalcCloseDoor(int doorNum, int oldDoor)
{
return oldDoor | (255 - (2 ^ (doorNum-1)));
} |
|
Back to top |
|
|
ExplodyThingy Server Help Squatter
Age:37 Gender: Joined: Dec 15 2002 Posts: 528 Location: Washington DC Offline
|
Posted: Tue Feb 18, 2003 11:04 pm Post subject: |
|
|
|
|
Vampz made that nice and clear, and uniquely enough, the in question i was trying to control was 5, so less math for me. |
|
Back to top |
|
|
Dr Brain Flip-flopping like a wind surfer
Age:38 Gender: Joined: Dec 01 2002 Posts: 3502 Location: Hyperspace Offline
|
Posted: Tue Feb 18, 2003 11:32 pm Post subject: |
|
|
|
|
Yes, but with my function the other doors are unaffected . |
|
Back to top |
|
|
mister_manners Newbie
Gender: Joined: Feb 16 2003 Posts: 15 Offline
|
Posted: Wed Feb 19, 2003 12:57 pm Post subject: |
|
|
|
|
if u onlee want a cup of doors open, then make the bot say it, i can program a cuple like,
!closedoor1-10, if thats wat ur lookin 4. |
|
Back to top |
|
|
VampZ Guest
Offline
|
Posted: Wed Feb 19, 2003 1:43 pm Post subject: |
|
|
|
|
but i kinda screwed up saying
00001000 was door number 5 when it's actually door number 4 :-O
for door number 5 you need 0010000 or ?set door:doormode:16 |
|
Back to top |
|
|
mister_manners Newbie
Gender: Joined: Feb 16 2003 Posts: 15 Offline
|
Posted: Wed Feb 19, 2003 4:06 pm Post subject: |
|
|
|
|
can u do ?set door mode watever , like a lot without crashing people?? |
|
Back to top |
|
|
ExplodyThingy Server Help Squatter
Age:37 Gender: Joined: Dec 15 2002 Posts: 528 Location: Washington DC Offline
|
Posted: Wed Feb 19, 2003 5:12 pm Post subject: |
|
|
|
|
probably if you dont macro spam it. |
|
Back to top |
|
|
Mine GO BOOM Hunch Hunch What What
Age:40 Gender: Joined: Aug 01 2002 Posts: 3614 Location: Las Vegas Offline
|
Posted: Wed Feb 19, 2003 6:56 pm Post subject: |
|
|
|
|
Everytime you do a ?door, it sends the settings packet to everyone, which is about 1.5k if i remember correctly. Somewhere around that. So doing it every second easily sucks up a good bit of people's bandwidth on a 56k connection. Doing it every 10 secs should be ok unless your a super zone. |
|
Back to top |
|
|
ExplodyThingy Server Help Squatter
Age:37 Gender: Joined: Dec 15 2002 Posts: 528 Location: Washington DC Offline
|
Posted: Thu Feb 20, 2003 1:30 am Post subject: |
|
|
|
|
Posts: 321 gj.
Is it just me or does MGB always have an answer? |
|
Back to top |
|
|
mister_manners Newbie
Gender: Joined: Feb 16 2003 Posts: 15 Offline
|
Posted: Thu Feb 20, 2003 11:23 am Post subject: |
|
|
|
|
i dont know, but his avatar SUCKS.change it back! |
|
Back to top |
|
|
Mine GO BOOM Hunch Hunch What What
Age:40 Gender: Joined: Aug 01 2002 Posts: 3614 Location: Las Vegas Offline
|
Posted: Thu Feb 20, 2003 3:35 pm Post subject: |
|
|
|
|
ExplodyThingy wrote: | Is it just me or does MGB always have an answer? |
Its maybe because i spent about five years working with the server. I figured out almost every packet sent to/from subspace alone (hey, was bored in my high school math class, i printed out packet logs). I talk with people who actually made a subspace clone. I know how computers work. I understand how weird bugs happen from code that wasn't designed for what it is used for. Simple, i've done this for too long.
EDIT: Don't forget the ~4,000 posts i made on my old board. |
|
Back to top |
|
|
VampZ Guest
Offline
|
Posted: Thu Feb 20, 2003 11:56 pm Post subject: |
|
|
|
|
so what's the answer to that soccerball friction thing again mine? |
|
Back to top |
|
|
Mine GO BOOM Hunch Hunch What What
Age:40 Gender: Joined: Aug 01 2002 Posts: 3614 Location: Las Vegas Offline
|
Posted: Fri Feb 21, 2003 8:18 am Post subject: |
|
|
|
|
Mine GO BOOM wrote: | almost |
Don't know everything :) |
|
Back to top |
|
|
mister_manners Newbie
Gender: Joined: Feb 16 2003 Posts: 15 Offline
|
Posted: Fri Feb 21, 2003 10:26 am Post subject: |
|
|
|
|
i am trying to learn everything in the client alone, then the server :/ its taken me abou... 3 1\2 years.i would say i know about 95% of the stuff. prette much nothing of the server. (bots dont count : )) |
|
Back to top |
|
|
Dr Brain Flip-flopping like a wind surfer
Age:38 Gender: Joined: Dec 01 2002 Posts: 3502 Location: Hyperspace Offline
|
Posted: Fri Feb 21, 2003 12:38 pm Post subject: |
|
|
|
|
So, what do you know about the client? |
|
Back to top |
|
|
Mine GO BOOM Hunch Hunch What What
Age:40 Gender: Joined: Aug 01 2002 Posts: 3614 Location: Las Vegas Offline
|
Posted: Fri Feb 21, 2003 2:31 pm Post subject: |
|
|
|
|
If you know about 95% of the client information, such as things like speed is in pixels per 10 seconds, post it. I'll pop it into an FAQ for people to marvel at the physic formulas. |
|
Back to top |
|
|
VampZ Guest
Offline
|
Posted: Fri Feb 21, 2003 10:50 pm Post subject: |
|
|
|
|
so far in my research on the friction topic I have found:
on friction setting 1:
when the ball is going less than speed 1000, the acceleration on the ball is -10p/s^2
when the ball is going between 1000 and 2000 the acceleration on the ball is -20p/s^2
then the ball is going between 2000 and 3000 the accleration on the ball is AROUND -35p/s^2
how the hell did prittk emulate this subspace behavior with continuum? |
|
Back to top |
|
|
tec27 Newbie
Joined: Feb 01 2003 Posts: 13 Offline
|
Posted: Sat Feb 22, 2003 12:32 am Post subject: |
|
|
|
|
I was trying to use the ?set door:doormode: thing in order to incorporate it into a mervbot plugin, however, I couldn't get it to work. When I set the doormode to the number whic should have closed the door, it didn't work. I'm not sure if there are any other settings which could effect it, but I would really like to figure out what is wrong. |
|
Back to top |
|
|
reel bad Seasoned Helper
Age:38 Gender: Joined: Dec 08 2002 Posts: 155 Location: MA Offline
|
Posted: Sat Feb 22, 2003 12:33 am Post subject: |
|
|
|
|
VampZ wrote: | how the hell did prittk emulate this subspace behavior with continuum? |
|
|
Back to top |
|
|
Nikon F5 Newbie
Gender: Joined: Jan 17 2003 Posts: 20 Offline
|
Posted: Sat Feb 22, 2003 8:15 am Post subject: |
|
|
|
|
try ?set door:doormode=XXX _________________ clouds that thunder dont always rain |
|
Back to top |
|
|
|