EnglishGermanFrenchRussianItalianSpanish
Log inRegister
 
[Script] UT profit
Post new topic Reply to topic Goto page 1, 2  Next
View previous topic :: View next topic
Author Message
euclid
Moderator (Script&Mod)
Moderator (Script&Mod)



Joined: 15 Feb 2004
Posts: 9526 on topic
Location: Gower, South Wales
Thank you for registering your game
modified
PostPosted: Wed, 12. Mar 08, 19:40    Post subject: [Script] UT profit Reply with quote Print

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:




Cheers Euclid



Last edited by euclid on Fri, 23. Oct 09, 13:23; edited 3 times in total
Back to top
View user's profile Send private message Send e-mail MSN Messenger
euclid
Moderator (Script&Mod)
Moderator (Script&Mod)



Joined: 15 Feb 2004
Posts: 9526 on topic
Location: Gower, South Wales
Thank you for registering your game
PostPosted: Thu, 13. Mar 08, 12:16    Post subject: Reply with quote Print

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

Cheers Euclid

Back to top
View user's profile Send private message Send e-mail MSN Messenger
eladan





Joined: 07 Jan 2006
Posts: 5307 on topic
Location: Sunshine Coast, Australia
Thank you for registering your game
PostPosted: Thu, 13. Mar 08, 14:58    Post subject: Reply with quote Print

Hi euclid,

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

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...)

Back to top
View user's profile Send private message
euclid
Moderator (Script&Mod)
Moderator (Script&Mod)



Joined: 15 Feb 2004
Posts: 9526 on topic
Location: Gower, South Wales
Thank you for registering your game
PostPosted: Sun, 16. Mar 08, 14:24    Post subject: Reply with quote Print

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

Back to top
View user's profile Send private message Send e-mail MSN Messenger
Brinnie





Joined: 05 Jun 2006
Posts: 561 on topic
Location: Italy
Thank you for registering your game
PostPosted: Mon, 17. Mar 08, 14:37    Post subject: Reply with quote Print

Excellent.

It has a permanent place in my X3 installation.

It also works with the "local traders".

Back to top
View user's profile Send private message
Lethul





Joined: 16 Mar 2008



PostPosted: Mon, 17. Mar 08, 21:29    Post subject: Reply with quote Print

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


_________________
Green
Back to top
View user's profile Send private message
euclid
Moderator (Script&Mod)
Moderator (Script&Mod)



Joined: 15 Feb 2004
Posts: 9526 on topic
Location: Gower, South Wales
Thank you for registering your game
PostPosted: Tue, 18. Mar 08, 14:23    Post subject: Reply with quote Print

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

Back to top
View user's profile Send private message Send e-mail MSN Messenger
Lethul





Joined: 16 Mar 2008



PostPosted: Wed, 19. Mar 08, 13:28    Post subject: Reply with quote Print

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


_________________
Green
Back to top
View user's profile Send private message
Brinnie





Joined: 05 Jun 2006
Posts: 561 on topic
Location: Italy
Thank you for registering your game
PostPosted: Wed, 19. Mar 08, 13:39    Post subject: Reply with quote Print

- 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.

Back to top
View user's profile Send private message
Lethul





Joined: 16 Mar 2008



PostPosted: Wed, 19. Mar 08, 13:48    Post subject: Reply with quote Print

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 Sad

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
Back to top
View user's profile Send private message
Brinnie





Joined: 05 Jun 2006
Posts: 561 on topic
Location: Italy
Thank you for registering your game
PostPosted: Wed, 19. Mar 08, 14:13    Post subject: Reply with quote Print

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.

Back to top
View user's profile Send private message
Lethul





Joined: 16 Mar 2008



PostPosted: Wed, 19. Mar 08, 14:30    Post subject: Reply with quote Print

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


_________________
Green
Back to top
View user's profile Send private message
Brinnie





Joined: 05 Jun 2006
Posts: 561 on topic
Location: Italy
Thank you for registering your game
PostPosted: Wed, 19. Mar 08, 14:45    Post subject: Reply with quote Print

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.

Back to top
View user's profile Send private message
skrzacik





Joined: 30 Mar 2009



PostPosted: Tue, 14. Apr 09, 14:46    Post subject: Reply with quote Print

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

Back to top
View user's profile Send private message
euclid
Moderator (Script&Mod)
Moderator (Script&Mod)



Joined: 15 Feb 2004
Posts: 9526 on topic
Location: Gower, South Wales
Thank you for registering your game
PostPosted: Thu, 23. Apr 09, 16:05    Post subject: Reply with quote Print

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
Back to top
View user's profile Send private message Send e-mail MSN Messenger
Display posts from previous:   
Post new topic Reply to topic Goto page 1, 2  Next
 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum
Control Panel
Login Data
The time now is Mon, 24. Sep 18, 17:42

All times are GMT + 2 Hours

[ Disclaimer / Impressum ] | [ Privacy Policy / Datenschutz ]

Board Security

Copyright © EGOSOFT 1989-2018
Powered by phpBB © 2001, 2005 phpBB Group
Template created by Avatar & BurnIt!
Debug: page generation = 0.08184 seconds, sql queries = 29