Sector Takeover wont work in AP. Anyone know why ?

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

Post Reply
User avatar
apricotslice
Posts: 14129
Joined: Sun, 16. May 04, 13:01
x4

Sector Takeover wont work in AP. Anyone know why ?

Post by apricotslice » Fri, 14. Feb 14, 08:07

I'm trying to do sector takeovers in AP, but the old TC script isnt working.

Was something changed for AP ?

The script is simple, it uses the player ship to get the sector co-ords then changes the sector ownership to player. Then does the same for each gate.

Yet its not changing the ownership at all, as displayed on the sector map.

Any ideas ?
Last edited by apricotslice on Fri, 14. Feb 14, 10:22, edited 1 time in total.

PDouma39
Posts: 247
Joined: Thu, 26. Aug 10, 04:15
xr

Post by PDouma39 » Fri, 14. Feb 14, 08:27

I use Lazcorp Claim Sector to claim sectors, can be found in http://xdownloads.co.uk/ , search for lazcorp on that same site then you find at the top selections your download.
Awareness in life is rewarded by many

User avatar
apricotslice
Posts: 14129
Joined: Sun, 16. May 04, 13:01
x4

Post by apricotslice » Fri, 14. Feb 14, 10:22

Ok, got that and tried it, but it doesnt work.

I havent tried this since TC, and obviously something has changed with AP.

Code: Select all

001    if $Sector == null 
002   | return null 
003    end 
004   
005    $Sector -> set owner race to [Player] 
006   
007    return null 
In theory, this should work, given a sector being selected for the variable $sector.

But after running the script manually, nothing changes.

PDouma39
Posts: 247
Joined: Thu, 26. Aug 10, 04:15
xr

Post by PDouma39 » Fri, 14. Feb 14, 14:46

Did you destroy any stations in those sectors? Strange, for me it works in every sector which has no stations (left). And I have been using it from the beginning AP was out, in every version of it. Even in TC it worked.
Did you place a station(eq dock/militairy outpost/trading station) of your own in those sectors?
Awareness in life is rewarded by many

User avatar
apricotslice
Posts: 14129
Joined: Sun, 16. May 04, 13:01
x4

Post by apricotslice » Sat, 15. Feb 14, 00:14

I'm not using the full script pack that requires no stations and a trading station.

In TC, the single command would change the sector and all the military would withdraw, and you didnt need to change the sector stations at all. It was only in the "balanced" script packs that you needed to do anything.

I tried this in an Unknown sector with no stations, the same with a PHQ in it, and the Hub sector with a PHQ in it. None of the tests worked.

When you say it worked for you, how are you verifying that it worked ? What changes to show that you own the sector ? Maybe I'm looking at the wrong thing.

PDouma39
Posts: 247
Joined: Thu, 26. Aug 10, 04:15
xr

Post by PDouma39 » Sat, 15. Feb 14, 02:18

I am using the original files as said from the download page and when I claim the sector my name is added to the sector owner as stated in the Universe map. But to do so I have to have a trading station or an Militairy Outpost (Pirate Guild makes shipyards to buy them) in that sector and then claim through the commands.
Awareness in life is rewarded by many

User avatar
apricotslice
Posts: 14129
Joined: Sun, 16. May 04, 13:01
x4

Post by apricotslice » Sat, 15. Feb 14, 03:33

Ok, will try that then. Thanks.

Edit :

Nope, still cant get it to work.

PDouma39
Posts: 247
Joined: Thu, 26. Aug 10, 04:15
xr

Post by PDouma39 » Sat, 15. Feb 14, 12:24

I am sorry to read that, I am not a scripter/modder, but maybe it's a conflicting mod/script? Maybe Improved Races 2.0 or Trickmov's STO works for you?
Awareness in life is rewarded by many

Post Reply

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