[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: 13289
Joined: Sun, 15. Feb 04, 20:12
x4

[Script] UT profit

Post by euclid » Wed, 12. Mar 08, 18: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:

[ external 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: 13289
Joined: Sun, 15. Feb 04, 20:12
x4

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

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

Cheers Euclid

eladan
Posts: 7168
Joined: Sat, 7. Jan 06, 16:01
x4

Post by eladan » Thu, 13. Mar 08, 13: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: 13289
Joined: Sun, 15. Feb 04, 20:12
x4

Post by euclid » Sun, 16. Mar 08, 13: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: 800
Joined: Mon, 5. Jun 06, 08:26
x3tc

Post by Brinnie » Mon, 17. Mar 08, 13: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, 14:01

Post by Lethul » Mon, 17. Mar 08, 20: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: 13289
Joined: Sun, 15. Feb 04, 20:12
x4

Post by euclid » Tue, 18. Mar 08, 13: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, 14:01

Post by Lethul » Wed, 19. Mar 08, 12: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: 800
Joined: Mon, 5. Jun 06, 08:26
x3tc

Post by Brinnie » Wed, 19. Mar 08, 12: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, 14:01

Post by Lethul » Wed, 19. Mar 08, 12: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: 800
Joined: Mon, 5. Jun 06, 08:26
x3tc

Post by Brinnie » Wed, 19. Mar 08, 13: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, 14:01

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

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

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

Post by Brinnie » Wed, 19. Mar 08, 13: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: 13289
Joined: Sun, 15. Feb 04, 20:12
x4

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

barracuda231
Posts: 221
Joined: Mon, 17. Sep 07, 11:52

Sector trading question?

Post by barracuda231 » Sat, 1. Aug 09, 16:01

hi

i want a script that tells me how my traders are doing. for example, after a certain amount of time, they send me a message telling me how much profit they have made and so on?

is there a script to do this?

thanks

jlehtone
Posts: 21801
Joined: Sat, 23. Apr 05, 21:42
x4

Post by jlehtone » Sat, 1. Aug 09, 19:12

The Library does list at least the UT Profit by Euclid ...

barracuda231
Posts: 221
Joined: Mon, 17. Sep 07, 11:52

Post by barracuda231 » Sun, 2. Aug 09, 21:04

yeah i found that but the link does not work, can i get it anywhere else?????

jlehtone
Posts: 21801
Joined: Sat, 23. Apr 05, 21:42
x4

Post by jlehtone » Sun, 2. Aug 09, 22:20

That question about a script belongs to the thread of a script as per Forum Rule No 12. Threads merged.

barracuda231
Posts: 221
Joined: Mon, 17. Sep 07, 11:52

Post by barracuda231 » Fri, 9. Oct 09, 11:44

i cant get this link to work???

Post Reply

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