On Fri, 16 Mar 2007 22:03:03 -0400 Giel van Schijndel 
<[EMAIL PROTECTED]> wrote:
>[EMAIL PROTECTED] schreef:
>> On Fri, 16 Mar 2007 19:04:01 -0400 Dennis Schridde 
><[EMAIL PROTECTED]> wrote:
>>   
>>> Am Freitag, 16. März 2007 schrieb [EMAIL PROTECTED]:
>>>     
>>>> I download ubuntu edgy 6.10 to see warzone on its.
>>>> I do compile as COMPILE file say.
>>>> Then do make install.
>>>>
>>>> When game run, I get,
>>>> error:      Registry file config is empty!
>>>> Saved dump file to '/tmp/warzone2100.gdmp'
>>>> Segmentation fault (core dumped)
>>>>       
>>> 1st: Send the dumpfile it speaks about.
>>>     
>> To who?  
>>   
>As an _attachment_ to the mailinglist. Yes I saw your two follow-
>up
>mails with dump in it, having it as an attachment IMO really is
>nicer/easier.

OK, will do that from now on.


>>> 3rd: This bug is supposed to show up only on Windows...
>>>     
>> I never have this bug on window, I now do in linux.
>>   
>Confirmed, I yesterday compiled WZ on edgy 6.10 as well (amd64 so 
>I
>first figured that might be the cause). It only generates the 
>empty
>registry file error on first run (when there is no file, in which 
>case
>it will create an empty one) and when the file is empty. Simply 
>copying
>my windows config file fixes it.
>
>So just to be clear: I never ever could reproduce this on M$Win on
>GNU/Linux however I have more trouble preventing it from occuring.
>>> 4th: Check whether the config file is really emtpy
>>>     
>> I look in ./warzone2100 and config file.  It is empty.
>>   
>>> 5th: Check whether it gets recreated successfully after 
>deleting 
>>> it
>>>     
>> It still empty.
>>   
>Confirmed: It indeed does get created, just empty however.
>> Also in README, it say "Once the game is installed (see INSTALL 
>in 
>> this directory)"
>> There is no INSTALL file ?
>Well, that documentation really is erm, outdated AFAIK.

I thought that was issue, and I did something wrong.  Nice to know 
this bug happens to others. 

In loadConfig() It calls openWarzoneKey(), it always return true.  
Even if error on registry_load() call on line 192 in configfile.c
...
        debug(LOG_WZ, "Parsing the registry from %s", filename);
        if (filesize == 0 || strlen(bptr) == 0) {
                debug(LOG_ERROR, "Registry file %s is empty!", filename);
                return FALSE;
...
In openWarzoneKey(), if registry_load() fails, it should init the 
config file yes?

In linux, is there good debugger like MSVS2005 has? 

--
Click for free info on online masters degrees and make $150K/ year
http://tagline.hushmail.com/fc/CAaCXv1S74uCj4l9AqbTkrBEKboVNVlS/




_______________________________________________
Warzone-dev mailing list
[email protected]
https://mail.gna.org/listinfo/warzone-dev

Reply via email to