[SCRIPT] Phanon Corporation for X3AP+XRM 1.20
Moderators: Scripting / Modding Moderators, Moderators for English X Forum
-
- Posts: 451
- Joined: Sun, 7. Nov 10, 18:27
Litccube, the problem was that I didnt activate the plugin over the way you told me. I assume that the plugin would be activated over the in game menu that you can assigned a key and activated that way.
Anyway, I got it, is active and got the first message from tanditech, with the polite threat to leave them alone.
Thanks.
Anyway, I got it, is active and got the first message from tanditech, with the polite threat to leave them alone.
Thanks.
-
- Posts: 292
- Joined: Sat, 31. Mar 12, 06:39
-
- Posts: 93
- Joined: Sun, 6. Mar 11, 19:33
I'm having an interesting problem with the phanon in my game. I'm using XRM and this version of phanon and bailing addon. When I enter their sector everything seems to be working normally but on any of their ships, including the M2s and M1s as soon as I drop their shields and do any damage to their hull they bail. I don't have big or huge bailing enabled with the NPC bailing so I don't think that one is the problem. but everyone of the phanon ships bails in their sector. I don't think its true with their ships roaming around the universe. Anyone else had this problem?
-
- Posts: 147
- Joined: Fri, 26. Dec 03, 18:41
I get this also but only with the npc bailing addon, I found out that all of the Phanon group ships have pilots with 0 bravery. If there is a way to edit the pilot ratings it would be perfect.0o0o0 wrote:I'm having an interesting problem with the phanon in my game. I'm using XRM and this version of phanon and bailing addon. When I enter their sector everything seems to be working normally but on any of their ships, including the M2s and M1s as soon as I drop their shields and do any damage to their hull they bail. I don't have big or huge bailing enabled with the NPC bailing so I don't think that one is the problem. but everyone of the phanon ships bails in their sector. I don't think its true with their ships roaming around the universe. Anyone else had this problem?
-
- Posts: 239
- Joined: Mon, 27. Dec 10, 18:15
I want to use this but also use the bailing addon, so hopefully someone can come up with a fix.feygan wrote:I get this also but only with the npc bailing addon, I found out that all of the Phanon group ships have pilots with 0 bravery. If there is a way to edit the pilot ratings it would be perfect.0o0o0 wrote:I'm having an interesting problem with the phanon in my game. I'm using XRM and this version of phanon and bailing addon. When I enter their sector everything seems to be working normally but on any of their ships, including the M2s and M1s as soon as I drop their shields and do any damage to their hull they bail. I don't have big or huge bailing enabled with the NPC bailing so I don't think that one is the problem. but everyone of the phanon ships bails in their sector. I don't think its true with their ships roaming around the universe. Anyone else had this problem?
-
- Posts: 5715
- Joined: Sat, 17. Dec 11, 01:44
Turn bailing off when you invade the Phanon HQ sector?Cascinova wrote:I want to use this but also use the bailing addon, so hopefully someone can come up with a fix.
Peace through superior firepower
Bullwinkle's List | Marine Repairs and Training | Mobile Mining Mk2 | Drone Carrier Software 2 (DCS2) | Ship Tricks: Mini-Guides (with Video)
Bullwinkle's List | Marine Repairs and Training | Mobile Mining Mk2 | Drone Carrier Software 2 (DCS2) | Ship Tricks: Mini-Guides (with Video)
-
- Posts: 4254
- Joined: Fri, 20. Oct 06, 19:02
-
- Posts: 4254
- Joined: Fri, 20. Oct 06, 19:02
Line 446 of al.LitQB.PhanCorp.MakeShip
Edit: It was suggested by Dr. Bullwinkle that the 5 listed above is erroneous, and would be unequivocally more awesome had it been 0. You have been warned.
Code: Select all
446 $Temp = random value between 5 and 30
447 $Ship-> set pilot morale: $Temp
Last edited by Litcube on Mon, 1. Apr 13, 21:37, edited 2 times in total.
-
- Posts: 239
- Joined: Mon, 27. Dec 10, 18:15
I am not sure how exactly to add those 2 lines, (I am assuming you add them since I can't find them already there). Can someone who is a bit more experienced than me please upload a new xml file with the changes?Litcube wrote:Line 446 of al.LitQB.PhanCorp.MakeShip
Code: Select all
446 $Temp = random value between 5 and 30 447 $Ship-> set pilot morale: $Temp
-
- Posts: 6
- Joined: Tue, 2. Apr 13, 07:39
First of all, Litcube and Teleth, thank you so much for the mod! I just started my first mod installations earlier today and your instructions are as simple as I imagine they can be.
I am a long time lurker, finally registered to say thank you to everyone whose mods I've just started using.
1. Open the XML file Litcube referred to with notepad (or any basic text editor)
2. Find the line "$Ship ->add default items to ship" (without quotes). This is line 445. Add the code Litcube has suggested right after this line.
An easy way to find out which line number someone is talking about is by opening up the script in the in-game script editor. Here's how to enable the in-game script editor: Link.
The rest is easy. Just an alternative method!
For anyone running TC XRM, these are unknown sectors and are fairly spread out all over the map:
I am a long time lurker, finally registered to say thank you to everyone whose mods I've just started using.

Please do this:Cascinova wrote:I am not sure how exactly to add those 2 lines, (I am assuming you add them since I can't find them already there). Can someone who is a bit more experienced than me please upload a new xml file with the changes?
1. Open the XML file Litcube referred to with notepad (or any basic text editor)
2. Find the line "$Ship ->add default items to ship" (without quotes). This is line 445. Add the code Litcube has suggested right after this line.
An easy way to find out which line number someone is talking about is by opening up the script in the in-game script editor. Here's how to enable the in-game script editor: Link.
Thanks for the pointer! I did this and 6 entries (5 M7s and 1 M2) have invalid values (zzPlaceholder Hauler) in TC XRM. I will hopefully find which values should go with them in the next couple of days and will post them in case others are using this mod with TC XRM.Teleth wrote:If you really want the new ships, you need to open al.LitQB.PhanCorp.MakeShip.xml in the script editor while in-game and make sure all the ship definitions are valid, if one of them is blank, unknown, or not the class it is supposed to be, set it to a valid ship of the same class. If you fail to complete this step properly, you will see a great deal of mammoth ships instead of what Phanon intended to buy.
Thank you for this info too!Teleth wrote:As for the map, I believe the XRM/AP map differs from the XRM/TC version so you'll also need to modify my /t/8384-L044.xml (or 8374-L0_*** if not English).
8384-L044.xml:
<t id="300">4,15</t>
Modify id 300 through 312 (use notepad or better), these are spawn locations for Phanon which will differ slightly from the XRM/AP map; unfortunately I do not know the differences.
The sector co-ordinates are actually in the XRM TC map (as they are in the XRM AP map too). Anyone wanting to modify co-ordinates only needs to notice on that map where 16-0 and one of the other ones, say 3-15 is.Teleth wrote:Set them all to 4,15, or use Sector Finder and print out a copy of your sector (inside log00001.txt) coordinates to find locations.

For anyone running TC XRM, these are unknown sectors and are fairly spread out all over the map:
Code: Select all
<t id="300">4,15</t>
<t id="301">9,6</t>
<t id="302">18,16</t>
<t id="303">17,2</t>
<t id="304">12,0</t>
<t id="305">20,5</t>
<t id="306">14,7</t>
<t id="307">4,7</t>
<t id="308">5,10</t>
<t id="309">10,9</t>
<t id="310">16,6</t>
<t id="311">12,15</t>
<t id="312">6,15</t>
-
- Posts: 5715
- Joined: Sat, 17. Dec 11, 01:44
Great post, Ingenious! 
One minor correction:
A text editor is fine for editing most other files in the game. Only scripts require a special editor.

One minor correction:
You MUST use an editor made for X3 scripts, such as the in-game Script Editor. A normal text/xml editor will not work. If you want an external editor then use X-Studio Script Editor or Exscriptor. The human-readable portion of X3's script files is just "documentation". The real code is the array of numbers at the bottom.Ingenious Hero wrote:1. Open the XML file Litcube referred to with notepad (or any basic text editor)Cascinova wrote:I am not sure how exactly to add those 2 lines
A text editor is fine for editing most other files in the game. Only scripts require a special editor.
Peace through superior firepower
Bullwinkle's List | Marine Repairs and Training | Mobile Mining Mk2 | Drone Carrier Software 2 (DCS2) | Ship Tricks: Mini-Guides (with Video)
Bullwinkle's List | Marine Repairs and Training | Mobile Mining Mk2 | Drone Carrier Software 2 (DCS2) | Ship Tricks: Mini-Guides (with Video)
-
- Posts: 6
- Joined: Tue, 2. Apr 13, 07:39
Thanks for that catch, DrBullwinkle! I totally made the mistake thinking that a script is a harmless xml file I could tinker with in notepad and save...NOT!
Its safe to say I have a new admiration for modders after spending the last hour trying to figure out how to enter 2 lines through the in-game script editor.
For anyone else new to the editor, this is how I did it:
1. Open the in-game script editor, load al.LitQB.PhanCorp.MakeShip. Find line 446. Click to bring up available commands.
2. In 'General Commands' section select the option <Ret/Var> = random value from <Var/Number> to <Var/Number> - 1
3. For Script Input <variable> make a new variable Temp (there's tmp and tmp2 available but the Force tells me using an existing variable to generate random numbers might make bad things happen elsewhere).
4. Click first ?, then Script Input <Number> and set this to 0 (because DrBullwinkle recommends so - justfuckin'doit)
5. Click second ?, then Script Input <Number> and set this to 31 (because the line will subtract 1 from the max and we want to get to 30)
One line down, one more to go!
6. Click on Line 447, choose 'General Object', then 'Pilot', find the option <RefObj> set pilot morale = <Var/Number>
7. For RefObj, pick the existing variables Ship (because this has to be a 'global' variable, that's why the variable we created will point to it to feed it values)
8. For <Var/Number>, pick the existing variable Temp, which we created.
Phew! I think I got it right...can't be sure though.
I wasn't even planning on using the NPC bail mod...could not resist the opportunity to nerdgasm.
Its safe to say I have a new admiration for modders after spending the last hour trying to figure out how to enter 2 lines through the in-game script editor.
For anyone else new to the editor, this is how I did it:
1. Open the in-game script editor, load al.LitQB.PhanCorp.MakeShip. Find line 446. Click to bring up available commands.
2. In 'General Commands' section select the option <Ret/Var> = random value from <Var/Number> to <Var/Number> - 1
3. For Script Input <variable> make a new variable Temp (there's tmp and tmp2 available but the Force tells me using an existing variable to generate random numbers might make bad things happen elsewhere).
4. Click first ?, then Script Input <Number> and set this to 0 (because DrBullwinkle recommends so - justfuckin'doit)
5. Click second ?, then Script Input <Number> and set this to 31 (because the line will subtract 1 from the max and we want to get to 30)
One line down, one more to go!
6. Click on Line 447, choose 'General Object', then 'Pilot', find the option <RefObj> set pilot morale = <Var/Number>
7. For RefObj, pick the existing variables Ship (because this has to be a 'global' variable, that's why the variable we created will point to it to feed it values)
8. For <Var/Number>, pick the existing variable Temp, which we created.
Phew! I think I got it right...can't be sure though.

I wasn't even planning on using the NPC bail mod...could not resist the opportunity to nerdgasm.

-
- Posts: 407
- Joined: Wed, 6. Nov 02, 20:31
-
- Posts: 6
- Joined: Tue, 2. Apr 13, 07:39
I looked into the al.LitQB.PhanCorp.MakeShip.xml script more today to fix the "zzPlaceholder Hauler" entries and I understand why Teleth said that modifying this script for TC XRM isn't worth the effort - its because even if the changes are not made the gameplay wouldn't be impacted much at all.
First, this script is only being used to populate Phanon Corp's fleet. The script has no effect on XRM itself.
Second, the way ship population for Phanon Corp is working in the script is by randomly picking ships across all races and classes, out of a total of 210 ships from the ship list in the script. Given that there are only 7 entries for "zzPlaceholder Hauler" in the ship list, the odds are awfully low of a ship generation have more than one (or any for that matter) placeholder ships in the Phanon fleet.
Still, since I had spent time to figure out what the script was doing, I went ahead and did the (un-needed) fix. This is how I did it:
1. Open al.LitQB.PhanCorp.MakeShip.xml with the in-game script editor.
2. Look for "zzPlaceholder Hauler". There are 5 entries among M7s and 1 among the M2s.
3. First entry should be at line 305: Make a mental note of the other ships in the 'group', i.e. other entries around this line viz. $M7[RaceBoron][number] = Kraken, Sturgeon, Thresher etc. These are Boron M7s this script understands.
4. Click on zzPlaceholder Hauler -> Script Input -> Select Ship Type -> (from this ship list pick any of the already used entries of ship name from Step 2). It is OK for the same group to have more than 1 entry of the same ship name. The unmodified script has several entries like this.
Repeat Steps 2-4 for the other "zzPlaceholder Hauler" entries. Done.
@ Thufar:
Thank you for the nice words.
Thanks to Teleth, Litcube, DrBullwinkle really. I'm only baby-ing around trying to tinker with little things which don't need any tinkering with. 
First, this script is only being used to populate Phanon Corp's fleet. The script has no effect on XRM itself.
Second, the way ship population for Phanon Corp is working in the script is by randomly picking ships across all races and classes, out of a total of 210 ships from the ship list in the script. Given that there are only 7 entries for "zzPlaceholder Hauler" in the ship list, the odds are awfully low of a ship generation have more than one (or any for that matter) placeholder ships in the Phanon fleet.
Still, since I had spent time to figure out what the script was doing, I went ahead and did the (un-needed) fix. This is how I did it:
1. Open al.LitQB.PhanCorp.MakeShip.xml with the in-game script editor.
2. Look for "zzPlaceholder Hauler". There are 5 entries among M7s and 1 among the M2s.
3. First entry should be at line 305: Make a mental note of the other ships in the 'group', i.e. other entries around this line viz. $M7[RaceBoron][number] = Kraken, Sturgeon, Thresher etc. These are Boron M7s this script understands.
4. Click on zzPlaceholder Hauler -> Script Input -> Select Ship Type -> (from this ship list pick any of the already used entries of ship name from Step 2). It is OK for the same group to have more than 1 entry of the same ship name. The unmodified script has several entries like this.
Repeat Steps 2-4 for the other "zzPlaceholder Hauler" entries. Done.
@ Thufar:
Thank you for the nice words.


Promote quality, discourage crap.
Promote quality, discourage crap.
-
- Posts: 147
- Joined: Fri, 26. Dec 03, 18:41
Sadly that option is only viable for the HQ sector. Once they start to populate the galaxy you end up having to toggle bailing each and every time anything m6 or larger is in a sector. I noticed this when they build a power plant in one of my sectors. I naturally went to remove it to find an m2 jumping in as defence. With their low bravery ratings it bailed almost as soon as shields were down.DrBullwinkle wrote:Turn bailing off when you invade the Phanon HQ sector?Cascinova wrote:I want to use this but also use the bailing addon, so hopefully someone can come up with a fix.
-
- Posts: 532
- Joined: Fri, 22. Dec 06, 13:35
-
- Posts: 4254
- Joined: Fri, 20. Oct 06, 19:02
-
- Posts: 1383
- Joined: Sun, 25. Dec 05, 10:42
this, actually I mean I want that... a 'muted' experience if you say...Litcube wrote:Not that you asked me, but I wouldn't recommend that extension. The Phanon has restrictions. Kha'ak and Xenon are infinite spawns from the God engine. Allowing the Phanon to be viable targets for those two will result in a muted Phanon Coporation experience.
so... here's what I want, I want to use this XRM tweaked phanon with Improved Race 2 hot war feature...
so the question are :
1. in this XRM phanon, what race is the phanon assigned to?
2. can you customize their relation with IR2 hotwar editor?
3. will it do as intended?
basically I want another faction in the universe but they have to behave normally, not simply going berserk against me with no reason simply just because it's intended to be my rival.
possible?
thanks.
-
- Posts: 364
- Joined: Sat, 19. Nov 05, 22:54
Perhaps I should have read the Description for this Mod better. I thought this is an additional "trader-race" just well protecting it's environment etc.
For me it looks more like a stubborn bigheaded warrior. I installed the mod, got a threadening message that i have to stay out of their sector.
I was wondering because during reading that "information" I got several audio- and messagewarnings about destroyed ships and equipment.
So i jumped to the called sector and there were multiple surprises.
My entire equipment (Satellites & maybe a jump beacon) and ships (Lucikes Travel business) in that sector were totally wiped out from the new "sanctimonious dealer".
First things the script invests its 404 million Credits: (I should have taken a screenshot of this arrogant declaration of war.)
- 1x military outpost
- 1x M1 full of fighters
- 1x TL full of fighters
- many M8 + M6
- and 2 or 3 TS ...
For me this looks more like a Kha'ak invader as a competing trading company. What a pity - seems they were bankrupt, now ..., without that fleet ... I really am sorry but i had to encounter a thread like this.
My killed Travel-pilot had about 250 hours of Flight, proud of endless fans in his sector and has been a really kind person! His ship wasn't equiped with lasers at all
If the Phanon Corp really means that an offensive war is the best thing made of it's 404 million Credits to meet me first time than one of my smaller CODEA-Carriers will take care of that sector. I really was in hope to have found a new "Race" keeping the economic part of my universe alive because there are missing Powerplants here
Greetings from germany
X2return
For me it looks more like a stubborn bigheaded warrior. I installed the mod, got a threadening message that i have to stay out of their sector.
I was wondering because during reading that "information" I got several audio- and messagewarnings about destroyed ships and equipment.
So i jumped to the called sector and there were multiple surprises.
My entire equipment (Satellites & maybe a jump beacon) and ships (Lucikes Travel business) in that sector were totally wiped out from the new "sanctimonious dealer".
First things the script invests its 404 million Credits: (I should have taken a screenshot of this arrogant declaration of war.)
- 1x military outpost
- 1x M1 full of fighters
- 1x TL full of fighters
- many M8 + M6
- and 2 or 3 TS ...
For me this looks more like a Kha'ak invader as a competing trading company. What a pity - seems they were bankrupt, now ..., without that fleet ... I really am sorry but i had to encounter a thread like this.
My killed Travel-pilot had about 250 hours of Flight, proud of endless fans in his sector and has been a really kind person! His ship wasn't equiped with lasers at all

If the Phanon Corp really means that an offensive war is the best thing made of it's 404 million Credits to meet me first time than one of my smaller CODEA-Carriers will take care of that sector. I really was in hope to have found a new "Race" keeping the economic part of my universe alive because there are missing Powerplants here

Greetings from germany
X2return