EnglishGermanFrenchRussianItalianSpanish
Log inRegister
 
[SCRIPT] [2009.03.03] Marine Repairs v1.02
Post new topic Reply to topic Goto page Previous  1, 2, 3, 4, 5, 6, 7, 8, 9, 10  Next
View previous topic :: View next topic
Author Message
vampirecosmonaut





Joined: 17 Aug 2006
Posts: 320 on topic
Location: Space
Thank you for registering your game
PostPosted: Fri, 9. Oct 09, 22:30    Post subject: Reply with quote Print

This script works fine for me in 2.1. The problem is, it works TOO well.

I have 20 fully trained marines, between 90-100 in every skill, and they
repair my carrier very quickly and any docked ships get repaired instantly.
The moment a damaged ship docks with my ship, it jumps to 100% hull.
It's really convenient, but it feels like cheating. >..>


_________________
The first documented attempt in human history to use a rocket for spaceflight
was made in the 16th century by a Chinese Ming dynasty official named Wan Hu.
The resultant explosion presumably killed him.
Back to top
View user's profile Send private message
Solomon Short





Joined: 25 Mar 2009
Posts: 690 on topic
Location: NZ
Thank you for registering your game
PostPosted: Fri, 9. Oct 09, 23:21    Post subject: Reply with quote Print

Easy to fix, without adjusting .

Since (AFAIK) the only vessel that you can board from that is also capable of carrying auxiliaries is the Hyp. Vang., just move all your good marines to an M6, M7M, or TP, & limit yourself to 1-2 star, or a smaller number of, mechanics on your carriers.

Back to top
View user's profile Send private message
vampirecosmonaut





Joined: 17 Aug 2006
Posts: 320 on topic
Location: Space
Thank you for registering your game
PostPosted: Sat, 10. Oct 09, 06:39    Post subject: Reply with quote Print

I just altered the amount of repair in the plugin.tatakau.repair.effect.xml.
Looks like the script repairs your ship every minute or so with the total engineering and mechanical skill of the marines on board.

So for my carrier, it was healing 4000 hull points every tick. Surprised

I dropped it to half of the engineering skill of my marines.
Still feels a little much, I might make it 1/4 their engineering skill, considering it's the skill they use to reduce damage when taking the ship. >..>


_________________
The first documented attempt in human history to use a rocket for spaceflight
was made in the 16th century by a Chinese Ming dynasty official named Wan Hu.
The resultant explosion presumably killed him.
Back to top
View user's profile Send private message
fobboy





Joined: 12 Jan 2009



PostPosted: Sat, 24. Oct 09, 22:20    Post subject: Reply with quote Print

How do I modify the xml file so that marine repair isn't as effective?

Back to top
View user's profile Send private message
vampirecosmonaut





Joined: 17 Aug 2006
Posts: 320 on topic
Location: Space
Thank you for registering your game
PostPosted: Sat, 24. Oct 09, 22:36    Post subject: Reply with quote Print

Code:

plugin.tatakau.repair.effect
102
43
Marine Repairs - Determine total effectiveness of marines

$effect.total = 0
$target.marines = $target -> get marines array
$i =  size of array $target.marines
while $i
dec $i =
$marine = $target.marines[$i]
$marine.engineering = $marine -> get marine engineering skill

if $marine.engineering <= 10
  $marine.effect = 1
else if $marine.engineering <= 20
  $marine.effect = 2
else if $marine.engineering <= 30
  $marine.effect = 3
else if $marine.engineering <= 40
  $marine.effect = 4
else if $marine.engineering <= 50
  $marine.effect = 5
else if $marine.engineering <= 60
  $marine.effect = 6
else if $marine.engineering <= 70
  $marine.effect = 7
else if $marine.engineering <= 80
  $marine.effect = 8
else if $marine.engineering <= 90
  $marine.effect = 9
else if $marine.engineering < 100
  $marine.effect = 10
else if $marine.engineering == 100
  $marine.effect = 12
end

$effect.total = $effect.total + $marine.effect
end

$target.docked = $target -> get ship array from sector/ship/station
$target.docked.length =  size of array $target.docked
if $target.docked.length > 0
$i = 0
while $i < $target.docked.length
$ship = $target.docked[$i]
$effect.ship = [THIS] -> call script plugin.tatakau.repair.effect :  target=$ship
$effect.total = $effect.total + $effect.ship
inc $i =
= wait 10 ms
end
end

return $effect.total


That's what I did. >..>


_________________
The first documented attempt in human history to use a rocket for spaceflight
was made in the 16th century by a Chinese Ming dynasty official named Wan Hu.
The resultant explosion presumably killed him.
Back to top
View user's profile Send private message
Khensu





Joined: 28 Oct 2009
Posts: 110 on topic

Thank you for registering your game
PostPosted: Thu, 29. Oct 09, 03:24    Post subject: Reply with quote Print

sry, but I'm a noob in scripting and editing scripts, so could you upload somewhere your updated version, because I think its to fast as it is, and whould like your version better Smile

Back to top
View user's profile Send private message
vampirecosmonaut





Joined: 17 Aug 2006
Posts: 320 on topic
Location: Space
Thank you for registering your game
PostPosted: Thu, 29. Oct 09, 07:40    Post subject: Reply with quote Print

Here's a link to my modded effect values for your marines.
It is based on their engineering skill, providing 1 point of hull repair for every 10 points of engineering skill, with a bonus of 1 point when they have a skill of 100.

A maximum repair of 12 points of hull per tick.

http://www.filefront.com/14817891/plugin.tatakau.repair.effect.xml

I certainly hope I'm allowed to post this. Embarassed


_________________
The first documented attempt in human history to use a rocket for spaceflight
was made in the 16th century by a Chinese Ming dynasty official named Wan Hu.
The resultant explosion presumably killed him.
Back to top
View user's profile Send private message
Khensu





Joined: 28 Oct 2009
Posts: 110 on topic

Thank you for registering your game
PostPosted: Thu, 29. Oct 09, 16:53    Post subject: Reply with quote Print

Thank you very much!!! Smile

Back to top
View user's profile Send private message
Reisser





Joined: 28 Feb 2005
Posts: 645 on topic

Thank you for registering your game
PostPosted: Tue, 1. Dec 09, 15:18    Post subject: Reply with quote Print

Exactly what I'm searching for - thanks!

But what if I want to lower the repair-rate a bit more?

Could I raise the wait-value for example to 100 ms ? If I see this right this is the loop-time for the repair

Code:

$i = 0
while $i < $target.docked.length
$ship = $target.docked[$i]
$effect.ship = [THIS] -> call script plugin.tatakau.repair.effect :  target=$ship
$effect.total = $effect.total + $effect.ship
inc $i =
= wait 10 ms
end
end


Back to top
View user's profile Send private message
vampirecosmonaut





Joined: 17 Aug 2006
Posts: 320 on topic
Location: Space
Thank you for registering your game
PostPosted: Tue, 1. Dec 09, 22:50    Post subject: Reply with quote Print

That would increase the time between repairs.
Change it in both plugin.tatakau.repair.docked and plugin.tatakau.repair.main.
Are you using my changes?


_________________
The first documented attempt in human history to use a rocket for spaceflight
was made in the 16th century by a Chinese Ming dynasty official named Wan Hu.
The resultant explosion presumably killed him.
Back to top
View user's profile Send private message
Reisser





Joined: 28 Feb 2005
Posts: 645 on topic

Thank you for registering your game
PostPosted: Wed, 2. Dec 09, 10:06    Post subject: Reply with quote Print

Yes - I use your little hotfix and for now it works fine (three captured M3 still in repair-progress *g*). There is only a noob-crew of mechanics at work - so the delay is long enough for the moment.

Perhaps in future someone will script somethink like a ship-garage where it will cost time, credits and material for repairing own ships. Not as much as repairing them in a shipyard of course *g* - but it would be nice to have such a place where to send ships to Wink

Back to top
View user's profile Send private message
russbo





Joined: 12 Nov 2005
Posts: 847 on topic
Location: Las Vegas
Thank you for registering your game
PostPosted: Sun, 3. Jan 10, 03:13    Post subject: Reply with quote Print

Just FYI, I'm getting game lock ups, and I think it's due to this script. Is there an interaction between this and Codea, or Graxsters Marine Training Manager?


_________________
www.russbo.com
Back to top
View user's profile Send private message Send e-mail Visit poster's website
XanII





Joined: 29 Dec 2005
Posts: 2389 on topic
Location: Way too far beyond
Thank you for registering your game
PostPosted: Tue, 12. Jan 10, 14:37    Post subject: Reply with quote Print

Does this even work in 2.5?


_________________
X3:TC Heavy M6 guide : : : Let's pretend you are an addict, lets pretend that you are a X-games player... but i am repeating myself here.
Back to top
View user's profile Send private message MSN Messenger
Scoob





Joined: 27 Feb 2003
Posts: 5426 on topic
Location: Oxford, UK
Thank you for registering your game
PostPosted: Tue, 12. Jan 10, 14:41    Post subject: Reply with quote Print

Hi,

I'm using this in 2.5 with Codea and it's working just fine, possibly MTM has a conflict as I don't use that.

Cheers,

Scoob.

Back to top
View user's profile Send private message
Protrader



MEDALMEDAL

Joined: 03 Dec 2003
Posts: 279 on topic

Thank you for registering your game
PostPosted: Tue, 2. Feb 10, 09:22    Post subject: Reply with quote Print

Kakurate wrote:
If anyone is interested, I've made a couple of changes to the script to suit my personal tastes.

- Marines will repair other damaged ships while docked at any kind station if the station isn't damaged
- Marines will repair up to 80% of the hull while the ship is moving, but any more and you will need to be not moving. (Simulates them having to get outside and work on it.

* What I plan on adding.
- Marine effectiveness will be affected by their engineering skill.

If you are interested in getting the updated files, send me a PM and i'll send you the updates.


The idea of being stopped to simulate marines crawling on the hull is pretty good. I am not sure I would want to be on a spacewalk when a ship is moving, dodging fire, ect..

Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic Reply to topic Goto page Previous  1, 2, 3, 4, 5, 6, 7, 8, 9, 10  Next
 
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 vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum
Control Panel
Login Data
The time now is Wed, 22. Nov 17, 11:24

All times are GMT + 2 Hours


Board Security

Copyright © EGOSOFT 1989-2017
Powered by phpBB © 2001, 2005 phpBB Group
Template created by Avatar & BurnIt!
Debug: page generation = 0.39377 seconds, sql queries = 29