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
soccerball eating tiles

 
Post new topic   Reply to topic Printable version
 View previous topic  Zone stealing name therats Post :: Post Zone lag issue  View next topic  
Author Message
SuperDAVE(postal)
Novice


Joined: Apr 23 2003
Posts: 53
Offline

PostPosted: Fri Oct 15, 2004 10:35 pm    Post subject: soccerball eating tiles Reply to topic Reply with quote

Is there any other tile that would eat a soccerball other than the goal. I already tested (i think) the special tiles with no luck, they all bounced off.
Back to top
View users profile Send private message Add User to Ignore List
SuSE
Me measures good


Joined: Dec 02 2002
Posts: 2307
Offline

PostPosted: Fri Oct 15, 2004 10:48 pm    Post subject: Reply to topic Reply with quote

No. Make a bot and you can do whatever you want.
Back to top
View users profile Send private message Add User to Ignore List Send email Visit posters website
Cyan~Fire
I'll count you!
I'll count you!


Age:37
Gender:Gender:Male
Joined: Jul 14 2003
Posts: 4608
Location: A Dream
Offline

PostPosted: Sat Oct 16, 2004 4:56 pm    Post subject: Reply to topic Reply with quote

Why exactly do you want to "eat" balls?
_________________
This help is informational only. No representation is made or warranty given as to its content. User assumes all risk of use. Cyan~Fire assumes no responsibility for any loss or delay resulting from such use.
Wise men STILL seek Him.
Back to top
View users profile Send private message Add User to Ignore List Visit posters website
CypherJF
I gargle nitroglycerin


Gender:Gender:Male
Joined: Aug 14 2003
Posts: 2582
Location: USA
Offline

PostPosted: Sat Oct 16, 2004 5:31 pm    Post subject: Reply to topic Reply with quote

Probably like reset the ball if it hits a specific tile... "eat"ing it..
_________________
Performance is often the art of cheating carefully. - James Gosling
Back to top
View users profile Send private message Add User to Ignore List
Cyan~Fire
I'll count you!
I'll count you!


Age:37
Gender:Gender:Male
Joined: Jul 14 2003
Posts: 4608
Location: A Dream
Offline

PostPosted: Sun Oct 17, 2004 11:43 am    Post subject: Reply to topic Reply with quote

OK.

Basically what you'll want to do is check the position of the ball on EVENT_BallMove to see if it's in any of the "eat spots". Then send an EVENT_GrabBall to pick it up if it is. Then send an EVENT_FireBall with a random position (as relating to Prize:MinimumVirtual) and a 0 x and y velocity to reset it.
Back to top
View users profile Send private message Add User to Ignore List Visit posters website
-Smong-
Guest


Offline

PostPosted: Sun Oct 17, 2004 4:17 pm    Post subject: Reply to topic Reply with quote

So mervbot has the ball physics in it? I've got to see this.
Back to top
SuperDAVE(postal)
Novice


Joined: Apr 23 2003
Posts: 53
Offline

PostPosted: Sun Oct 17, 2004 9:34 pm    Post subject: Reply to topic Reply with quote

Thanks, just wanted to double check with the pros. icon_smile.gif
Back to top
View users profile Send private message Add User to Ignore List
Cyan~Fire
I'll count you!
I'll count you!


Age:37
Gender:Gender:Male
Joined: Jul 14 2003
Posts: 4608
Location: A Dream
Offline

PostPosted: Mon Oct 18, 2004 4:44 pm    Post subject: Reply to topic Reply with quote

Yeah, the latest DLL event update added in ball events.
Back to top
View users profile Send private message Add User to Ignore List Visit posters website
Smong
Server Help Squatter


Joined: 1043048991
Posts: 0x91E
Offline

PostPosted: Wed Oct 20, 2004 12:52 pm    Post subject: Reply to topic Reply with quote

I just took a quick look and I can't find any functions that update a balls position and velocity over time.
Back to top
View users profile Send private message Add User to Ignore List Visit posters website MSN Messenger
Cyan~Fire
I'll count you!
I'll count you!


Age:37
Gender:Gender:Male
Joined: Jul 14 2003
Posts: 4608
Location: A Dream
Offline

PostPosted: Wed Oct 20, 2004 6:57 pm    Post subject: Reply to topic Reply with quote

If you don't have the events I mentioned, then your source is obselete.
Back to top
View users profile Send private message Add User to Ignore List Visit posters website
Bak
?ls -s
0 in


Age:26
Gender:Gender:Male
Joined: Jun 11 2004
Posts: 1826
Location: USA
Offline

PostPosted: Thu Oct 21, 2004 4:23 am    Post subject: Reply to topic Reply with quote

the changelog for build 45 tells nothing of ball physics being added.

SSBot2 (on catid's website) has ball physics. One could use the code from SSBot2 inside mervbot to get an idea of where the ball is.
Back to top
View users profile Send private message Add User to Ignore List AIM Address
Cyan~Fire
I'll count you!
I'll count you!


Age:37
Gender:Gender:Male
Joined: Jul 14 2003
Posts: 4608
Location: A Dream
Offline

PostPosted: Thu Oct 21, 2004 5:42 pm    Post subject: Reply to topic Reply with quote

Look in dllcore.h for DLL 6.6 or higher. You'll see the referenced events there.
Back to top
View users profile Send private message Add User to Ignore List Visit posters website
Bak
?ls -s
0 in


Age:26
Gender:Gender:Male
Joined: Jun 11 2004
Posts: 1826
Location: USA
Offline

PostPosted: Thu Oct 21, 2004 6:31 pm    Post subject: Reply to topic Reply with quote

the event exists, but there is no ball physics. So after you fire a ball the bot will show the position that you fired, and the speed you fired it at, until someone picks it up.

Ball_Move is invoked when:
1. Ball Timer occurs (from settings, default once every 4 seconds)
2. Goal is scored
3. Someone picks up the ball
4. Someone fires the ball

so unless he added phyics and didn't document it, it's not there, even though EVENT_BallMove is.
Back to top
View users profile Send private message Add User to Ignore List AIM Address
Bak
?ls -s
0 in


Age:26
Gender:Gender:Male
Joined: Jun 11 2004
Posts: 1826
Location: USA
Offline

PostPosted: Thu Oct 21, 2004 6:32 pm    Post subject: Reply to topic Reply with quote

the event exists, but there is no ball physics. So after you fire a ball the bot will show the position that you fired, and the speed you fired it at, until someone picks it up.

Ball_Move is invoked when:
1. Ball Timer occurs (from settings, default once every 4 seconds)
2. Goal is scored
3. Someone picks up the ball
4. Someone fires the ball

so unless he added phyics and didn't document it, it's not there, even though EVENT_BallMove is.
Back to top
View users profile Send private message Add User to Ignore List AIM Address
Cyan~Fire
I'll count you!
I'll count you!


Age:37
Gender:Gender:Male
Joined: Jul 14 2003
Posts: 4608
Location: A Dream
Offline

PostPosted: Fri Oct 22, 2004 5:19 pm    Post subject: Reply to topic Reply with quote

You're not looking in the right enum, then. EVENT_BallMove is in enum Bot2DLL which, of course, are all incoming events.
Here:
Code: Show/Hide
enum DLL2Bot_EventCodes
{
...
//// 6.6 ////
...
   EVENT_GrabBall,
      /*   Grab a ball

         [0] ball id
      */
   EVENT_FireBall,
      /*   Fire the specified ball in a certain direction

         [0] ball id
         [1] x pixel
         [2] y pixel
         [3] x velocity
         [4] y velocity
      */
};
Back to top
View users profile Send private message Add User to Ignore List Visit posters website
Display posts from previous:   
Post new topic   Reply to topic    Server Help Forum Index -> General Questions All times are GMT - 5 Hours
Page 1 of 1

 
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: 202 page(s) served in previous 5 minutes.

phpBB Created this page in 0.544561 seconds : 39 queries executed (93.6%): GZIP compression disabled