This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
Messages - Classicus
Pages: 1 ... 4 5 6 7 8 9 10 [11] 12 13 14 15 16
201
« on: September 27, 2012, 01:35:13 PM »
Thanks for the help Joe, do you (or anyone who happens to be reading this) know what part of the .py governs how many bots the arena can support? I'm looking to do some display tournaments and I'd like to have 4 bot limit instead of 2. Thanks for any help.
202
« on: September 26, 2012, 02:10:39 PM »
I think I have just the robot for this. When is the cut-off for entries?
203
« on: September 26, 2012, 02:06:53 PM »
I very much appreciate the help. Took me about 5 reads to understand but I get the jist now. I think. For me someone talking about code is like  as I have no aptitude for it. I will try to get my head around it. The help is very much appreciated though. Just to be clear is the second hack-job with two values OK? Seems to work so far.
204
« on: September 26, 2012, 10:20:49 AM »
You know what, I've been thinking about learning to AI. I think I might just enter. Can I represent Cornwall? It's not a recognized country but it should be considering the robot heritage of it.
205
« on: September 26, 2012, 08:16:10 AM »
>Skinning >Tournaments >Building: I build every idea I have. Plus when I think of an idea I add it to my list (I still have hundreds of bots to make) >Watching robot combat >Sci fi films >New ideas in general >OCD
206
« on: September 26, 2012, 07:31:09 AM »
I managed to solve it, just changed two values: ("heckzone1", n) n changed to zero for both heckzone1 and heckzone2.
#Hellraiser stuff hinge = self.GetHinge("Hinge01") self.RegisterZone("heckzone1", 0) self.Hell1 = Hazards2.HellRaiser(hinge, (3.034, 0.0, -6.926)) self.AddHazard(self.Hell1) hinge = self.GetHinge("Hinge02") self.RegisterZone("heckzone2", 0) self.Hell2 = Hazards2.HellRaiser(hinge, (-3.049, 0.0, -6.926)) self.AddHazard(self.Hell2)
My RA2 experience has just got a tiny bit better I think :D
207
« on: September 26, 2012, 06:49:48 AM »
Thanks Joe, but it didn't work I'm affraid, although I don't really know what I'm doing as I have no coding knowledge. This is what it looks like (+ #'s I added), just to help if anyone knows what I need to change. It seems the popups are linked to the other hazards or something. Any help would be great.
from __future__ import generators import plus import Arenas import random import Hazards2 import math
class ClawTop(Arenas.SuperArena): "The classic Battlebox replicated for the ultimate experience in real robot fighting. It is a bit laggy, however." name = "Battlebox" preview = "BATTLEBOX_2_0/BB_preview.bmp" game_types = ['DEATHMATCH'] extent = (-13, 13, 14, -14)
def __init__(self): Arenas.SuperArena.__init__(self, "Arenas/BATTLEBOX_2_0/arena.gmf") #plus.Arena.__init__(self, "") plus.setBackColor(0,0,0) #(X,Y,Z), (CamSwing[Up-Down 0-1.57],CamRotate:lower#=ccw/higher#=cw), CamZoom*FieldOfView} fov = 0.015 self.AddStaticCamera(" StaticCam-Over-1", (0, 40, -63), (1.5708,0), 72*fov) self.AddStaticCamera(" StaticCam-Over-2", (0, 22, -63), (1.59,0), 73*fov) self.AddStaticCamera(" StaticCam-Angled-1", (0, 15, -30), (0.7, 3.14), 55*fov) self.AddStaticCamera(" StaticCam-Angled-2", (0, 15, -20), (0.4, 3.14), 50*fov)
self.AddWatchCamera(" WatchCam-Over-1", (0, 30, -63), (6, 12, 30*fov, 20*fov)) self.AddWatchCamera(" WatchCam-Over-2", (0, 30, -63), (6, 12, 40*fov, 30*fov)) self.AddWatchCamera(" WatchCam-Over-3", (0, 30, -63), (6, 12, 50*fov, 40*fov)) self.AddWatchCamera(" WatchCam-Corner-1a", (15.7, 12, -48), (6, 12, 30*fov, 20*fov)) self.AddWatchCamera(" WatchCam-Corner-1b", (15.7, 12, -48), (6, 12, 40*fov, 30*fov)) self.AddWatchCamera(" WatchCam-Corner-1c", (15.7, 12, -48), (6, 12, 50*fov, 40*fov)) self.AddWatchCamera(" WatchCam-Corner-2a", (-15.8, 12, -79.5), (6, 12, 30*fov, 20*fov)) self.AddWatchCamera(" WatchCam-Corner-2b", (-15.8, 12, -79.5), (6, 12, 40*fov, 30*fov)) self.AddWatchCamera(" WatchCam-Corner-2c", (-15.8, 12, -79.5), (6, 12, 50*fov, 40*fov)) self.AddWatchCamera(" Platform Cam -L", (8, 5, -40), (6, 12, 50*fov, 30*fov)) self.AddWatchCamera(" Platform Cam -R", (-8, 5, -40), (6, 12, 50*fov, 30*fov))
#self.AddWatchCamera(". Watch Cam -1", (0, 30, -30), (6, 12, 50*fov, 10*fov)) #self.AddWatchCamera(". Watch Cam -2", (0, 30, -30), (6, 12, 30*fov, 20*fov)) #self.AddWatchCamera(". Watch Cam -3", (0, 30, -30), (6, 12, 30*fov, 30*fov)) #self.AddWatchCamera(". Low Watch Cam -4", (0, 10, -30), (6, 12, 80*fov, 10*fov)) #self.AddWatchCamera(". Low Watch Cam -5", (0, 10, -30), (6, 12, 50*fov, 30*fov)) #self.AddWatchCamera(". Low Watch Cam -6", (0, 10, -30), (6, 12, 50*fov, 30*fov))
self.players = ()
def Activate(self, on): if on: self.players = plus.getPlayers() Arenas.SuperArena.Activate(self, on)
def HazardsOn(self, on): if on:
#RamRod stuff prism = self.AddPrismatic("Floor", "spikes", 0, 1, 0, 0, .8, 0) self.spikes1 = Hazards2.Spikes(prism, 80000, (-3.7, -2.2, -5.2))
prism = self.AddPrismatic("Floor", "spikes01", 0, 1, 0, 0, .8, 0) self.spikes2 = Hazards2.Spikes(prism, 80000, (-3.7, -2.2, -5.2))
self.AddHazard(self.spikes1) self.AddHazard(self.spikes2)
self.RegisterZone("spike_zone",13) self.RegisterZone("spike_zone01",14)
self.SetSubMaterialSound("hammer1", "metal", .8, "Sounds\\hzd_hammer_thud.wav") self.SetSubMaterialSound("hammer2", "metal", .8, "Sounds\\hzd_hammer_thud.wav") #Hellraiser stuff #hinge = self.GetHinge("Hinge01") #self.RegisterZone("heckzone1", 1) #self.Hell1 = Hazards2.HellRaiser(hinge, (3.034, 0.0, -6.926)) #self.AddHazard(self.Hell1) #hinge = self.GetHinge("Hinge02") #self.RegisterZone("heckzone2", 2) #self.Hell2 = Hazards2.HellRaiser(hinge, (-3.049, 0.0, -6.926)) #self.AddHazard(self.Hell2)
#Hammers hinge = self.GetHinge("hammerhinge1") self.RegisterZone("hammerzone1", 3) self.Hammer1 = Hazards2.HellRaiser(hinge, (-16.645, -80.815, -5.586)) self.AddHazard(self.Hammer1) hinge = self.GetHinge("hammerhinge2") self.RegisterZone("hammerzone2", 4) self.Hammer2 = Hazards2.HellRaiser(hinge, (16.811, -80.453, -5.584)) self.AddHazard(self.Hammer2)
hinge = self.GetHinge("hammerhinge3") self.RegisterZone("hammerzone3", 5) self.Hammer3 = Hazards2.HellRaiser(hinge, (-16.645, -80.815, -5.586)) self.AddHazard(self.Hammer3) hinge = self.GetHinge("hammerhinge4") self.RegisterZone("hammerzone4", 6) self.Hammer4 = Hazards2.HellRaiser(hinge, (16.811, -80.453, -5.584)) self.AddHazard(self.Hammer4) #saw stuff to make them pop up hinge = self.GetHinge("saw_hinge") self.RegisterZone("saw_zone", 7) self.Hell3 = Hazards2.Saws(hinge, (3.034, 0.0, -6.926)) self.AddHazard(self.Hell3)
hinge = self.GetHinge("saw_hinge01") self.RegisterZone("saw_zone01", 8) self.Hell4 = Hazards2.Saws(hinge, (3.034, 0.0, -6.926)) self.AddHazard(self.Hell4)
hinge = self.GetHinge("saw_hinge02") self.RegisterZone("saw_zone02", 9) self.Hell5 = Hazards2.Saws(hinge, (3.034, 0.0, -6.926)) self.AddHazard(self.Hell5)
hinge = self.GetHinge("saw_hinge03") self.RegisterZone("saw_zone03", 10) self.Hell6 = Hazards2.Saws(hinge, (3.034, 0.0, -6.926)) self.AddHazard(self.Hell6)
hinge = self.GetHinge("saw_hinge04") self.RegisterZone("saw_zone04", 11) self.Hell7 = Hazards2.Saws(hinge, (3.034, 0.0, -6.926)) self.AddHazard(self.Hell7)
hinge = self.GetHinge("saw_hinge05") self.RegisterZone("saw_zone05", 12) self.Hell8 = Hazards2.Saws(hinge, (3.034, 0.0, -6.926)) self.AddHazard(self.Hell8)
#arena spinners self.spinner = self.GetHinge("spinner") self.spinner.SetAutoLocks(False, True) self.spinner.SetPowerSettings(20, 1000) self.spinner.Lock(False) self.spinner.SetDirection(-100)
self.spinner2 = self.GetHinge("spinner2") self.spinner2.SetAutoLocks(False, True) self.spinner2.SetPowerSettings(20, 1000) self.spinner2.Lock(False) self.spinner2.SetDirection(-100)
#saw stuff to make them spin self.sawspin = self.GetHinge("saws_spin") self.sawspin.SetAutoLocks(False, True) self.sawspin.SetPowerSettings(20, 1000) self.sawspin.Lock(False) self.sawspin.SetDirection(-100)
self.sawspin2 = self.GetHinge("saws_spin01") self.sawspin2.SetAutoLocks(False, True) self.sawspin2.SetPowerSettings(20, 1000) self.sawspin2.Lock(False) self.sawspin2.SetDirection(-100)
self.sawspin3 = self.GetHinge("saws_spin02") self.sawspin3.SetAutoLocks(False, True) self.sawspin3.SetPowerSettings(20, 1000) self.sawspin3.Lock(False) self.sawspin3.SetDirection(-100)
self.sawspin4 = self.GetHinge("saws_spin03") self.sawspin4.SetAutoLocks(False, True) self.sawspin4.SetPowerSettings(20, 1000) self.sawspin4.Lock(False) self.sawspin4.SetDirection(-100)
self.sawspin5 = self.GetHinge("saws_spin04") self.sawspin5.SetAutoLocks(False, True) self.sawspin5.SetPowerSettings(20, 1000) self.sawspin5.Lock(False) self.sawspin5.SetDirection(-100)
self.sawspin6 = self.GetHinge("saws_spin05") self.sawspin6.SetAutoLocks(False, True) self.sawspin6.SetPowerSettings(20, 1000) self.sawspin6.Lock(False) self.sawspin6.SetDirection(-100)
else: pass return Arenas.SuperArena.HazardsOn(self, on)
def Tick(self): # check to see if anyone has been "eliminated" by falling into a pit for each in self.players: if plus.getLocation(each)[1] < -8 and not plus.isEliminated(each): plus.eliminatePlayer(each) if self.bHazardsOn:
#activate hazards self.Hell1.Tick() self.Hell2.Tick() self.Hell3.Tick() self.Hell4.Tick() self.Hell5.Tick() self.Hell6.Tick() self.Hell7.Tick() self.Hell8.Tick() self.spikes1.Tick() self.spikes2.Tick() self.Hammer1.Tick() self.Hammer2.Tick() self.Hammer3.Tick() self.Hammer4.Tick()
return Arenas.SuperArena.Tick(self)
def ZoneEvent(self, direction, id, robot, chassis): #if people are in zones then make the hazards to stuff if (id==1 and direction==1): self.Hell1.RaiseHell() elif (id==2 and direction==1): self.Hell2.RaiseHell() elif (id==3 and direction==1): self.Hammer1.RaiseHell() elif (id==4 and direction==1): self.Hammer2.RaiseHell() elif (id==5 and direction==1): self.Hammer3.RaiseHell() elif (id==6 and direction==1): self.Hammer4.RaiseHell() elif (id == 7 and direction==1): self.Hell3.RaiseHell() elif (id == 8 and direction==1): self.Hell4.RaiseHell() elif (id == 9 and direction==1): self.Hell5.RaiseHell() elif (id == 10 and direction==1): self.Hell6.RaiseHell() elif (id == 11 and direction==1): self.Hell7.RaiseHell() elif (id == 12 and direction==1): self.Hell8.RaiseHell() elif (id == 13): # entering spikes zone 1 self.spikes1.ZoneEvent(direction) elif (id == 14): # entering spikes zone 1 self.spikes2.ZoneEvent(direction)
return True Arenas.register(ClawTop)
208
« on: September 26, 2012, 06:03:12 AM »
Thanks I'll message him and see if he can help. If anyone else knows in the mean time I'd appreciate it. Thanks.
209
« on: September 26, 2012, 05:50:36 AM »
Save game stuff on the cloud, 2 or 3 places for backup then you will be safer.
210
« on: September 26, 2012, 05:41:37 AM »
Hi guys, I'd like to use the Battlebots arena for tournaments and matches in general but how do I deactivate/remove the pop-up central floor tiles. I don't like that the AI doesn't know they're there. Any help would be great.
211
« on: September 26, 2012, 03:43:20 AM »
Thanks for comments. Motors are Wheel Motors, Wedges are the back to balance it.
212
« on: September 25, 2012, 03:43:36 PM »
 New team
213
« on: September 25, 2012, 03:29:01 AM »
Congrats, very nice bots.
214
« on: September 25, 2012, 03:25:09 AM »
Thanks for the comments, I had no idea about a Christmas BotM. Anyway its not really a proper bot, just for fun/see if it could be done.
215
« on: September 24, 2012, 06:05:16 PM »
If that can be edited to make a skimmer I might look into it.
216
« on: September 24, 2012, 05:38:01 PM »
What governs how high a hovercraft floats? Is it how many engines it has? My last bot is a bit low. For future reference. Thanks.
217
« on: September 24, 2012, 04:22:43 PM »
You have an imaginative style of building which I like. Benediction is my fave so far, all good though.
218
« on: September 24, 2012, 03:57:38 PM »
That looks great, how does it move? Are they two big wheels?
219
« on: September 24, 2012, 03:02:59 PM »
A homage to one of my favourite films: Terminator. Also my first hoverbot. Inspiration:  I cannot tell you how much fun this bot was to make. Video is mainly to show the 'propeller' motors
220
« on: September 23, 2012, 10:21:40 AM »
Hi all, just checking in. I'm doing more building soon so will post more bots in the near future. I've got a load of unread posts to catch up on as well (17 pages(!)) when I get the chance. Can't believe how well my botpack has done in downloads, I'll do it again in the future when I have some good bots. I'm resurrecting my HaloTECH team so stay tuned!
Pages: 1 ... 4 5 6 7 8 9 10 [11] 12 13 14 15 16
|