View unanswered posts | View active topics It is currently Sun Jun 16, 2024 7:47 am



Reply to topic  [ 40 posts ]  Go to page 1, 2, 3  Next
 Safer Craft R2: safer thrusters 
Author Message
DRL Developer
DRL Developer

Joined: Tue Aug 11, 2009 5:09 am
Posts: 395
Reply with quote
 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 1422 times


Last edited by Abdul Alhazred on Wed Dec 22, 2010 11:24 pm, edited 1 time in total.

Tue Dec 21, 2010 10:11 pm
Profile
User avatar

Joined: Sun Mar 07, 2010 7:19 am
Posts: 1279
Location: Places. And things.
Reply with quote
Post 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?


Tue Dec 21, 2010 10:23 pm
Profile
User avatar

Joined: Thu Dec 09, 2010 5:22 am
Posts: 82
Reply with quote
Post 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.


Tue Dec 21, 2010 10:29 pm
Profile
User avatar

Joined: Sun Mar 07, 2010 7:19 am
Posts: 1279
Location: Places. And things.
Reply with quote
Post 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.


Tue Dec 21, 2010 10:49 pm
Profile
DRL Developer
DRL Developer
User avatar

Joined: Tue Jul 27, 2004 8:02 pm
Posts: 428
Location: AZ
Reply with quote
Post 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


Tue Dec 21, 2010 10:55 pm
Profile ICQ
User avatar

Joined: Tue Jul 21, 2009 4:36 am
Posts: 347
Location: The place where asses go to be bad
Reply with quote
Post 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


Tue Dec 21, 2010 11:02 pm
Profile
Data Realms Elite
Data Realms Elite
User avatar

Joined: Wed Sep 05, 2007 4:14 am
Posts: 3966
Location: Canadida
Reply with quote
Post Re: Safer Craft (B23&24)
Abdul, I think you are being recruited...


Tue Dec 21, 2010 11:02 pm
Profile
User avatar

Joined: Thu Dec 09, 2010 5:22 am
Posts: 82
Reply with quote
Post Re: Safer Craft (B23&24)
Abdul is well-known for pulling stuff like this off.

This has not disappointed me.


Tue Dec 21, 2010 11:04 pm
Profile
User avatar

Joined: Sun Jun 21, 2009 11:57 pm
Posts: 32
Reply with quote
Post Re: Safer Craft (B23&24)
This is genius.

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


Tue Dec 21, 2010 11:07 pm
Profile
User avatar

Joined: Sat Jun 16, 2007 2:31 am
Posts: 2982
Location: Texas
Reply with quote
Post Re: Safer Craft (B23&24)
He has proved once again that he is the god of Lua.

This is amazing.


Tue Dec 21, 2010 11:09 pm
Profile
User avatar

Joined: Tue Jul 21, 2009 4:36 am
Posts: 347
Location: The place where asses go to be bad
Reply with quote
Post Re: Safer Craft (B23&24)
Foa wrote:
Abdul, I think you are being recruited going to be Data's heir...


Tue Dec 21, 2010 11:35 pm
Profile
User avatar

Joined: Tue Oct 24, 2006 10:07 pm
Posts: 511
Location: ☼The Infinite World☼
Reply with quote
Post 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


Tue Dec 21, 2010 11:51 pm
Profile
Data Realms Elite
Data Realms Elite
User avatar

Joined: Wed Sep 05, 2007 4:14 am
Posts: 3966
Location: Canadida
Reply with quote
Post 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.


Wed Dec 22, 2010 12:03 am
Profile
User avatar

Joined: Thu May 28, 2009 3:59 pm
Posts: 209
Reply with quote
Post 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.


Wed Dec 22, 2010 2:17 am
Profile
User avatar

Joined: Tue Oct 24, 2006 10:07 pm
Posts: 511
Location: ☼The Infinite World☼
Reply with quote
Post 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...


Wed Dec 22, 2010 3:54 am
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 40 posts ]  Go to page 1, 2, 3  Next

Who is online

Users browsing this forum: No registered users


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by STSoftware for PTF.
[ Time : 0.049s | 16 Queries | GZIP : Off ]