Data Realms Fan Forums
http://45.55.195.193/

Safer Craft R2: safer thrusters
http://45.55.195.193/viewtopic.php?f=61&t=20810
Page 1 of 3

Author:  Abdul Alhazred [ Tue Dec 21, 2010 10:11 pm ]
Post subject:  Safer Craft R2: safer thrusters

Image
The standard MK2 rocket under AI control, assisted by a little bit of Lua code.


Release two: The rockets all have harmless side thrusters to avoid accidentally killing the cargo on exit (thanks Asatruer).

This mod contain the five standard delivery craft with a few simple scripts that improve stability drastically through the use of PID controllers. The scripts are only active in AI-mode and use the craft's engines, rather than changing the rotation and angular velocity of the craft directly.

Image
The B24 version includes a variant of "One Man Army" that use the safer crafts.


With these improvements, especially the rockets are significantly harder to shoot down. The original craft AI is most likely implemented using similar methods, but I suspect that it was purposely built to handle poorly so craft are easy to shoot down. (Edit: I was apparently wrong)


Please feel free to use my code for whatever you want.

Attachments:
File comment: 2010-12-22 - For B24 only
SaferCraft_R2.zip [8.06 KiB]
Downloaded 1450 times

Author:  unwoundpath [ Tue Dec 21, 2010 10:23 pm ]
Post subject:  Re: Safer Craft (B23&24)

:shock:

I can not describe the awesomeness this has.
can someone make me one to replace the normal ones? please?

Author:  killionaire [ Tue Dec 21, 2010 10:29 pm ]
Post subject:  Re: Safer Craft (B23&24)

Tested.

These things stabilize even when their engines or hulls have been shot to hell (but not destroyed)

Nice work.

Author:  unwoundpath [ Tue Dec 21, 2010 10:49 pm ]
Post subject:  Re: Safer Craft (B23&24)

Nonsequitorian wrote:
killionaire wrote:
These things stabilize even when their engines or hulls have been shot to hell (but not destroyed)


As I recall, the dent metal and dent metal spark wounds are only for looks, and don't actually push the rocket when they're there, so it really shouldn't matter if it's been shot to hell or not.


It does as a matter of fact, shoot a dropship engine and try driving it! the exhaust pushes it.

Author:  Data [ Tue Dec 21, 2010 10:55 pm ]
Post subject:  Re: Safer Craft (B23&24)

Hah I wish i can say I made the current implementation intentionally shitty... :P

That's impressive though! It motivates me to bump the task of making the AI update function exposed to lua.. ie if it is defined, the C++ implementation will be overriden and the Lua one used instead. I don't think I'll be porting the nightmarish C++ functions to lua myself though.. might release the source for them so someone else can tackle it though.. hint hint wink wink

Author:  Joe [ Tue Dec 21, 2010 11:02 pm ]
Post subject:  Re: Safer Craft (B23&24)

Yeah, I recommended you take a look at some of Abdul's other AI fixes, Data. He's really outdone himself since he joined the forums!

Like the Independant Combat Droid,
or the Dummy Vehicles

Author:  Foa [ Tue Dec 21, 2010 11:02 pm ]
Post subject:  Re: Safer Craft (B23&24)

Abdul, I think you are being recruited...

Author:  killionaire [ Tue Dec 21, 2010 11:04 pm ]
Post subject:  Re: Safer Craft (B23&24)

Abdul is well-known for pulling stuff like this off.

This has not disappointed me.

Author:  Zaits [ Tue Dec 21, 2010 11:07 pm ]
Post subject:  Re: Safer Craft (B23&24)

This is genius.

Now to practice this until I can just cartwheel over and over with a rocket.

Author:  whitty [ Tue Dec 21, 2010 11:09 pm ]
Post subject:  Re: Safer Craft (B23&24)

He has proved once again that he is the god of Lua.

This is amazing.

Author:  Joe [ Tue Dec 21, 2010 11:35 pm ]
Post subject:  Re: Safer Craft (B23&24)

Foa wrote:
Abdul, I think you are being recruited going to be Data's heir...

Author:  jaybud4 [ Tue Dec 21, 2010 11:51 pm ]
Post subject:  Re: Safer Craft (B23&24)

Nonsequitorian wrote:
As I recall, the dent metal and dent metal spark wounds are only for looks

Apparently you weren't around before rockets gibbed as they do now.
Stuff like this happened if you shot a rocket enough.
http://img.photobucket.com/albums/v139/ ... ump003.jpg

Author:  Foa [ Wed Dec 22, 2010 12:03 am ]
Post subject:  Re: Safer Craft (B23&24)

Joe wrote:
Foa wrote:
Abdul, I think you are being recruited going to be Data's heir... the Heir of Breath Data

Whatever, close enough.
Anyways, Data, look out for Abdul's other mods.

Author:  Asatruer [ Wed Dec 22, 2010 2:17 am ]
Post subject:  Re: Safer Craft (B23&24)

Fantastic!
I did a little testing and most of it performs extraordinarily, except the Dummy Rocklet killed nearly all actors it dropped by burning their heads off with the top stabilizing thrusters.

Author:  jaybud4 [ Wed Dec 22, 2010 3:54 am ]
Post subject:  Re: Safer Craft (B23&24)

Every rocket I've seen since I applied this just uses the side thrusters repeatedly and thrusts itself into the ground.
They don't usually die outright, but it's a bit disconcerting.

Could it be something to do with the fact that I applied it to the base.rte ones instead?
I didn't notice any other changes in your upgraded versions, but...

Page 1 of 3 All times are UTC [ DST ]
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/