| Mirage Source http://www.miragesource.net/forums/ |
|
| DD.RestoreAllSurfaces http://www.miragesource.net/forums/viewtopic.php?f=201&t=2298 |
Page 1 of 2 |
| Author: | William [ Wed Jul 18, 2007 10:56 pm ] |
| Post subject: | DD.RestoreAllSurfaces |
You get a error when entering counter strike while having a ms game open. This line: Code: DD.RestoreAllSurfaces How can that be fixed? |
|
| Author: | Lea [ Thu Jul 19, 2007 4:41 am ] |
| Post subject: | Re: DD.RestoreAllSurfaces |
Close the game first? |
|
| Author: | Dragoons Master [ Thu Jul 19, 2007 6:10 am ] |
| Post subject: | Re: DD.RestoreAllSurfaces |
In Vanilla MSE, this is done like this: Code: ' Check if we need to restore surfaces If NeedToRestoreSurfaces Then DD.RestoreAllSurfaces Call InitSurfaces End If In my game, I load the Surfaces again before I do the Restore, I'm not sure why I do this, I did this a long ago and there is no commentary at this part of the code of my game... Here it is: Code: If NeedToRestoreSurfaces Then Call AddText("Espere um momento...", Red) Call InitSurfaces(True) DD.RestoreAllSurfaces Call AddText("Pronto.", White) End If Ignore the two AddText()... This parameter True is a thing I did just so if it is true no window will be show when calling InitSurfaces, since there is needed a few when the game really starts. I'm not sure if this can help you out with exactly this problem but maybe it will. Good luck! BTW: AVATAR RLZ! |
|
| Author: | Robin [ Thu Jul 19, 2007 10:06 am ] |
| Post subject: | Re: DD.RestoreAllSurfaces |
Didn't Verrigan post a fix for this... how it messes up if your resolution changes and the such? |
|
| Author: | William [ Thu Jul 19, 2007 11:38 am ] |
| Post subject: | Re: DD.RestoreAllSurfaces |
Robin wrote: Didn't Verrigan post a fix for this... how it messes up if your resolution changes and the such? He told me he did but he didnt know were it was. Would just feel good if this bug could get out of my source. |
|
| Author: | Matt [ Thu Jul 19, 2007 3:37 pm ] |
| Post subject: | Re: DD.RestoreAllSurfaces |
Open your game, login. Wait for your screensaver to start. Cancel the screensaver, look at your game. No error, but no blitting either. O_o |
|
| Author: | Robin [ Thu Jul 19, 2007 3:50 pm ] |
| Post subject: | Re: DD.RestoreAllSurfaces |
Sure you don't have a local on error resume next? |
|
| Author: | Matt [ Thu Jul 19, 2007 3:54 pm ] |
| Post subject: | Re: DD.RestoreAllSurfaces |
Robin wrote: Sure you don't have a local on error resume next? Me? No.. Not that I know of. |
|
| Author: | Dragoons Master [ Thu Jul 19, 2007 4:55 pm ] |
| Post subject: | Re: DD.RestoreAllSurfaces |
Ctrl+F it! |
|
| Author: | Robin [ Thu Jul 19, 2007 4:59 pm ] |
| Post subject: | Re: DD.RestoreAllSurfaces |
I was just wondering if that's why an error popped up. I'll look into it once I've finished this commission. |
|
| Author: | Verrigan [ Sat Jul 21, 2007 12:25 am ] |
| Post subject: | Re: DD.RestoreAllSurfaces |
I put a fix for this in KoC... (after posting the bug fix, that somehow never migrated over here...) Anyways.. It just checked for errors.. If there was an error, it popped up a status message saying something like "Please Wait.. Restoring Surfaces.." which would get displayed while the screen saver was open, and then again when the screen saver was closed. Anyways.. Maybe I'll rewrite the bug-fix one of these days.. I have to work this weekend, so probably not for at least a week. |
|
| Author: | William [ Sat Jul 21, 2007 1:02 am ] |
| Post subject: | Re: DD.RestoreAllSurfaces |
Verrigan wrote: I put a fix for this in KoC... (after posting the bug fix, that somehow never migrated over here...) Anyways.. It just checked for errors.. If there was an error, it popped up a status message saying something like "Please Wait.. Restoring Surfaces.." which would get displayed while the screen saver was open, and then again when the screen saver was closed. Anyways.. Maybe I'll rewrite the bug-fix one of these days.. I have to work this weekend, so probably not for at least a week. No hurry, I dont need it for another month at least or so. And its not that big of a bug, just dont like the idea of knowing of a bug and not being able to do something about it. |
|
| Page 1 of 2 | All times are UTC |
| Powered by phpBB® Forum Software © phpBB Group https://www.phpbb.com/ |
|