Server Help Forum Index Server Help
Community forums for Subgame, ASSS, and bots
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   StatisticsStatistics   RegisterRegister 
 ProfileProfile   Login to check your private messagesLogin to check your private messages   LoginLogin (SSL) 

Server Help | ASSS Wiki (0) | Shanky.com
Woooo Doors.
Goto page 1, 2  Next
 
Post new topic   Reply to topic Printable version
 View previous topic  _linkedlist.kill() function Post :: Post Can someone tell me how to complie mer...  View next topic  
Author Message
ExplodyThingy
Server Help Squatter


Age:37
Gender:Gender:Male
Joined: Dec 15 2002
Posts: 528
Location: Washington DC
Offline

PostPosted: Mon Feb 17, 2003 7:03 pm    Post subject: Woooo Doors. Reply to topic Reply with quote

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
View users profile Send private message Add User to Ignore List Visit posters website
Dr Brain
Flip-flopping like a wind surfer


Age:38
Gender:Gender:Male
Joined: Dec 01 2002
Posts: 3502
Location: Hyperspace
Offline

PostPosted: Mon Feb 17, 2003 9:33 pm    Post subject: Reply to topic Reply with quote

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
View users profile Send private message Add User to Ignore List AIM Address Yahoo Messenger MSN Messenger
ExplodyThingy
Server Help Squatter


Age:37
Gender:Gender:Male
Joined: Dec 15 2002
Posts: 528
Location: Washington DC
Offline

PostPosted: Mon Feb 17, 2003 11:46 pm    Post subject: Reply to topic Reply with quote

eh? cant i just seee the source to raceref, wherever that may be hiding?
Back to top
View users profile Send private message Add User to Ignore List Visit posters website
Dr Brain
Flip-flopping like a wind surfer


Age:38
Gender:Gender:Male
Joined: Dec 01 2002
Posts: 3502
Location: Hyperspace
Offline

PostPosted: Tue Feb 18, 2003 9:17 am    Post subject: Reply to topic Reply with quote

I will bet that is what it does.
Back to top
View users profile Send private message Add User to Ignore List AIM Address Yahoo Messenger MSN Messenger
VampZ
Guest


Offline

PostPosted: Tue Feb 18, 2003 2:18 pm    Post subject: Reply to topic Reply with quote

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:Gender:Male
Joined: Dec 01 2002
Posts: 3502
Location: Hyperspace
Offline

PostPosted: Tue Feb 18, 2003 4:44 pm    Post subject: Reply to topic Reply with quote

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
View users profile Send private message Add User to Ignore List AIM Address Yahoo Messenger MSN Messenger
ExplodyThingy
Server Help Squatter


Age:37
Gender:Gender:Male
Joined: Dec 15 2002
Posts: 528
Location: Washington DC
Offline

PostPosted: Tue Feb 18, 2003 11:04 pm    Post subject: Reply to topic Reply with quote

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
View users profile Send private message Add User to Ignore List Visit posters website
Dr Brain
Flip-flopping like a wind surfer


Age:38
Gender:Gender:Male
Joined: Dec 01 2002
Posts: 3502
Location: Hyperspace
Offline

PostPosted: Tue Feb 18, 2003 11:32 pm    Post subject: Reply to topic Reply with quote

Yes, but with my function the other doors are unaffected icon_smile.gif.
Back to top
View users profile Send private message Add User to Ignore List AIM Address Yahoo Messenger MSN Messenger
mister_manners
Newbie


Gender:Gender:Male
Joined: Feb 16 2003
Posts: 15
Offline

PostPosted: Wed Feb 19, 2003 12:57 pm    Post subject: Reply to topic Reply with quote

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
View users profile Send private message Add User to Ignore List
VampZ
Guest


Offline

PostPosted: Wed Feb 19, 2003 1:43 pm    Post subject: Reply to topic Reply with quote

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:Gender:Male
Joined: Feb 16 2003
Posts: 15
Offline

PostPosted: Wed Feb 19, 2003 4:06 pm    Post subject: Reply to topic Reply with quote

can u do ?set door mode watever , like a lot without crashing people??
Back to top
View users profile Send private message Add User to Ignore List
ExplodyThingy
Server Help Squatter


Age:37
Gender:Gender:Male
Joined: Dec 15 2002
Posts: 528
Location: Washington DC
Offline

PostPosted: Wed Feb 19, 2003 5:12 pm    Post subject: Reply to topic Reply with quote

probably if you dont macro spam it.
Back to top
View users profile Send private message Add User to Ignore List Visit posters website
Mine GO BOOM
Hunch Hunch
What What
Hunch Hunch<br>What What


Age:40
Gender:Gender:Male
Joined: Aug 01 2002
Posts: 3614
Location: Las Vegas
Offline

PostPosted: Wed Feb 19, 2003 6:56 pm    Post subject: Reply to topic Reply with quote

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
View users profile Send private message Add User to Ignore List Send email
ExplodyThingy
Server Help Squatter


Age:37
Gender:Gender:Male
Joined: Dec 15 2002
Posts: 528
Location: Washington DC
Offline

PostPosted: Thu Feb 20, 2003 1:30 am    Post subject: Reply to topic Reply with quote

Posts: 321 gj.

Is it just me or does MGB always have an answer?
Back to top
View users profile Send private message Add User to Ignore List Visit posters website
mister_manners
Newbie


Gender:Gender:Male
Joined: Feb 16 2003
Posts: 15
Offline

PostPosted: Thu Feb 20, 2003 11:23 am    Post subject: Reply to topic Reply with quote

i dont know, but his avatar SUCKS.change it back! grav_flamethrower.gif grav_furious.gif
Back to top
View users profile Send private message Add User to Ignore List
Mine GO BOOM
Hunch Hunch
What What
Hunch Hunch<br>What What


Age:40
Gender:Gender:Male
Joined: Aug 01 2002
Posts: 3614
Location: Las Vegas
Offline

PostPosted: Thu Feb 20, 2003 3:35 pm    Post subject: Reply to topic Reply with quote

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
View users profile Send private message Add User to Ignore List Send email
VampZ
Guest


Offline

PostPosted: Thu Feb 20, 2003 11:56 pm    Post subject: Reply to topic Reply with quote

so what's the answer to that soccerball friction thing again mine?
Back to top
Mine GO BOOM
Hunch Hunch
What What
Hunch Hunch<br>What What


Age:40
Gender:Gender:Male
Joined: Aug 01 2002
Posts: 3614
Location: Las Vegas
Offline

PostPosted: Fri Feb 21, 2003 8:18 am    Post subject: Reply to topic Reply with quote

Mine GO BOOM wrote:
almost


Don't know everything :)
Back to top
View users profile Send private message Add User to Ignore List Send email
mister_manners
Newbie


Gender:Gender:Male
Joined: Feb 16 2003
Posts: 15
Offline

PostPosted: Fri Feb 21, 2003 10:26 am    Post subject: Reply to topic Reply with quote

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
View users profile Send private message Add User to Ignore List
Dr Brain
Flip-flopping like a wind surfer


Age:38
Gender:Gender:Male
Joined: Dec 01 2002
Posts: 3502
Location: Hyperspace
Offline

PostPosted: Fri Feb 21, 2003 12:38 pm    Post subject: Reply to topic Reply with quote

So, what do you know about the client?
Back to top
View users profile Send private message Add User to Ignore List AIM Address Yahoo Messenger MSN Messenger
Mine GO BOOM
Hunch Hunch
What What
Hunch Hunch<br>What What


Age:40
Gender:Gender:Male
Joined: Aug 01 2002
Posts: 3614
Location: Las Vegas
Offline

PostPosted: Fri Feb 21, 2003 2:31 pm    Post subject: Reply to topic Reply with quote

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
View users profile Send private message Add User to Ignore List Send email
VampZ
Guest


Offline

PostPosted: Fri Feb 21, 2003 10:50 pm    Post subject: Reply to topic Reply with quote

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

PostPosted: Sat Feb 22, 2003 12:32 am    Post subject: Reply to topic Reply with quote

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
View users profile Send private message Add User to Ignore List
reel bad
Seasoned Helper


Age:38
Gender:Gender:Male
Joined: Dec 08 2002
Posts: 155
Location: MA
Offline

PostPosted: Sat Feb 22, 2003 12:33 am    Post subject: Reply to topic Reply with quote

VampZ wrote:
how the hell did prittk emulate this subspace behavior with continuum?


icon_lol.gif
Back to top
View users profile Send private message Add User to Ignore List Send email
Nikon F5
Newbie


Gender:Gender:Male
Joined: Jan 17 2003
Posts: 20
Offline

PostPosted: Sat Feb 22, 2003 8:15 am    Post subject: Reply to topic Reply with quote

try ?set door:doormode=XXX new_kodomagnam.gif
_________________
clouds that thunder dont always rain
Back to top
View users profile Send private message Add User to Ignore List
Display posts from previous:   
Post new topic   Reply to topic    Server Help Forum Index -> Bot Questions All times are GMT - 5 Hours
Goto page 1, 2  Next
Page 1 of 2

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum
View online users | View Statistics | View Ignored List


Software by php BB © php BB Group
Server Load: 617 page(s) served in previous 5 minutes.

phpBB Created this page in 0.599259 seconds : 50 queries executed (82.6%): GZIP compression disabled