[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug-gnubg] Creating Win distrib : random questions

From: Massimiliano . Maini
Subject: [Bug-gnubg] Creating Win distrib : random questions
Date: Mon, 20 Mar 2006 10:13:02 +0100

I'm almost done creating a gnubg Win distrib, just a few problems left :

I've created a setup.exe that works ok on my laptop and on my office PC,
but has a problem on a different laptop : once install is finished, running
gnubg gives :

GNU Backgammon 0.14-mingwCopyright 1999, 2000, 2001, 2002, 2003, 2004 by
Gary Wo
GNU Backgammon is free software, covered by the GNU General Public License
version 2, and you are welcome to change it and/or distribute copies of it
under certain conditions.  Type "show copying" to see the conditions.
There is absolutely no warranty for GNU Backgammon.  Type "show warranty"
gnubg.weights: Invalid argument
WARNING: No neural net weights were found.  GNU Backgammon will create an
initial random network, but this will be unsuitable for use until training
is complete.  Please consult the manual for information about training, or
directions for obtaining a pre-trained network.

That's strange : the gnubg.weights file is there and there's no gnubg.wd
(binary file). Also the error happens in eval.c (line 1012 more or less) :

else {

                PushLocale ( "C" );

            if( !( fReadWeights =
                   !NeuralNetLoad( &nnContact, pfWeights ) &&
                   !NeuralNetLoad( &nnRace, pfWeights ) &&
                   !NeuralNetLoad( &nnCrashed, pfWeights ) &&

                   !NeuralNetLoad( &nnpContact, pfWeights ) &&
                   !NeuralNetLoad( &nnpCrashed, pfWeights ) &&
                   !NeuralNetLoad( &nnpRace, pfWeights )
                   ) )
                perror( szWeights );

                PopLocale ();

            fclose( pfWeights );

Prior to this, the weights file has been correctly opened and its header
(string + version number) has been checked. The perror call is complaining
about an "invalid argument" (and I don't know why), but the real question
is why is it failing in first place (and on a single pc out of 3) ?!

How do I create a gnubg.wd from gnubg.weights ? Can I download it ?

Im compiling with python support, hence I include in the distrib
The problem is that gnubg.py imports some python modules (eg os.path) that
found only if python has been installed on the target pc. Is there a way to
include in the distrib evertying that's needed ?

BTW, the distrib is almost 20Mb since I've included all the needed dlls in
gnubg root dir.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]