.:`=-~rANdOm~`-=:. Game Servers

Technology (Read Only) => Garry's Mod Contraptions => Topic started by: coolzeldad on November 19, 2012, 05:42:57 PM

Title: [Wire] Battle Bots!
Post by: coolzeldad on November 19, 2012, 05:42:57 PM
Xrain and Tech had a battle bots competition in wire build, it was pretty fun to watch!

They built destructible chassis and weapons, we should do this more often... maybe have a competition? :D

Tech had a flipper and Xrain had a saw thingy xD

(http://images.randomgs.com/servers/wire/battlebots_xrain_tech.jpg)
(http://images.randomgs.com/servers/wire/battlebots_xrain_tech2.jpg)
(http://images.randomgs.com/servers/wire/battlebots_xrain_tech3.jpg)
Title: Re: [Wire] Battle Bots!
Post by: Frank on November 19, 2012, 05:52:33 PM
Only wood/breakable props allowid! Seems like a great idea to me
Title: Re: [Wire] Battle Bots!
Post by: coolzeldad on November 19, 2012, 05:55:13 PM
Only wood/breakable props allowid! Seems like a great idea to me

Yeah they were entirely breakable.
Title: Re: [Wire] Battle Bots!
Post by: blαh2355 on November 19, 2012, 06:17:49 PM
Only if they teach me :P
Title: Re: [Wire] Battle Bots!
Post by: Xrain on November 19, 2012, 06:19:06 PM
The rules we had:

- Wood only
- ACF Engines to power everything
- No Hydraulics
- No E2 (except for control interface aka if(W==1){blah blah})
- No Wheels, must be leggid or fin powered

We removed the no wheels requirement for future robots, as my legged contraption that I worked so hard on was fail thanks to garry physics.


Mine was the one that looked like an office desk that had relations with a circular saw, and a fanboat.
Title: Re: [Wire] Battle Bots!
Post by: Ἆxule on November 19, 2012, 07:02:42 PM
I would actually really love to compete in something like this. I just need to learn how to...
Title: Re: [Wire] Battle Bots!
Post by: memo3300 on November 19, 2012, 07:39:20 PM
I would actually really love to compete in something like this. I just need to learn how to...

this

and in my case, get a way to play the game again lol
Title: Re: [Wire] Battle Bots!
Post by: Ἆxule on November 19, 2012, 07:45:31 PM
Would building an arena out of props (so we have traps and such to try and avoid) cause problems with the game? I'm not fully aware of the physics problems in Garry's Mod
Title: Re: [Wire] Battle Bots!
Post by: Samo on November 19, 2012, 08:43:50 PM
This would actually make me play more wire build.
Title: Re: [Wire] Battle Bots!
Post by: coolzeldad on November 19, 2012, 10:51:44 PM
Would building an arena out of props (so we have traps and such to try and avoid) cause problems with the game? I'm not fully aware of the physics problems in Garry's Mod


This is a good idea... and like i can see spinning things working.

I just built the arena out of fence.

Could have artifical floor if you wanted i suppose, have deathtrapz... but would be a little difficult to keep reliable in gmod probably ;o

Could just have spinning thingies on walls or set locations on floors that activate when touched xD
Title: Re: [Wire] Battle Bots!
Post by: Deacon on November 19, 2012, 10:56:20 PM
Oh man..Now I wish I could wire.
Title: Re: [Wire] Battle Bots!
Post by: Ἆxule on November 20, 2012, 12:03:44 AM
This is a good idea... and like i can see spinning things working.

I just built the arena out of fence.

Could have artifical floor if you wanted i suppose, have deathtrapz... but would be a little difficult to keep reliable in gmod probably ;o

Could just have spinning thingies on walls or set locations on floors that activate when touched xD

As long as there are other factors in the battles ; )
Title: Re: [Wire] Battle Bots!
Post by: Loke on November 20, 2012, 07:48:43 PM
Oh man..Now I wish I could wire.

You could probably do this with basic wire.
Title: Re: [Wire] Battle Bots!
Post by: Xrain on November 21, 2012, 02:53:47 PM
Oh man..Now I wish I could wire.

The only wire really used is pretty basic.

My program looked like this:

Code: [Select]
@output Brake Clutch Gear ActiveOut Throttle
@Input W A S D Active

interval(1)

if(Active==1)
{
ActiveOut=1
}
else
{
ActiveOut=0
}

if(W==1)
{
Clutch=0
Gear=1
Brake=0
Throttle=100
}

if(S==1)
{
Clutch=0
Gear=2
Brake=0
Throttle=50
}

if(S==0&W==0)
{
Clutch=1
Brake=1
Throttle=0
}

Now what was all that you ask?

First, it looked for the signal from the Pod controller that someone was sitting in it.
If there was, it started the ACF engine, otherwise it left it off.

Then if W or S were pressed it:

Turned off the brake
Turned off the clutch
Selected the appropriate gear (gear 1 was forward, 2 reverse)
and gave it full throttle

Then if neither were pressed it:

Turned on the brake
Turned off the clutch
Idled the motor

and Voila!

You now have a car that can go forward... reverse... and stop... pretty amazing huh?
Title: Re: [Wire] Battle Bots!
Post by: Deacon on November 21, 2012, 04:52:38 PM
no xrain

I don't understand that

brain is now broken

thanks
Title: Re: [Wire] Battle Bots!
Post by: Alkaline on November 21, 2012, 05:57:24 PM

What engine/gearbox setup must I make for it to work? (i.e. what gearbox is just the simple forward/reverse?)

And thank you for the e2 code, it helped out.


EDIT: Nevermind. I have to use a transfer gearbox and then its just plug and play from there.
Title: Re: [Wire] Battle Bots!
Post by: Deacon on November 22, 2012, 12:13:59 AM
Desperately trying to wire without E2 because I don't understand it...getting close but cannot figure these engines out
Title: Re: [Wire] Battle Bots!
Post by: Boardtech on November 22, 2012, 06:55:38 PM
I tried to make a full video tutorial that teaches ACF and Wiremod from ground up (but pc too crap)

so haev pictures (hopefully it makes sense):

Mobility intro

Engines:
Active takes in 0-1
Throttle 0-100

Spoiler (click to show/hide)

Gearboxes:
Gear takes in 0-# of gears in this case 4
Gear up and Gear down takes in 0-1 (Gear input overrides the current gear the gearbox is on)
Clutch takes in 0-1 in decimals e.g 0.5 clutch for this set up will allow 45n/m of torque to go through
Brake takes in 0-100 in decimals, I advise that you don't go over 10 ACF is still buggy at this stage.


I will be demonstrating a simple way of getting an engine + gearbox setup to work using wiremod.

Spawn an advanced pod controller found in Wire - I/O
With the adv pod controller tool, right click the adv pod controller then right click the chair. An authication message should appear to tell you of the glorious success

To have the engine on while you're in the seat, wire active from the engine to the active output on the adv pod controller. The engine will turn on when you enter the chair and off when you get out
Spoiler (click to show/hide)

Wiring throttle requires a multiply gate since throttle takes in 0-100 and most adv pod buttons output 0-1.
Wire A from the multiply gate to an adv pod output recommended button is W. Then wire B from the multiply gate to the constant value. Now wire throttle to the multiply gate.
Spoiler (click to show/hide)

Yey now the engien is fully wired.

With the gearbox you can just wire Gear up and down to any buttons in the adv pod controller e.g Mouse1 and Mouse2
Spoiler (click to show/hide)

Wire the clutch to any button as well
Spoiler (click to show/hide)

We are going to use the same method to wire the brakes as we did for the throttle, only this time we are multiplying by 5.

Spoiler (click to show/hide)

Now we have wired the engine and gearbox!

To link the parts together do the following: using ACF Menu tool right click the engine and then the gearbox, then gearbox to wheels.
Title: Re: [Wire] Battle Bots!
Post by: Alkaline on November 22, 2012, 07:39:23 PM
You may want to dedicate a thread in the gmod contraptions topic to this. And I'm very interested in this kind of stuff so it'll definitely help me out (and Deacon).
Title: Re: [Wire] Battle Bots!
Post by: Boardtech on November 22, 2012, 07:51:31 PM
Will move that once I'm done. (currently teaching ingame and making tutorial at same time)
Title: Re: [Wire] Battle Bots!
Post by: Deacon on November 22, 2012, 08:14:28 PM
Dammit Tech. We just figured that bit out last night, I was proud of myself.