[Mod] TC/AP Colour Coded Freight Menu (Vanilla safe)

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

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

User avatar
cattafett
Posts: 884
Joined: Thu, 30. Aug 07, 00:40
x3tc

[Mod] TC/AP Colour Coded Freight Menu (Vanilla safe)

Post by cattafett »

colour coded freight menus


have you noticed how when you open the freight menu of a ship things are listed in a not to helpful alphabetical order
with different types of wares all mashed in together, i did


before
[ external image ][ external image ]

after
[ external image ][ external image ]

as you can see its much easier to find what you are looking for with the added bonus(i think anyway)
of the things you need to get to fast like drones or laser towers are all at the top

side effects
so far there are two main side effects that i know of
first (and this one i think i can fix) is that some of the wares you drop from your ships drones, mines and the like retain the colour
while others revert back to the standard green
[ external image ]

now this is only a guess
the ones that go back to green have two ID lines in the t file one as a in the ship ware and one as a in use floating in space ware/ship?.
while the ones that stay white either have just one line for both times
or the in use in space line just points to the in ship line and says use that
if its the second one and i can find the right ID i can fix it, if not no biggie
edit:looked into this and as far as i can tell i can't fix this with out makeing your game modified so i won't

the second side effects is that all over the game the text for the ware colour has changed. Mostly this makes no difference
other than it making station menus more colourful but the one place it does make difference is
dropped cargo containers these are also sorted but ware type and that's a good thing which is lucky as there's nothing i can do about it
[ external image ]



please let me know if you have any ideas or if you wish to slag it off


any way download it here

or to have included gazz's Numeric Race Rank Titles then download it here

just extract the file and put it in the t folder of the game you are playing
and then load your game
i should also say this is vanilla safe and won't cause your game to count as modified

important
added is a more personal Ship ID
[ external image ]

but this needs to be edited by you so its personalized
open the t file with notepad and near the top you should see this

Code: Select all

 
<page id="351263" title="Shipclass IDs" descr="0" voice="no">

 <t id="19110">?(player)</t>
 <t id="19119">Y(yaki)</t>
 <t id="19117">E+(Terran - ATF)</t>

</page>
now to set your own player letter replace the ? with the letter of your choice then save
to restore to original letters delete the above lines


will give credit due at another time as i've been looking though the 0001 t file most of last night and this dwarf need to climb off these giants shoulders

feel free to use in any way as long as i get credit and if any one wants to translate it please do so, so i won't have to
Last edited by cattafett on Fri, 1. Mar 13, 03:18, edited 7 times in total.
those UFOs you hear about are just what you tried to explaine to me going over my head
Advanced Complex-Hub you know you need it Catta Fett's D.O.G.S Vanilla safe mod collectionyou don't need them but you want them
Friendship is like peeing on yourself: everyone can see it, but only you get the warm feeling that it brings
User avatar
joelR
Posts: 2008
Joined: Mon, 9. Jul 07, 23:33
x3tc

Post by joelR »

Thanks cattafett. This looks great.
User avatar
cattafett
Posts: 884
Joined: Thu, 30. Aug 07, 00:40
x3tc

Post by cattafett »

joelR
glad you like it

a few things i'd like some help with
when you have a ware(mine/booze/weed) thats illegal for the sector your in or you go to scan a ship in a race sector you don't have a licence for you get (illegal) pop up next to it anyone know where/what the ID for that is
the t files, i know that 44 is english and 49 is german but can someone point me or tell me what the other languages are
those UFOs you hear about are just what you tried to explaine to me going over my head
Advanced Complex-Hub you know you need it Catta Fett's D.O.G.S Vanilla safe mod collectionyou don't need them but you want them
Friendship is like peeing on yourself: everyone can see it, but only you get the warm feeling that it brings
User avatar
cattafett
Posts: 884
Joined: Thu, 30. Aug 07, 00:40
x3tc

Post by cattafett »

just wondering did anyone download this?
as i fixed the odd missile and added a more personal Ship ID
[ external image ]
always bugged me that "Y" now the Yaki can have it
any way if you want it let me know and i'l upload it
those UFOs you hear about are just what you tried to explaine to me going over my head
Advanced Complex-Hub you know you need it Catta Fett's D.O.G.S Vanilla safe mod collectionyou don't need them but you want them
Friendship is like peeing on yourself: everyone can see it, but only you get the warm feeling that it brings
User avatar
joelR
Posts: 2008
Joined: Mon, 9. Jul 07, 23:33
x3tc

Post by joelR »

cattafett wrote:just wondering did anyone download this?
as i fixed the odd missile and added a more personal Ship ID
[ external image ]
always bugged me that "Y" now the Yaki can have it
any way if you want it let me know and i'l upload it
I dropped it into the t folder but it doesnt seem to work. I cant imagine it requires a new game does it?

Also the 0004 t file is also used by the ship killed notification script which is a fairly commonly used script.
User avatar
cattafett
Posts: 884
Joined: Thu, 30. Aug 07, 00:40
x3tc

Post by cattafett »

@joelR
no it should not need a new game and bugger i didn' know that
ok silly question time
1 when you extracted it did it come out as a XML document
2 when you placed it in the t folder did you leave it as 0004.
if yes try changeing it to 0005 or the next highist 000? number
fake patch style
those UFOs you hear about are just what you tried to explaine to me going over my head
Advanced Complex-Hub you know you need it Catta Fett's D.O.G.S Vanilla safe mod collectionyou don't need them but you want them
Friendship is like peeing on yourself: everyone can see it, but only you get the warm feeling that it brings
User avatar
joelR
Posts: 2008
Joined: Mon, 9. Jul 07, 23:33
x3tc

Post by joelR »

cattafett wrote:@joelR
no it should not need a new game and bugger i didn' know that
ok silly question time
1 when you extracted it did it come out as a XML document
2 when you placed it in the t folder did you leave it as 0004.
if yes try changeing it to 0005 or the next highist 000? number
fake patch style
I did that. Nothing works. I must be missing something obvious because it works in your game.

I should also mention that 0004 is also used by XRM.
User avatar
Jack08
Posts: 2993
Joined: Sun, 25. Dec 05, 10:42
x3tc

Post by Jack08 »

you cant just arbitrarily change a text files ID's name, the game will only load 1-4 by default(and a couple of others), anything higher has to be loaded by script, you need a setup script that calls load text: number

so for a vanilla game it will work fine, but for a mod that edits these files, you need a different file number and a set-up script
[ external image ]
"One sure mark of a fool is to dismiss anything that falls outside his experience as being impossible."
―Farengar Secret-Fire
User avatar
joelR
Posts: 2008
Joined: Mon, 9. Jul 07, 23:33
x3tc

Post by joelR »

Jack08 wrote:you cant just arbitrarily change a text files ID's name, the game will only load 1-4 by default(and a couple of others), anything higher has to be loaded by script, you need a setup script that calls load text: number

so for a vanilla game it will work fine, but for a mod that edits these files, you need a different file number and a set-up script
That explains why its not working. Thanks Jack08.
User avatar
Jack08
Posts: 2993
Joined: Sun, 25. Dec 05, 10:42
x3tc

Post by Jack08 »

Actually, you could try renaming the file from 0004.xml to 0004-L044.xml; it may or may not help.
[ external image ]
"One sure mark of a fool is to dismiss anything that falls outside his experience as being impossible."
―Farengar Secret-Fire
User avatar
joelR
Posts: 2008
Joined: Mon, 9. Jul 07, 23:33
x3tc

Post by joelR »

Jack08 wrote:Actually, you could try renaming the file from 0004.xml to 0004-L044.xml; it may or may not help.
Tried that as well. No luck.
User avatar
cattafett
Posts: 884
Joined: Thu, 30. Aug 07, 00:40
x3tc

Post by cattafett »

just a thought but when i first started this it was made from gazz's numbered ranks t flie and it was named 0003
the reason I changed it to 0004 was cos i found a 0003 already in the game, if memory serves all it had on it was the text for the uplink
two things to try
1 open my 0004 with notepad and copy everything from below the line
<language id="44">
to the line above
</language>

and paste it into the 0004 you already have at the

2 rename my 0004 to 0003
seems to work in my game with out messing with the uplink text

edit: after a quick search the t/0003 only seems to be in AP and even so naming my file 0003 and placing a copy in the ap t folder does not affect the up link, option is still there and after clicking it the blar blar about where to find what you upload is fine
those UFOs you hear about are just what you tried to explaine to me going over my head
Advanced Complex-Hub you know you need it Catta Fett's D.O.G.S Vanilla safe mod collectionyou don't need them but you want them
Friendship is like peeing on yourself: everyone can see it, but only you get the warm feeling that it brings
User avatar
DrBullwinkle
Posts: 5715
Joined: Sat, 17. Dec 11, 01:44
x3tc

Post by DrBullwinkle »

cattafett wrote:just wondering did anyone download this?
as i fixed the odd missile and added a more personal Ship ID
I don't see any change... your "new" file is identical to the old one.

In the feedback department, I *love* the way this sorts the exchange-freight menu! It works the way that the game should have worked from the beginning. The colors are a bit ugly, but that is not your fault. :)

I also love the link to the Ringless Gate mod (in your signature). Very nice.

And I don't know what people do without the Advanced Complex Hub. :)

All three are worthy improvements to the game. Thanks for posting this.
User avatar
cattafett
Posts: 884
Joined: Thu, 30. Aug 07, 00:40
x3tc

Post by cattafett »

DrBullwinkle wrote:I don't see any change... your "new" file is identical to the old one.
probleyl because i haven't uploaded the new one yet
i do my internet on a phone and to upload stuff i either have to go to internet cafe or my sisters(half an hour walk plus the nephew)
new version will be up by this time tomorrow
those UFOs you hear about are just what you tried to explaine to me going over my head
Advanced Complex-Hub you know you need it Catta Fett's D.O.G.S Vanilla safe mod collectionyou don't need them but you want them
Friendship is like peeing on yourself: everyone can see it, but only you get the warm feeling that it brings
User avatar
DrBullwinkle
Posts: 5715
Joined: Sat, 17. Dec 11, 01:44
x3tc

Post by DrBullwinkle »

cattafett wrote: i do my internet on a phone
The .7z file that you post is smaller than the text on this page. In other words, you can upload the file if you can read the forum. :)

But, whenever... no rush.
User avatar
cattafett
Posts: 884
Joined: Thu, 30. Aug 07, 00:40
x3tc

Post by cattafett »

DrBullwinkle wrote:
cattafett wrote: i do my internet on a phone
The .7z file that you post is smaller than the text on this page. In other words, you can upload the file if you can read the forum. :)

But, whenever... no rush.
but the wire to connect my phone to my computer fell down the back of a set of draws

any way new version is up on first post
enjoy and let us know what you think
those UFOs you hear about are just what you tried to explaine to me going over my head
Advanced Complex-Hub you know you need it Catta Fett's D.O.G.S Vanilla safe mod collectionyou don't need them but you want them
Friendship is like peeing on yourself: everyone can see it, but only you get the warm feeling that it brings
User avatar
DrBullwinkle
Posts: 5715
Joined: Sat, 17. Dec 11, 01:44
x3tc

Post by DrBullwinkle »

As much as I like what you have done, cattafett, I also now remember why I have not been using this. :)

1) The Script Editor saves the colors in a script file, along with the ware reference.

2) Exscriptor converts the escaped characters to their hex equivalents when loading the file, which causes Exscriptor to not load the file.

The result is that the colors cannot be used with both the Script Editor and Exscriptor. It appears that one editor or the other is OK, but not both.

I reported this as a minor bug on the Exscriptor thread, but Whimsy seems busy with real life, so I don't know when (or if) it will be addressed.

So I like what this does, but I think that it may not be ideal for developers. :(
User avatar
Gazz
Posts: 13244
Joined: Fri, 13. Jan 06, 16:39
x4

Re: [Mod] TC/AP Colour Coded Freight Menu (Vanilla safe)

Post by Gazz »

cattafett wrote:the ones that go back to green have two ID lines in the t file one as a in the ship ware and one as a in use floating in space ware/ship?
Drones, mines, satellites, and lasertowers are ships when dumped into space, not ware containers.
My complete script download page. . . . . . I AM THE LAW!
There is no sense crying over every mistake. You just keep on trying till you run out of cake.
User avatar
cattafett
Posts: 884
Joined: Thu, 30. Aug 07, 00:40
x3tc

Re: [Mod] TC/AP Colour Coded Freight Menu (Vanilla safe)

Post by cattafett »

DrBullwinkle wrote:As much as I like what you have done, cattafett, I also now remember why I have not been using this. :)

1) The Script Editor saves the colors in a script file, along with the ware reference.

2) Exscriptor converts the escaped characters to their hex equivalents when loading the file, which causes Exscriptor to not load the file.

The result is that the colors cannot be used with both the Script Editor and Exscriptor. It appears that one editor or the other is OK, but not both.

:(
sorry for the late reply as it took me awhlie to work out what you mean
guess you mean something like this
taken from a CAG report

with out Coloured Tfile

Code: Select all

Ware list type: Trade list
Ware list: Argnu Beef, Energy Cells, Fighter Drone, Massom Powder, Meatsteak Cahoonas, Mosquito Missile, Ore, Plankton, Scruffin Fruits, Silicon Wafers
with Coloured Tfile

Code: Select all

Ware list type: Trade list
Ware list: AFighter DroneX, CEnergy Cells X, OMosquito MissileX, VOreX, VSilicon WafersX, WMassom PowderX, WMeatsteak CahoonasX, YArgnu BeefX, YPlanktonX, YScruffin FruitsX
all i can say is that my tfile can be added or removed with no problems to the game. but scripts wrote with the tfile added will still have the extra characters when its removed but if you insert or delete an empty line and resave it, it should be ok but thats exchanging one hassle for another
Gazz wrote:
cattafett wrote:the ones that go back to green have two ID lines in the t file one as a in the ship ware and one as a in use floating in space ware/ship?
Drones, mines, satellites, and lasertowers are ships when dumped into space, not ware containers.
while in me head i know the mine/satellite i just droped is a ship (to the game) in my heart and and joystick they are mines and satellites :wink:
those UFOs you hear about are just what you tried to explaine to me going over my head
Advanced Complex-Hub you know you need it Catta Fett's D.O.G.S Vanilla safe mod collectionyou don't need them but you want them
Friendship is like peeing on yourself: everyone can see it, but only you get the warm feeling that it brings
User avatar
Jack08
Posts: 2993
Joined: Sun, 25. Dec 05, 10:42
x3tc

Post by Jack08 »

you can manually open up the script file and delete everything in between the <sourcetext></sourcetext> blocks, Exscripter and the game will still read it ( its only there so the double clicking it will show the script if you have the xls in the same directory )
[ external image ]
"One sure mark of a fool is to dismiss anything that falls outside his experience as being impossible."
―Farengar Secret-Fire

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