[AL Plugin] Litcube's Phanon Corporation V1.21

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
soulmata
Posts: 154
Joined: Thu, 15. Nov 12, 11:34

Post by soulmata » Sun, 25. Jun 17, 02:42

For those of you not using LU that still want to use PhanonCorp 1.21 in AP, you probably notice it doesn't quite work right. There are two main reasons for this, and it turns out they are both very easy to fix:

Problem 1: PhanonCorp ships sit and do nothing when trying to jump to a remote destination. Often that destination is in Terran space.

Fix: At first I thought this was the PhanonCorp ships trying to jump to ToAs and spazzing out. I ruled that out when I saw them moving just fine in the Albion systems. It turns out, the actual problem is that starting with AP, jumping to a beacon requires friendly relations with the owner of the beacon. In AP, there are few gates in Terran space, and even if you converted gates to ToAs, often the Terran beacons are closer to their stations than the ToAs, so PhanonCorp still got stuck. The fix is easy.

Adjust al.LitQB.PhanCorp.SetRelations to give "Friendly" reputation and positive notoriety (I just put in 500,000) between Race 1 and commonwealth races. This simple adjustment was made, and boom! PhanonCorp now operates in Terran space without problem. Rarely you'd see this problem in CW space too, if jumping to a CW beacon.

Problem 2: PhanonCorp pilots bail at the drop of a hat. If using a bailing mod, it's even worse, with their OOS ships also frequently bailing. Their home sector might be full of abandon ships if any hostile entities attack them.

Fix: When the ships are created, they have no morale. I saw someone post a suggested fix for XRM, and tried it in AP, and it worked great. PhanonCorp ships now fight on as they should.

Adjust al.LitQB.PhanCorp.MakeShip with the following changes:

365 $Morale = random value from 20 to 100 - 1
366 $Fightskill = random value from 20 to 100 - 1
367 $Aggression = random value from 20 to 100 - 1
368 $Ship -> set pilot morale: $Morale
369 $Ship -> set pilot fightskill: $Fightskill
370 $Ship -> set pilot aggression: $Aggression

And that's it.


Since this is Litcube's thing and he has moved on to LU, I won't post modified versions of the scripts without his permission, but you can make the adjustments yourself fairly easily if you wish. It's really only useful if you are using AP without XRM or LU.

FriendlyFirePhoenix
Posts: 41
Joined: Tue, 14. Feb 17, 11:06

Post by FriendlyFirePhoenix » Sun, 25. Jun 17, 08:18

Hi soulmata,

I just installed Phanon so thank you, your advice is timely.

In my game I'm using Improved Races 2 with 'True Relations' activated. This means I lose rep with the friends of a race if I kill that race's ships. If I make Phanon friends with the other races it's going to make space very interesting if I kill their ships. Is it possible for Phanon to use the jump beacons if I just increase Phanon's rep while leaving them neutral to the other races?

Also, just read not to bother with your changes if using XRM. Why? I'm using XRM for sure.

User avatar
soulmata
Posts: 154
Joined: Thu, 15. Nov 12, 11:34

Post by soulmata » Sun, 25. Jun 17, 09:15

FriendlyFirePhoenix wrote:Hi soulmata,

I just installed Phanon so thank you, your advice is timely.

In my game I'm using Improved Races 2 with 'True Relations' activated. This means I lose rep with the friends of a race if I kill that race's ships. If I make Phanon friends with the other races it's going to make space very interesting if I kill their ships. Is it possible for Phanon to use the jump beacons if I just increase Phanon's rep while leaving them neutral to the other races?

Also, just read not to bother with your changes if using XRM. Why? I'm using XRM for sure.
Regarding IR2, what matters is the "Commonwealth/Terran" view of "Race 1", which is the PhanonCorp. Phanon's notoriety in the eyes of those races must be at least rank 3 in order to use beacons. Unless IR2 /explicitly/ adjusts Race 1 in such a fashion, it most likely will not fix it or have any impact.

You killing their ships will have no impact either way; Phanon already is permanently hostile to the player.

Regarding XRM, I do not know if the changes have already been fixed for XRM or not, and I do not understand much about how XRM handles bailing or whatnot compared to AP. I mention this as a disclaimer, because XRM changes a wide variety of things.

You can test it yourself pretty easy, though. As soon as you see a Phanon trader (first gen is TandiTech), go up and start blasting him. If his TS bails pretty much the instant his shields drop and his ship isn't shooting at you (he may still release drones), you've got the bug. For the second bug, if you ever see Phanon TS just idling in space at 0m/s, with their current command being a move command, you've got the bug.

Mythrantar
Posts: 170
Joined: Fri, 17. Jun 05, 06:35

Post by Mythrantar » Fri, 30. Jun 17, 18:05

Yeah those values are also missing from XRM. I quick correction though: The lines to be entered should read as below (just straight up copy/paste in line 446 of the XRM version of al.LitQB.PhanCorp.MakeShip.xlm):

$Morale = random value between 20 and 99
$Fightskill = random value between 20 and 99
$Aggression = random value between 20 and 99
$Ship -> set pilot morale: $Morale
$Ship -> set pilot fightskill to $Fightskill
$Ship -> set pilot aggression: $Aggression

Mythrantar
Posts: 170
Joined: Fri, 17. Jun 05, 06:35

Post by Mythrantar » Tue, 1. Aug 17, 22:26

Phanon XRM-AP (no need to download anything else): Improved starting funds and funds per tick; added all XRM Race ships as buyable by Phanon (except for Xenon, Kha'ak, Pirates and Yaki). Also includes Soulmata's fixes.

http://www.mediafire.com/file/7y84xvc17 ... on_XRM.zip

Unzip in your addon folder.
Last edited by Mythrantar on Sun, 6. Aug 17, 17:41, edited 1 time in total.

FriendlyFirePhoenix
Posts: 41
Joined: Tue, 14. Feb 17, 11:06

Post by FriendlyFirePhoenix » Sun, 6. Aug 17, 12:04

Also includes Soulmata's fixes.
Mythrantar, I downloaded your Phanon and al.LitQB.PhanCorp.SetRelations still has relation of all races to Race 1 set to 0. One of Soulmata's fixes was to raise relations so Phanon would use jump beacons. Am I missing something here?

Personally I set rep to 1000 and left them neutral. This gets them past the rep needed to use the beacons, but doesn't leave me losing rep with every race when I kill Phanon ships while utilising Improved Races 2.

Mythrantar
Posts: 170
Joined: Fri, 17. Jun 05, 06:35

Post by Mythrantar » Sun, 6. Aug 17, 17:42

You are absolutely right; I had updated the file in my own personal installation and then forgot to update the zip file. Apologies for this; the link above now points to the updated version.

FriendlyFirePhoenix
Posts: 41
Joined: Tue, 14. Feb 17, 11:06

Post by FriendlyFirePhoenix » Mon, 7. Aug 17, 06:59

No worries. Thanks for the fix.

Also in al.LitQB.PhanCorp.MakeShip the lines for setting morale are still:

$Morale = random value from 20 to 100 - 1
$Fightskill = random value from 20 to 100 - 1
$Aggression = random value from 20 to 100 - 1
$Ship -> set pilot morale: $Morale
$Ship -> set pilot fightskill: $Fightskill
$Ship -> set pilot aggression: $Aggression

As per Soulmata's fix. You stated they should be:

$Morale = random value between 20 and 99
$Fightskill = random value between 20 and 99
$Aggression = random value between 20 and 99
$Ship -> set pilot morale: $Morale
$Ship -> set pilot fightskill to $Fightskill
$Ship -> set pilot aggression: $Aggression

You may want to change your file to reflect this.

Mythrantar
Posts: 170
Joined: Fri, 17. Jun 05, 06:35

Post by Mythrantar » Tue, 8. Aug 17, 00:24

That's so strange; thankfully it doesn't matter as "99" = "100 - 1" fpr the script. The important correction was in the last line, which went through.

FriendlyFirePhoenix
Posts: 41
Joined: Tue, 14. Feb 17, 11:06

Post by FriendlyFirePhoenix » Wed, 23. Aug 17, 08:36

So Soulmata's rep fix has fixed one problem and introduced another problem (though less serious). Now killing Phanon traders in main race sectors leads to rep loss with that race. Not quite synonymous with cutthroat corporate warfare. This is *not* being caused by Improved Races True Relations. This is vanilla behaviour.

I tried taking the rep between Phanon and main races down from 1000 to 100, which should still allow Phanon to use jump beacons, but there is still a rep loss. It has to be 0 to not cause a rep loss. Anyone got a clever solution to that problem?

User avatar
Perahoky
Posts: 177
Joined: Fri, 22. Aug 08, 16:04

Post by Perahoky » Wed, 23. Aug 17, 21:26

Hallo,

the fix to set xenon and Kha'ak to enemies isn't available yet. Could someone provide me a new link to download this change, please, or tell me what to change in the script on my own? :)

Thanks!

FriendlyFirePhoenix
Posts: 41
Joined: Tue, 14. Feb 17, 11:06

Post by FriendlyFirePhoenix » Wed, 30. Aug 17, 14:04

@Perahoky Download the file from https://1drv.ms/u/s!Asr7k76nk3PVorIORpRRpCEPDLsv_Q. It is a modified al.LitQB.PhanCorp.SetRelations.xml. After Phanon is installed drop it into your game folder/addon/scripts and overwrite the previous file. If you're running a game with Phanon already activated and flying around you'll need to deactivate Phanon and restart ot for the relations to take effect.

In it I set Xenon and Kha'ak to enemies. It also has the fix suggested by Soulmata above. This makes Phanon able to use the main race's jump beacons . Unfortunately it has the annoying side effect of penalising your reputation every time you attack a Phanon ship in main race space as they are now buddies and not just neutral.

fisher 2000
Posts: 161
Joined: Sat, 20. Jun 09, 16:13

Post by fisher 2000 » Fri, 2. Mar 18, 00:06

FriendlyFirePhoenix wrote:@Perahoky Download the file from https://1drv.ms/u/s!Asr7k76nk3PVorIORpRRpCEPDLsv_Q. It is a modified al.LitQB.PhanCorp.SetRelations.xml. After Phanon is installed drop it into your game folder/addon/scripts and overwrite the previous file. If you're running a game with Phanon already activated and flying around you'll need to deactivate Phanon and restart ot for the relations to take effect.

In it I set Xenon and Kha'ak to enemies. It also has the fix suggested by Soulmata above. This makes Phanon able to use the main race's jump beacons . Unfortunately it has the annoying side effect of penalising your reputation every time you attack a Phanon ship in main race space as they are now buddies and not just neutral.
Is there anyway to get around the issue of loosing reputation ? Anyway I would like to thank you for this! Great work.

Cormyr
Posts: 152
Joined: Thu, 21. Apr 11, 18:07

Post by Cormyr » Sun, 8. Apr 18, 17:57

Is it normal for the Phanon Corp to not build any stations?

User avatar
hargn
Posts: 179
Joined: Sun, 12. Dec 10, 17:38

Post by hargn » Sat, 8. Sep 18, 13:07

Hello there,

I have an issue with the Phanon Corporation in the LxXRM mod suite.
I did post my issue on the LxXRM thread but I haven't get any answer to my problems.

It is the reputation of the phanon corporation with the other races : it appears that it is not neutral anymore : shooting their ships decreases my reputation with the race that belongs the sectors where I kill the phanon ships. I know that it's not the expected behavior.

While it's only TS I kill, I can handle the low reputation loss, but when I'll assault their stations, it'll become unplayable.

How can I reset the reputation of the phanon with other races to neutral?

Otherwise, it can also be a XRM or LU scripts that changes the behavior of how the reputation is managed, especially against neutral race?

Post Reply

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