.com.unity Forums

.com.unity Forums (http://forum.shrapnelgames.com/index.php)
-   Dominions 2: The Ascension Wars (http://forum.shrapnelgames.com/forumdisplay.php?f=55)
-   -   Game Crash (http://forum.shrapnelgames.com/showthread.php?t=20855)

cydius September 14th, 2004 06:04 PM

Game Crash
 
To start off, Ive been running Dom2 for months with no problems. Last night i hosted my usual once a week game np. today i turned my comp on and cant launch dom2 now..

When i launch the shortcut I get a new window (black) it flickers a little and then closes. ive tried adding the -sw and -dd switches to no avail.I have no clue whats happening. any ideas??

Johan K September 14th, 2004 06:42 PM

Re: Game Crash
 
the -dd switch produces a log file called log.txt. At the end of it you might get a hint of what went wrong.

cydius September 14th, 2004 08:23 PM

Re: Game Crash
 
Thanks Johan
heres a copy of my log file


-------------------------
----- DOMINIONS ---------
-------------------------

dbglevel 2 pc_endian
datapath='.'
savepath='.'
temppath='C:\DOCUME~1\Chris\LOCALS~1\Temp/dom16882'
-- InitGLStuff --
domdata_path = .
tga2rgba32 alphamode 6 tgatype 10 tgaadr182583376 dstadr182775312 tgalen191909
tga2rgba32 alphamode 1 tgatype 3210 tgaadr182583376 dstadr39020440 tgalen2679
tga2rgba32 alphamode 2 tgatype 10 tgaadr182583376 dstadr39020440 tgalen172
tga2rgba32 alphamode 2 tgatype 3210 tgaadr182583568 dstadr182640592 tgalen57002
InitPrint
32
64
96
Reaver file Version 1030
Reaver highestrmod 37 (filemods 38)
Reaver highestrtex 23 (filertex 24)
LoadReaver, time 31
tga2rgba32 alphamode 0 tgatype 10 tgaadr194904216 dstadr195101400 tgalen197164
tga2rgba32 alphamode 0 tgatype 10 tgaadr200146984 dstadr200802344 tgalen612515
tga2rgba32 alphamode 0 tgatype 10 tgaadr200146984 dstadr200736808 tgalen568152
tga2rgba32 alphamode 0 tgatype 10 tgaadr200146984 dstadr200802344 tgalen610297
tga2rgba32 alphamode 0 tgatype 10 tgaadr200146984 dstadr200736808 tgalen585294
tga2rgba32 alphamode 0 tgatype 10 tgaadr194904216 dstadr200146984 tgalen484684
tga2rgba32 alphamode 0 tgatype 10 tgaadr200146984 dstadr200867880 tgalen659601
-- sound_init --
SetGraphicsQuality 10
-- general_init --
Något gick fel!
Failed to create temp directory properly (already existed)
flushopengl
mem ok
DeinitReaverModel 37 23
DeinitPrint


do i need to manually delete the temp directory?

Johan K September 15th, 2004 05:38 AM

Re: Game Crash
 
You might.

Check if this "C:\DOCUME~1\Chris\LOCALS~1\Temp/dom16882" directory exists. If it does (it shouldn't) you can delete it and try again.

PDF September 15th, 2004 06:16 AM

Re: Game Crash
 
Johan, this issue comes regularly : couldn't the game be patched to del the temp dir if it already exists rather than freezing ? Or would this be a platform-compatibility issue ?

Johan K September 15th, 2004 08:32 AM

Re: Game Crash
 
What surprises me is why it get the same name every time. It is supposed to create a dir called dom + a random number. The chance of this being the same as the Last time should be very small. http://forum.shrapnelgames.com/image...s/confused.gif

Graeme Dice September 15th, 2004 10:16 AM

Re: Game Crash
 
It's always dom16882 on my computer as well, so you might want to check the seed value. http://forum.shrapnelgames.com/images/smilies/happy.gif

deccan September 15th, 2004 10:19 AM

Re: Game Crash
 
Just my neophyte suggestion: wouldn't it be better to have it append a timestamp + process id instead of a random number?

reverend September 15th, 2004 10:21 AM

Re: Game Crash
 
dom16882 here as well. Clearly not as random as it should be. http://forum.shrapnelgames.com/images/smilies/wink.gif

Cainehill September 15th, 2004 12:01 PM

Re: Game Crash
 

With random numbers, of course it is possible for the same number to come up in a row, even on different computers.

After all - flip a coin 8 times, there's a one in 64 chance it comes up heads every time. Roll a die 3 times, there's a one in 256 chance that it'll come up a 6 each time.

In an infinite universe, it's not just possible, but a certainty that random numbers will come up the same across _all_ instances on a given day.

On the other paw - mine is dom16822. It's a sign from Dog! http://forum.shrapnelgames.com/images/smilies/wink.gif

Really does seem like it's using the same seed for the RNG, or not setting a seed at all. You should probably use the clock for generating the seed, or use deccan's suggestion of a timestamp and whatnot (on multiple user systems, I've used a combination of a date/timestamp plus a random number, testing for the existence of that already and incrementing the number if need be, just for paranoia's sake.)

PDF September 15th, 2004 12:21 PM

Re: Game Crash
 
Hooo, mine is also dom16822, every time I play, and on 2 different comps with different OSes (one W98SE, one NT).
Looks like the RNG used is in fact a "CNG" - constant number generator ! http://forum.shrapnelgames.com/images/smilies/laugh.gif http://forum.shrapnelgames.com/images/smilies/laugh.gif

Johan K September 15th, 2004 12:39 PM

Re: Game Crash
 
Maybe the clock stands still in Windows? I get different random numbers in Linux. http://forum.shrapnelgames.com/images/smilies/smile.gif Seems like I should take a look at it in Windows too.

Thufir September 15th, 2004 01:19 PM

Re: Game Crash
 
Quote:

Johan K said:
Maybe the clock stands still in Windows? I get different random numbers in Linux. http://forum.shrapnelgames.com/images/smilies/smile.gif Seems like I should take a look at it in Windows too.

That sounds like a good idea. I was doing some tests on magic duel (on a Windows box) and saw some surprising results, so I was beginning to wonder whether I was getting a truly random sample. With an s6 vs s7, I saw the s6 win only 2/20, which conflicts with what we've been told of the formula for magic duel. Here's where I posted the results:
post

I'd really like to know whether loading from saved files resets the seed in a way that'll generate true random samples, so I can know if my testing is valid, or not.

Thufir September 15th, 2004 01:22 PM

Re: Game Crash
 
Quote:

Johan K said:
Maybe the clock stands still in Windows? I get different random numbers in Linux. http://forum.shrapnelgames.com/images/smilies/smile.gif Seems like I should take a look at it in Windows too.

Oh, and btw, this may sound weird, but in the limited tests that I did, it wasn't as if the clock stood still, but rather that it moved in 10 minute chunks. I don't know if that's possible, but maybe if somehow the Last byte of the time value were right shifted, or something like that...

I know, sounds unlikely, but that would be consistent with the way the magic duel was behaving in my tests.


All times are GMT -4. The time now is 01:10 PM.

Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©1999 - 2025, Shrapnel Games, Inc. - All Rights Reserved.