[Scripts] Apricot Mapping Service Scripts, MD and mini-mods [APv2.5.1/TCv3]

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

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

User avatar
BeagleRush
Posts: 73
Joined: Fri, 9. Oct 09, 06:20

Post by BeagleRush »

Thanks for the fast reply! I've nabbed the blueprints script from the merge mod and I think I get how to do it, just copy pasting the lines, changing the wares/station types/ship types to what I want and then running it through the script editor of which PHQ I want to add them to.

Thanks for your help and for your awesome mods!
User avatar
BeagleRush
Posts: 73
Joined: Fri, 9. Oct 09, 06:20

Post by BeagleRush »

Is there any way I can fiddle with the build times/resource costs? I like all the features of the Extended PHQ Mod but I'd really like to stick the times and costs a bit higher so I'm not cranking out M3s every 5 seconds for pennies a ship.

Sorry to keep bugging you, too! Just things keep coming up :D
User avatar
apricotslice
Posts: 14163
Joined: Sun, 16. May 04, 13:01
x4

Post by apricotslice »

The default values are production time, money and resources each set to 100.

In the mod, time = 10, money = 0 and resources = 100.

So to up any of them, just use a figure somewhere between 0 and 100.
TEKing66
Posts: 601
Joined: Thu, 10. Nov 05, 18:44
xr

Post by TEKing66 »

apricotslice wrote:Nice idea. Its well worth releasing.

Based on this I have decided to try to get this working in X3TC.
If you want, I could use some help. Scripting is not really my forte.

If your interested, Here's a link to the thread
http://forum.egosoft.com/viewtopic.php?t=263997
My mods for X3TC & X3AP

Been with the X-series from the beginning. If it happens in the X_Universe I've been there done that several times over.
User avatar
apricotslice
Posts: 14163
Joined: Sun, 16. May 04, 13:01
x4

Post by apricotslice »

I'm not much help with scripting. Your way beyond my level already.
Termight
Posts: 42
Joined: Sun, 10. Dec 06, 22:48
x3

Post by Termight »

Is there a trick to removing the CBeam pack? I installed it and decided I would rather go with a difference script, but now when I try and start my game after removing it the game crashes when I try to load my save.

I've removed the key mapping from the controls, is there anything else that needs to happen?
User avatar
apricotslice
Posts: 14163
Joined: Sun, 16. May 04, 13:01
x4

Post by apricotslice »

Removing Cbeam shouldnt affect save games at all. Are you removing the hot keys for all 3 beams, and then saving the game ?

There is a setup script for them that should be deleted. Which one depends on which pack you got it from.
Termight
Posts: 42
Joined: Sun, 10. Dec 06, 22:48
x3

Post by Termight »

Yes, I removed all three hotkeys then saved.

The version I'm using the TC .spk file from your site (http://apricotmappingservice.com/X3TCdo ... eam-v1.spk). Both disabling and removing the spk cause the same problem.
User avatar
apricotslice
Posts: 14163
Joined: Sun, 16. May 04, 13:01
x4

Post by apricotslice »

Perhaps ask why that would be in which ever plugin manager thread you got plugin manager from.

I have no idea. It may be a plugin manager issue.
Termight
Posts: 42
Joined: Sun, 10. Dec 06, 22:48
x3

Post by Termight »

Ah ha, good call. The SPK comes with some of the hot key manager scripts. When the spk installed removes your scripts it also takes those files - which of course are required for some of the other scripts (like the hot key manager itself!)

Thanks for you help, I'll post a bug :)
User avatar
apricotslice
Posts: 14163
Joined: Sun, 16. May 04, 13:01
x4

Post by apricotslice »

Interesting. I'll have to remember that one.

Probably something to add for the new program. To check if scripts are used in more than 1 spk, before removing.
User avatar
Sesk
Posts: 441
Joined: Fri, 17. Nov 06, 21:09
x4

Post by Sesk »

Can you add support for M7s to Beamdock and Claim ?

Also Cbeam has an error, it loads text file 8787 and calls textfile 8818-1 when the inventory is full. There is no 8787 or 8818. 8818 is from the LV Freight Transporter, and since it loads the wrong file, even having the 8818 file wont work. (Or maybe its 8686, but it doesn't contain data for 8818-1)

The Claim feature (strip+drop+beamdock) looks awesome, would love to have it on my M7.
User avatar
apricotslice
Posts: 14163
Joined: Sun, 16. May 04, 13:01
x4

Post by apricotslice »

Which pack are you getting CBeam from ? Thats an old bug, supposed to be fixed in the latest pack. If it is the latest pack, I'll recheck it, maybe I forgot to update the text file.

M7's can claim, any ship can.

I didnt see the point in adding beamdock to M7's for 2 slots. Granted it would make docking your M5 a bit easier. I'll consider do it.
User avatar
Sesk
Posts: 441
Joined: Fri, 17. Nov 06, 21:09
x4

Post by Sesk »

I'm using X3TC-Apricot-Cbeam-v1.spk from http://apricotmappingservice.com/X3TCdownloads/

As far as I know that is the only version out there, I might have went to the wrong place to get Cbeam.
User avatar
apricotslice
Posts: 14163
Joined: Sun, 16. May 04, 13:01
x4

Post by apricotslice »

Download the Salvage Pack. Its more up to date.

Obviously I didnt fix the original cbeam pack. I'll add it to my list of things to do.

If you dont want all the salvage packs functions, install it to a temp directory, and copy the text file over. That will fix the main problem.
User avatar
Sesk
Posts: 441
Joined: Fri, 17. Nov 06, 21:09
x4

Post by Sesk »

Alright got the Pack (for overall updates to your scripts im using), only thing I wouldn't want would be the spawn 14 apricot ships at game start (Using ATM on ongoing game, and it's a big chunk of scripts, I suppose removing them and the setup script would be ok, and if there are dependencies that wouldn't be use afterwards, what would they be, i noticed some plugman.* scripts, maybe those?).

Also I've noticed that Cbeam (Beam Container) doesn't check if the ship's cargo is full, and I don't know how this works, but it seems the top of the list doesn't get added first (I never saw that 2GJ but I did see that 2000 Energy cells that maxed out my cargo).

I suppose this is a good thing so it doesn't get caught on upgrades that are already installed but in space too, but onto an other point, which is that claiming a ship drops Upgrades too, if it is possible, I would keep them on the ship because those are redundant, not resell-able directly, and get wasted anyway when Cbeaming them up.

I see there is a case for an M7 in the Claim script (but nothing in unbeam.all, forever stuck?), supposed to get beamdockeded up, however never seen it happen, incomplete feature?

Also an other bug I've seen in v1 of Dbeam, unsure if it's still there, would be that Fighter Drones become MK2s ? I don't mind it, but it's somewhat of a cheat.

Anyway, keep up the good work, been using your scripts since I've started playing X3, they are pretty useful.
User avatar
apricotslice
Posts: 14163
Joined: Sun, 16. May 04, 13:01
x4

Post by apricotslice »

Sesk wrote:Alright got the Pack (for overall updates to your scripts im using), only thing I wouldn't want would be the spawn 14 apricot ships at game start (Using ATM on ongoing game, and it's a big chunk of scripts, I suppose removing them and the setup script would be ok, and if there are dependencies that wouldn't be use afterwards, what would they be, i noticed some plugman.* scripts, maybe those?).
Each one of the add derelict is its own script, just remove them, they use nothing else.

The plugman scripts are from the additions for hotkey creation and stuff, not specifically my scripts, but bundled. You need them !
Also I've noticed that Cbeam (Beam Container) doesn't check if the ship's cargo is full, and I don't know how this works, but it seems the top of the list doesn't get added first (I never saw that 2GJ but I did see that 2000 Energy cells that maxed out my cargo).
True. I've no idea what order the array is retrieved in when the script is run, so the order on the list likely isnt the order the script gets them in.

Also, I rarely ever have a ship with less than 20,000 cargo, so it wasnt really designed for use in standard ships.

I took the check for full out, because the same check looks for installed fittings, and gives a verbal refusal every time its already there and was annoying the hell out of me.
I suppose this is a good thing so it doesn't get caught on upgrades that are already installed but in space too, but onto an other point, which is that claiming a ship drops Upgrades too, if it is possible, I would keep them on the ship because those are redundant, not resell-able directly, and get wasted anyway when Cbeaming them up.
They can always be moved to another ship. Its quite comon for people to keep salvaged ships in a cap ship solely to contain excess fittings they may want later on.
I see there is a case for an M7 in the Claim script (but nothing in unbeam.all, forever stuck?), supposed to get beamdockeded up, however never seen it happen, incomplete feature?
Not sure what your asking there. If you target an M7, it will beam on board, and if you use the undock all, it beams off. Same goes for any class of ship.

The only restriction in the beaming process is the class of ship your on, and M7 wont beamdock currently, as most only have 2 slots and I didnt see the point really in the extra code.
Also an other bug I've seen in v1 of Dbeam, unsure if it's still there, would be that Fighter Drones become MK2s ? I don't mind it, but it's somewhat of a cheat.
Thats a feature :) Your repair drones do an automatic upgrade as new ones are beamed in :)
Anyway, keep up the good work, been using your scripts since I've started playing X3, they are pretty useful.
Thankyou :)
User avatar
Sesk
Posts: 441
Joined: Fri, 17. Nov 06, 21:09
x4

Post by Sesk »

I see there is a case for an M7 in the Claim script (but nothing in unbeam.all, forever stuck?), supposed to get beamdockeded up, however never seen it happen, incomplete feature?
Not sure what your asking there. If you target an M7, it will beam on board, and if you use the undock all, it beams off. Same goes for any class of ship.

The only restriction in the beaming process is the class of ship your on, and M7 wont beamdock currently, as most only have 2 slots and I didnt see the point really in the extra code.
I guess I misread, I taught it was part of boarding ships onto M7, not the other way around :P, I hope to be able to use beamdock eventually with my M7 since I feel every M1/M2 is too bulky (guess that comes from my playing with the Valhalla too much =/)

What ship are you using so enthusiastically like that (20k cargo = TL ?)
Dodgey
Posts: 198
Joined: Sun, 20. Sep 09, 23:49
x4

Post by Dodgey »

Quick question about installing the Apricot Hub plot-Hard mod - I've downloaded the scripts which is am xml file in a folder called "director".

Do I just put that folder in my XT3TC root directory? I can't see how that would work - do I need some kind of mod installer?

I'm on TC 2.1

Edit - let me rephrase, I've upped to 2.5 and enabled scripting by "changing my name" - How can i tell if the script active? I'm part way through and am about to complete the teladinium and really don't want to find I have to collect x-trillion silicon :-) - sitting by my pc while the game runs without me is not my idea of a good use of electricity ;-)
User avatar
apricotslice
Posts: 14163
Joined: Sun, 16. May 04, 13:01
x4

Post by apricotslice »

Just unzip into the TC directory, and the folder and file are placed where they need to be.

You dont need the script editor enabled, its not a script.

You will know its working when you see the requirements for the next mission after completing your current one.

So make a save point so you can go back to it in case something is wrong.

Personally, I recommend the medium plot, as the hard one is still very time consuming to complete. Particularly the chips at the end.

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