Formatting message log text

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
s9ilent
Posts: 2033
Joined: Wed, 29. Jun 05, 01:45
x4

Post by s9ilent »

Just to add to the confusion, the [green][/green] Tags do not work on Custom menu's.
From looking at LV's scripts, you have to use the \033Y%s\003X.
Although... the default Heading text is white with a black shadow, and using the tags makes the shadow that colour too



And you can use sprintf to format [xxx]%s[/xx] tags by just typing them in (to the sprintf command)
But, \033X's have to be loaded from a text file
Profit_EG
Posts: 11
Joined: Fri, 4. Aug 06, 19:29
x3tc

Post by Profit_EG »

The same problem with coloured names of sectors... BLANK SCREEN with mission messages. How to solve?
User avatar
Litcube
Posts: 4254
Joined: Fri, 20. Oct 06, 19:02
xr

Post by Litcube »

Dude, did you just ask a question that this thread totally solved about a hundred years ago?

A few posts up, someone posted a great formating library script. Make every logbook message fire through that and you'll be fine.
corbinbird
Posts: 49
Joined: Tue, 2. May 06, 18:58
x3tc

Link broken

Post by corbinbird »

That library link from UniTrader seems to be defunct ...

Anyone else have it?

corbinbird
User avatar
Sam L.R. Griffiths
Posts: 10522
Joined: Fri, 12. Mar 04, 19:47
x4

Post by Sam L.R. Griffiths »

Ok, I am trying to get coloured text in a subtitle but the darned game is refusing to play ball... any thoughts?

I have tried following both conventions.
Lenna (aka [SRK] The_Rabbit)

"Understanding is a three edged sword... your side, their side... and the Truth!" - J.J. Sheriden, Babylon 5 S4E6 T28:55

"May god stand between you and harm in all the dark places you must walk." - Ancient Egyption Proverb

"When eating an elephant take one bite at a time" - Creighton Abrams
User avatar
Litcube
Posts: 4254
Joined: Fri, 20. Oct 06, 19:02
xr

Post by Litcube »

Interesting.

I can get it to work, but subtitles have to be strings or they won't show; though, you probably know that if you've formatted with colours.


Posting code would help.
User avatar
Sam L.R. Griffiths
Posts: 10522
Joined: Fri, 12. Mar 04, 19:47
x4

Post by Sam L.R. Griffiths »

I will be posting v0.1 of the script (without colours) shortly, you will be able to see for yourself then. But it aint exactly rocket science.

EDIT: Now posted here.
Lenna (aka [SRK] The_Rabbit)

"Understanding is a three edged sword... your side, their side... and the Truth!" - J.J. Sheriden, Babylon 5 S4E6 T28:55

"May god stand between you and harm in all the dark places you must walk." - Ancient Egyption Proverb

"When eating an elephant take one bite at a time" - Creighton Abrams
Misunderstood Wookie
Posts: 377
Joined: Mon, 15. Mar 04, 08:07
x4

Post by Misunderstood Wookie »

Sweet guide.
*modified*
*X3 LiteCube User*
MOD GemFX Real Space Shaders
MOD Variety and Rebalance Overhaul Icon Pack
I lost my Hans and should not be flying Solo.
Image

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