Hey,
Anyone know how to post messages to the loading screen?
I know how to do custom load screen images, but I'm interested in putting debug strings on the load screen to aid in debugging on the Xbox as the level is loading.
We currently get random localized strings from 'level.comon.tips' on the load screens as the stock maps load.
But, I not finding the 'level.comon.tips' strings referenced in any of the lua code, so it's not obvious to me where to make the change.
Custom text on loading screen?
Moderator: Moderators
- cbadal
- Corporal
- Posts: 155
- Joined: Sun Jan 18, 2015 5:23 pm
- Projects :: SWBF2 XBOX Mod Environment
- xbox live or psn: No gamertag set
- Contact:
- Teancum
- Jedi Admin
- Posts: 11080
- Joined: Wed Sep 07, 2005 11:42 pm
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Location: Indiana
Re: Custom text on loading screen?
The loadscreens are compiled a bit differently. They use some basic config files (see my link below) but they (probably) don't have access to the lua engine. Take a look at load.cfg to see more. It'd be great if you found a way to do something more than just random tips.
viewtopic.php?p=427683#p427683
viewtopic.php?p=427683#p427683
- cbadal
- Corporal
- Posts: 155
- Joined: Sun Jan 18, 2015 5:23 pm
- Projects :: SWBF2 XBOX Mod Environment
- xbox live or psn: No gamertag set
- Contact:
Re: Custom text on loading screen?
Hmm...
I found no tips string ids in the executable, so that does make me feel like lua is involved somewhere.
But I certainly can't prove that yet.
Tonight I'll search through the .lvl files looking for the string ids.
Haven't done it yet, but the following command would reveal the .lvl files with 'level.common.tip' references:
EDIT
Well... unsurprisingly that string does appear in 'load.lvl' it is apparently used in a .cfg file.
Unmunge reveals the following:
Looking through the .exe and .lvl files does not reveal who asks for 'TipsPrefix' though.
But at least it looks like we can place our own random strings on the load screen.
Might have to try popping up another screen during the load process for debugging though.
I found no tips string ids in the executable, so that does make me feel like lua is involved somewhere.
But I certainly can't prove that yet.
Tonight I'll search through the .lvl files looking for the string ids.
Haven't done it yet, but the following command would reveal the .lvl files with 'level.common.tip' references:
Code: Select all
C:\Program Files (x86)\LucasArts\Star Wars Battlefront II\GameData\> findstr /m /i /s level.common.tip *.lvl
EDIT
Well... unsurprisingly that string does appear in 'load.lvl' it is apparently used in a .cfg file.
Unmunge reveals the following:
Hidden/Spoiler:
But at least it looks like we can place our own random strings on the load screen.
Might have to try popping up another screen during the load process for debugging though.
- Teancum
- Jedi Admin
- Posts: 11080
- Joined: Wed Sep 07, 2005 11:42 pm
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Location: Indiana
Re: Custom text on loading screen?
I'm not following to be honest. The tips are generated from the loadscreen config (load.cfg) file. It's in the tool I linked to above:
The game will pull the tips from the core.lvl localization, or map-specific localization if it's a mod map.
Hidden/Spoiler:
- cbadal
- Corporal
- Posts: 155
- Joined: Sun Jan 18, 2015 5:23 pm
- Projects :: SWBF2 XBOX Mod Environment
- xbox live or psn: No gamertag set
- Contact:
Re: Custom text on loading screen?
Yes, I just didn't go through the config file earlier. Just looked through the .req files.
The Goal being write debug info to the screen while a level is loading (Xbox).
I thought I might be able to update the load screen with debug statements, but that idea is not looking good now.
If I couldn't do that, I thought that maybe I could put up another screen over the load screen.
Updating the text on that screen as the 'ScriptInit' and 'ScriptPostLoad' run.
But I'm not finding success on that either.
The Goal being write debug info to the screen while a level is loading (Xbox).
I thought I might be able to update the load screen with debug statements, but that idea is not looking good now.
If I couldn't do that, I thought that maybe I could put up another screen over the load screen.
Updating the text on that screen as the 'ScriptInit' and 'ScriptPostLoad' run.
But I'm not finding success on that either.