bug-gnubg
[Top][All Lists]
Advanced

[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 :

1.
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
ng.
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"
for
details.
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) ?!

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

3.
Im compiling with python support, hence I include in the distrib
python24.dll.
The problem is that gnubg.py imports some python modules (eg os.path) that
are
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
the
gnubg root dir.


MaX.






reply via email to

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