[X3 Script] Company Assets script - Ver 1

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

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

User avatar
Birdman
Posts: 508
Joined: Sat, 10. Jan 04, 10:07
x3

[X3 Script] Company Assets script - Ver 1

Post by Birdman » Fri, 13. Jan 06, 04:11

Extract to your X3 directory, keeping folder paths.

This script uses Text page 447878.xml and COMMAND_TYPE_SHIP_24.

Run this script from the additional command menu (after script editor is enabled) or "a.Birdman.Assets" from script editor.

This script will produce a comma separated logfile (log07878.txt) with information about the players assets.
This includes station and ships data. The header data is formatted as follows:

Player Name
Credits in players account
Playing Time
Script engine version . script version


The first field is coded in the text file to inform the user of the type of data, the last field is an index number. If there are multiple lines of data with same data type, it means there are over 3 different types in the cargo bay or installed. Data output is in groups of 3, if less than 3 different types are present, then output will show null.

Ship information data is formatted:

Ship, ships name (name player has assigned), ship type, current sector, homebase (null if not assigned), index
Upgrades, ships name, CargoBay size, Engine tuning installed, Rudder optimisation installed, Trade Command MkIII installed (Y/N), JumpDrive installed (Y/N), Fight Command 1 (Y/N), Fight command 2 (Y/N), Null, index
Shield, Quantity and Size Shield type 1, Quantity and Size Shield type 2, Quantity and Size Shield type 3, index
Laser, Quantity and type laser 1, Quantity and type laser 2, Quantity and type laser 3, index
Wares, Quantity and type ware 1, Quantity and type ware 2, Quantity and type ware 3, index



Station information data is formatted:

Station, station name (name player has assigned), station name type (including race purchased from), station funds, sector station is in, index
Product, station name, product, current amount on hand, maximum storage capacity, index
Primary, station name, primary resource, current amount on hand, maximum storage capacity, index
Intermediate, station name, Intermediate resource (for complexes), current amount on hand, maximum storage capacity, index


Note: Capacities (on hand and maximum) for stations in complexes are the TOTAL for the entire complex.


ftp://birdmanx2.homeip.net/Files/Assets.zip (Ver 1)

If this link does not work, check back later, it means I'm playing X3 :D .

If anyone is willing to host in addition, please feel free to do so, and send me a PM with the link so I can update this post with additional links.

http://klaatu.dyndns.org/x3/Assets.zip (Ver 1) Thanks to klaatu


If anyone has any additional requests for modification of this script, please ask.
Last edited by Birdman on Sun, 22. Jan 06, 19:47, edited 1 time in total.

User avatar
ajw2255
Posts: 218
Joined: Sat, 8. Oct 05, 22:53
x3

Post by ajw2255 » Fri, 13. Jan 06, 19:28

Good work, I'ltry it later when i get home
Destroy the mothership and the cards will fall like a stack of dominoes. Checkmate

Kilrathi Avenger
Posts: 275
Joined: Fri, 6. Feb 04, 21:16
x3tc

Post by Kilrathi Avenger » Sat, 28. Jan 06, 16:20

Birdman, how do you get the cool looking x3 details from the bottom of your post. Is it a program or done by hand :roll:

Cheers
"As I slide down the banister of life;
my job is just another splinter in the bum"

User avatar
Birdman
Posts: 508
Joined: Sat, 10. Jan 04, 10:07
x3

Post by Birdman » Sat, 28. Jan 06, 16:37

That's actually X2 stats. It's from Logaan's site http://www.logaans-site.co.uk/xustats/ , he set up a script to get your info, and he processes it, and has the info set up so you can get the display. The X3 version is being worked for the processing, the script is ready. So check his site periodically, and watch the main forum for news of the release.

Skillers
Posts: 539
Joined: Sun, 24. Apr 05, 16:12
x3tc

Post by Skillers » Tue, 14. Feb 06, 15:13

Just tried it, very nice, though 2 things I would like;

1) seperate all the information, it's not the friendliest thing to look at.

2) Player race stats, i.e. show the detail about race relations between player and all races.

Thanks
"Warning, cargo bay now contains; Gate, Home of Light"

User avatar
arcana75
Posts: 2158
Joined: Tue, 2. Dec 03, 10:28
x3tc

Post by arcana75 » Tue, 14. Feb 06, 15:35

I think the idea was to load it into a spreadsheet. Looks fine in that.

An enhancement to this is some way to reference all the assets to pricetags, so we have an idea of net worth :D

Skillers
Posts: 539
Joined: Sun, 24. Apr 05, 16:12
x3tc

Post by Skillers » Tue, 14. Feb 06, 16:07

It can be loaded into a spreadsheet?
"Warning, cargo bay now contains; Gate, Home of Light"

User avatar
arcana75
Posts: 2158
Joined: Tue, 2. Dec 03, 10:28
x3tc

Post by arcana75 » Tue, 14. Feb 06, 17:58

Why not? It's delimited and the 1st post tells u the column headers.

Skillers
Posts: 539
Joined: Sun, 24. Apr 05, 16:12
x3tc

Post by Skillers » Tue, 14. Feb 06, 18:02

Oh, manually, I thought there was some cleaver trick I didn't know about :roll:.
"Warning, cargo bay now contains; Gate, Home of Light"

User avatar
Birdman
Posts: 508
Joined: Sat, 10. Jan 04, 10:07
x3

Post by Birdman » Wed, 15. Feb 06, 05:28

arcana75 wrote:An enhancement to this is some way to reference all the assets to pricetags, so we have an idea of net worth :D
Well, that's what XUStats is for. but Logaan is still getting the site ready. :( He has to create a database in PHP to reference all the prices, he has the info to be verified, and he is working on it.

User avatar
Birdman
Posts: 508
Joined: Sat, 10. Jan 04, 10:07
x3

Post by Birdman » Wed, 15. Feb 06, 05:44

Skillers wrote:Just tried it, very nice, though 2 things I would like;

1) seperate all the information, it's not the friendliest thing to look at.

2) Player race stats, i.e. show the detail about race relations between player and all races.

Thanks
1. The idea was to load it into a spreadsheet, thus the comma delimiting.
This is a manual procedure, start the spreadsheet program, open the file, and use comma delimiting to put into the spreadsheet columns.

2. I'll check into that, but may not have much success. There is a problem with getting the info due to script engine problems. If you are looking for just Friendly, Neutral, or Enemy, that is doable, but other than that, it could be a problem.

User avatar
pospi
Posts: 98
Joined: Tue, 17. Jan 06, 10:06
x3

Post by pospi » Wed, 15. Feb 06, 07:54

hey, very nice work!

does this mean the XML output is coming soon? :D

JungleBudz
Posts: 9
Joined: Wed, 26. Jul 06, 02:00
x3

Post by JungleBudz » Tue, 1. Aug 06, 21:40

Does anyone know where I can get this script? None of the links work. Thanks.

fud
Posts: 6989
Joined: Wed, 25. Jan 06, 15:26
x3

Post by fud » Tue, 1. Aug 06, 21:58

That might have something to do with the last post being 6 months ago.

JungleBudz
Posts: 9
Joined: Wed, 26. Jul 06, 02:00
x3

Post by JungleBudz » Tue, 1. Aug 06, 22:17

I understand that, doen't mean someone does not have it lying around somewhere.

Post Reply

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