[SCRIPT] Xai Corporation Station Command Suite

The place to discuss scripting and game modifications for X³: Reunion.

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

voxol
Posts: 429
Joined: Sun, 30. Oct 05, 14:42
x3

Post by voxol » Tue, 1. Aug 06, 20:23

I got an idea:

How about logging stats to a log file in XML format, then have seperate program you can run in windows that will parse the file into html/javascript and display nice graphs and whatnot in a web browser.

I don't think it would be that difficult to implement, and would be unbelievably useful (for me anyway).... especially if you have a second computer hooked up to local network displaying stats realtime.

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

Post by moggy2 » Tue, 1. Aug 06, 20:51

there's always XUStats. I don't know exactly what it's capable of.

I did think about something similar for station logging, etc. But, although it's relatively 'simple', it does involve a lot of work. I don't have time to do it all myself, but if someone else wants to work on it I'll halp where I can.

JTWibble
Posts: 38
Joined: Sun, 23. Jul 06, 20:49
x3tc

Post by JTWibble » Wed, 2. Aug 06, 10:46

I've got LV Cheats scripts so I don't know if that is using the command slot Xai uses, is there a way to add the software to the station, perhaps using the Add Ware command?

Saint-Ashley
Posts: 1267
Joined: Sat, 3. Dec 05, 03:40
x4

Post by Saint-Ashley » Wed, 2. Aug 06, 14:31

JTWibble wrote:I've got LV Cheats scripts...
The cheat scripts are causeing a conflict with the following cmd slot :

Code: Select all

<t id="1163">COMMAND_TYPE_STATION_63</t>

You need to use the cmd to install the software. moggy may be able to tell you "what" to run to install the software manually, but it would require pokeing in the script editor to run one. :)

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

Post by moggy2 » Wed, 2. Aug 06, 16:24

uninstall the cheat scripts. No scripts maintain compatability with the Cheat scripts pack.

if you want to poke around in the script editor. Find setup.Xai.SUF, highlight it and press r. then select null
that'll reinitialise just the station upgrades framework which is what's clashing.

JTWibble
Posts: 38
Joined: Sun, 23. Jul 06, 20:49
x3tc

Post by JTWibble » Wed, 2. Aug 06, 20:55

All working now - However the inbound ships report says "ReadtextReadtextReadtext" with some numbers here and there.

Mad Hatter
Posts: 246
Joined: Fri, 5. Dec 03, 16:08
x3

Post by Mad Hatter » Fri, 11. Aug 06, 07:46

I think there is a conflict between this and the Xtended Mod.

When I run the Report Incoming Ships, I also get the ReadText stuff.

But when I installed the other commands, rather than one of the Price Commands, I got a command for Build Ships, which when chosen, asked me if I wanted to build E-Cells or Crystals...

BlackRazor
Posts: 4708
Joined: Tue, 20. Apr 04, 17:39
x4

Post by BlackRazor » Fri, 11. Aug 06, 09:36

Mad Hatter wrote:I think there is a conflict between this and the Xtended Mod.

When I run the Report Incoming Ships, I also get the ReadText stuff.

But when I installed the other commands, rather than one of the Price Commands, I got a command for Build Ships, which when chosen, asked me if I wanted to build E-Cells or Crystals...
Dunno about readtext but this script uses command slot STATION_37 and that is also used by the Xtended Mod, there's also a conflict with LV's cheats but moggy has already stated that compatibility with cheat scripts is obviously not maintained.
"For the love of the Fish-Queen!"

ORIOLE
Posts: 324
Joined: Wed, 20. Oct 04, 10:34
x2

Post by ORIOLE » Fri, 11. Aug 06, 10:13

Thx for this great script, moggy! But is this really the case? Is it not compatible with the Xtended mod??? I need this script.

Could you please make a humble traders day by saying it will be sorted out :wink:

Thx a million

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

Post by moggy2 » Fri, 11. Aug 06, 14:47

I think I've fixed the readtext error.

I don't know about any conflict. According to the resource list nobody else is using the command slot. I can't really change it to another one if they're haven't got all the commands listed. I may just end up clashing with another of theirs which would be a waste of my time.

If there really is a clash you'll have to petition then to change it, or do it yourself.

BlackRazor
Posts: 4708
Joined: Tue, 20. Apr 04, 17:39
x4

Post by BlackRazor » Fri, 11. Aug 06, 15:13

moggy2 wrote:I think I've fixed the readtext error.

I don't know about any conflict. According to the resource list nobody else is using the command slot. I can't really change it to another one if they're haven't got all the commands listed. I may just end up clashing with another of theirs which would be a waste of my time.

If there really is a clash you'll have to petition then to change it, or do it yourself.
I'm not saying the error is yours but the conflict is there: http://img93.imageshack.us/my.php?image=conflictwf8.jpg

Apparently the Xtended Mod Team has used command slots that were already used by other scripters (or maybe they were already using that slot when you relesead your script and they didn't notice the problem). They also didn't register in the community scripts sticky all the command slots they're using, for example they are using slots COMMAND_TYPE_CUSTOM_55 and COMMAND_TYPE_CUSTOM_56 but those are considered free and ready to be used in the sticky.

EDIT: just checked and they also haven't registered slot COMMAND_TYPE_TURRET_17.
"For the love of the Fish-Queen!"

Mad Hatter
Posts: 246
Joined: Fri, 5. Dec 03, 16:08
x3

Post by Mad Hatter » Fri, 11. Aug 06, 16:01

moggy2 wrote:I think I've fixed the readtext error.
Is it possible the .spk has got the problem? I just started with a clean install of X3, fresh .spk download, and did Report Incoming Ships and got the ReadText response.

User avatar
al_main
Posts: 1379
Joined: Wed, 6. Oct 04, 10:26
x3

Post by al_main » Sat, 12. Aug 06, 13:50

BlackRazor wrote:Apparently the Xtended Mod Team has used command slots that were already used by other scripters (or maybe they were already using that slot when you relesead your script and they didn't notice the problem). They also didn't register in the community scripts sticky all the command slots they're using, for example they are using slots COMMAND_TYPE_CUSTOM_55 and COMMAND_TYPE_CUSTOM_56 but those are considered free and ready to be used in the sticky.

EDIT: just checked and they also haven't registered slot COMMAND_TYPE_TURRET_17.
Its just abit of old text left in the back end of one of the text files. :oops:

There shouldnt be any actual problem other than the command getting renamed.

Have removed the text in the upcoming patch.

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

Post by moggy2 » Sun, 13. Aug 06, 17:31

Mad Hatter wrote:
moggy2 wrote:I think I've fixed the readtext error.
Is it possible the .spk has got the problem? I just started with a clean install of X3, fresh .spk download, and did Report Incoming Ships and got the ReadText response.
Which version are you using?

The latest should be 1.3

Mad Hatter
Posts: 246
Joined: Fri, 5. Dec 03, 16:08
x3

Post by Mad Hatter » Sun, 13. Aug 06, 18:46

I had just downloaded the spk, so it should be the most recent version. I'll wait until the next Xtended patch and then try again.

SieurNewT
Posts: 662
Joined: Tue, 13. Apr 04, 18:45
x4

Post by SieurNewT » Wed, 4. Oct 06, 23:51

Hello

I am using XFP mod and so AI Competitors, and noticed one of my stations with bugged auto adust price , by sample Energy Cell , selling at 255, is this more a bug maybe about the ware list (game thing energy cell is something else), or an IA bug ? (allowing crazy prices)

I thing on the other side i was maybe putting some stuping parameter, like asking to buy -2 under the lowest price.

Problem is that i was having 2 stations with 0 credit at end , and one with the max amount of credit possible in game after severals minutes.
New Config : Intel 8400 & 4Ghz , 4GB DRR2 on Asus P5Q Pro, ATI 4850 and Win XP 32 bits SP3.

Old config AMD 64 3400 1Mo, MSI k8n neo plat, 7800 GS+ Bliss, 2 GB RAM 3200

SieurNewT
Posts: 662
Joined: Tue, 13. Apr 04, 18:45
x4

Post by SieurNewT » Fri, 6. Oct 06, 20:46

Hello Again

XFP is not guilty , i have tried with a fresh new game without any mod and i have same problem, a crazy amount of money for a basic "farm" when using auto adjust prices
New Config : Intel 8400 & 4Ghz , 4GB DRR2 on Asus P5Q Pro, ATI 4850 and Win XP 32 bits SP3.

Old config AMD 64 3400 1Mo, MSI k8n neo plat, 7800 GS+ Bliss, 2 GB RAM 3200

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

Post by moggy2 » Fri, 6. Oct 06, 21:14

ok, will have a good look at it then.

SieurNewT
Posts: 662
Joined: Tue, 13. Apr 04, 18:45
x4

Post by SieurNewT » Sat, 7. Oct 06, 12:02

great thanks

In cas it could helo i was also having :

- a docked ship with 1 commercial agent (novice) in the base
- The IA competitors level Epic
New Config : Intel 8400 & 4Ghz , 4GB DRR2 on Asus P5Q Pro, ATI 4850 and Win XP 32 bits SP3.

Old config AMD 64 3400 1Mo, MSI k8n neo plat, 7800 GS+ Bliss, 2 GB RAM 3200

phonics
Posts: 5
Joined: Tue, 20. Dec 05, 08:17
x3

Post by phonics » Thu, 12. Oct 06, 18:59

Does the script scan the sector where the factory running the command is located? If so wouldn't it be an endless loop decreasing or increasing the ware cost?

Post Reply

Return to “X³: Reunion - Scripts and Modding”