[MOD] Show Balance

The place to discuss scripting and game modifications for X Rebirth.

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

User avatar
Litauen
Posts: 193
Joined: Fri, 22. Nov 13, 21:09
xr

[MOD] Show Balance

Post by Litauen »

Shows player's balance always on screen.

I like to know how much money I have and got tired to check it from the menu. Made a small mod to show it at the bottom-right corner of the screen when in space or in station. Balance updates every 5s.

[ external image ]

Version history:
1.04 Placement fix for 3.00beta
1.03 Compatibility fix with Capital Ship Bridge mod
1.02 Fix removing debug error
1.01 Position fix for v2.50
1.00 Initial release

Safe to remove anytime.

-- Known problems --

* Can interfere with game's help/hints in missions/campaign
* Closes debug window when it's open

-- Technical Info --

Used show_help function to show balance. Couldn't find any other proper way to provide info on the screen.
If anybody knows better way to show info on the screen - please let me know. Subtitles are my primary suspect, but can't find how to use them at all (change location, etc).

Tried to use ljd to decompile /ui/addons/helpText and get rid of the background, make better font/size, but ljd cannot decompile most of the newest xpl files.

Nexus: http://www.nexusmods.com/xrebirth/mods/405/?
Last edited by Litauen on Sun, 30. Nov 14, 17:20, edited 2 times in total.
User avatar
Litauen
Posts: 193
Joined: Fri, 22. Nov 13, 21:09
xr

Post by Litauen »

Version update: v1.02 Fix removing debug error
User avatar
Litauen
Posts: 193
Joined: Fri, 22. Nov 13, 21:09
xr

Post by Litauen »

Version update: v1.03 Compatibility fix with Capital Ship Bridge mod
User avatar
Tamina
Moderator (Deutsch)
Moderator (Deutsch)
Posts: 4623
Joined: Sun, 26. Jan 14, 09:56

Post by Tamina »

It doesn't work for me anymore with v3.0Beta

Code: Select all

Und wenn ein Forenbösewicht, was Ungezogenes spricht, dann hol' ich meinen Kaktus und der sticht sticht sticht.
  /l、 
゙(゚、 。 7 
 l、゙ ~ヽ   / 
 じしf_, )ノ 
User avatar
Litauen
Posts: 193
Joined: Fri, 22. Nov 13, 21:09
xr

Post by Litauen »

Version update: v1.04 Placement fix for 3.00beta
jth
Posts: 296
Joined: Tue, 3. Jan 06, 23:31
x3

Post by jth »

Litauen wrote:Version update: v1.04 Placement fix for 3.00beta
Egosoft have just added several more hint positions in 4.00 beta 2

position 14 is now Fight cockpit speedbar

You now need to use position 20

Also you might like to take a look at the new 4.00 text formatting commands

Regards

jth
reanor
Posts: 804
Joined: Thu, 23. Oct 03, 01:39
x4

Post by reanor »

Can we have position fixed please. With 4 beta 7 its like in the middle of the screen.
“The dark and the light, they exist side by side." ... “It is often in the darkest skies that we see the brightest stars."
User avatar
alexalsp
Posts: 1896
Joined: Fri, 18. Jul 14, 05:28
x4

Post by alexalsp »

reanor wrote:Can we have position fixed please. With 4 beta 7 its like in the middle of the screen.
Fix position for 4.00

http://prntscr.com/a1cj4o

https://drive.google.com/file/d/0B-HuPY ... sp=sharing

Steam version of mod must be turned off.

:wink:

snx: jth
User avatar
alexalsp
Posts: 1896
Joined: Fri, 18. Jul 14, 05:28
x4

Post by alexalsp »

Code: Select all

[General] ======================================
[=ERROR=] Invalid SoundID "hash(958769488)" on macro: "interiors_rooms_ar_first_person_hud_glass_macro"! No definition found in SoundLibrary.
[General] ======================================
reanor
Posts: 804
Joined: Thu, 23. Oct 03, 01:39
x4

Post by reanor »

alexalsp wrote:
reanor wrote:Can we have position fixed please. With 4 beta 7 its like in the middle of the screen.
Fix position for 4.00

http://prntscr.com/a1cj4o

https://drive.google.com/file/d/0B-HuPY ... sp=sharing

Steam version of mod must be turned off.

:wink:

snx: jth
What did you change? The parametrs.xls file seems to have same coordiantes x=82, y=96

I want to learn.

NVM, found it. The position of the thing was actually in different xml. Thanks for pointing me in right direction.

Where can I find out the list of all available positions and what is in them?
“The dark and the light, they exist side by side." ... “It is often in the darkest skies that we see the brightest stars."
User avatar
alexalsp
Posts: 1896
Joined: Fri, 18. Jul 14, 05:28
x4

Post by alexalsp »

reanor wrote:
What did you change? The parametrs.xls file seems to have same coordiantes x=82, y=96

I want to learn.

NVM, found it. The position of the thing was actually in different xml. Thanks for pointing me in right direction.

Where can I find out the list of all available positions and what is in them?
md/Litauen_ShowBalance.xml

Code: Select all

       <show_help position="20" duration="4.5s" custom="'%1 Cr'.[$out]" />

Egosoft have just added several more hint positions in 4.00 beta 2

position 14 is now Fight cockpit speedbar

You now need to use position 20

Also you might like to take a look at the new 4.00 text formatting commands

Regards

jth
http://forum.egosoft.com/viewtopic.php? ... 62#4584762

Where are indicated position, I was not looking. Write JTX in PM.
CommanderTM
Posts: 567
Joined: Mon, 20. May 13, 09:18
xr

Post by CommanderTM »

Thank you for the fix alexalsp :)

Why is it not listed as 4.0 compatible mod?
User avatar
alexalsp
Posts: 1896
Joined: Fri, 18. Jul 14, 05:28
x4

Post by alexalsp »

CommanderTM wrote:Thank you for the fix alexalsp :)

Why is it not listed as 4.0 compatible mod?
Probably forgotten. :roll:

Return to “X Rebirth - Scripts and Modding”