[SCRIPT] MK3 Trading Log (plus MK3 Technical Datasheet)

The place to discuss scripting and game modifications for X³: Terran Conflict and X³: Albion Prelude.

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

User avatar
xeranes
Posts: 57
Joined: Fri, 27. Nov 09, 22:25
x3tc

Post by xeranes » Fri, 21. May 10, 01:48

I have a similar problem, i get

Code: Select all

The XML page cannot be displayed 
Cannot view XML input using XSL style sheet. Please correct the error and then click the Refresh button, or try again later. 


--------------------------------------------------------------------------------

Required white space was missing. Error processing resource 'file:///C:/Program Files (x86)/Steam/steamapps/common/x3 terra...

<expense ship="Your Caiman Super Freighter" type="item" number="12" ware="Cargo Bay Extension" station="Teladi Trading St...
 

ADStryker
Posts: 152
Joined: Mon, 22. Jun 09, 02:04
x3tc

Post by ADStryker » Wed, 9. Jun 10, 07:09

I get similar errors. However, given the atrociously slow scrolling speed of the XML display in Internet Explorer, I find that it is faster to search through the log file for the information I want using Notepad.
PSCO1 Cockpits | lowpolyroids-2.04 | Satellite Early Warning Network | Station Camper | Universal Best Buys/Sells | Invasion Warnings | ResizedAldrinBigRock | Equipment R&D | Lowpoly Complex Tubes | Mobile Ship Repairs | Player Workshop | Marauder Shipyard

User avatar
hartza76
Posts: 156
Joined: Sun, 18. Jul 10, 21:46
x4

Post by hartza76 » Sun, 5. Sep 10, 19:34

hi i dont have as problem but i cant clear the logs:

Situation:

re-installed game, reverted back to vanilla used loging on feature on game days 9-10a bout, worked fine

installation was--> unzip trader to x3tc folder --> use loging on.bat-->

clear stats--> used create stats--> viewed stats.. there are still my old information.

and should be basicaly noting jet cos game was runing like 2mins when used that and is in game day 8 where i started use few mods.

Edit:
acually found the not reseting the traders log, change the odd german verion of documents in setup file to english documents :)
If a girl seems as shy as a mouse, you still have to look out for the tiger within her.

MetroWolf
Posts: 12
Joined: Mon, 29. Nov 10, 03:38
x3tc

Post by MetroWolf » Wed, 29. Dec 10, 05:33

I just installed this Log Script as stated in this form. The only data I am seeing is a time stamp, no other data is present on line then another time stamp with no other data. The time stamp seems to correlate to the time I run create.stats. All files are located as described in this posting. I am able to view the XML via a Firefox browser. I am a Steam Client user on Windows 7 (64).


:x3: Found the solution for my issue in another post! Thanks for posting Hamakua! :x3:

http://forum.egosoft.com/viewtopic.php? ... c&start=45

Carl99
Posts: 285
Joined: Sun, 8. Nov 09, 18:41
x3tc

Post by Carl99 » Sat, 1. Jan 11, 20:00

The clear log .bat does not appear to work for me. What do i need to do to manually clear a log?

xavim
Posts: 11
Joined: Tue, 27. Apr 10, 19:31

Post by xavim » Fri, 28. Jan 11, 03:32

edit- fixed.
Last edited by xavim on Fri, 28. Jan 11, 19:48, edited 1 time in total.

Excelsior82
Posts: 56
Joined: Sun, 1. Aug 10, 14:33
x4

Post by Excelsior82 » Fri, 28. Jan 11, 13:31

If you experience problems with .bat files, edit them with notepad and check if the paths are correct. From memory, I think I recall all paths are hard-coded in the bat.

The problem is that the files the bat looks for is in your "My Documents" folder and its name is not the same whether of your location and your OS version, etc...
The same apply if the log generated is empty, you shall edit create.stats.bat

To Xavim : You shall unpack the trading log pack in the folder trader of your X3 game. This means you may have to create it.

bruteman
Posts: 16
Joined: Sun, 20. Nov 05, 23:09
x3tc

Post by bruteman » Sun, 10. Apr 11, 03:35

Im stuck like the guy above if i open the XML or the HTML in Chrome or IE9 all i get is a blank page.

now i have viewed it in my XML editor it appears to be fine no errors and the xls output is showing up there but to view it full in IE or Chrome its just a blank page... anyone else find a fix on this?

doczott
Posts: 15
Joined: Wed, 17. Dec 03, 02:50
x3

Post by doczott » Wed, 13. Apr 11, 22:29

Like the guy above, I get a blank screen in Chrome. I can view it in IE8, but I don't use IE (piece of garbage).

User avatar
cobra mk2
Posts: 383
Joined: Mon, 7. Jul 08, 18:43
x4

Post by cobra mk2 » Wed, 1. Jun 11, 22:16

I'm having problems with this as well, i've tried all the suggestions made above but nothing worked.

My problem is that there is no 'files' folder being created inside my trader folder. When i click on the logging_on and the create_stats file the cmd window pops up very briefly with the message "the system cannot find the path specified"

Do i need to edit the .bat files? If so, what should i change in them?

I am running a steam install on win 7 64bit.
"Out of the dirt, into the sky"

GalenEvil
Posts: 175
Joined: Wed, 22. Jun 11, 21:17

Java Application Extension to the trade log

Post by GalenEvil » Wed, 22. Jun 11, 22:14

Hi I am new to these forums, though I have been playing x3tc since around last Christmas. I came across this script when I wanted to simulate a company within the game and track every trade by my various traders... but I still have found it a little limiting.
After getting into my third day of the game, I have roughly 13 mk3 traders and about 2500 entries in the log. This is where it starts to be limiting, as there is no inherent way to sort the data. And it takes a while to sift through all of the data to find what I want to look at.
So I havecome up with my own solution to my problem, a Java application! What I want it to do is sort all of the log into different categories: day, ship, and ware traded. I have it working decently for me so far with only a few errors.
At the moment ittakes around ten seconds to sort out the 2500 entries and display all data in the sorted lists.
Something I would like to know is whether, once I get the program running with full functionality and a GUI component, others would like me to modify it for distribution. The main conceivable holdback so far to this is modifying it to work with usernames, but shouldn't take much time for me to overcome.

If anyone, especially the OP, would comment on this idea I would be most appreciative.

--GalenEvil

ni0s
Posts: 12
Joined: Tue, 5. Oct 10, 09:21
x3tc

Post by ni0s » Tue, 12. Jul 11, 06:03

I'm surprised no one else has posted. This looks like a great idea. While I barely have a log yet as I started a new game, I would love to use your sorting program.
Neutral Intergalactic Order — Providing a specialized agent for your universe-saving/destroying needs.

ransombot
Posts: 2
Joined: Wed, 13. Jul 11, 16:23
x3tc

Chrome security

Post by ransombot » Wed, 13. Jul 11, 16:31

Chrome has some security settings that won't let this function properly however IE and FF should work fine in viewing see issues:

http://code.google.com/p/chromium/issue ... l?id=39616

http://code.google.com/p/chromium/issue ... l?id=47416

They do not affect it being viewable however if you host it on a (L|W)AMP though that's another topic entirely.

Grate information and scripts though.

I'd also advise those in firefox making sure they are using the latest version since if you use help -> update it won't update major versions only minor see: http://www.mozilla.com/en-US/products/download.html and compare it to the help -> about version.

GalenEvil
Posts: 175
Joined: Wed, 22. Jun 11, 21:17

Post by GalenEvil » Sun, 17. Jul 11, 00:50

ni0s wrote:I'm surprised no one else has posted. This looks like a great idea. While I barely have a log yet as I started a new game, I would love to use your sorting program.
Just now got around to looking at this thread again. The sorter is not quite ready for distro as I am rewriting the sorting engine and making it more user friendly and with more graphical data being displayed in graphs. Once I get an alpha stage ready for distro I will be putting up a [wip] topic for it so people can test it. Thanks for showing an interest!

--GalenEvil

Jenno
Posts: 14
Joined: Sun, 20. Jan 08, 01:36
x3

Post by Jenno » Mon, 18. Jul 11, 19:43

My clear_log doesn't work and logging_off doesn't work either. Seems like the mod gave up on this thread long ago. Anyone else can help? It takes like a min to load up when i view_stats due to all those info. Perhaps I can just delete the place it's reading the info from; where is it? I am a steam account user on win7 64-bit.



Edit: Found it. The clear log path was wrong, just had to change
"%userprofile%\Eigene Dateien\Egosoft\X3TC\log01500.txt"

to

"%userprofile%\My Documents\Egosoft\X3TC\log01500.txt"

Chillwill
Posts: 27
Joined: Wed, 24. Aug 11, 01:51
x4

Post by Chillwill » Fri, 2. Sep 11, 20:02

Great little tool. At first i had trouble getting the log to show up properly because of some error. Turns out it was cause of my naming convention. My ship names all included the " symbol. So when naming ships don't use it cause it screws with the xml causing errors. Can probably be other symbols too so straight text is probably safest if you get errors when trying to open it in browser.

Oh and yeah galen a sorting software would be awsome, it's a lot of info to go through so sorting it would be great.

Tyoi
Posts: 12
Joined: Thu, 29. Sep 11, 12:46
x3tc

Post by Tyoi » Thu, 29. Sep 11, 12:52

The x2trader.xml you posted on the first page is incorrect?

For instance: The ship/pilot 'ST Mistral EE.2' has a total of 4 orange bars indicating 4 'level-up's'. All 4 are for level 20 though... with all a sum of -25.000. Why would the pilot train level 20 4 times?!

P.s.
It seems all the pilots had at least 2 or more level-up's on the same level. (most of them lvl 20)
The cake is a lie!

GalenEvil
Posts: 175
Joined: Wed, 22. Jun 11, 21:17

Post by GalenEvil » Thu, 29. Sep 11, 20:15

If you set your St to a ut it will gain levels up to 25 but sts are limited to lvl 20. What it is doing is correct as far as what the logging ability of the built in logging function does, even though it looks weird. What I think causes it is the open upgrade spaces available or lack of fighter drones. Manually upgrade the St to full cargo, speed, and rudder and give it plenty of fighter drones then see if it continues to try to level up. If they do it could just be the games way of simulating competancy tests like some jobs require, such as cdl relicencing for freight truckers.

Vaso
Posts: 1
Joined: Sun, 1. Jan 12, 02:24
x4

Albion Prelude

Post by Vaso » Thu, 23. Feb 12, 14:41

Hey, did anybody try to use logging for Albion Prelude? Is it working? Is there any updated version of this script?

I think the trade folder should be copied to addon folder (in Albion Prelude)? Also, I see that the original scripts/plugin.autotrade.logging.pck has got different size in compare with one in trage/logging_off folder?

Thank you.

Vaso.

User avatar
RoverTX
Posts: 1436
Joined: Wed, 16. Nov 11, 18:37
x4

Post by RoverTX » Wed, 11. Apr 12, 05:31

Just downloaded it and got it working. See it Still works just have to change the references from X3TC folder in the create_stats.bat to X3AP.

Post Reply

Return to “X³: Terran Conflict / Albion Prelude - Scripts and Modding”