[Script] UT profit

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

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

User avatar
euclid
Moderator (Script&Mod)
Moderator (Script&Mod)
Posts: 10738
Joined: Sun, 15. Feb 04, 21:12

[Script] UT profit

Post by euclid » Wed, 12. Mar 08, 19:40

Just a little script that uses the built-in local variable $Gain for every universe trader.

Installation

Unzip into your X3 folder

How

You should see an additional command 'UT Profit' in your ship's trade menue. Click that and then select one of your UT's from the galaxy / sector map. Now check your message log. It should contain a time stamp 'days', 'hours', 'minutes' played and the total amount of credits your UT has earned for you.

Limitations

If you need to restart your UT the total profit value will be reset.


Download

Updated download link:

Image


Cheers Euclid
Last edited by euclid on Fri, 23. Oct 09, 13:23, edited 3 times in total.

User avatar
euclid
Moderator (Script&Mod)
Moderator (Script&Mod)
Posts: 10738
Joined: Sun, 15. Feb 04, 21:12

Post by euclid » Thu, 13. Mar 08, 12:16

Ready to download (see above). Any feeback is welcome.

Cheers Euclid

eladan
Posts: 5314
Joined: Sat, 7. Jan 06, 17:01

Post by eladan » Thu, 13. Mar 08, 14:58

Hi euclid,

I've seen requests for this sort of info on the main forum, so this is bound to come in useful. :)

Quick suggestion:- There is more info available for UTs which you could include in the report, which would make it even more useful. I can't recall all that's available, but certainly things like the UT level would be something people might like to see, given that it's sometimes difficult to find (I know people can check the title against a list, but since you are doing a report...)

User avatar
euclid
Moderator (Script&Mod)
Moderator (Script&Mod)
Posts: 10738
Joined: Sun, 15. Feb 04, 21:12

Post by euclid » Sun, 16. Mar 08, 14:24

Hi Eladan.

Sure one could add more info but my intention was to write a rather simple script just to check the profit made by one UT since the last restart.

However, feel free to modify the script to meet your needs.


Cheers Euclid

Brinnie
Posts: 561
Joined: Mon, 5. Jun 06, 08:26

Post by Brinnie » Mon, 17. Mar 08, 14:37

Excellent.

It has a permanent place in my X3 installation.

It also works with the "local traders".

Lethul
Posts: 27
Joined: Sun, 16. Mar 08, 15:01

Post by Lethul » Mon, 17. Mar 08, 21:29

does this work in exisiting save games or will the counter restart from 0 then?
Green

User avatar
euclid
Moderator (Script&Mod)
Moderator (Script&Mod)
Posts: 10738
Joined: Sun, 15. Feb 04, 21:12

Post by euclid » Tue, 18. Mar 08, 14:23

The 'counter' exists already independent of the script which just accesses and writes it to the player's log.

Hence the script should be working irrespectively whether it's a save or a new game.

Cheers Euclid

Lethul
Posts: 27
Joined: Sun, 16. Mar 08, 15:01

Post by Lethul » Wed, 19. Mar 08, 13:28

I can't get this to work, i don't really understand where i am supposed to check the profit stats?
Green

Brinnie
Posts: 561
Joined: Mon, 5. Jun 06, 08:26

Post by Brinnie » Wed, 19. Mar 08, 13:39

- Select the trade command from 1 of your ships.

- Scroll down to the UT Profit command and select it.

- You then select the trader whose profit you want to view.( I think you can only do it if it is NOT docked at a station)

- You should immediately get a message (in your Log) showing you the information.

Lethul
Posts: 27
Joined: Sun, 16. Mar 08, 15:01

Post by Lethul » Wed, 19. Mar 08, 13:48

Brinnie wrote:- Select the trade command from 1 of your ships.

- Scroll down to the UT Profit command and select it.

- You then select the trader whose profit you want to view.( I think you can only do it if it is NOT docked at a station)

- You should immediately get a message (in your Log) showing you the information.
Guess i unpacked it in the wrong catalog or something then, cause i don't see those commands :(

edit: nope they seem to be correct, are they supposed to be .xlm files compared to every other file in the catalogs are .pck ?

edit2: do i have to activate it somewhere?
Green

Brinnie
Posts: 561
Joined: Mon, 5. Jun 06, 08:26

Post by Brinnie » Wed, 19. Mar 08, 14:13

What I did is:

Opened/Unzipped the UT profit folder

Inside it there are 2 other folders:

"Scripts" and "T"

I moved the contents of these two folders to the folders by the same name in the X3 Directory on my PC.

After that the UT profit option appeared in the trade menu of the ships,
I need to scrolls the menu 1 page down to see it, the command menus grow depending on how many scripts are installed.

. . .

I hope this helps , otherwise you'll need to wait for someone more knowledgeable to reply.

ps. did you enable the script editor? I don't if that is a requirement.

Lethul
Posts: 27
Joined: Sun, 16. Mar 08, 15:01

Post by Lethul » Wed, 19. Mar 08, 14:30

Exactly how i did it, exept i dont have the scripteditor activated. I'll try that i guess
Green

Brinnie
Posts: 561
Joined: Mon, 5. Jun 06, 08:26

Post by Brinnie » Wed, 19. Mar 08, 14:45

There is something about activating the script editor, I think it tags your save games from then on as modified, it is irreversible ( I think).

I wanted to make sure you knew that.

skrzacik
Posts: 54
Joined: Mon, 30. Mar 09, 02:41

Post by skrzacik » Tue, 14. Apr 09, 14:46

hi
i have a little problem with this script
i install everything like instruction tell me and nothing happen when i click ut profit in menu
please help me with this
sorry for my english

User avatar
euclid
Moderator (Script&Mod)
Moderator (Script&Mod)
Posts: 10738
Joined: Sun, 15. Feb 04, 21:12

Post by euclid » Thu, 23. Apr 09, 16:05

skrzacik wrote:hi
i have a little problem with this script
i install everything like instruction tell me and nothing happen when i click ut profit in menu
please help me with this
sorry for my english
Please check your message log. There should be info on the selected UT.

Cheers Euclid
"In any special doctrine of nature there can be only as much proper science as there is mathematics therein.”
- Immanuel Kant (1724-1804), Metaphysical Foundations of the Science of Nature, 4:470, 1786

Post Reply

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