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
make the bot score

 
Post new topic   Reply to topic Printable version
 View previous topic  What's the difference?? Post :: Post MERVbot Plugin Request  View next topic  
Author Message
The Cubbies
Guest


Offline

PostPosted: Thu Sep 07, 2006 2:16 pm    Post subject: make the bot score Reply to topic Reply with quote

I've been trying to make my bot score a goal for a long while now. Using FireBall doesn't seem to work. The bot fires into the goal, but doesn't score. Is there another way to do this?
Back to top
Maverick
broken record


Age:40
Gender:Gender:Male
Joined: Feb 26 2005
Posts: 1521
Location: The Netherlands
Offline

PostPosted: Thu Sep 07, 2006 2:52 pm    Post subject: Reply to topic Reply with quote

That's odd, I was under the impression a bot wouldn't have any difficulties making a goal when reading the topic title.
(Since a bot should fire the ball the same way any other client does.)
_________________
Nickname: Maverick (I changed my name!)
TWCore developer | Subspace statistics
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:41
Gender:Gender:Male
Joined: Aug 01 2002
Posts: 3615
Location: Las Vegas
Offline

PostPosted: Thu Sep 07, 2006 3:06 pm    Post subject: Reply to topic Reply with quote

Firing balls is for wussies. Real men (and clients) tell the zone when they score, with packet 0x21. Contains one byte after it, saying which ball id. You don't even need to be anywhere near where the goal/ball is at to grab it, shoot it, and score. I'm not even sure you need to fire it, as long as you control it.
Back to top
View users profile Send private message Add User to Ignore List Send email
The Cubbies
Guest


Offline

PostPosted: Thu Sep 07, 2006 3:17 pm    Post subject: Reply to topic Reply with quote

Ok, I'm new to programming. I've only made a few bot plugins, and they are the only c++ I've ever done. Could you explain that a little more MGB? Maybe dumb it down a bit.
Back to top
Mine GO BOOM
Hunch Hunch
What What
Hunch Hunch<br>What What


Age:41
Gender:Gender:Male
Joined: Aug 01 2002
Posts: 3615
Location: Las Vegas
Offline

PostPosted: Thu Sep 07, 2006 3:56 pm    Post subject: Reply to topic Reply with quote

There should be a function called something like "ScoreGoal" or some such. This is because balls where a huge hack to Subspace back when it was designed. The server does no physics what so ever, so it has to rely on the client to say when the ball goes into a goal.

Outline of how to do it:
  • GrabBall()
  • ShootBall()
  • ScoreGoal()

I don't know what bot core you are using, so I can't lookup the function names for you. But there should be something that is related to telling the server you score a goal.

If you say which bot core you are using, myself or others can assist better.
Back to top
View users profile Send private message Add User to Ignore List Send email
The Cubbies
Guest


Offline

PostPosted: Thu Sep 07, 2006 4:17 pm    Post subject: Reply to topic Reply with quote

I'm using MervCore, I tried:

tell(makeShip(SHIP_Warbird));
tell(makeGrabBall(0));
tell(makeTeam(0));
tell(makeSoccerGoal(0,1000));

and I tried it with a tell(makeFireBall(x,x,x,x,x) in there also.
I couldn't get any of it to work.
Back to top
Cerium
Server Help Squatter


Age:42
Gender:Gender:Male
Joined: Mar 05 2005
Posts: 807
Location: I will stab you.
Offline

PostPosted: Thu Sep 07, 2006 6:03 pm    Post subject: Reply to topic Reply with quote

The server does some basic checks on objects to make sure youre atleast near them to claim them. Make sure you set the bot's position to the location of the ball before attempting to claim it, and -- just to be safe -- make sure no other player currently has control over it.

Beyond that, I believe MGB has it right -- just send the "goal" packet when you want to score.

Just out of curiosity though, why is this necessary?
_________________
There are 7 user(s) ignoring me right now.
Back to top
View users profile Send private message Add User to Ignore List AIM Address
The Cubbies
Guest


Offline

PostPosted: Thu Sep 07, 2006 6:57 pm    Post subject: Reply to topic Reply with quote

Well, we have a small soccer arena in 17th, and I'm trying to avoid defensive creasing (I know there are easier ways). Right now I have the bot recognize if the ball changes possesion in the crease, but I'm also writing some logic to have the bot score the goal if it was going in.
Back to top
Display posts from previous:   
Post new topic   Reply to topic    Server Help Forum Index -> Bot 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: 472 page(s) served in previous 5 minutes.

phpBB Created this page in 0.427685 seconds : 32 queries executed (92.9%): GZIP compression disabled