[script] [02.04.08] Statistic Centre v. 1.21

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

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

User avatar
Trickmov
Posts: 1431
Joined: Wed, 7. Nov 07, 19:48
x3tc

[script] [02.04.08] Statistic Centre v. 1.21

Post by Trickmov »

Attention:
From now on, every support and the development of this script is stopped. This means, if problems occur, you will have to find a solution yourself.


Statistic-Centre 1.21
by Trickmov


You will find the script in the command console of your HQ.


Download:

http://www.merchant-haven.de/forum/down ... l&df_id=40


To the german topic:

http://forum.egosoft.com/viewtopic.php?t=202696


screenshots:

Asset development
list of stations
list of commercial agents



Statistic-Centre can give you a few reports about your property.

Note:

The script is now on a niveau, that allows a comparision with the Egosoft-calculation. But there are still a few differences:

1. my script doesn´t calculate the tunings absolutly correct (difference small). If anyone knows the absolute right formula, please, let me know :wink: .
2. the Egosoft-calculation doesn´t consider the hull condition of the ships and stations. My script does.
3. in the Egosoft-calculation the cash values are noted, but in the total asset value they don´t exist.

If there are question marks in the list of a trader, then this is a problem of this script and not of the Statistic Centre. Some scripts just don´t save these values and then there is no way to get them.


The statistics:

input:

{0} {0}: Total value calculation
{0} {1}: value - development (all 12 hours a calculation is made automatically, all calculations of the player are taken into the list, max. 10 entries)
{0} {999}: De-Installation

{1} {0}: list of all stations
{1} {1}: short analysis of your complexes
{1} {2}: long analysis of the complexes

{2} {0}: list of all trader (UTs, STs, Economics and Supply Trader, Commercial Agents, warelogistiks, miners, prospectors)
{2} {1}: exclusive list of the universe trader
{2} {2}: exclusive list of the sector trader
{2} {3}: exclusive list of the Economics and Supply Trader
{2} {4}: exclusive list of the commercial agents
{2} {5}: exclusive list of the warelogistics
{2} {6}: exclusive list of the miner
{2} {7}: exclusive list of the prospectors

{3} {1}: exclusive list of the carrier (M1 and TL)


Installation:

Copy files in scripts- and t-drawer in the drawers of your X3-installation.
Or use Script-Installer-File.


De-Installation:

In Game use {0} {999} for De-Installation, then save, delete alle files from the drawers of the X3-Installation


Thanks to:

- Rick Deckard for detailled tests and comparisions with the Egosoft calculation.

Resources:

command_type_station_29
t-files 447436, 497436


command-slot-conflict:

If the slot command_type_station_29 is used by another script, you have to do the follwing: Open with an editor the t-file 447436, search and replace all „1129“ by „11X“, where „X“ is the number of a free command slot.

A list of station-command-slots can you find here:
http://forum.egosoft.com/viewtopic.php?t=96340


Versionhistory:

(15.03.08 ) Version 1.0 beta

- first release


(16.03.08 ) Version 1.01

Changes:

- total value calulation completed (hull of ship calculated, wares onboard of stations added)
- error in readme fixed

New:

- list of stations
- list of complexes short
- list of complexes long
- De-Installation integrated

(17.03.08 ) Version 1.02

changes:

- small error in t-file fixed
- small error in profit-calculation of sector-traders fixed

new:

- now values over 2 billion credits are no problem
- english t-file and readme added


(19.03.08 ) Version 1.03

changes:

- command is now available from your HQ


(20.03.08 ) Version 1.04

changes:

- english t-file improved: too many mistakes
- error in archive fixed (put wrong setup in archive)


(25.03.08 ) Version 1.10

changes:

- small error in sorting fixed
- PageID replaced by var

new:

- profits and looses are now colored differently at these traders: UniTrader, SectorTrader, Commercial Agents and Economics and Supply Trader
- there is now a new output profit per hour for commercial agents and economics and supply trader
- new list: carrier (M1 and TL)


(26.03.08 ) Version 1.15

changes:

- An output to the players log can never be longer than 100 lines, because of this i had to correct all lists, because if someone had more than 46 stations oder traders, never were displayed more than 46 and the result at the end of the lists weren´t available
- small error in calculation of profit per hour fixed


(27.03.08 ) Version 1.16

changes:

- Value calculation of wares fixed (equipment wasn´t detected yet)
- Wage-Calculation of Commercial Agents fixed (new Commercial Agents without first wage made problems)
- total-value-calculation completed: stations, that didn´t belong to one of the mentioned classes, land now in the category "other"
- value claculation of ships and wares changed: the installed equipment of the ships is now calculated in the ships-category, while in the wares-category only the tradeble wares are shown.
- smaller changes in the whole script


(27.03.08 ) Version 1.17

changes:

- small bug in value calculation of ships and stations fixed
- when you don´t have traders of a type, you will get an message telling about that


(01.04.08 ) Version 1.20

changes:

- bug in value calculation of ships fixed: tuning weren´t calculated correctly
- bug with warelogistics fixed (WLS 2 not detected)
- profit added to warelogistics


(02.04.08 ) Version 1.21

changes:

- in the value calculation of stations now complex kits are calculated, too
- minor error with calculation of ship values fixed
Last edited by Trickmov on Fri, 10. Oct 08, 17:22, edited 25 times in total.
User avatar
Terre
Moderator (English)
Moderator (English)
Posts: 10749
Joined: Mon, 19. Dec 05, 21:23
x4

Post by Terre »

Found in file 447436.xml

Line 3 Statistik-Center to Statistic-Centre
Line 23 Controlcenter to Control centre
Line 58 Logistiks to Logistics
Line 60 Prospektors to Prospectors
Line 80 Statistik-Center to Statistic-Centre

I'll leave it up to you as the whether you feel they need changing.
Open Rights Group - Is your site being blocked
Electronic Frontier Foundation - Online Censorship
The Linux Foundation - Let’s Encrypt
Check if your Email account has been pwned
User avatar
Trickmov
Posts: 1431
Joined: Wed, 7. Nov 07, 19:48
x3tc

Post by Trickmov »

Thank you very much for finding my mistakes. Feel free to report any mistakes in the translations for my scripts.

I hope there are not too many :oops:


Update:

http://www.merchant-haven.de/downloads. ... l&df_id=40


(20.03.08 ) Version 1.04

changes:

- english t-file improved: too many mistakes
- error in archive fixed (used wrong setup for archive)



P.S.: Any proposals or ideas for further statistics or improvements are welcome, too :wink: .

EDIT: i used the wrong setup in the archive, so the script wasn´t available from HQ, the now available version (same version number) should work properly.
User avatar
Trickmov
Posts: 1431
Joined: Wed, 7. Nov 07, 19:48
x3tc

Post by Trickmov »

When you have downloaded v.1.04 earlier today (or 1.03 yesterday), there has been still an error in the archive (i put the wrong setup into the archive).

I have overwritten this version, so now it should work properly and as a bonus i have added three screenshots, so that you can get an impression how it works. See at the top.
User avatar
Trickmov
Posts: 1431
Joined: Wed, 7. Nov 07, 19:48
x3tc

Post by Trickmov »

Does anyone uses the centre at all?

I mean, i don´t know errors, but if there are any -> no reply -> no improvement. :wink:
User avatar
Trickmov
Posts: 1431
Joined: Wed, 7. Nov 07, 19:48
x3tc

Post by Trickmov »

Update:

http://www.merchant-haven.de/downloads. ... l&df_id=40


(25.03.08 ) Version 1.10

changes:

- small error in sorting fixed
- PageID replaced by var

new:

- profits and looses are now colored differently at these traders: UniTrader, SectorTrader, Commercial Agents and Economics and Supply Trader
- there is now a new output profit per hour for commercial agents and economics and supply trader
- new list: carrier (M1 and TL)
User avatar
Trickmov
Posts: 1431
Joined: Wed, 7. Nov 07, 19:48
x3tc

Post by Trickmov »

Update:

http://www.merchant-haven.de/downloads. ... l&df_id=40

(26.03.08 ) Version 1.15

changes:

- An output to the players log can never be longer than 100 lines, because of this i had to correct all lists, because if someone had more than 46 stations oder traders, never were displayed more than 46 and the result at the end of the lists weren´t available
- small error in calculation of profit per hour fixed
Legionnaire
Posts: 1368
Joined: Sun, 8. Feb 04, 16:28
x4

Post by Legionnaire »

Is this Compatible with XTM do you know?

had a look through your posts and couldnt see anything saying yes or no


Legionnaire
User avatar
Trickmov
Posts: 1431
Joined: Wed, 7. Nov 07, 19:48
x3tc

Post by Trickmov »

Yes, generally it´s compatible, but there are a few restrictions:

some of the new ships in XTM e.g. the M0s and M8s are not an own shipclass but ships of the classes M1, M2 and M7. So the statistic centre shows them as the classes they really are, not as M0 or M8.

And another restriction is the terran tradedock. This isn´t bound in correctly as trade dock but as "normal" dock. So the centre won´t detect it at all.

But i think, all value calculations and lists at all should work properly.

If not, please, report.


EDIT: in the new version (1.17), there is no longer a problem with the terran tradedock


Cheers
Trickmov
Last edited by Trickmov on Fri, 28. Mar 08, 00:04, edited 1 time in total.
User avatar
Trickmov
Posts: 1431
Joined: Wed, 7. Nov 07, 19:48
x3tc

Post by Trickmov »

Update:

http://www.merchant-haven.de/downloads. ... l&df_id=40

(27.03.08 ) Version 1.16

changes:

- Value calculation of wares fixed (equipment wasn´t detected yet)
- Wage-Calculation of Commercial Agents fixed (new Commercial Agents without first wage made problems)
- total-value-calculation completed: stations, that didn´t belong to one of the mentioned classes, land now in the category "other"
- value claculation of ships and wares changed: the installed equipment of the ships is now calculated in the ships-category, while in the wares-category only the tradeble wares are shown.
- smaller changes in the whole script


(27.03.08 ) Version 1.17

changes:

- small bug in value calculation of ships and stations fixed
- when you don´t have traders of a type, you will get an message telling about that



With the help of an german player i was able to test the statistics with an really giant savegame.

I have deleted the textfiles from the archive and replaced them by more beautyfull PDFs.
User avatar
Trickmov
Posts: 1431
Joined: Wed, 7. Nov 07, 19:48
x3tc

Post by Trickmov »

Updates:

http://www.merchant-haven.de/downloads. ... l&df_id=40

Note: The script is now on a niveau, that allows a comparision with the Egosoft-calculation. But there are still a few differences:

1. my script doesn´t calculate the tunings absolutly correct (difference small). If anyone knows the absolute right formula, please, let me know :wink: .
2. the Egosoft-calculation doesn´t consider the hull condition of the ships and stations. My script does.
3. in the Egosoft-calculation the cash values are noted, but in the total asset value they don´t exist.


(01.04.08 ) Version 1.20

changes:

- bug in value calculation of ships fixed: tunings weren´t calculated correctly
- bug with warelogistics fixed (WLS 2 not detected)
- profit added to warelogistics


(02.04.08 ) Version 1.21

changes:

- in the value calculation of stations now complex kits are calculated, too
- minor error with calculation of ship values fixed

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