Show Posts

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 - Madiaba

Pages: 1 ... 55 56 57 58 59 60 61 [62] 63 64 65 66 67 68 69 ... 83
1221
General Support / HELP.
« on: November 13, 2008, 05:30:11 PM »
Inf, send me both your bot and the gmf of the half-sheet and I'll look it over.

1222
Tutorials and Tips / AI-ing (.py files, coding, R+D, and help)
« on: November 13, 2008, 09:35:33 AM »
Attaching Smart Zones to (moving) components. I like your ideas, Phil. As far as controlling motors/weapons through attaching SZs, some of us worked through this before. Here's a few pics of initial ideas about this I posted (that someone saved before the old forum went down):
 

 
Then a better idea came:

 
Here is the whole dialogue's txt, if you wantto look through it (don't think the hyperlinks in it work any more):
AttachingSZsToComponents]AttachingSZsToComponents[/URL]

 
PM me, Phil, and I'll share with you how to connect SZs to moving components.
 
---------------------
Controlling piston:
Controlling pistons is not consistent, but it can be done. Here's the basic coding for such:
#---------THESE SERVO CONTROLS "WORK" (with 2 BUTTON trigger switches, 1 for each pos/neg input).
# SERVO CONTROL-1 - "Timer" (WORKS with 2 Buttons controling retract/extend. Reads this py's trigger NUMBER [i.e. "self.triggers1"])

self.TriggerTimer1 += 1
if self.TriggerTimer1 == 1:
for trigger in self.triggers1: self.Input(trigger, 0, 1) # Extend
if self.TriggerTimer1 == 5:
for trigger in self.triggers1: self.Input(trigger, 0, 0) # Off
if self.TriggerTimer1 == 6:
for trigger in self.triggers2: self.Input(trigger, 0, -1) # Retract
if self.TriggerTimer1 == 10:
for trigger in self.triggers2: self.Input(trigger, 0, 0) # Off
if self.TriggerTimer1 == 15: # For repeating above
self.TriggerTimer1 = 0
 
# SERVO CONTROL-2 -"Timer" (WORKS with 2 Buttons controling retract/extend. Reads in this py's = trigger NAME (which in-game is a controller Button 'Name').

self.TriggerTimer1 += 1
if self.TriggerTimer1 == 10:
self.Input("Fire1", 0, 1)
if self.TriggerTimer1 == 15:
self.Input("Fire1", 0, 0)
if self.TriggerTimer1 == 20:
self.Input("Fire2", 0, 2)
if self.TriggerTimer1 == 25:
self.Input("Fire2", 0, 0)
if self.TriggerTimer1 == 30:
self.TriggerTimer1 = 0
 
 
 
Finding Piston location:
#--- Get Piston Position -------- (parameters are around '0', unto between '-.2' and '-.6' [depending on length of shaft]).
self.GetPistonPosition(13) # '13' is piston component number.
# Example:
def Tick(self):
self.PistonShaftLocation = self.GetPistonPosition(13)
if self.PistonShaftLocation < -.35:
plus.playSound(self.EMFsound) # or whatever command...
 
---------------------
 
 
Finding Servo Motor Angles(Apanx work):
# component Motor-number set from Bindings. Must add (1) in AI.py under __init__: if 'motor' in args: self.Motor = args['motor'] ; and (2) in Bindings.py: 'motor':19, . Or you can just enter the component number yourself: servoangle = self.GetMotorAngle(19).
 
def __init__(self):
self.Motor = 1
if 'motor' in args: self.Motor = args['motor']
 
def Tick(self):
servoangle = self.GetMotorAngle(self.Motor)

 
Controlling Servo Motors:
 
def __init__(self):
self.Motor = 1
if 'motor' in args: self.Motor = args['motor']
 
def Tick(self):
servoangle = self.GetMotorAngle(self.Motor)
 
# Basic servo control
if servoangle < 1: self.Input("BAF", 0, -100)
elif servoangle > 2: self.Input("BAF", 0, 100)
 
# Open, then cycle within parameters (<1 and >2)
self.weptimerB += 1
if self.weptimerB == 1:
if servoangle == 0: self.Input("BAF", 0, -100)
if servoangle < 1: self.Input("BAF", 0, -100)
elif servoangle > 2: self.Input("BAF", 0, 100)
 
# Timed + Limited open, then cycle within parameters (between <1 and >2)
self.weptimerB += 1
if self.weptimerB == 1:
if servoangle < 0.5: self.Input("BAF", 0, -100)
if self.weptimerB > 1:
if servoangle > 2: self.Input("BAF", 0, 0)
if self.weptimerB >= 20:
if servoangle < 1: self.Input("BAF", 0, -100)
elif servoangle > 2: self.Input("BAF", 0, 100)
 

--------------------
If you want to look through all my Python notes(partially organized):
PYTHON SCRIPTS]PYTHON SCRIPTS[/URL][/B]....[/COLOR]
 
...

1223
Modifications / Ball & Socket Component!
« on: November 12, 2008, 10:30:36 AM »
Quote from: Serge;21296
Not yet, I'm the one who creates stuff, I'll just leave the creative part of the job to you.
Well then I, for one, will look it through and get back.
 
Any help (ideas) here guys, would be appreciated...
 
.....

1224
Modifications / Ball & Socket Component!
« on: November 12, 2008, 08:20:27 AM »
Nice job again, Serge.
 
I'll check it out and get back.
 
Trying to think of ways to use this...?
 
..

1225
Discussion / DSL Realistic Rule
« on: November 12, 2008, 06:45:02 AM »
If it were still realistic then I would agree, Cuda.  But, I can't see it happenning because it would be hard to regulate AAM.  It would be like openning a large can of worms.  Someone would have to be a 'Bot Inspector', that would go through and check to make sure other parameters in the bot file are still kosher....

1226
Chatterbox / RANTS!
« on: November 11, 2008, 11:12:30 PM »
[quote=ACAMS;21262]bring your ass down here, along with the Bot Exchange, and I will pay you, CB, and Madiaba big bucks each month for the next year.  Just think of it as free tuition.  Perks from GTM.[/quote].
 
Hey cool.
 
...

1227
General Support / HELP.
« on: November 11, 2008, 06:26:59 PM »
That's weird, but I know that there are irregularities in the chassis too.

1228
General Support / HELP.
« on: November 11, 2008, 06:01:53 PM »
Huh, I assumed Inf. knew that...

1229
General Support / HELP.
« on: November 11, 2008, 05:48:43 PM »
Inf, the collision meshes of some components actually stick below the chassis. So check this by just removing some already installed components.

1230
Tournament Archives / G.U.M.B.A tourny
« on: November 11, 2008, 09:23:50 AM »
Wed. is mic time...

1231
Off-Topic Discussion / Automobiles
« on: November 10, 2008, 09:49:41 PM »
Cuda:
Quote from: ACAMS;21076
About 30 minutes....depending on how long it takes the Chevy tow truck to hook up.
....hehe...
 
When Chrysler named the their performance vehicles, they just said:
......"Cuda done allot better.... It needs Mopa'er."
 
 
--------
 
Inf: A friend of mine has a Challenger like yours; it's pretty nice and even fast (for a newer car).
 
...

1232
Modifications / Coustom announcements for AI bots. (IDEA)
« on: November 10, 2008, 07:37:51 PM »
S-32/Gig, you'll have to expound on what exactly you're looking for...
Gig, I got your PM, I'll get back today or tomorrow.

1233
Tournament Archives / ELBITE Super Tournament - Ideas and discussion
« on: November 10, 2008, 03:59:52 PM »
Quote from: Gigafrost;20929
...Update: Sometime tonight, I will also submit the Official ELBITE Tabletop Arena Video. Showing you what to expect (BIG kudos to mad btw). Keep an eye out for it![/quote]
BTW, Gig, I tweaked that coding a little more/diffferently, and you may want to check it out.  Let me know (via PM).

1234
Modifications / Coustom announcements for AI bots. (IDEA)
« on: November 10, 2008, 03:51:34 PM »
Sounds can be incorporated into the AI.pys. Some actuations criteria would/could be:
-Smart Zone
-Range
-Life level of bot (self or enemy)
-Large hit
-Location XYZ
-Time(r)
(to name a few...).
 
In fact you can even do it with User bots.
So NP.

1235
Chatterbox / Guess who's back!
« on: November 10, 2008, 03:43:26 PM »
Nice to see you back, MNB.

1236
Off-Topic Discussion / Automobiles
« on: November 10, 2008, 07:53:58 AM »
Quote from: 70hemicuda;20889
ill give you bowtie boys this. chevy makes the simpleist motor..........corse they have the most simple people working on them.........
...>:Confused:<
 
 
 
 
....

1237
Off-Topic Discussion / Automobiles
« on: November 09, 2008, 06:39:30 PM »
K-3, I'm also from the MidWest. And there are allot fewer laws out there, than here in Mass. A cop once pulled me over in my Chevy-powered Fiat, just to ask if he could drive my car.
Cuda, nice rod. Wouldn't want to be sitting next to it at a light, when someone tromps on it....

1238
DSL TC Showcases / R0B0SH4RK's DSL Showcase
« on: November 09, 2008, 06:28:14 PM »
Nice S+S, RS. Looks menacing.

1239
Chatterbox / RANTS!
« on: November 09, 2008, 02:23:25 PM »
Quote from: ACAMS;20781
....I have been saddened by recent turn of events. Ditto.
Quote from: ACAMS;20781
This will be my last post in this topic unless something major happens. Ditto.
....

1240
Modifications / New beta GMF compiler!
« on: November 08, 2008, 09:09:12 AM »
:(>:ermm:>:|>:approve:>:)>:-D>:grin:>? (yea, all that....)

Pages: 1 ... 55 56 57 58 59 60 61 [62] 63 64 65 66 67 68 69 ... 83