Page 1 of 2

Tesla Engine

Posted: Thu Jul 17, 2014 1:31 am
by carnie
Hi, I haven't forgotten about the new engine, was busy with work and stuff.

Image

I need some free sounds similar to these, but these aren't compatible with TG's licence:
+http://www.freesfx.co.uk/rx2/mp3s/1/940_1245285228.mp3 for the anomaly
+Loud lighting-strike crack for the bolts
Help finding these would be appreciated

Mechanics:
+The Particle accelerator will fire gamma rays at the teslionic anomaly, giving it energy. Unlike singularities, this energy will not dissipate over time.
As the energy level increases, the anomaly fires lightning bolts at the nearest compatible machine/mob, discharging energy from itself into that machine/mob.

+Tesla-coils will collect this energy and feed it into the power grid if hit, but obviously, if a mob is hit, they will suffer severe burns or maybe be fried into a crispy skeleton or pile of dust at extremely high energy levels. If a machine other than a tesla coil is hit, it will EMP it (at low energy levels), break it (at higher levels).

+Tesla coils are only moderately efficient, they'll collect a percentage of the energy from the bolt, the rest of that energy will 'bounce' off in another arc. This will mean potential for creative engine designs with additional tesla coils to collect that lost energy. It also means that a too-energetic anomaly would create a huge hazard to engineers, as bouncing arcs could strike nearby personnel or equipment.

+rad suits are made of a rubber-compound, so they will provide (almost) complete protection from the lighting arcs.

+rig suits are metal and are basically like holding a lightning rod in a thunderstorm...

+the anomaly is not dense, it can float through walls, it will be drawn towards nearby potential targets, but the bolts will only hit things in line-of-sight. (although, bouncing arcs can potentially bounce around corners!). Therefore the radiation shutters will protect you from strikes.

+I've coded the lightning-arc code to be usable by other things, so there's potential for an arc-thrower weapon.

+The anomaly will not eat stuff, the only way to increase its energy level is with the PA, so therefore it will eventually die out if it escapes. Hopefully this means the round will not necessarily be totally unplayable. However, because it actively seeks out machines/mobs to zap, it will cause lots of damage and carnage.

EDIT:
+containment will function exactly the same as it currently does.

+Creating the anomaly is done in the same way as a singularity is created, just with a different type of....(I forget what that round thing is called whichspawns a singulo).

+Depending on how difficult it is to implement this. The amount of energy absorbed from a lighting arc would be related to the energy of the arc and the distance it has travelled. So if it is a high energy arc and has only travelled 1 or two tiles to the nearest tesla coil, very little energy will be absorbed, resulting in a larger bouncing-arc.

The intention is to make the most efficient/safe designs different depending on how energetic an anomaly you intend to run. It's also nice if there isn't ONE correct way to set up the engine.

For example, if I wanted to set the particle accelerator to a higher setting (and hence have a larger and more energetic anomaly and much greater power output to boast about to the captain) I would be best placing my tesla coils slightly further from the center to minimize the bouncing arcs off of them...but if the anomaly shrunk, the arcs may not reach those coils and the APC would deplete, eventually allowing the anomaly to escape.

If I wanted to play it safe and run a small anomaly, I'd set the PA on a lower setting, leaving the tesla coils closer to the center. But if the anomaly grew too large (due to sabotage or whatever), it'd result in huge bouncing-arcs making the place a deathtrap.

If you didn't know what you were doing, or just wanted to be ubersafe and take forever setting up the engine, I could just sperg a few layers of tesla coils at different distances.

Bear in mind, you will only start with a finite number of coils, and ordering more will be very expensive! So you'll need to think about their placement (hopefully)

Re: Tesla Engine

Posted: Thu Jul 17, 2014 2:10 am
by Bluespace
So if I pump this up to max energy and release it, i'll have a ball of arcing lightning floating around eliminating anyone near it?

Nice.

Re: Tesla Engine

Posted: Thu Jul 17, 2014 4:00 am
by paprika
Better than LORD LAG-SUCKER

Re: Tesla Engine

Posted: Thu Jul 17, 2014 4:52 am
by Rolan7
What, this sounds like a minor tweak to the singu-
carnie wrote: +Tesla coils are only moderately efficient, they'll collect a percentage of the energy from the bolt, the rest of that energy will 'bounce' off in another arc. This will mean potential for creative engine designs with additional tesla coils to collect that lost energy. It also means that a too-energetic anomaly would create a huge hazard to engineers, as bouncing arcs could strike nearby personnel or equipment.

+rad suits are made of a rubber-compound, so they will provide (almost) complete protection from the lighting arcs.

+rig suits are metal and are basically like holding a lightning rod in a thunderstorm...
Okay, this sounds pretty cool.

Re: Tesla Engine

Posted: Thu Jul 17, 2014 10:26 am
by Giacom
Wow this looks amazing carn, did you do the sprites?

Re: Tesla Engine

Posted: Thu Jul 17, 2014 10:54 am
by Miauw
Looks pretty cool. Not the coolest engine design I could think off but anything is better than the fucking singulo. :+1:

Re: Tesla Engine

Posted: Thu Jul 17, 2014 3:23 pm
by Remie Richards
Fund it. Nice that you made the arc code reusable too.

Re: Tesla Engine

Posted: Thu Jul 17, 2014 5:22 pm
by Incoming
totes gonna repurpose this into chain lightning for the wizard if at all possible

Re: Tesla Engine

Posted: Thu Jul 17, 2014 6:07 pm
by Mono
This engine now. Fund it, help it, whatever. I hate the singuloth like I hate old nidalee spears. Every waking moment shall be spent coding this. Thus it is spoken, thus it is!

Re: Tesla Engine

Posted: Thu Jul 17, 2014 8:23 pm
by ShizCalev
Chain lighting? Fuck yes.


Do it.

Re: Tesla Engine

Posted: Thu Jul 17, 2014 9:26 pm
by paprika
Make a daisy chain of coils to a blob and use it to funnel lightning strikes into the blob core.

Re: Tesla Engine

Posted: Thu Jul 17, 2014 10:21 pm
by Nienhaus
Giacom wrote:Wow this looks amazing carn, did you do the sprites?
http://tgstation13.org/phpBB/viewtopic. ... 100#p16131

Re: Tesla Engine

Posted: Fri Jul 18, 2014 1:38 am
by Rockdtben
wow I love this carn!

Re: Tesla Engine

Posted: Fri Jul 18, 2014 3:11 am
by carnie
Giacom wrote:Wow this looks amazing carn, did you do the sprites?
No it was this guy http://tgstation13.org/phpBB/viewtopic. ... 240#p16131
He done an amazing job. I was coding this for facepunch but I'll port it to TG since he provided us with the sprites.

Although, that may be a while yet if the TG code has changed a lot.

Re: Tesla Engine

Posted: Fri Jul 18, 2014 3:17 am
by carnie
Incoming wrote:totes gonna repurpose this into chain lightning for the wizard if at all possible
The arc-drawing code is a proc like this:
proc/draw_line(atom/source, atom/target, icon, num_icon_states)
where source is the source (duh), target is what you're drawing a line towards, icon is the icon file (with variations named "1" "2" "3"...), and num_icon_states is the maximum highest number in your icon_state variations.

So you could use it for laser beams, flames or whatever.
I don't really have much performance data on it though, it spawns a lot of objects (due to the fact I need the arc sections to be visible even if you can't see the anomaly), but I will use an object bin so they are recycled rather than created and deleted constantly. So it should be pretty slick.

Re: Tesla Engine

Posted: Fri Jul 18, 2014 3:24 am
by carnie
The 'hardest' bit of this was getting the lines to scale nicely, because I've literally forgotten all the maths I ever learnt since I've not used it in like 5 years or so.
matrix(dx/dist, -dy/dist, -16*dx/dist, dy/dist, dx/dist, -16*dy/dist)
took ages because I kept fucking up. it centers the object in the tile (nudge left 16 pixels), rotates it and then scales it based on its angle of rotation, so that they join together seamlessly even when at diagonals (since a square is longer across its diagonal). It was originally a fucking mess of cos() and sin(), but it's been simplified into ratios now.

Re: Tesla Engine

Posted: Wed Jul 23, 2014 7:20 pm
by Scott
This looks brilliant, I hope it replaces the singularity engine as the default.

Re: Tesla Engine

Posted: Thu Jul 24, 2014 10:07 pm
by Ezel
Engineers better have a insulated suit
or... rip

Re: Tesla Engine

Posted: Fri Jul 25, 2014 8:10 am
by looping
Engineers will be conducting tesla rods.
Smiting all the infidels raiding engineering with their bouncing bolts.

Re: Tesla Engine

Posted: Fri Jul 25, 2014 3:52 pm
by Gun Hog
Ezel wrote:Engineers better have a insulated suit
or... rip
Physically speaking, if the RIG suits are made of metal, they would not need further insulation; the metal itself, being a conductor, cancels out most external electrical fields entering the suit. Think of the suit as being a Faraday cage. I do not recommend hugging the Engineer or standing on the same floor as him, however. Gameplay trumps realism though, because this same phenomenon would mean that RIG suited Engineers would not have need for insulated gloves!

Re: Tesla Engine

Posted: Fri Jul 25, 2014 7:55 pm
by Cipher3
Gun Hog wrote:
Ezel wrote:Engineers better have a insulated suit
or... rip
Physically speaking, if the RIG suits are made of metal, they would not need further insulation; the metal itself, being a conductor, cancels out most external electrical fields entering the suit. Think of the suit as being a Faraday cage. I do not recommend hugging the Engineer or standing on the same floor as him, however. Gameplay trumps realism though, because this same phenomenon would mean that RIG suited Engineers would not have need for insulated gloves!
Boom, magic.

Re: Tesla Engine

Posted: Sun Jul 27, 2014 1:30 pm
by Kyrah Abattoir
Could be fun if the bolts would bounce on rig suits to their next target.

Re: Tesla Engine

Posted: Wed Jul 30, 2014 11:39 pm
by Ezel
Kyrah Abattoir wrote:Could be fun if the bolts would bounce on rig suits to their next target.
And it could end up in two games
Spoiler:
Insulated ping pong
Uninsulated ping pong

Re: Tesla Engine

Posted: Thu Jul 31, 2014 9:49 am
by peoplearestrange
Also due to it not being a tile eating singlo the engine could actually be "built" inside. Therefore Rig suits would be used for repairs and solars, slightly reducing the suits being taken "just because". Either way you wouldn't NEED a suit to set up the engine, so more engineers could be involved in the setup.

Really love this idea though, nice job.

Re: Tesla Engine

Posted: Fri Aug 01, 2014 2:00 am
by Kyrah Abattoir
I do wonder if it will not make engineering a snorefest tho.

Re: Tesla Engine

Posted: Fri Aug 01, 2014 8:25 pm
by Munchlax
Engineering is already a snorefest so I would say nothing to lose.

Re: Tesla Engine

Posted: Fri Aug 01, 2014 9:41 pm
by Scott
Kyrah Abattoir wrote:I do wonder if it will not make engineering a snorefest tho.
Because there's a lot to do in engineering now?

Re: Tesla Engine

Posted: Fri Aug 01, 2014 11:57 pm
by Kyrah Abattoir
There is a moderate amount of pressure, but this tesla engine, while cool seems to negate what makes the singularity terrifying.

Re: Tesla Engine

Posted: Sat Aug 02, 2014 10:45 am
by looping
It's a rolling ball of vaporising lightning that actively seeks out both mob and machine.
Depending on strength it either turns you to dust or gives you a extremely painful shock, i'm failing to see how it's inferior to the singularity.
It enables experimentation as well as major fuckery, though I assume at the highest level the strength will be high enough to turn engineers to dust as well.

Re: Tesla Engine

Posted: Sat Aug 02, 2014 4:42 pm
by Miauw
the singularity is hardly terrifying, it's a slowly moving ball of irrevocable fuck you, fun's over unless its' released late in the round and science has bohs.

Re: Tesla Engine

Posted: Sat Aug 02, 2014 5:15 pm
by Kyrah Abattoir
Well would this have to be setup in vacuum still? Could this thing have a tendency to follow electrical cables?

Re: Tesla Engine

Posted: Mon Aug 04, 2014 10:13 pm
by Ezel
Miauw wrote:the singularity is hardly terrifying, it's a slowly moving ball of irrevocable fuck you, fun's over unless its' released late in the round and science has bohs.
Sometimes the singularity is minding his own bussiness
or going for a Spess trip
Or he is gonna RoBuSt ThAt StRaNgE BeAcOn near that unknown ship!

but singularity isnt that worse there is many ways to stop it


Admins can delete it
*cough*or ask a mod to modify it to clown than you got a Honklarity
Put to bag of holding in anothe-oh wait get rid of it yes throw it inside
and by using bombs and often happens Plasma! FIRE!
With the help pf Cthul*cough*nar-sie
Hmmm.. Fight singularity with singularitys!

and those are the ways to get it ridd of is it so worse?

Re: Tesla Engine

Posted: Fri Aug 08, 2014 2:47 am
by carnie
This should be finished within a week.

Just to clarify, I'm not intending on submitting this as the main engine for TGcode. Mainly because I'm not involved in this project anymore, so I will probably not be here to maintain it. The parts will probably be lying in with the other singularity equipment, so you'd build it from scratch. Additional parts can be ordered at QM, but they are expensive.

Current Changes to design document:
singularity Particle accelerators, and the new teslionic specific one, are interchangeable. You can use either for both anomalies. !But! teslionic anomalies dissipate faster than singularities, so they need the higher output of the teslionic PA. Likewise, the teslionic PA is probably too powerful for the singularity and therefore may result in fun.

Infrastructure is in place to port singulo over to the same codeset as teslionic. I've coded this, and will gladly share it as a reference to coderbus. But it uses a bunch of other code not on your branch, so I wont be porting it over myself.

I can't find decent free sounds for the teslionic anomaly. So you guys will either have to put an attributation in your changelog, or have no sound-effects.

Toying with an idea, which would introduce calibrating tesla-coils to different frequencies via a computer. The nearer their resonating frequency is to the resonating frequency of the anomaly, the more attractive that coil is to bolts. Meaning bolts are more likely to hit it.

EDIT: oh, and pumping waay too much energy into a teslionic anomaly may result in double-fun.

Re: Tesla Engine

Posted: Fri Aug 08, 2014 7:16 am
by Kyrah Abattoir
This might be too much but how about gas cooling the reception coils with a co2 based cold loop?

Re: Tesla Engine

Posted: Fri Aug 08, 2014 11:00 am
by Miauw
Alright, cool.

Re: Tesla Engine

Posted: Fri Jan 09, 2015 12:40 pm
by Bombadil
"Should be finished within a week"

Re: Tesla Engine

Posted: Fri Jan 09, 2015 12:53 pm
by Saegrimr
Bombadil wrote:"Should be finished within a week"
Image

Re: Tesla Engine

Posted: Fri Jan 09, 2015 2:18 pm
by Thunder11
Image

Re: Tesla Engine

Posted: Sat Jan 10, 2015 12:38 am
by Xhuis
holy fuck i finally have a chance to use this

While we wait, let's throw a party
Image

Re: Tesla Engine

Posted: Sun Jan 11, 2015 5:25 am
by paprika
That gif holy shit

Re: Tesla Engine

Posted: Sun Jan 11, 2015 10:35 am
by Miauw
2spooky4me

Re: Tesla Engine

Posted: Sun Jan 11, 2015 10:40 am
by paprika
Really though whenever carn has ironed out most of the bugs as a result of shuttles and stuff I would fucking LOVE to test and help with this. A low-risk but more power-deadly engine sounds fun as shit. Plus I want to find the right amount of power that will zap someone into a spooky skeleton when touching a tesla coil or whatever so I can have people pay me to become spooky as a CE.

Re: Tesla Engine

Posted: Tue Jan 27, 2015 5:26 am
by iyaerP
I want to build a lightning-fence the length of the engineering hallway to zapp all the assistants coming to beg for gloves/steal fireaxe/loiter/whatever.

Re: Tesla Engine

Posted: Tue Jan 27, 2015 6:42 am
by lumipharon
I want to see this work, if for no other reason that as a side effect wizards will eventually be able to go 'lightning bolt! lightning bolt!' an chain lightning faggots trying to rush them.

Re: Tesla Engine

Posted: Tue Jan 27, 2015 8:47 am
by Steelpoint
Something tells me Carn is not going to finish this.

Re: Tesla Engine

Posted: Tue Jan 27, 2015 5:04 pm
by Remie Richards
Steelpoint wrote:Something tells me Carn is not going to finish this.
it better be the fact she quit. since she quit.

Re: Tesla Engine

Posted: Thu Jan 29, 2015 6:08 pm
by Luke Cox
It would be cool if Engineering could choose between using the singularity or the Tesla engine. One would be more stable but generate less power, the other would generate more but run the risk of escaping and fucking everything up.

Re: Tesla Engine

Posted: Thu Jan 29, 2015 6:14 pm
by Jacquerel
It would be cool but Carn is never going to finish this

Re: Tesla Engine

Posted: Fri Jan 30, 2015 1:04 pm
by callanrockslol
What if we salvage Erro for spare parts and put carn back together with them?

Re: Tesla Engine

Posted: Fri Jan 30, 2015 10:46 pm
by Vekter
Didn't Carn fuck off?