[SCRIPT] Shiploot v1.04 (03. Dec. 2009)

The place to discuss scripting and game modifications for X³: Terran Conflict and X³: Albion Prelude.

Moderators: Moderators for English X Forum, Scripting / Modding Moderators

Mailo
Posts: 696
Joined: Wed, 5. May 04, 01:10

[SCRIPT] Shiploot v1.04 (03. Dec. 2009)

Post by Mailo » Mon, 7. Sep 09, 19:45

Download:

Download-Link for v1.04

Mechanics, looting wrecks and ship tunings

This script adds the possibility to look ship wrecks for spare parts. The wrecks are symbolized by nav buoys which are sometimes spawned upon the destruction of a ship. Skilled mechanics can use these loot parts to tune ships beyond their design parameters, refit shiptypes (e.g. refit a vanguard model into a hauler one), build consumables like a shortlived speed boost or even turn a station or M1/TL/TM into a mobile repair base.
Wrecks disappear after a while to keep the universe from being cluttered, but it is fun to enter a vector and see a field of wreckage containing a "Khaak carrier wreckage" at the center.

These mechanics can be hired when docked at any base via a ship command and gain experience when working with loot parts. Note: mechanics with high aptitude are not available at every type of station.

Three new commands are added by the script, a ship trade command, a ship special command and a station command. While the station command is used to give orders to a mechanic assigned to a station, the ship command is both used for mechanics stationed on ships and to manage the hiring, assignment and firing of mechanics. The latter options are only available on the playership. The ship special command will be implemented in a later version.

The menus:

Ship menu: (Trade command, requires Trading System Extension)

Options available on playership
- Try to hire mechanic (only works on stations)
- Sell loot parts at station (only works on stations)
- View hired mechanics
- Fire mechanic
- Assign mechanic to M1/TL/TM
- Assign mechanic to station
- Recall mechanic from ship or station

Options available on M1/TL/TM with assigned mechanic:
- View mechanic assigned to this ship
- Repair docked ship(s)

Station menu: (requires a mechanic to be assigned)

- View mechanic assigned to this station
- View loot parts and consumables stored at the station
- Repair docked ship(s)
- Upgrade ship
- Refit ship
- Produce consumables
- Transfer loot parts between ship and station
- Transfer consumables between ship and station

To assign a mechanic to a station or a ship, a mechanics shop must be installed first. The cost of 500k is taken from the player (in case of a ship mechanic) or the station account (for a station mechanic). Note that the shop is not a ware that can be found anywhere, the player is prompted to install one via menu commands when assigning a mechanic.

The repair works slightly differently on a station and on a ship. A station mechanic only requires money and time to repair ships (20k per repair tick), the repairs on a ship cost resources and time, no money (teladianium, computer components, energy cells and quantum tubes, to be exact).
Repairs do not increase the skill of the mechanic, and require a minimum skill of 50.

Upgrades available are:
- Supertuned engines: Adds engine tunings above maximum, total amount depends on mechanic's skill
- Supertuned thrusters: Adds rudder tunings above maximum, total amount depends on mechanic's skill
- Shield recharge: Recharges shields by a small amount every tick. Recharge amount depends on mechanic's skill
- Weapon energy recharge: as above, recharges weapon energy
- auto hull repair: see above, repairs hull

The script also adds five hotkeys:

- Loot wreckage: Extracts a loot part from a wreckage. Needs to be within 50m of player to work. Extracted loot part is influenced by the shiptype and race as well as random chance
- Check collected loot: Lists pieces of loot collected and in ship storage
- Activate afterburner: Requires consumable onboard, has chance of destroying engine tunings, lasts 30s
- Recharge shield: Requires consumable onboard, has chance to burn out shield generator
- Recharge weapon energy: Requires consumable onboard, has chance to burn out weapon

The final command not mentioned so far is only available after a mechanic with extremely high skill gets a flash of inspiration (not implemented yet).

Still to do:
- Add mission for ultimate mechanic
- Add one or two more upgrade options available with ultimate mechanic

DeadlyDa was nice enough to set up a forum for the script, you'll find it here:

Shiploot beta forum (registration required, as DeadlyDa has had problems with wannabe hackers)

Uninstalling the script:

DO NOT SIMPLY DELETE THE SCRIPT FILES!!!
First switch the AL plugin to OFF in the AL plugin menu, wait a few seconds and save the game. Only then is it safe to delete the script files.

Technical Data:

Language File
7401

Command Slots:
COMMAND_TYPE_TRADE_49 (449)
COMMAND_TYPE_CUSTOM_48 (548)
COMMAND_TYPE_STATION_47 (1147)

Version history:

10. Oct. 2009: v1.0
23. Oct. 2009: v1.01: Only change is German t-file, english users do not need to re-download
18. Nov. 2009: v1.02: removed debug messages, implemented complex support, changed distance requirement for looting, more detailed feedback when looting, changed two command slots
22. Nov. 2009: v1.03: display bug when recalling a mechanic removed, production of consumables now correctly uses loot parts, bug in display of experience fixed
03. Dec. 2009: v1.04: consumables transfer from station to ship was slightly off, upgrading of ship returned wrong ship name in message, show collected loot hotkey now also shows consumables, polish translation

Thanks to:
- Pelador for his patience when explaining the basics of scripting to me and for listening when I bounced around crazy ideas
- LV for his tutorial on how to program an AL plugin and menus
- Deadly for the space on his forum and his great mod ;)
- Idea, Lifeforce and Thrandisher for the betatesting
- Yacek for his polish translation
- All the other scripters and modders around here who bring the X3 universe to life
Last edited by Mailo on Thu, 3. Dec 09, 22:51, edited 8 times in total.
As a personal service to all who try to keep up with my professional work:
Image

My script: Shiploot v1.04 ... loot shipwrecks, collect different loot parts and upgrade your ships!
Mein Skript: Schiffswracks looten v1.04 ... Durchsuche Schiffswracks, sammle Lootteile und verbessere Deine Schiffe!

User avatar
Lifeforce87
Posts: 95
Joined: Sat, 15. Aug 09, 00:42

Post by Lifeforce87 » Mon, 7. Sep 09, 20:55

Wow that looks pretty nice Oo I will test it now
*Edit* *waiting for confirmation mail*

Thrandisher
Posts: 357
Joined: Sun, 1. Jul 07, 03:33

Post by Thrandisher » Tue, 8. Sep 09, 06:26

Sounds interesting. If the script is removed, hotkey's will remove also?


Can a mechanic strip down a ship )destroying the ship) and use those mateirals to repair other ships? There has been MANY times i have caped a ship and wanted to land it and have it taken apart and used those parts on other ships to repair them.

Ill give it a go in a few day's when i have more time, in less pain, and figured out the instability problem im haveing right now.


I do like the fact that the stations and repair ships have differnt REQ to repair.
The mongrels will never get over THIS wall.

Mailo
Posts: 696
Joined: Wed, 5. May 04, 01:10

Post by Mailo » Tue, 8. Sep 09, 10:55

Just put up v0.31, hopefully the bad text messages Lifeforce found are gone.

@Thrandisher: The hotkeys should be removed, yes. And no, the mechanic cannot strip down a ship, but that is actually a pretty neat idea, I might try to include something like that in a future version.

The repair requirements is something that needs to be tested for balance first, so far I don't know if keeping the mechanic supplied with parts is too much of a bother or not.
As a personal service to all who try to keep up with my professional work:
Image

My script: Shiploot v1.04 ... loot shipwrecks, collect different loot parts and upgrade your ships!
Mein Skript: Schiffswracks looten v1.04 ... Durchsuche Schiffswracks, sammle Lootteile und verbessere Deine Schiffe!

User avatar
Gazz
Posts: 12423
Joined: Fri, 13. Jan 06, 17:39

Re: [SCRIPT] Shiploot v0.3beta (07.09.2009)

Post by Gazz » Tue, 8. Sep 09, 12:34

Mailo wrote:The wrecks are symbolized by nav buoys which are sometimes spawned upon the destruction of a ship.
If they are spawned by SIGNAL_KILLED that's a pretty neat (and clean) feature.

Overtuning ships is dangerous however, because speed is a multiplier for other abilities - at least when flown by the player.
What if this jury rigged overtune could have... side effects?
Overtunings and/or regular tunings breaking down, a power surge flushing the laser/shield battery. Even the controls could lock up so you could only alter the ship's speed.
Ahh, there are so many ways to vex the player. =)

There is at least one good "electric fizzle" sound that could be played for such occasions.
My complete script download page. . . . . . I AM THE LAW!
There is no sense crying over every mistake. You just keep on trying till you run out of cake.

Thrandisher
Posts: 357
Joined: Sun, 1. Jul 07, 03:33

Post by Thrandisher » Tue, 8. Sep 09, 22:20

Sadly i still like the way gazz thinks. ;)

BEEP BEEP BEEP, Malfunction Detected. Jump drive activated, Now entering Xenon Sector 695. Jumpdrive Error.
The mongrels will never get over THIS wall.

Mailo
Posts: 696
Joined: Wed, 5. May 04, 01:10

Post by Mailo » Thu, 10. Sep 09, 11:11

@Gazz:

Yes, they are spawned by a secondary signal linked to SIGNAL_KILLED.

For the overtuning, it is similar to Cycrow's Reunion overtuning script, a mechanic with perfect skill will manage to install half again as many tunings as a regular shipyard can. I didn't include possible breakdowns there though, as that would probably vex me more than any other player ;)

The consumables I put in do have a chance for stuff breaking down, but I guess they are still quite unbalanced ... the afterburner consumable propelled my discoverer at 2880 m/s for 30 seconds ;)

I thought that was funnier, imagine the face of a player who wants to use the afterburner to get out of a tight spot, only to see he lost some of this tunings ...

Although ... hmm ... it would be funny to cap laser and shield energy at 50% of the normal amount, maybe until the next hull damage (a little knocking around might reset some connectors). I'll keep it in mind for the next update.
As a personal service to all who try to keep up with my professional work:
Image

My script: Shiploot v1.04 ... loot shipwrecks, collect different loot parts and upgrade your ships!
Mein Skript: Schiffswracks looten v1.04 ... Durchsuche Schiffswracks, sammle Lootteile und verbessere Deine Schiffe!

Mailo
Posts: 696
Joined: Wed, 5. May 04, 01:10

Post by Mailo » Sat, 10. Oct 09, 02:15

I've just put up the first release version. Feedback welcome :)
As a personal service to all who try to keep up with my professional work:
Image

My script: Shiploot v1.04 ... loot shipwrecks, collect different loot parts and upgrade your ships!
Mein Skript: Schiffswracks looten v1.04 ... Durchsuche Schiffswracks, sammle Lootteile und verbessere Deine Schiffe!

User avatar
vampirecosmonaut
Posts: 320
Joined: Thu, 17. Aug 06, 21:23

Post by vampirecosmonaut » Sat, 10. Oct 09, 06:44

I know this might be a dumb suggestion, but what if instead of quest for the ultimate mechanic, what if you could become one yourself? Maybe add a ware that represents your training? Just an idea. :oops:
My thinking is that it would be a great excuse to be able to do more than regular mechanic because it's your ship and you're more comfortable making serious, or dangerous, changes to it.

EDIT:
Link isn't working for me. :(
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.

Mailo
Posts: 696
Joined: Wed, 5. May 04, 01:10

Post by Mailo » Sat, 10. Oct 09, 08:08

Strange, the link works for me, and several people have already downloaded the file already. What happens when you click on it?

And to tell you the truth, if I was a mechanic, I'd be more comfortable doing dangerous modifications to other people's ships :D
Seriously though, I thought about making the upgrade process more involved (e.g. pick loot parts, throw them together and see what happens) which would work better if the player did the work themselves, but the limitations of the X3 engine would make this a half-measure at best.
As a personal service to all who try to keep up with my professional work:
Image

My script: Shiploot v1.04 ... loot shipwrecks, collect different loot parts and upgrade your ships!
Mein Skript: Schiffswracks looten v1.04 ... Durchsuche Schiffswracks, sammle Lootteile und verbessere Deine Schiffe!

Sticks
Posts: 214
Joined: Thu, 29. Nov 07, 16:35

Post by Sticks » Sat, 10. Oct 09, 09:10

Lets see if i understand this ... this script adds actual wrecks to the universe when i kill a ship? Are these wrecks invincible like normal ship debris? May i have a screenshot of a few wrecks? =)

Mailo
Posts: 696
Joined: Wed, 5. May 04, 01:10

Re: [SCRIPT] Shiploot v1.0 RELEASE (10.Oct.2009)

Post by Mailo » Sat, 10. Oct 09, 09:21

Mailo wrote:This script adds the possibility to look ship wrecks for spare parts. The wrecks are symbolized by nav buoys which are sometimes spawned upon the destruction of a ship.
Quoting myself ;)
The "wrecks" are normal nav buoys which are just called "Argon Nova wreckage" for example. You can fly up to them and collect a loot part by pressing the corresponding hotkey, you can shoot them (couple of hits should destroy them), or you just ignore them and they disappear after a few minutes.
While I would have loved to add actual wreck models for each ship in the game, my nonexistant modelling skills kind of killed that idea. That and the fact that I wanted to release it this century. As far as I know, the regular game only contains a small number of wreckage models, the only one that comes to mind is the model of an X2 style Argon M2.
As a personal service to all who try to keep up with my professional work:
Image

My script: Shiploot v1.04 ... loot shipwrecks, collect different loot parts and upgrade your ships!
Mein Skript: Schiffswracks looten v1.04 ... Durchsuche Schiffswracks, sammle Lootteile und verbessere Deine Schiffe!

Mailo
Posts: 696
Joined: Wed, 5. May 04, 01:10

Post by Mailo » Wed, 18. Nov 09, 23:25

I just uploaded v1.02. Changes are:

- Feedback when looting now also gives the number of loot parts collected so far
- debug logbook messages removed
- stations which are connected to a complex now do not appear in the list of stations when installing a new mechanic
- distance requirement for looting is now depending on ship type: M1/M2/M7 can loot at greater distances
- Readtext entry in command menu removed
- mechanics now have a higher chance to appear in shipyards and equipment docks
As a personal service to all who try to keep up with my professional work:
Image

My script: Shiploot v1.04 ... loot shipwrecks, collect different loot parts and upgrade your ships!
Mein Skript: Schiffswracks looten v1.04 ... Durchsuche Schiffswracks, sammle Lootteile und verbessere Deine Schiffe!

Requiemfang
Posts: 2743
Joined: Thu, 16. Jul 09, 12:24

Post by Requiemfang » Wed, 18. Nov 09, 23:52

nevermind... :oops:

User avatar
Lifeforce87
Posts: 95
Joined: Sat, 15. Aug 09, 00:42

Post by Lifeforce87 » Thu, 19. Nov 09, 20:28

THX Mailo :) Testing again

Edit: Works perfectly :)

Post Reply

Return to “X³: Terran Conflict / Albion Prelude - Scripts and Modding”