[Script] ATF Shipyard v6 (Deprecated)

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

Yaotzin
Posts: 72
Joined: Thu, 11. Jun 09, 05:54

Post by Yaotzin »

Good idea, seems obvious in hindsight. Being a little tough to get is fine, it's ATF after all. And the Torus sells all the software stuff anyway, so it's not that bad.
User avatar
eldyranx3
Posts: 2178
Joined: Sat, 14. Jan 06, 21:29
xr

Post by eldyranx3 »

Ive never tried to dock a M2 at the Torus using a docking computer. I have problems enough getting a M6 to dock. I'll take a look at it though. Im sure OOS wouldnt be a issue, but half the fun of my last DiD was taking my new toys out of drydock for the very first time :wink:
User avatar
Matterom
Posts: 424
Joined: Thu, 20. Aug 09, 08:17
x4

Post by Matterom »

well it would be great in sector if you could get rid of that anoying insta kill guns on the da^^ thing or remove the noteriety loss
any one know how to do that
My Mods:
Sector Administration: A Tax Mod
User avatar
Matterom
Posts: 424
Joined: Thu, 20. Aug 09, 08:17
x4

Post by Matterom »

I just tried it but there is a problom i cant seam to get it to act like a shypyard
My Mods:
Sector Administration: A Tax Mod
IceFire909
Posts: 511
Joined: Mon, 8. Jun 09, 14:40
x4

Post by IceFire909 »

has anyone had issues fitting a Thor with a Jumpdrive or is it just me?

EDIT: Ok, its not the Thor, it is the Research station. It's as if the Jumpdrive isn't really there.
Last edited by IceFire909 on Sun, 7. Feb 10, 03:40, edited 1 time in total.
Incoming Message (4 New Messages)
Your Xenon K has Blue Screen of Death'd.
Your #deca CPU ship has 404'd.
Your Xenon P was docking and has stopped responding.
Your #deca.cefa has limited or no network connectivity.
User avatar
eldyranx3
Posts: 2178
Joined: Sat, 14. Jan 06, 21:29
xr

Post by eldyranx3 »

Look a few posts back. Its a known issue, to be fixed in v5.
User avatar
vukica
Posts: 1744
Joined: Sun, 10. Aug 08, 18:05
x4

Post by vukica »

eldyranx3 wrote:Now, question, and maybe I should PM an experinced script writer on this, but when do scripts run? During save load? During New Game Start? And as Imperium3 suggested, how do I set up a loop to check for conditions every x minutes?

That way, I can have the game check, say, every 30 minutes to see if 1) Player has discovered Terran Unknown Sector 1 and 2) Shipyard has been created in Terran Unknown Sector 1.
Well, you have to make an AL plugin to do that. Try looking at Cycrows Insurance contract plugin. Or the one that removes "Your" prefix. They have basic timer loop construction.

If you want I can PM you later with a small plugin I made, or even give you a template.
User avatar
eldyranx3
Posts: 2178
Joined: Sat, 14. Jan 06, 21:29
xr

Post by eldyranx3 »

Im looking in the MSCI Handbook now, deciding how much time I want to invest into v5 of the script.

Optimally, I would love the script to check all Terran Shipyards that exist in game upon load to see if they are named USC Shipyard, and to add certain stations if they are missing. The Torus would sell ATF ships if missing. On each game load if the Terran Unknown Sector 1 is known by the player, then the player can purchase ATF M1, M2, and M7M at the Torus.

That is a lot of script calls and IF/ELSE statements. Man would that be a lot of work :shock:

@ vukica: Let me see if the Torus can even handle M7+ Size docking without envoking the lightshow of death, and I'll get back to you.
User avatar
eldyranx3
Posts: 2178
Joined: Sat, 14. Jan 06, 21:29
xr

Post by eldyranx3 »

While M7+ docking is available at the Torus, Ive confirmed Geekey265's finding that the Earth Torus is not a [Station Type] Shipyard, therefore, no ships can be purchased there.

Thanks Geekey265!

Thanks everyone for the suggestion though!
StormMagi
Posts: 1335
Joined: Sat, 17. Mar 07, 03:53
x4

Post by StormMagi »

I am having problems getting this script (and v3) to load. Other spks install and activate fine (including amurph0's xenotech shipyard and the X2 callback shipyards) but the ATF one doesn't change any of the Terran shipyards I have tried.
MOD XR Show Skills

Flying spaceships since 1993.
User avatar
eldyranx3
Posts: 2178
Joined: Sat, 14. Jan 06, 21:29
xr

Post by eldyranx3 »

Have you tried going into the Script Editor, locating the script, and hitting 'r' to force the script to run?
StormMagi
Posts: 1335
Joined: Sat, 17. Mar 07, 03:53
x4

Post by StormMagi »

That I have not.
MOD XR Show Skills

Flying spaceships since 1993.
User avatar
eldyranx3
Posts: 2178
Joined: Sat, 14. Jan 06, 21:29
xr

Post by eldyranx3 »

Update on v5 Beta

Most of the Aldrin Stations look to be bugged in 2.5. The food and bio fabs look like they can only produce Teladi products. The Aldrin Weapons fab only produces Poltergeist missiles. The only station that seems to work correctly is the Experimental EMP Forge, but it still cannot be added to a complex.

I have no reason to believe that Egosoft is making changes to any stations in the next patch, so, should I still include at least the EEMP forge to the shipyard in Terran Unknown Sector 1?
User avatar
eldyranx3
Posts: 2178
Joined: Sat, 14. Jan 06, 21:29
xr

Post by eldyranx3 »

v5 Released

I think Ive reached the end functionality of a simple setup script without going into arrays, plugins, or MD files. I might switch to a different script depending if I can get down the basics of the MD instructions, or until other creative universe pursuits beckon. Thanks for everyone who commented or otherwise used the script!
dmichailcz
Posts: 170
Joined: Thu, 18. Jun 09, 13:18

Post by dmichailcz »

In version 4 - is it true, that script change rep with ATF to highest every time when game is loaded?
I am not very good in english, so please, forgive me...
User avatar
eldyranx3
Posts: 2178
Joined: Sat, 14. Jan 06, 21:29
xr

Post by eldyranx3 »

dmichailcz wrote:In version 4 - is it true, that script change rep with ATF to highest every time when game is loaded?
Its a [setup][script name], so from my understanding, thats how it works.
dmichailcz
Posts: 170
Joined: Thu, 18. Jun 09, 13:18

Post by dmichailcz »

eldyranx3 wrote:Its a [setup][script name], so from my understanding, thats how it works.
So after finishing Terran missions, my rep will be jumping up and down? Every finished mission down, every loading up?
I am not very good in english, so please, forgive me...
User avatar
eldyranx3
Posts: 2178
Joined: Sat, 14. Jan 06, 21:29
xr

Post by eldyranx3 »

dmichailcz wrote:So after finishing Terran missions, my rep will be jumping up and down? Every finished mission down, every loading up?
I guess Ive never looked to see if your ATF Rep is 'set' to a given level after each main Terran plot level is complete. If it just 'adds' to your Rep then no.
dmichailcz
Posts: 170
Joined: Thu, 18. Jun 09, 13:18

Post by dmichailcz »

eldyranx3 wrote:
dmichailcz wrote:So after finishing Terran missions, my rep will be jumping up and down? Every finished mission down, every loading up?
I guess Ive never looked to see if your ATF Rep is 'set' to a given level after each main Terran plot level is complete. If it just 'adds' to your Rep then no.
I've installed this script before starting terran plot. My rep was "Command Access". After meeting with Terran's diplomats, rank have fallen to "Outer Systems Accesa" and ATF started to attack my assets in their territory. After save and load, my rep was again highest. Do you think, it have fallen because game sets rep first time, but after that, it will never drop?
I am not very good in english, so please, forgive me...
User avatar
eldyranx3
Posts: 2178
Joined: Sat, 14. Jan 06, 21:29
xr

Post by eldyranx3 »

dmichailcz wrote: I've installed this script before starting terran plot. My rep was "Command Access". After meeting with Terran's diplomats, rank have fallen to "Outer Systems Accesa" and ATF started to attack my assets in their territory. After save and load, my rep was again highest. Do you think, it have fallen because game sets rep first time, but after that, it will never drop?
The game probably sets the ATF Rep at a set level with each plot mission. I tested v4 of the script with USC Commander, so my ATF rep was always Earth Access. Thanks for the glitch report! Makes all the effort I put into v5 seem more important now with the evening of ATF rep gains.

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