| Raider1987 |
| Posted: Jun 21 2005, 07:22 AM |
 |
|

Player
 
Group: Members
Posts: 22 (1 robots)
Member No.: 422
Joined: 20-June 05

|
Hey i got my first bot up, he can win against my sisters bot which just sits there but thats it. Any help?
-------------------- Ive watched the days pass one by one untill the fall of man and seen the cynics feed the jaded merely scraps and bones the kingdom shaken its foundation nearly turned to sand with foolish faith in faulted leaders that i must disown.
(This darkened Heart--All that Remains) |
| sorcerer |
| Posted: Jun 21 2005, 08:10 AM |
 |
|

Concept Member
    
Group: Moderators
Posts: 1337 (9 robots)
Member No.: 5
Joined: 5-April 03

|
Try to beat the robots that came with Robot Battle one by one and move on from there. But without knowing what your specific problems are, I am unable to offer additional advice.
--------------------
| QUOTE (Professor Stephen Hawking) | | I think computer viruses should count as life. Maybe it says something about human nature, that the only form of life we have created so far is purely destructive. |
|
| Dgp |
| Posted: Jun 21 2005, 09:19 AM |
 |
|

:) :) :)
    
Group: Members
Posts: 671 (5 robots)
Member No.: 358
Joined: 12-March 05

|
HAHAHAHAHAHA Raider1987's sister plays RB and after evryones squabaling about:
| QUOTE | | Even more unusual for RB.... the winner claimed to be female |
What kind of help?
This post has been edited by Dgp on Jun 21 2005, 09:23 AM
-------------------- :) |
| Echo Switch |
| Posted: Jun 21 2005, 09:48 AM |
 |
|

Super-Duper Programmer
    
Group: Registered Owners
Posts: 408 (8 robots)
Member No.: 60
Joined: 18-November 03

|
If you take a look at the "house" Bots (the bots that came with RB), most of them are a bit heavy on the code compared to, let's say, rammer. If you notice if you put the fighting house bots (corner, fire, zag, multi, side, wall, rammer) in a match, rammer almost always loses. This is becasue each of the other bots can handle more situations, with a greater level of complexity compared to rammer. I understand your just starting out, but this is some good food for thought. Just try and think of what you want your bot do in each situation, write it out, then try the code it. Example:
After finding a bot, run at it while firing.
Firstly take off blocking (check the game tutorial for more info), move ahead, scan, if its there fire, if not stop, and scan somewhere else. And keep on repeating that. Ta-da! your pseudo-code is done! Lets do the actual code: | RSL | Init{ blocking(0) regcore(core) lockall(1) # Make sure everything moves together } core{ scan() if(_dtcrobot) ahead(_scandist+20) # if you see a robot run at it and fire fire(1) else stop() #if you don't, stop and change the direction your scanning radarright(5) endif }
|
Ofcourse this can be made more complex by adding in cookie detection, ping detection, etc. Be careful when using blocking off, its really tricky to coordinate the robots movements, especially for beginners. You'll pick up all this in time, just keep on experimenting!
- Echo |
| MrFox |
| Posted: Jun 21 2005, 10:47 AM |
 |
|

Tactical Engineer
    
Group: Moderators
Posts: 1114 (8 robots)
Member No.: 27
Joined: 23-May 03

|
Very nice down and dirty turtorial there Echo.
Another helpful approach for beginners is to read the entire tutorial that comes with RB and then read ALL the commands and system variables. While doing this imagine the possiblities and uses of each command and system variable. This isn't like trying to master C++ or even VB. It's a scripting language and doesn't have nearly the amount of commands and such of a full-blown language. So, you can spend more time getting to understand the fundamentals of the game and how everything works together.
Then, print out and look at the simplest of the included house robots. That would be Rammer, as mentioned by Echo. Take notes on the print out also. After reading the documentation, read Rammer and follow its code, round by round in your head. It doesn't matter what robot you put it up against at this time, because it's all in your head. In fact, it would be helpful to just imagine your sister's robot as the opposing robot. Anyway, by doing this, you really get to understand what's going on in the robot and building them should come a little easier.
Then you can worry about more difficult stuff, like math, yuck.
As a final tip. Print out the Help File in Memo Form, and staple each topic together at the spine.
-------------------- "Life is inevitable." Me
See profile for Authored Robots and Contest Standings. Robots(7): Lunatic Frenzy, JAM, ittyBot, ZenBot, ZenBittyBot,RadFly,Omni |
| Raider1987 |
| Posted: Jun 21 2005, 11:33 AM |
 |
|

Player
 
Group: Members
Posts: 22 (1 robots)
Member No.: 422
Joined: 20-June 05

|
Hey thanks everyone, im gonna do all that tonight when i get home from work and should have a more complex bot by Grad day (saturday). BTW even though im not that great at this stuff now, Im gonna get good b/c im going to university with a major in comp science. So by the end of summer Im gonna have a bot that will beat out all the house bots and a lot of home made ones. Now that im done rambling on about stuff, Thanks everyone.
ps (echo ive been having a hard time following what your saying, laymens terms would be great if possible until i start to get to know this game, please, with a cherry on top)
-------------------- Ive watched the days pass one by one untill the fall of man and seen the cynics feed the jaded merely scraps and bones the kingdom shaken its foundation nearly turned to sand with foolish faith in faulted leaders that i must disown.
(This darkened Heart--All that Remains) |
| sorcerer |
| Posted: Jun 21 2005, 12:03 PM |
 |
|

Concept Member
    
Group: Moderators
Posts: 1337 (9 robots)
Member No.: 5
Joined: 5-April 03

|
| QUOTE (Raider1987 @ Jun 21 2005, 02:33 PM) | | ps (echo ive been having a hard time following what your saying, laymens terms would be great if possible until i start to get to know this game, please, with a cherry on top) |
It's very difficult to subsitute some terms into "laymen's" terms. But don't panic, all these are defined in Robot Battle's documentation.
--------------------
| QUOTE (Professor Stephen Hawking) | | I think computer viruses should count as life. Maybe it says something about human nature, that the only form of life we have created so far is purely destructive. |
|
| Dgp |
| Posted: Jun 21 2005, 12:04 PM |
 |
|

:) :) :)
    
Group: Members
Posts: 671 (5 robots)
Member No.: 358
Joined: 12-March 05

|
Ok evryones given you tips but me, heres my tip: While building a robot keep the refrence that came with RB handy.(Ya so im not telling you how to win or anything but the refrence is very useful).
-------------------- :) |
| Raider1987 |
| Posted: Jun 21 2005, 12:11 PM |
 |
|

Player
 
Group: Members
Posts: 22 (1 robots)
Member No.: 422
Joined: 20-June 05

|
thanks guys, your all a big help. Im so gonna whoop my sisters a$$ with my new "psudeo-bot" that im building. lol You guys would probably laugh at how easy it is to beat for you guys. The plan is to get the bot close, turn the body to 90 deg. turn turret back and forth to keep it facing the victim bot while moving back and forth. A little ambitious but I think with your guys help I can do it.
-------------------- Ive watched the days pass one by one untill the fall of man and seen the cynics feed the jaded merely scraps and bones the kingdom shaken its foundation nearly turned to sand with foolish faith in faulted leaders that i must disown.
(This darkened Heart--All that Remains) |
| Dgp |
| Posted: Jun 21 2005, 07:43 PM |
 |
|

:) :) :)
    
Group: Members
Posts: 671 (5 robots)
Member No.: 358
Joined: 12-March 05

|
Good luck.
-------------------- :) |
| Raider1987 |
| Posted: Jun 21 2005, 07:56 PM |
 |
|

Player
 
Group: Members
Posts: 22 (1 robots)
Member No.: 422
Joined: 20-June 05

|
thanks.
Ok here is the new version of the worst robot ever
| CODE | Init { name ( "Andrew" ) regcore ( mycore ) lockall ( true ) regdtccookie ( cook , 2 ) regcldrobot ( cld , 3 ) regdtcrobot ( found , 4 ) regcldmissile ( no , 1 ) }
mycore { clear ( _cldmissile ) scan ( ) If (_dtcteamid == 1) bodyleft ( 90 ) else fire ( 1 ) end if radarleft ( 5 ) }
cook { scan ( ) ahead ( _scandist + 10 ) }
cld { if ( _cldrobot == true ) back ( 20 ) scan ( ) bodyright ( 90 ) ahead ( 100 ) endif }
found { if ( _dtcrobot ) fire ( 3 ) ahead ( _scandist - 10 ) fire ( 3 ) scan ( ) else stop ( ) radarleft ( 5 ) scan ( ) endif }
no { if ( _cldmissile == true ) back ( 100 ) ahead ( 20 ) bodyright ( 20 ) ahead ( 30 ) bodyleft ( 90 ) ahead ( 200 ) endif }
|
Tell me what you guys think. Only constructive critisim please.
-------------------- Ive watched the days pass one by one untill the fall of man and seen the cynics feed the jaded merely scraps and bones the kingdom shaken its foundation nearly turned to sand with foolish faith in faulted leaders that i must disown.
(This darkened Heart--All that Remains) |
| sorcerer |
| Posted: Jun 22 2005, 06:47 AM |
 |
|

Concept Member
    
Group: Moderators
Posts: 1337 (9 robots)
Member No.: 5
Joined: 5-April 03

|
There's no need for the "if ( _cldrobot == true )" at the top of the "cld" section. The same with "if ( _dtcrobot )" on "found" and "if ( _cldmissile == true )" on "no".
Because you are using Events to call the procedures. (You registered them in the init.) The statements will always be true.
--------------------
| QUOTE (Professor Stephen Hawking) | | I think computer viruses should count as life. Maybe it says something about human nature, that the only form of life we have created so far is purely destructive. |
|
| MrFox |
| Posted: Jun 22 2005, 10:10 AM |
 |
|

Tactical Engineer
    
Group: Moderators
Posts: 1114 (8 robots)
Member No.: 27
Joined: 23-May 03

|
You really need to take a look at how movement works. I know it's tough to "get it" at first, but it is paramount that you do. This code is redundancy at it's worst for "The Worst Robot Ever"
Assuming blocking is on, which is the default I believe. Basically, blocking means that no other move command can execute until the previous move command completes. Basically.
| RSL | no { if ( _cldmissile == true ) back ( 100 ) # Move in the opposite direction 100 units ahead ( 20 ) # This will only execute after the back(100) completes so you've affectively moved back only 80 units bodyright ( 20 ) #Again, since blocking is on, this will only execute after the ahead(20) ahead ( 30 ) # Move ahead(30) units bodyleft ( 90 ) #body left afte moving ahead ahead ( 200 ) # ahead 200 units endif }
|
The main thing I want to point out is that during all these move executions you are not scanning, detecting, or firing at anything. Considering you can only move 15 units per turn and rotate the body 15 degrees per turn, I beleive this entire routine will take 30 turns to execute.
I'm a little rusty on the movement units per turn, so someone correct me if I am wrong.
-------------------- "Life is inevitable." Me
See profile for Authored Robots and Contest Standings. Robots(7): Lunatic Frenzy, JAM, ittyBot, ZenBot, ZenBittyBot,RadFly,Omni |
| jamie |
| Posted: Jun 22 2005, 09:30 PM |
 |
|
Semi-Retired Robot Battler
    
Group: Registered Owners
Posts: 324 (6 robots)
Member No.: 13
Joined: 2-May 03

|
| QUOTE (MrFox) | Considering you can only move 15 units per turn and rotate the body 15 degrees per turn, I beleive this entire routine will take 30 turns to execute.
|
Actually the max speed is 25 per turn, but you have to spend time accelerating at 2 units per turn per turn, so most of the time is spent going at a lower speed. The first several turns you'll see movement distances of 1, 3, 5, 7, 9 units per turn as the robot speeds up, for a total movement of 1, 4, 9, 16, 25 units.
Also, a robot can only turn its body at 5 degrees per turn. Eventually you'll want to make sure you don't spend too much time sitting in one place, which means you'll want to move while turning, but don't worry about that right now.
-Jamie
|
| Raider1987 |
| Posted: Jun 22 2005, 10:52 PM |
 |
|

Player
 
Group: Members
Posts: 22 (1 robots)
Member No.: 422
Joined: 20-June 05

|
all that is to provide an almost umm, how shall i say this, bad attempt at dodging in case the robot that was firing does shoot again. although it is a very bad attempt
-------------------- Ive watched the days pass one by one untill the fall of man and seen the cynics feed the jaded merely scraps and bones the kingdom shaken its foundation nearly turned to sand with foolish faith in faulted leaders that i must disown.
(This darkened Heart--All that Remains) |
|