ID:748996
 
Keywords: map
Resolved
After pressing Ctrl+Alt+Del or locking the system, the map would no longer update when in hardware rendering mode.
BYOND Version:494
Operating System:Windows 7 Pro 64-bit
Web Browser:Firefox 12.0
Applies to:Dream Seeker
Status: Resolved (496)

This issue has been resolved.
Descriptive Problem Summary:
Similar to this report, I am experiencing the map control in any game no longer updating after I lock my computer. It seems to me the 'device is lost,' and needs to be recreated. (This is a common graphics programming bug.)

Numbered Steps to Reproduce Problem:
  1. Join any BYOND game that has a map control.
  2. Lock your computer. (Can be done with WindowsKey + L.)
  3. Wait a second or two.
  4. Unlock your computer by typing in the correct password.
  5. The map screen will be black and will no longer update unless the server is rebooted or you reconnect.


Code Snippet (if applicable) to Reproduce Problem:
N/A

Expected Results:
The map stays visible and keeps updating.

Actual Results:
The map becomes black and then no longer updates the screen on its draw region. (If that region of the screen is changed, such as by changing windows, it will not be overwritten.)

Does the problem occur:
Every time? Or how often? Always.
In other games? All games I've tried, including NEStalgia.
In other user accounts? Most likely.
On other computers? Have not tested.

When does the problem NOT occur?
See below.

Did the problem NOT occur in any earlier versions? If so, what was the last version that worked?
If I use 493.1116, I don't have this problem. I'm seeing this problem in 494.1133.

Workarounds:
None.
Just wanted to note, I can also get this bug by pressing Ctrl+Alt+Delete in Windows 7.
I've also seen strange occurrences with the map freezing. In some cases I could still see the output update, but this is not just with 494. I've seen this bug in older version of BYOND as well, but I've never been able to provide anyone with an example. So I was kind of hoping your issue would be the same one I've had.
In response to Darker Legends
No. I only have this problem in 494. What is your operating system?

Also, it's not like anything else in the game ceases to work. Just the map stops displaying.
I am using Windows 7 Ultimate64bit. I've had this issue on various operating systems though.
I know that there was a change in how the map was drawn. Maybe there is a connection?
494 uses DX9 instead of DX8, so that's probably the cause of the new error. We'll see what we can find.
I hope this doesn't overstep my welcome, but I have handled this problem before in a game I worked in.

Use TestCooperativeLevel to check the state of the device. If it's lost, you then destroy the existing device and wait for it to be reset.
You have to continue processing windows messages while you wait for the device to reset.
Then, you create and reinitialize the device.

I don't know if this helps at all, but if it does, I'll be glad I said something.
Still happening in 495.1136.
Lummox JR resolved issue with message:
After pressing Ctrl+Alt+Del or locking the system, the map would no longer update when in hardware rendering mode.