(fixed) main_background vanishes during save

This forum is for the Lua scriptable clone of DM/CSB called Dungeon Strikes Back by Sophia. Use DSB to build your own highly customised games.

Moderator: Sophia

Forum rules
Please read the Forum rules and policies before posting.
Post Reply
User avatar
Gambit37
Should eat more pies
Posts: 13714
Joined: Wed May 31, 2000 1:57 pm
Location: Location, Location
Contact:

(fixed) main_background vanishes during save

Post by Gambit37 »

In both v0.69 and the beta of v0.70, the inventory_info.main_background image vanishes when you click on the Save icon. It reappears after saving, or cancelling the save.

I went back and looked at my old stuff that used a background and that was fine (using DSB 0.55).
User avatar
Sophia
Concise and Honest
Posts: 4239
Joined: Thu Sep 12, 2002 9:50 pm
Location: Nowhere in particular
Contact:

Re: (not a bug) main_background vanishes during save

Post by Sophia »

This was an intentional change.
User avatar
Gambit37
Should eat more pies
Posts: 13714
Joined: Wed May 31, 2000 1:57 pm
Location: Location, Location
Contact:

Re: (not a bug) main_background vanishes during save

Post by Gambit37 »

Hmm,ok, but I don't understand that decision? Without a full permanent background, it's not possible to make a fully integrated UI replacement. Is there another way to achieve this? If not, then sadly I will have to junk the last three months work on my project and give up. :cry:
User avatar
Sophia
Concise and Honest
Posts: 4239
Joined: Thu Sep 12, 2002 9:50 pm
Location: Nowhere in particular
Contact:

Re: (not a bug) main_background vanishes during save

Post by Sophia »

If you want the gory details, I can provide them, but the short answer is that a combination of bad design decisions made 12 years ago and DSB being stuck using obsolete graphics technology mean that I can't guarantee your frame rate won't drop horribly if it tries to draw a background while rendering the system UI. A real fix would involve enough re-engineering that it would be a waste of time for something as obsolete as DSB anyway-- I'd be better off just upgrading to a modern graphics API. So, I decided the easiest solution would be to just turn it off.

If it's really a dealbreaker for you, I can add an ignore_framerate_optimizations flag to inventory_info that you can set to true... but then you can't complain if you actually run into that problem down the line. :P
User avatar
Gambit37
Should eat more pies
Posts: 13714
Joined: Wed May 31, 2000 1:57 pm
Location: Location, Location
Contact:

Re: (not a bug) main_background vanishes during save

Post by Gambit37 »

Since I would like others to eventually play my creation, it would seem wrong to ignore the performance issue. Would it be possible to support a single colour in the background, or does that have the same problems?
User avatar
Sophia
Concise and Honest
Posts: 4239
Joined: Thu Sep 12, 2002 9:50 pm
Location: Nowhere in particular
Contact:

Re: (fixed) main_background vanishes during save

Post by Sophia »

Not necessary. I found a better fix anyway.
User avatar
Gambit37
Should eat more pies
Posts: 13714
Joined: Wed May 31, 2000 1:57 pm
Location: Location, Location
Contact:

Re: (fixed) main_background vanishes during save

Post by Gambit37 »

Wow, awesome, that's fantastic thank you! :D
Post Reply