stats feature is still under heavy development. saving arrays in global vars doesn't want to work the way I want it to

Moderators: Scripting / Modding Moderators, Moderators for English X Forum
I want to do that, yes.Neofit wrote:Can't you just take this amount and make it displayable at will like for the CAGs, or are you trying to do some more detailed stats?
Code: Select all
Script UTperformance
Version: 0
for Script Engine Version: 32
Description
returns gain for a selected UT
Arguments
1: UT , Var/Ship owned by Player , 'Select Universe Trader'
Source Text
001 $gain = $UT -> get local variable: name='Gain'
002 $time = playing time
003 $days = $time / 86400
004 $hours = ( $time - $days * 86400 ) / 3600
005 $min = ( $time - $days * 86400 - $hours * 3600 ) / 60
006 $mes = '%s : %s : %s : %s profit %s'
007 write to player logbook: printf: fmt=$mes, $days, $hours, $min, $UT, $gain
008 return null
ar I forgot to put my new versions into this threadSlaine650 wrote:Does the player HQ block stop the UTs from trading with other player owned stations? I have a trading dock full of goodies at lowest cost and no UTs sniffing around it (other races set to no).
Twice I have found UTs sitting at stations with the order "collect ware, e-cells"
but these are secondary items and they stay put till I jump them out. Both times they had more than 100 e-cell onboard and there were bad guys in the sector.
I've got a metric dozen UTs fanging about the place and since installing the script none have been dusted, cheers
Besides Total and total per hour and/or day (if that is what you meant) I don't see anything else I could ask from my UTs. Maybe the option to reset the stats? I wouldn't mind a total/ware for the CAGs, but that's for another thread.gnasirator wrote: plans for now are:
Global stats (earned total, earned / playtime)
and then stats per trader (total - per time - maybe profit per flight, too. don't know if I can realize that)
any more ideas?
Code: Select all
050 * Gnasirator-Edit
051 * Handel mit dieser Station erlaubt?
052 * Handel mit Spielerdocks verbieten,die Handel mit fremden rassen deaktiviert habn
053 if $Targetstation -> is of class Dock
054 if $Targetstation -> only player own ships can trade with
055 $bReturn = [FALSE]
056 end
057 end
That is logical. "When in doubt, do as the ints do."gnasirator wrote:with v. 1.29.5 it was changed. now the mk3's will only trade with the hq if it is trading with other races enabled.
hm do you mean the HQ trading block doesn't work? I actually don't know wether it's a dock or not. I'll check that as soon as I'm back home again.jlehtone wrote:
AFAIK, HQ is not a Dock nor a Factory, but a type of its own.
Btw, what are the default actions of vanilla UT in regards of:
1. Factory
2. Complex
3. Dock
4. HQ
depending on setting of:
A. Trade with others Yes/No
B. Intermediates None/Buy/Sell/Both
My uneducated guess is:
1-A, and 2-A: like NPC trader
2-B: ignore
3-A: ????
4-A: ignore
The type of HQ is not a Dock. Ask from Lucike.gnasirator wrote:hm do you mean the HQ trading block doesn't work? I actually don't know wether it's a dock or not. I'll check that as soon as I'm back home again.
and what do you mean with the rest. vanilla ut? you mean the standard mk3 traders? not my improved ones?
afaik they just trade with every station they can regardless of the settings you mentioned.