[SCR] [07.02.11] Trade Overview 2.05 by ScRaT

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
ScRaT_GER
Posts: 1962
Joined: Tue, 8. Jan 08, 18:19
x3tc

Post by ScRaT_GER »

But that's normal.
Startpost wrote:You can open the logbook either via the main menu or hit the hotkey called 'open logbook'.
This hotkey is context sensitive and will react like the following:

- no aim targeted: A list of all your ships, which have a logbook, will open. You can now choose, which one to open.

- ship with logbook targeted: The targeted ships logbook will open.

- neutral object targeted (station, random ship, etc.): The playerships logbook will open.
I guess you targeted a random object, so your ships lobook opened.
If you now reset the logbook, and try to reopen it via the CPC while still having a random object targeted, there will be nothing to open.

Could that be the problem?

Greets,
ScRaT
draffutt
Posts: 4293
Joined: Wed, 21. Feb 07, 17:46
x4

Post by draffutt »

just so we are on the same page:

[ external image ]

this is the menu i was referring to. once i click on reset; then yes. if i go back into CFC this menu will not come back up.
None of us is as smart as all of us. ~Ken Blanchard

TC player bug fixes
Reunion player bug fixes
User avatar
ScRaT_GER
Posts: 1962
Joined: Tue, 8. Jan 08, 18:19
x3tc

Post by ScRaT_GER »

Yes, that's the menu.

You could try the following:

1. Reset the menu
2. Buy something (of course only if your ship is monitored in the overview)
3. Check the menu

If it's still not there, I'll have to check myself. ;)

Greets,
ScRaT
draffutt
Posts: 4293
Joined: Wed, 21. Feb 07, 17:46
x4

Post by draffutt »

Nope did not work. :(
None of us is as smart as all of us. ~Ken Blanchard

TC player bug fixes
Reunion player bug fixes
User avatar
ScRaT_GER
Posts: 1962
Joined: Tue, 8. Jan 08, 18:19
x3tc

Post by ScRaT_GER »

I'm on it.

Will report in a few minutes.

EDIT: If found the mistake - strange that it wasn't found earlier...

Since I'm still not done with all changes for version 9, I'll only upload a fix for you.
You can download it here.
It should work fine.

ANOTHER EDIT:

Do you really like to open the logbook via the CPC? I tried it a bit and I didn't find it handy.

So my ideas are the following:

1. You said you didn't want so many different hotkeys. In this case I'd suggest that you assign the "Open Trade Overview" - hotkey to "x" for example and the "Open Logbook" - hotkey to "hold x". Like that you used only one key.

2. I could integrate Gazz' lib "Hotkeys with double click / multiple functions", so hitting the hotkey once would open the main menu, hitting it twice the logbook menu.

Well, it's up to you. I personally don't have any problems with two hotkeys, I let you decide whether to keep the current system (Logbook + CPC) or one of the above.

Greets,
ScRaT
JrK
Posts: 218
Joined: Wed, 20. May 09, 17:01
x3tc

Post by JrK »

This script seems to be incompatible with FCC, at least, it tried to overwrite files which I have located to be from FCC. Any way I deal with that or is this script just incompatible with FCC?
God is in the rain.
User avatar
ScRaT_GER
Posts: 1962
Joined: Tue, 8. Jan 08, 18:19
x3tc

Post by ScRaT_GER »

I'm pretty sure that this script is compatible with the FCC.

Could you name the files that you had to replace?
(My guess: lib.chem.strings.xml)

Greets,
ScRaT
JrK
Posts: 218
Joined: Wed, 20. May 09, 17:01
x3tc

Post by JrK »

in scripts: lib.chem.string.xml
in t: 8910-L044 and 8910-L049

You make it sound like there is an easy way around the issue.. :)
God is in the rain.
User avatar
ScRaT_GER
Posts: 1962
Joined: Tue, 8. Jan 08, 18:19
x3tc

Post by ScRaT_GER »

Well, then you can use these scripts without any doubt together.

It doesn't matter, if you replace the old files or keep them, because the files are exactly the same.

Greets,
ScRaT
JrK
Posts: 218
Joined: Wed, 20. May 09, 17:01
x3tc

Post by JrK »

But won't it override some of the things of FCC? :? The filesizes are different.
God is in the rain.
User avatar
ScRaT_GER
Posts: 1962
Joined: Tue, 8. Jan 08, 18:19
x3tc

Post by ScRaT_GER »

The file "lib.chem.string.xml" is a library - script written by ChemODun.

It has the ability to add spaces to a text, so that you can display your information in columns (as seen in the screenshots).
Writing a script like that, is not easy. So all (?) scripters, who want columns in their menus, use this library - script.
I guess the different filesizes are the result of a different version of the same library - script.

So, if I were you, I'd make a backup of the 'old' scripts and t - files in question, just for reassurance, and then replace them by the scripts/t - files contained in this package.

Then check if both scripts are still working.
If not, you still have you backup. ;)

But I'm sure that nothing will happen!
Greets,
ScRaT
JrK
Posts: 218
Joined: Wed, 20. May 09, 17:01
x3tc

Post by JrK »

Allright thanks! :D
God is in the rain.
draffutt
Posts: 4293
Joined: Wed, 21. Feb 07, 17:46
x4

Post by draffutt »

thanks for the udpated file. working well so far. :D
None of us is as smart as all of us. ~Ken Blanchard

TC player bug fixes
Reunion player bug fixes
User avatar
ScRaT_GER
Posts: 1962
Joined: Tue, 8. Jan 08, 18:19
x3tc

Post by ScRaT_GER »

ScRaT_GER wrote:Do you really like to open the logbook via the CPC? I tried it a bit and I didn't find it handy.

So my ideas are the following:

1. You said you didn't want so many different hotkeys. In this case I'd suggest that you assign the "Open Trade Overview" - hotkey to "x" for example and the "Open Logbook" - hotkey to "hold x". Like that you used only one key.

2. I could integrate Gazz' lib "Hotkeys with double click / multiple functions", so hitting the hotkey once would open the main menu, hitting it twice the logbook menu.

Well, it's up to you. I personally don't have any problems with two hotkeys, I let you decide whether to keep the current system (Logbook + CPC) or one of the above.
Any comment on this one, draffutt?

Greets,
ScRaT
User avatar
ScRaT_GER
Posts: 1962
Joined: Tue, 8. Jan 08, 18:19
x3tc

Post by ScRaT_GER »

Update: Trade Overview (beta1)

The version beta1 (yes, I call it beta now) comes with some new features.
The changelog:

Possibilty to add ships by a their names
- This function is quite handy, when you have a long list of ships and want to add all ships with "Freighter" in their name.

Support for Cycrow's CCM added
- If Cycrow's CCM is installed, the hotkey to open the logbook won't be installed. Instead you can open it via the CCM. If you want you hotkey nevertheless, you can still install it manually via the config menu.

Fixed Gonerships
- It's possible to add GO - ships to the overview now

Sectors and Stations can now be displayed in the logbook
- So now you can see the stations and sectors your traders traded wares in. This is of course only possible for flight after this update.

All ships/stations/wares can be resetted at once
- Self-explanatory...

Possibilty to hide and unhide single objects
- Self-explanatory too, I think.

You can download the new version here or in the start post.

In the next version, I'll try to add a logbook for stations. I didn't include it here, because it requires some bigger changes.

Greets,
ScRaT
draffutt
Posts: 4293
Joined: Wed, 21. Feb 07, 17:46
x4

Post by draffutt »

ScRaT_GER wrote:
ScRaT_GER wrote:Do you really like to open the logbook via the CPC? I tried it a bit and I didn't find it handy.

1. You said you didn't want so many different hotkeys. In this case I'd suggest that you assign the "Open Trade Overview" - hotkey to "x" for example and the "Open Logbook" - hotkey to "hold x". Like that you used only one key.

2. I could integrate Gazz' lib "Hotkeys with double click / multiple functions", so hitting the hotkey once would open the main menu, hitting it twice the logbook menu.
Any comment on this one, draffutt?

Greets,
ScRaT
doh missed that edit. i think it would be better with number #2 :thumb_up:
None of us is as smart as all of us. ~Ken Blanchard

TC player bug fixes
Reunion player bug fixes
User avatar
ScRaT_GER
Posts: 1962
Joined: Tue, 8. Jan 08, 18:19
x3tc

Post by ScRaT_GER »

@draffutt then I'll include that in the next but one version.

Why not in the next version?
Well, first I'll have to stamp some bugs, including a left over debug code.
Additionally it seems that the ships are still using "old" code, so that I'll include an update - routine which reconnects every ships relevant signal to the new code.
Because of this, the stations and sectors are not displayed with old ships.

Greets,
ScRaT

EDIT: I uploaded a little fix, which should, well, fix the problem that objects that where hidden, couldn't be unhided again.
So here it is: Trade Overview beta1 Fix

EDIT2:

Removed debug code, which I forgot in there. :oops:
Trade Overview beta1 Fix 2
draffutt
Posts: 4293
Joined: Wed, 21. Feb 07, 17:46
x4

Post by draffutt »

question about lines 1000 to 1103. are they used in the english version?

made some small corrections to the 8302: 8302-L044.xml

you can do whatever you want with it. :wink:
None of us is as smart as all of us. ~Ken Blanchard

TC player bug fixes
Reunion player bug fixes
User avatar
ScRaT_GER
Posts: 1962
Joined: Tue, 8. Jan 08, 18:19
x3tc

Post by ScRaT_GER »

Oh, quite a lot of typos there. Thanks!

Lines 1000 to 1103 are only for debugging purposes. I didn't translate them, as debugging is usually turned off (at least with the second fix :oops: ).

I'll use this post to make a small announcement:

Over time this script got bigger and bigger (main menu has 1000+ lines). So I decided to rewrite it, because it got unclear, which is also the result of my attempt to combine two scripts (Trade Overview + Logbook).
By doing so, its possibilities were limited unnecessarily and the susceptibility to bugs was increased.

If further bugs occur with the current version, I'll still try to remove them. However I won't add new features to this version, as I'm concentrating on the new, rewritten version instead.

Greets,
ScRaT
zeddius
Posts: 333
Joined: Tue, 29. Nov 05, 21:02
x3tc

Post by zeddius »

Guess i need some help, as i cant figure out how to use this script. I have copied it into the game folder as described, but when i start X3TC i cant find any way to activate it in the ingame menues ( No new commands).

How does this actually work?

And i have changed name to thereshallbewings :)

BTW! is this script CPU intensive?

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