bitmaps/ui/background.jpg is hardcoded

bitmaps/ui/background.jpg is hardcoded

Discuss the source code and development of Spring Engine in general from a technical point of view. Patches go here too.

Moderator: Moderators

Post Reply
User avatar
Forboding Angel
Evolution RTS Developer
Posts: 14673
Joined: 17 Nov 2005, 02:43

bitmaps/ui/background.jpg is hardcoded

Post by Forboding Angel »

And shouldn't be. It's in base content.
User avatar
FLOZi
MC: Legacy & Spring 1944 Developer
Posts: 6240
Joined: 29 Apr 2005, 01:14

Re: bitmaps/ui/background.jpg is hardcoded

Post by FLOZi »

Clarify?

if you mean you can't drop in a bitmaps/ui/background.jpg in your own game archive, think for a second about why this is (protip: this picture is loaded before the filesystem is initialised)
User avatar
Forboding Angel
Evolution RTS Developer
Posts: 14673
Joined: 17 Nov 2005, 02:43

Re: bitmaps/ui/background.jpg is hardcoded

Post by Forboding Angel »

... Wtf do you think I'm posting this thread for?

Remove file from base content, all of a sudden we can use our own (but if you do this locally, you will break sync of course). *GASP* :shock:

Additionally, it could be set to look in game archive first. << makes the most sense.
Tobi
Spring Developer
Posts: 4598
Joined: 01 Jun 2005, 11:36

Re: bitmaps/ui/background.jpg is hardcoded

Post by Tobi »

Forboding Angel wrote:Additionally, it could be set to look in game archive first. << makes the most sense.
No, which game is used is not yet known when this image is needed.
(that is what FLOZi hinted at)

Have you tried creating bitmaps/ui/background.jpg in one of Spring's data directories?

AFAICS that should work, native filesystem still overrides archive content in many places.
User avatar
knorke
Posts: 7971
Joined: 22 Feb 2006, 01:02

Re: bitmaps/ui/background.jpg is hardcoded

Post by knorke »

Have you tried creating bitmaps/ui/background.jpg in one of Spring's data directories?
Image
:shock:
Attachments
custombackground.jpg
(150.46 KiB) Downloaded 2 times
User avatar
zwzsg
Kernel Panic Co-Developer
Posts: 7049
Joined: 16 Nov 2004, 13:08

Re: bitmaps/ui/background.jpg is hardcoded

Post by zwzsg »

Knorke: But is it sync-compatible?

The hardcoded background is quite mod agnostic, it just depicts a tropical beach, there's no commander or any TA units, so I don't mind it that much.
User avatar
knorke
Posts: 7971
Joined: 22 Feb 2006, 01:02

Re: bitmaps/ui/background.jpg is hardcoded

Post by knorke »

zwzsg wrote:Knorke: But is it sync-compatible?
joined some BA game and it worked.
User avatar
Forboding Angel
Evolution RTS Developer
Posts: 14673
Joined: 17 Nov 2005, 02:43

Re: bitmaps/ui/background.jpg is hardcoded

Post by Forboding Angel »

Tobi wrote:
Forboding Angel wrote:Additionally, it could be set to look in game archive first. << makes the most sense.
No, which game is used is not yet known when this image is needed.
(that is what FLOZi hinted at)
I know, it's obvious considering that that is the screen where you tell spring what map and game to load. It was him patronizing me that was irritating.

Anywho...
Tobi wrote:Have you tried creating bitmaps/ui/background.jpg in one of Spring's data directories?

AFAICS that should work, native filesystem still overrides archive content in many places.
That I didn't know. I was under the impression that archive content was at the top of the pyramid. Thanks for the heads up. This way I can include it with the Desura/Buntu installs.
User avatar
FLOZi
MC: Legacy & Spring 1944 Developer
Posts: 6240
Joined: 29 Apr 2005, 01:14

Re: bitmaps/ui/background.jpg is hardcoded

Post by FLOZi »

Except that your 'suggestion' makes no sense unless you were overlooking the obvious.
User avatar
Forboding Angel
Evolution RTS Developer
Posts: 14673
Joined: 17 Nov 2005, 02:43

Re: bitmaps/ui/background.jpg is hardcoded

Post by Forboding Angel »

Makes perfect sense if you can tell spring where to find it beforehand.

However, including it directly solves what I wanted. Basically I wanted to be able to change it without breaking sync.
Post Reply

Return to “Engine”