EnglishGermanFrenchRussianPolishItalianSpanish
Log inRegister
 
[SCRIPT] Phanon Corporation for X3AP+XRM 1.20
Post new topic Reply to topic Goto page 1, 2, 3, 4  Next
View previous topic :: View next topic
Author Message
Teleth





Joined: 31 Mar 2012



modified
PostPosted: Sun, 15. Apr 12, 16:38    Post subject: [SCRIPT] Phanon Corporation for X3AP+XRM 1.20 Reply with quote Print

Phanon Corp 1.21 modified for use with X3AP + XRM 1.20
This modification is not supported by Litcube, if you have any questions PM me, or ask in the thread please.

The original Phanon Corporation thread is located here if you wish to know more about it.
=======================================

I wasn't happy with how Phanon was performing in XRM, so I spent 3 or 4 days getting them up to scratch, ended up fixing a few things and adding the new ships to their shop lists.

I didn't quite understand what was necessary for compatibility with NPC bailing so I didn't make any progress there. I did however fix the Weapon Dealer issue between Phanon and XRM. Hopefully I didn't miss anything.

Download (XRM 1.20 Version)
http://www.mediafire.com/?89bessfp0orcp1l (Version 1.2)

Old version for XRM 1.19
http://www.mediafire.com/?62zvd3ya5fz7ke6 (Version 1.1)

Installation
------------
Install PhanonCorp 1.21a
Extract PhanonCorp XRM folders with their contents to /addons/ and overwrite.
Changes will take place by either re-enabling Phanon Corp through AL options, or upon a new generation.

Features
--------
The financial report for Phanon Corp now displays hour-based trade rank.
In the event the trade rank is bankrupt, Phanon Corp is not successfully trading.
It either lacks transport ships, can't find anywhere to trade, or is conflicting with another mod.

Phanon Corp may now buy and use most XRM vessels.
Exclude the new scripts/al.LitQB.PhanCorp.MakeShip.xml if you do not want Phanon to use new ships.

Phanon spawn locations updated for use with XRM's map, it has the choice of 13 different locations.

Issues corrected
----------
Corrected starting capital multiplier upon new generations, giving Phanon Corp a much faster starter growth for successive generations.

Balance
--------
Phanon Corp now receives cheaper transport ships and fighter craft to promote earlier growth.
Phanon Corp initial investment increased from 15 million credits to 40 million credits. This is usually enough to purchase 4 or 5 transport ships and some jumpdrives.
Salary multiplier doubled to offset higher XRM costs.
New generations of Phanon Corps spawn 3 to 4 hours after the last was defeated, rather than 18 hours later.
Phanon favors M6 sentinel configurations that are more effective for the AI.
Adjusted force ratios, for slightly less fighters and slightly more corvettes.
Added M6 and M7 craft to early Phanon forces.
Phanon Corp TL-class ships are fully re-imbursed if killed by Pirates/Xenon/Kha'ak/Yaki, this prevents Phanon being locked down in early game due to piracy etc.

Notes
------
Phanon's credit worth will occasionally go negative when it purchases jumpdrives or wares, if Phanon's trade rank is not bankrupt, then it is still expanding normally.

Hopefully these changes will enable a more prosperous Phanon in XRM. Enjoy!


_________________
Phanon Corporation updated for XRM+AP
G19 Applet for X3


Last edited by Teleth on Mon, 7. May 12, 09:46; edited 5 times in total
Back to top
View user's profile Send private message
BlackRain





Joined: 15 Dec 2003
Posts: 1077 on topic

Thank you for registering your game
PostPosted: Sun, 15. Apr 12, 17:50    Post subject: Reply with quote Print

I tried reinstalling it but now I don't see any AL menu for phanon corp now. Is it conflicting with MARS for some reason>>

Back to top
View user's profile Send private message
Teleth





Joined: 31 Mar 2012



PostPosted: Sun, 15. Apr 12, 19:18    Post subject: Reply with quote Print

BlackRain wrote:
I tried reinstalling it but now I don't see any AL menu for phanon corp now. Is it conflicting with MARS for some reason>>

No, it's not going to conflict with MARS; as I explained earlier, Phanon Corp is not going to be conflicting anything other than race1 modifications as far as I know.

You had best check that it is in the correct directory, because there is very little that can go wrong when installing Phanon Corp.

Install PhanonCorp 1.21a.
Install PhanonCorpXRM over top.


_________________
Phanon Corporation updated for XRM+AP
G19 Applet for X3
Back to top
View user's profile Send private message
paulwheeler





Joined: 19 Apr 2005
Posts: 7174 on topic
Location: London
Thank you for registering your game
PostPosted: Sun, 15. Apr 12, 20:40    Post subject: Reply with quote Print

Moving the Weapons Dealer XL to race 2 will cause it not to be stocked with weapons without a script rewrite.


_________________

NEW - Dedicated XRM Forum!
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Jack08





Joined: 25 Dec 2005
Posts: 2234 on topic
Location: Australia
Thank you for registering your game
PostPosted: Sun, 15. Apr 12, 20:55    Post subject: Reply with quote Print

paulwheeler wrote:
Moving the Weapons Dealer XL to race 2 will cause it not to be stocked with weapons without a script rewrite.


Changing a scripts racial references is a minor 5 minute change that im sure Teleth can figure out; No need to rewrite the script Wink


_________________
Back to top
View user's profile Send private message Visit poster's website
paulwheeler





Joined: 19 Apr 2005
Posts: 7174 on topic
Location: London
Thank you for registering your game
PostPosted: Sun, 15. Apr 12, 21:46    Post subject: Reply with quote Print

@ Teleth - if you need help finding which XRM scripts need altering let me know - my scripts are not fully annotated and there are quite a few to hunt through. I think there are two that will need altering for the Weapons Dealer XL to work as Race 2.

The only issues will be that if you include the changed XRM scripts in this pack you'll have to keep an eye on the said scripts in case I update them in a patch - its not likely but you never know. Also, you'll need to make users aware that they if they recopy all the XRM scripts when I release an update it will overwrite the edited ones from this pack.

To be honest, the only reason I used Race 1 for the Weapon Dealer in the first place was that when I implimented the WDs during the SRM development there was a planned feature in IR v1 (I'm pretty sure it was IR - it was a long, long time ago though and at my age, memory is not what it was) which was going to use Race 2. I decided to keep away from Race 2 in order to keep the SRM compatible with IR. This feature was never implemented in IR so there is no reason I guess why I don't just swap the ownership to Race 2 in the main XRM which would solve all the problems. Unless there are any other scripts which utilise Race 2?

I'll look at including the change in the 1.20 patch.


_________________

NEW - Dedicated XRM Forum!
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Jack08





Joined: 25 Dec 2005
Posts: 2234 on topic
Location: Australia
Thank you for registering your game
PostPosted: Sun, 15. Apr 12, 22:07    Post subject: Reply with quote Print

paulwheeler wrote:
Unless there are any other scripts which utilise Race 2?

None to my knowledge. (i wish there was a spare race usage thingy in the community library thread)

The feature in IRv1 was scrapped due a few different glitches that interfered with IRv1's core operation; one of which included the lockup problem when docking at Race2/1 stations (did you ever manage to fix that? i stopped trying after about a week lol)

Ironically we chose race 2 to maintain compatibility with Phanon Corp... Laughing


_________________
Back to top
View user's profile Send private message Visit poster's website
paulwheeler





Joined: 19 Apr 2005
Posts: 7174 on topic
Location: London
Thank you for registering your game
PostPosted: Sun, 15. Apr 12, 22:13    Post subject: Reply with quote Print

Jack08 wrote:
one of which included the lockup problem when docking at Race2/1 stations (did you ever manage to fix that?)


No - but ive not tested it in AP yet. I recall there being some changes to the spare races to make them more usable.


_________________

NEW - Dedicated XRM Forum!
Back to top
View user's profile Send private message Send e-mail Visit poster's website
BlackRain





Joined: 15 Dec 2003
Posts: 1077 on topic

Thank you for registering your game
PostPosted: Sun, 15. Apr 12, 22:44    Post subject: Reply with quote Print

I got it to work.

Back to top
View user's profile Send private message
Teleth





Joined: 31 Mar 2012



PostPosted: Mon, 16. Apr 12, 05:09    Post subject: Reply with quote Print

paulwheeler wrote:
Moving the Weapons Dealer XL to race 2 will cause it not to be stocked with weapons without a script rewrite.

I actually edited my XRM weapon's dealer re-stock to race2 but decided against including it for some reason. I can't even remember why.

I'm glad you called me out on this, else it would have never been restocked!

I modified four files for this, let me know if I missed something important; they all look pretty weapons dealer specific so I can't imagine you will update them too often.

    plugin.xrm.rnddest.xml
    plugin.xrm.stockcheck.xml
    plugin.xrm.wd1.xml
    plugin.xrm.wd2.xml


In reality what I should have done is made phanon hostile via script instead of letting it change race1 parameters. I didn't understand enough X3 scripting to mess too heavily with Phanon at the time.

Phanon_XRM_1.1
Hopefully I didn't do anything else stupid.


_________________
Phanon Corporation updated for XRM+AP
G19 Applet for X3
Back to top
View user's profile Send private message
joelR





Joined: 09 Jul 2007
Posts: 1889 on topic
Location: Seattle
Thank you for registering your game
PostPosted: Mon, 16. Apr 12, 06:10    Post subject: Reply with quote Print

Hey Teleth,

Thanks for putting this together.

One small suggestion though. Add something like [SCRIPT] or something to the beginning of the thread title. Otherwise it just looks like a random thread or something. This will make finding it easier in the future.


_________________
XRM AP Map
XRM Statistics
Back to top
View user's profile Send private message
jack775544





Joined: 13 Dec 2011
Posts: 771 on topic
Location: On the bridge of a Xenon CPU ship (Australia)
Thank you for registering your game
PostPosted: Mon, 16. Apr 12, 08:04    Post subject: Reply with quote Print

How does this plugin find what ships it should use? Does it just pick a random ship or is there a hard coded list?
Also can you add this to The script and mod libary.

Good Luck You'll need it Wink


_________________
SDS: Ship Diagnostics Software
"The greatest trick the devil ever pulled was convincing the world he doesn't exist" - Charles Baudelaire
Back to top
View user's profile Send private message
paulwheeler





Joined: 19 Apr 2005
Posts: 7174 on topic
Location: London
Thank you for registering your game
PostPosted: Mon, 16. Apr 12, 09:56    Post subject: Reply with quote Print

Teleth wrote:
paulwheeler wrote:
Moving the Weapons Dealer XL to race 2 will cause it not to be stocked with weapons without a script rewrite.

I actually edited my XRM weapon's dealer re-stock to race2 but decided against including it for some reason. I can't even remember why.

I'm glad you called me out on this, else it would have never been restocked!

I modified four files for this, let me know if I missed something important; they all look pretty weapons dealer specific so I can't imagine you will update them too often.

    plugin.xrm.rnddest.xml
    plugin.xrm.stockcheck.xml
    plugin.xrm.wd1.xml
    plugin.xrm.wd2.xml


In reality what I should have done is made phanon hostile via script instead of letting it change race1 parameters. I didn't understand enough X3 scripting to mess too heavily with Phanon at the time.

Phanon_XRM_1.1
Hopefully I didn't do anything else stupid.


Yes that sounds about right for the scripts that need editing.

Ill make the change to Race 2 in XRM 1.20.


_________________

NEW - Dedicated XRM Forum!
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Teleth





Joined: 31 Mar 2012



PostPosted: Mon, 16. Apr 12, 12:56    Post subject: Reply with quote Print

jack775544 wrote:
How does this plugin find what ships it should use? Does it just pick a random ship or is there a hard coded list?
Also can you add this to The script and mod libary.

Good Luck You'll need it Wink

It's a hard-coded list that I had to fill out manually.

As for the community index; it looks like too much trouble.

joelR wrote:
Hey Teleth,

Thanks for putting this together.

One small suggestion though. Add something like [SCRIPT] or something to the beginning of the thread title. Otherwise it just looks like a random thread or something. This will make finding it easier in the future.

Will do, thanks.


_________________
Phanon Corporation updated for XRM+AP
G19 Applet for X3
Back to top
View user's profile Send private message
jack775544





Joined: 13 Dec 2011
Posts: 771 on topic
Location: On the bridge of a Xenon CPU ship (Australia)
Thank you for registering your game
PostPosted: Tue, 17. Apr 12, 05:34    Post subject: Reply with quote Print

Wouldn't a nicer way to find ships be to get an array of all purchasable ships in the galaxy and then to just select a random ship out of that array. Much easier to mantain then a hard coded list (ie. every time Paul adds a new ship you don't have to modify the script to support it.)
And if you don't put something in the libary it will be lost about 2-3 weeks after it was created.


_________________
SDS: Ship Diagnostics Software
"The greatest trick the devil ever pulled was convincing the world he doesn't exist" - Charles Baudelaire
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic Reply to topic Goto page 1, 2, 3, 4  Next
 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum
Control Panel
Login Data
The time now is Wed, 22. May 13, 23:44

All times are GMT + 2 Hours


Board Security

Copyright © EGOSOFT 1989-2009
Powered by phpBB © 2001, 2005 phpBB Group
Template created by Avatar & BurnIt!
Debug: page generation = 0.39061 seconds, sql queries = 74