New Xai Corporation Software

The place to discuss scripting and game modifications for X²: The Threat.

Moderators: Scripting / Modding Moderators, Moderators for English X Forum

User avatar
moggy2
Posts: 5505
Joined: Wed, 6. Nov 02, 20:31
x3ap

New Xai Corporation Software

Post by moggy2 »

I've finished the Convoy trading commands I was working on. It's mutated a little bit from what it was origionally going to be :roll:
Shanjaq
Posts: 353
Joined: Sat, 3. Apr 04, 09:47
x3

Post by Shanjaq »

cool! what does it do?
[ external image ]
SPACE HAS A TERRIBLE POWER
User avatar
moggy2
Posts: 5505
Joined: Wed, 6. Nov 02, 20:31
x3ap

Post by moggy2 »

Good question
As a complement to the venerable Mk1 which provides trade commands for factory operations, Mk2 offers a complete suite of remote trading commands. The new commands range from single sector traders to trade convoys.




New commands included:
Lead Convoy: no trading
Patrol Convoy: protect a whole fleet instead of just one ship
Xai Corp Best buy: buy ware for best price in sector (and return to convoy)
Xai Corp Best Sell: sell ware for best price in sector (and return to convoy)
Xai Corp. Sector Trader: 2 modes: sector only; include surrounding sectors
Xai Corp. Galaxy Trader: 2 modes: travel 1 sector at a time; cross multiple sectors with jumpdrive
Xai Corp. Convoy Trader: lead a trade convoy between two sectors
AP Report: view a report of the ship's progress
User avatar
jthorpe4
Posts: 38
Joined: Sun, 22. Feb 04, 22:32
x4

Post by jthorpe4 »

Looks like there is a problem with file 445010.xml, the laugage tag is in the wrong location. The "Xai Corp. Trade Command Software MK2" doesnt appear in trading stations just the ReadXXXX thingy
User avatar
moggy2
Posts: 5505
Joined: Wed, 6. Nov 02, 20:31
x3ap

Post by moggy2 »

never ceases to amaize me how errors like that don't show up in testing. The text was showing fine for me. :shock:

fixing now :roll:
Kerm
Posts: 3
Joined: Wed, 2. Jun 04, 21:40
x2

Need Help

Post by Kerm »

Have installed the following Xai Scripts in the order shown below.

Xai Trader Mk1.1
Xai Jumpdrive 4.1
Xai Fleet Supply 1.2
Xai Trader Mk2

But about half the commands are greyed out on my Argon Mercury and Boron Dolphin.

Greyed out commands:
Xai Sector Trader
Xai Galaxy Trader
Xai Best Buy
Xai Best Sell
Xai Resupply Ship
Xai Resupply Group


Working Commands:
Jump Drive Commands working fine.
Lead Convoy
Xai Convoy Trader
Retrieve Pilot Stats
Xai AutoBuy/Sell
Xai AutoBuy
Drop Cargo
Retrieve Deployed
Remote Install Single Ship
Remote Install All Ships

Have all the Upgrades showing in the Station for Upgrade and they are all on both ships. Aswell as all the normal game upgrades, jumpdrive, nav software, flight 1 & 2, trade updrades etc.

Have tried the following steps to correct this.
1) Manually Uninstalling all scripts using the Ingame Script Editor. Then reinstalling them. Using saved game. Tried this with and without OlisJ HQMod (as I noticed that the Xai Trade MK2 software would revert back to Goner Contract in the stations when HQmod was installed, also the Xai Retreive Pilot Stats would go to a Text Command General 35 but would still work as intended).

2) Repeating above and started a new game.

3) Deleted all game files and completely replaced the files from my installed backup folder (Original game with patch 1.3 only). Then installed the Xai scripts above.

So what am I missing or should have done to get these working?
User avatar
Kailric
Posts: 985
Joined: Sun, 7. Dec 03, 05:15
x3

Post by Kailric »

If your haveing the same problem as I was then you need to have other software installed. There wasn't any info in the readme of what other software was needed. Dr. Xavia will prolly change this. But in the mean time..put the x2script.xsl script into your /script folder and click on this script init.Xai.XTC2 when it loads into your browser scroll down till you fine what command you are wanting to know what wares are needed then click on the link I marked in paraenthesis if its say the Xai Trade Commands Mk2. This will take you to anther script which will tell you what wares you need. Just jot them down and do the same for the other commands.


Code: Select all

$command = COMMAND_XAI_XTC2_TRADE_GALAXY
052   global ship map: set: key=$command, class=Small Transport TS, race=Player, script='Xai.XTC2.cmd.trade.sector', prio=0
053   global ship map: set: key=$command, class=Pirate Transport TS, race=Player, script='Xai.XTC2.cmd.trade.sector', prio=0
054   global ship map: set: key=$command, class=Passenger Transport TP, race=Player, script='Xai.XTC2.cmd.trade.sector', prio=0
055   *set ship command upgrade: command=$command  upgrade=$upgrade
056   set ship command upgrade: command=$command  upgrade=$upgrade  script=(((('Xai.XTC2.chk.auto2')))
057   
the link in parenthasis takes you to this script

Code: Select all

001   * Created by Xai Corporation, 764
002   * 
003   * 
004   
005   $r = 1
006   
007   $bs = $ship -> get amount of ware Best Selling Price Locator in cargo bay
008   $bb = $ship -> get amount of ware Best Buys Locator in cargo bay
009   $tse = $ship -> get amount of ware Trading system extension in cargo bay
010   $jd = $ship -> get amount of ware Jumpdrive in cargo bay
011   
012   skip if $bb AND $bs AND $tse AND $jd
013    $r = 2
014   
015   return $r
"Try not. Do or do not, there is no try."-Yoda

"[Its] time for the human race to enter the solar system"-Dan Quayle
Kerm
Posts: 3
Joined: Wed, 2. Jun 04, 21:40
x2

Post by Kerm »

Thanks for the help, it was the best buy and sell locators i was missing. I'm able to use them now.
Shanjaq
Posts: 353
Joined: Sat, 3. Apr 04, 09:47
x3

Post by Shanjaq »

hmm... for some reason the Xai trading software mk2 is showing up as ReadText17-5883 :cry:
[ external image ]
SPACE HAS A TERRIBLE POWER
User avatar
Kailric
Posts: 985
Joined: Sun, 7. Dec 03, 05:15
x3

Post by Kailric »

DId you install the /t files?
"Try not. Do or do not, there is no try."-Yoda

"[Its] time for the human race to enter the solar system"-Dan Quayle
Shanjaq
Posts: 353
Joined: Sat, 3. Apr 04, 09:47
x3

Post by Shanjaq »

yup, I also have the MK1 software /script files and /t files in place
[ external image ]
SPACE HAS A TERRIBLE POWER
User avatar
Kailric
Posts: 985
Joined: Sun, 7. Dec 03, 05:15
x3

Post by Kailric »

445010.xml

this is the file that you should have installed in your /t folder. if its there, have you tried reinit scripts? I have those scripts installed also.

Have you patched in the corret order 1.1, 1.2, then 1.3?
"Try not. Do or do not, there is no try."-Yoda

"[Its] time for the human race to enter the solar system"-Dan Quayle
Shanjaq
Posts: 353
Joined: Sat, 3. Apr 04, 09:47
x3

Post by Shanjaq »

Yup, I have 445010.xml in the /t directory, and am patch from 1.1, 1.2 to 1.3. I tried reinit cached scripts, saved, quit, reloaded, started new game, re-installed all the scripts and whatever else i could think of. still... ReadText17-5883 in every equipment dock =\

I tried altering the 445002.xml file from Xai Corp Jumpdrive Commands, changing the ware to 5883 and it successfully replaced the ReadText17-5883 in script and stations. It somehow seems that the game just doesn't care what 445010.xml says!
[ external image ]
SPACE HAS A TERRIBLE POWER
Shanjaq
Posts: 353
Joined: Sat, 3. Apr 04, 09:47
x3

Post by Shanjaq »

Aha! I must have re-downloaded the fix too early and gotten the old version with the broken language file. Just re-downloaded again out of frustration and it's working like it should now. Couldn't have been anything else, that's for sure =][
[ external image ]
SPACE HAS A TERRIBLE POWER
Shanjaq
Posts: 353
Joined: Sat, 3. Apr 04, 09:47
x3

Post by Shanjaq »

Ok, new problem, now to do with 445017.xml:

the command "Request AP Status" becomes "COMMAND_TYPE_GENERAL_25" after saving and reloading the first time. It works when loading up a fresh save, but after the script is a part of the savegame it turns into "COMMAND_TYPE_GENERAL_25" for some reason. Funny thing is, its abbreviated name remains intact!
[ external image ]
SPACE HAS A TERRIBLE POWER
User avatar
Kailric
Posts: 985
Joined: Sun, 7. Dec 03, 05:15
x3

Post by Kailric »

Shanjaq wrote:Ok, new problem, now to do with 445017.xml:

the command "Request AP Status" becomes "COMMAND_TYPE_GENERAL_25" after saving and reloading the first time. It works when loading up a fresh save, but after the script is a part of the savegame it turns into "COMMAND_TYPE_GENERAL_25" for some reason. Funny thing is, its abbreviated name remains intact!
moggy2 (DR.Xavia) is on vacation but I will look into this for you as another has pointed this out.
"Try not. Do or do not, there is no try."-Yoda

"[Its] time for the human race to enter the solar system"-Dan Quayle
Shanjaq
Posts: 353
Joined: Sat, 3. Apr 04, 09:47
x3

Post by Shanjaq »

Ok, I outfitted a pirate ship with everything necessary to run the Galaxy Trader, but when I use the command he starts the Sector Trader instead. I edited the script and got the Galaxy Trader working(it was a duplicate script call), so I watched the pirate ship make a few trade runs. He did quite well, but was selling all e-cells after each jump.
[ external image ]
SPACE HAS A TERRIBLE POWER
User avatar
Kailric
Posts: 985
Joined: Sun, 7. Dec 03, 05:15
x3

Post by Kailric »

Shanjaq wrote:Ok, I outfitted a pirate ship with everything necessary to run the Galaxy Trader, but when I use the command he starts the Sector Trader instead. I edited the script and got the Galaxy Trader working(it was a duplicate script call), so I watched the pirate ship make a few trade runs. He did quite well, but was selling all e-cells after each jump.
I fixed that file also and here is a link to it http://webpages.charter.net/kailric/init.Xai.XTC2.zip

Are you still haveing problems with the Report Status command appearing as General?
"Try not. Do or do not, there is no try."-Yoda

"[Its] time for the human race to enter the solar system"-Dan Quayle
matthewfarmery
Posts: 4179
Joined: Fri, 9. Apr 04, 17:49
x3

Post by matthewfarmery »

I wish to post a warning, if anyone has Xai Corp Advanced Combat Project 1.55b and xaicorp.xtc2.v1.0, DO NOT INSTALL HQmodV2byOlisJ, I did and when I installed xtc2, some text in the command menus went funny for example “XaiCmd” change into “custom” and the commands in there showed “custom then text” amongst others.

So don’t install it whatever you do, as for me I have to revert to an older save but at least I don’t have to start again. You have been warned
=
Shanjaq
Posts: 353
Joined: Sat, 3. Apr 04, 09:47
x3

Post by Shanjaq »

Yup, still shows as COMMAND_TYPE_GENERAL_25

hmm... is the HQMod integrated with the Massive War Mod? I see only a Custom menu too!
[ external image ]
SPACE HAS A TERRIBLE POWER

Return to “X²: The Threat - Scripts and Modding”