Wintermute Engine Forum

Wintermute Engine => Technical forum => Topic started by: Stucki on August 24, 2007, 11:33:02 AM

Title: Problem in compiled game
Post by: Stucki on August 24, 2007, 11:33:02 AM
Hello again.
I have a problem with the compiled version of our game ..
if i run the game from project manager it runs without any problem.
if i compile the project and run the executable file it runs fine too, except in one scene change it hangs up.
i know there is a log somewhere where these errors are noted.
where can i find this ? or does anybody know what the problem could be ?!?

greets from leipzig
stucki
Title: Re: Problem in compiled game
Post by: odnorf on August 24, 2007, 12:03:45 PM
To generate a log file in a compiled game create a file named "wme.ini" in the game folder and add in it the lines

[Debug]
DebugMode=1
Title: Re: Problem in compiled game
Post by: Stucki on August 24, 2007, 01:59:35 PM
thanks for the quick reply !! i will try this as soon as i am back from leipzig
 
Title: Re: Problem in compiled game
Post by: Mnemonic on August 24, 2007, 03:10:11 PM
Alternatively, ProjectMan in WME 1.8 allows you to generate the wme.ini file automatically when building a testing/beta version of your game (check the project settings window).
Title: Re: Problem in compiled game
Post by: Stucki on August 24, 2007, 05:14:28 PM
cool feature  ... cant wait to try it and see why my compiled game crashes and the uncompiled works ...
thanks for helping

stucki
Title: Re: Problem in compiled game
Post by: Stucki on August 31, 2007, 10:00:13 PM
here is the log to my problem ...

-----------------------------------------------------------------
---------- wme 1.7.093 crash report: 31-08-2007, 14:09 ----------
-----------------------------------------------------------------
wme_D3D9.exe caused a EXCEPTION_ACCESS_VIOLATION in module d3d9.dll at 001B:7310061D, Direct3DCreate9Ex()+130627 byte(s)
EAX=00000001  EBX=00000000  ECX=00000000  EDX=00000000  ESI=003E6CE4
EDI=00000000  EBP=0012FC40  ESP=0012FC30  EIP=7310061D  FLG=00210212
CS=001B   DS=0023  SS=0023  ES=0023   FS=003B  GS=0000
Stack trace:
001B:7310061D (0x0185E5A0 0x00000000 0x003E6CE4 0x00000000) d3d9.dll, Direct3DCreate9Ex()+130627 byte(s)
001B:73100680 (0x00000001 0x07FD68C0 0x01806D20 0x0185E5A0) d3d9.dll, Direct3DCreate9Ex()+130726 byte(s)
001B:7310077D (0x0185E5A0 0x00000000 0x00000000 0x0008C564) d3d9.dll, Direct3DCreate9Ex()+130979 byte(s)
001B:73100852 (0x0185E5A0 0xA3759B4E 0x017D9EE0 0x017B2860) d3d9.dll, Direct3DCreate9Ex()+131192 byte(s)
001B:731007B1 (0x017B2860 0x017B510C 0x0012FD30 0x73129485) d3d9.dll, Direct3DCreate9Ex()+131031 byte(s)
001B:730D510C (0x017B2860 0x00000004 0x00000000 0x00000000) d3d9.dll
001B:730D4F7B (0x017B2864 0x00000004 0x00000000 0x00000000) d3d9.dll
001B:0045FEC2 (0x0B996D98 0x004092D4 0x0B94BEA8 0xA3750913) wme_D3D9.exe, CBGame::IsDirectXBound()+170898 byte(s)
001B:00458FFE (0x01380BC8 0x00000000 0x10AE09F0 0x00000000) wme_D3D9.exe, CBGame::IsDirectXBound()+142542 byte(s)

can you read something out of this .... all i can imagine ... a problem with d3d9.dll ....
greets
stucki

my problem is i must have a compiled demo running on monday ....
Title: Re: Problem in compiled game
Post by: metamorphium on August 31, 2007, 10:54:36 PM
Try running the game in DX8 mode instead to see if it generates the same problem.
Title: Re: Problem in compiled game
Post by: Mnemonic on September 01, 2007, 08:24:51 AM
Is that the same problem you mention above, i.e. it happens in scene transition and only for compiled game? Are there any errors in wme.log? Is it the same problem you uploaded the crash report yesterday? More info please.
Title: Re: Problem in compiled game
Post by: Stucki on September 01, 2007, 09:30:03 AM
Yes its the same problem. and yes its happens in scene transition and so far as i know only in compiled game. But it does not happen every time ...
the crash report is exactly this problem !!
i am trying to generate this problem again and will post crash report

thanks
stucki
Title: Re: Problem in compiled game
Post by: Stucki on September 01, 2007, 09:45:58 AM
so i tried to reproduce the error. and in compiled game without wme.ini the error happens again and i send you the new error report.
but if i activate wme.ini and run the game the error does not happen....
i will try again for some times but could this be and do you have any ideas what it could be ..
thanks
stucki

so i have tried for some times again.
when wme.ini is in the game folder the error is not happening.
when i delete wme.ini or rename it so the engine can not find it the error is happening ..
hope this helps ...

Title: Re: Problem in compiled game
Post by: metamorphium on September 01, 2007, 09:52:57 AM
this could be probably related to incorrect path (are you loading some 3d model in that particular scene?)
Title: Re: Problem in compiled game
Post by: Stucki on September 01, 2007, 10:00:44 AM
no no 3d actors...
Title: Re: Problem in compiled game
Post by: Mnemonic on September 01, 2007, 10:09:41 AM
It crashes in the particle emitter, once the emitter tells DirectX to paint the sprites. No idea why though ??? You could probably work around the bug by stopping the particle emitters in the original scene.
Title: Re: Problem in compiled game
Post by: Stucki on September 01, 2007, 10:12:47 AM
thanks i will see if it changes ...

but do you know why it works with wme.ini and not withou it ??


so tested it now. And it is really the particle funktion ...
but why does is work when wme.ini is in the folder and it does not work when wme.ini is not in the folder ??
so temporary i stoped these particles but i would like to have them back working .... is there a chance you get behind this confusing problem ?

regards
stucki
Title: Re: Problem in compiled game
Post by: Mnemonic on September 02, 2007, 02:29:31 PM
I tried adding some safeguards to the code and made a testing build of wme_d3d9.exe (download (http://dead-code.org/download/wme_test_D3D9.zip)). I'd appreciate if you could test it with the problematic scene change.
Title: Re: Problem in compiled game
Post by: Stucki on September 02, 2007, 07:35:11 PM
i tried it with the temp build and it works without a problem

thanks you are my hero once again !!!

best regards
stucki
Title: Re: Problem in compiled game
Post by: redfox on September 12, 2007, 02:01:24 PM
Quote
It crashes in the particle emitter, once the emitter tells DirectX to paint the sprites. No idea why though  You could probably work around the bug by stopping the particle emitters in the original scene.

I have noticed with my own project that it crashes during some scenes when particle emitters are started, but only when running in compiled mode. The strange thing is that the same particle script/emitter works on other scenes.
Title: Re: Problem in compiled game
Post by: Mnemonic on September 12, 2007, 04:51:17 PM
The problem Stucki reported should be fixed in the latest beta. If it still crashes for you, please send the crash report.