[NEED INFO] Empty configfile one Windows: game won't start

Our old place to report Bugs, it's not used anymore. To report bugs, please read this topic.
User avatar
DevUrandom
Regular
Regular
Posts: 1690
Joined: 31 Jul 2006, 23:14

Re: game won't start

Post by DevUrandom »

Jup, that was expected... Warzone should be compiled completely by now. That you can't create an installer shouldn't hurt much...

PS: I have one question: Were you able to compile the Lex/YaCC files correctly with Bison 2.1??? Because when I last tried I wasn't able and had to use 1.8 instead, but in the compilation guide apparently 2.1 is suggested...

PPS: Links in the compilation guide updated (devpkg and TortoiseSVN).
Last edited by DevUrandom on 08 Jan 2007, 23:45, edited 1 time in total.
Sento
Trained
Trained
Posts: 50
Joined: 31 Dec 2006, 20:39

Re: game won't start

Post by Sento »

wz:         Warzone 2100 - Version TRUNK - Built Jan  8 2007
wz:         Compiled against PhysFS version: 1.0.1
wz:         Linked against PhysFS version: 1.0.1
wz:         Write dir: D:\Dokumente und Einstellungen\andreas\Eigene Dateien\Warzone 2100\
wz:         Base dir: E:\cvs\warzone\test_build\
wz:         Loading the registry from config
wz:         Parsing the registry from config
error:      Registry file config is empty!
wz:         Saving the registry to config
wz:         We are to write (config) of size 0
wz:         Successfully wrote to D:\Dokumente und Einstellungen\andreas\Eigene Dateien\Warzone 2100\\config with 0 bytes
wz:         registerSearchPath: Registering D:\Dokumente und Einstellungen\andreas\Eigene Dateien\Warzone 2100\ at priority 2
wz:         rebuildSearchPath: Cleaning up
wz:         rebuildSearchPath: Switching to multiplay mods
wz:         registerSearchPath: Registering E:\cvs\warzone/data/ at priority 3
wz:         rebuildSearchPath: Cleaning up
wz:         rebuildSearchPath: Switching to multiplay mods
wz:         Search paths:
wz:             [D:\Dokumente und Einstellungen\andreas\Eigene Dateien\Warzone 2100\]
wz:             [E:\cvs\warzone/data/\mp]
wz:             [E:\cvs\warzone/data/\mp.wz]
wz:             [E:\cvs\warzone/data/\]
wz:             [E:\cvs\warzone/data/\warzone.wz]
wz:         gamedesc.lev found at E:\cvs\warzone/data/\
main:       reinitializing
net:        NETinit
never:      NETPLAY: Init called, MORNIN'

lol okay where can i find the programmpart that write the registry to config

----
DevUrandom wrote:
PS: I have one question: Were you able to compile the Lex/YaCC files correctly with Bison 2.1??? Because when I last tried I wasn't able and had to use 1.8 instead, but in the compilation guide apparently 2.1 is suggested...
it compiled all files correctly with bison 2.1 there were only some deprecated messages and warnings
Last edited by DevUrandom on 09 Jan 2007, 00:18, edited 1 time in total.
User avatar
DevUrandom
Regular
Regular
Posts: 1690
Joined: 31 Jul 2006, 23:14

Re: game won't start

Post by DevUrandom »

Start by having a look into src/configuration.c : saveConfig()
You will end up in lib/framework/configfile.c : registry_save()
Sento
Trained
Trained
Posts: 50
Joined: 31 Dec 2006, 20:39

Re: game won't start

Post by Sento »

i took a look on it but im not really sure where the problem is.
Did you ever try to move the config and let the programm recreate it?
I ask myself why the problem is only on my pc and not on others.
Maybe because of the amd prozessor or because of win xp? Hard to imagine...
User avatar
DevUrandom
Regular
Regular
Posts: 1690
Joined: 31 Jul 2006, 23:14

Re: game won't start

Post by DevUrandom »

I'll have a look later. Probably need to switch over to WinXP...
tuant20
Trained
Trained
Posts: 51
Joined: 08 Jan 2007, 09:03

Re: game won't start

Post by tuant20 »

To Sento: here is the compiled file 2.0.5 with the original dev package and the MSVC's project configuration file in case you want to compile it yourself (you have to change the path to the include and lib dir according to your build environment)
Following the instruction to setup the data in http://wz2100.net/wiki/user:the_.wz_files
Try it and tell me if there is any doubt.
Good luck
Attachments

[The extension has been deactivated and can no longer be displayed.]

warzone-devpkg.7z
(847.22 KiB) Downloaded 436 times

[The extension has been deactivated and can no longer be displayed.]

Sento
Trained
Trained
Posts: 50
Joined: 31 Dec 2006, 20:39

Re: game won't start

Post by Sento »

thankyou tuant20, i tried it now but the problem is the same, i give up seems like without a backtrace theres no chance for me to get it running :(
@ the config i wrote a conf file myself just to chaeck what he do:
wz:        Loading the registry from config
wz:        Parsing the registry from config
wz:        Saving the registry to config
wz:        We are to write (config) as (config) of size 208
wz:        Successfully wrote to D:\Dokumente und Einstellungen\andreas\Eigene Dateien\Warzone 2100\\config with 208 bytes

maybe normally the config is written later in the program and the fils are only reading it at this time so that there is no problem
tuant20
Trained
Trained
Posts: 51
Joined: 08 Jan 2007, 09:03

Re: game won't start

Post by tuant20 »

You may try this approach: uninstall everything related to wz, clean settings and configuration things, reinstall the binary installer which can download at http://download.gna.org/warzone/release ... -2.0.5.exe
In this case, if the problem exists, then you can make sure the problem isn't in the warzone's source. Otherwise, we can try more.
Sento
Trained
Trained
Posts: 50
Joined: 31 Dec 2006, 20:39

Re: game won't start

Post by Sento »

@ tuant20
the thread is now 4 pages long i uninstalled and installed it sure 3-4 times now in different compiles, the rc1 and the normal, two selfcompiled ( mine gcc and yours) and so on ;)

@ linux
i  intensed my concentration on linux, and found out that i used the mesa driver not the flgrx and so software rendering ;) It was just updating the xorg.conf.

please update the wiki a little there stands only "update drivers", but no manual how to do it or how to find out if its nessecery.

the manual could look like (if i made a mistake iike this command is only useful when using a radeon please correct it):

Use the command:
glxinfo
if the third line looks like  "direct rendering: no" a installation of new drivers is most likely necessary

and then give links to driver manuals (maybe in a new wiki page)
as exempel the best manual i found:
ati-drivers Ubunutu German http://wiki.ubuntuusers.de/ATI-Grafikkarten/fglrx
and then ask peaople that find a good manual for theyr system to add the link, so it will be a link collection after and after, and very useful for linux noobs ;)
User avatar
DevUrandom
Regular
Regular
Posts: 1690
Joined: 31 Jul 2006, 23:14

Re: game won't start

Post by DevUrandom »

Yup, the graphics-drivers-on-linux check and link to tutorial seems a good. Just don't have time to write it. But as you have a forums account, Sento, you could actually do it yourself. :)
Sento
Trained
Trained
Posts: 50
Joined: 31 Dec 2006, 20:39

Re: game won't start

Post by Sento »

okay i will do it and you can take a look on it. My english is not the best so it may do mistakes

---

done
http://wz2100.net/wiki/faq
Last edited by DevUrandom on 12 Jan 2007, 01:11, edited 1 time in total.
User avatar
DevUrandom
Regular
Regular
Posts: 1690
Joined: 31 Jul 2006, 23:14

Re: game won't start

Post by DevUrandom »

Thanks!
I edited it a bit...
(http://wz2100.net/wiki/linux_drivers)
Troman
Trained
Trained
Posts: 424
Joined: 12 Aug 2006, 15:40
Contact:

Re: game won't start

Post by Troman »

DevUrandom wrote: PS: I have one question: Were you able to compile the Lex/YaCC files correctly with Bison 2.1??? Because when I last tried I wasn't able and had to use 1.8 instead, but in the compilation guide apparently 2.1 is suggested...
If we are talking about windows compilation guide it's not 2.1 that is suggested, it is 1.875-4.
2.1 will not work, looks like it is a bit buggy.
Sign Up for Beta-Testing:
?topic=1617.0
Sento
Trained
Trained
Posts: 50
Joined: 31 Dec 2006, 20:39

Re: game won't start

Post by Sento »

i used the Flex 2.5 and Bison 2.1 from the wiki ( http://wz2100.net/wiki/user:windows_compile_guide ) together with mingw and i got it compiled. But i cannot say if the programm works.
User avatar
DevUrandom
Regular
Regular
Posts: 1690
Joined: 31 Jul 2006, 23:14

Re: game won't start

Post by DevUrandom »

That's weird... When I tried with 2.1, it did certainly not create compileable C code. And Troman probably noticed the same...
Could it be that the problem is that 2.1 doesn't create code which compiles with MSVC, but does fine with GCC?
Because I did only test it with MSVC...
Locked