SpringLobby
Moderators: Moderators, Lobby Developers
Ok I am comming so far
Comandhistory:
svn checkout http://tc.serveftp.net/svn/springlobby/trunk springlobby
cd springlobby/
./autogen.sh
./configure
make
make crashes with error 2. This is the output of a second make run:
I am running Debian64 Testing. wx-widgets 2.6.3 is the newest version in debian.
Any hints where to look?
Comandhistory:
svn checkout http://tc.serveftp.net/svn/springlobby/trunk springlobby
cd springlobby/
./autogen.sh
./configure
make
make crashes with error 2. This is the output of a second make run:
Code: Select all
x@chlue:~/install/games/spring/springlobby$ make
make all-am
make[1]: Entering directory `/home/x/install/games/spring/springlobby'
g++ -DHAVE_CONFIG_H -I. -I/usr/lib/wx/include/gtk2-unicode-release-2.6 -I/usr/include/wx-2.6 -DGTK_NO_CHECK_CASTS -D__WXGTK__ -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D_LARGEFILE_SOURCE=1 -DNO_GCC_PRAGMA -Wall -Wno-strict-aliasing -g -O2 -MT springlobbyapp.o -MD -MP -MF .deps/springlobbyapp.Tpo -c -o springlobbyapp.o `test -f 'src/springlobbyapp.cpp' || echo './'`src/springlobbyapp.cpp
src/springlobbyapp.cpp: In member function ‘void SpringLobbyApp::InitDirs()’:
src/springlobbyapp.cpp:91: warning: ‘wxPathExists’ is deprecated (declared at /usr/include/wx-2.6/wx/filefn.h:472)
src/springlobbyapp.cpp:91: warning: ‘wxPathExists’ is deprecated (declared at /usr/include/wx-2.6/wx/filefn.h:472)
src/springlobbyapp.cpp:92: error: ‘LPATH_SEP’ was not declared in this scope
src/springlobbyapp.cpp:93: warning: ‘wxPathExists’ is deprecated (declared at /usr/include/wx-2.6/wx/filefn.h:472)
src/springlobbyapp.cpp:93: warning: ‘wxPathExists’ is deprecated (declared at /usr/include/wx-2.6/wx/filefn.h:472)
make[1]: *** [springlobbyapp.o] Fehler 1
make[1]: Leaving directory `/home/x/install/games/spring/springlobby'
make: *** [all] Fehler 2
Any hints where to look?
Yes now it compiles flawless.tc- wrote:I think this problem is fixed in latest svn, just run svn update and try again.
The sad thing is, it does not seem to work.
config/connect: work
chat: work
hosting: not found (i assume not implemented)
join: does not work. game starts, but instead of connecting to the target system it starts a local game and switched my name to the name of the person who was hosting.
Maybe
Code: Select all
MyPlayerNum=0;
Additionall the lobby seems not to catch mapchanges of the host.
I am aware, that indexing arrays usually starts with 0, but Player0 was the host while I was Player1 and spring assumed I was host. So I suspect that the number should be 1.
Code: Select all
...
MyPlayerNum=0;
NumPlayers=2;
NumTeams=2;
NumAllyTeams=2;
[PLAYER0]
{
name=host;
Spectator=0;
team=0;
}
[PLAYER1]
{
name=chlue;
Spectator=0;
team=1;
}
...
It's not that simple. Whether 0 is the first index for an array is judged case by case. There are some languages where the first index is 1.AF wrote:in computing the first number is zero not one.
array[0] preceeds array[1]
In this case it is a matter of spring script.txt protocol definition to tell which it should be, there is no "default" value.
I speak from a computer engineering point of view rather than a computer language point of view.
So in which case the first value is always zero, regardless of the language. It just happens that some languages decrement these things when compiled for the sake of appearing more user friendly and natural to the programmer.
So in which case the first value is always zero, regardless of the language. It just happens that some languages decrement these things when compiled for the sake of appearing more user friendly and natural to the programmer.
- clericvash
- Posts: 1394
- Joined: 05 Oct 2004, 01:05
And then messing it up for everyone else.AF wrote:I speak from a computer engineering point of view rather than a computer language point of view.
So in which case the first value is always zero, regardless of the language. It just happens that some languages decrement these things when compiled for the sake of appearing more user friendly and natural to the programmer.
I would prefer to always have 0 as the start.
I mean -1, 0, 1
You wouldn't just miss out 0 would you.
- BrainDamage
- Lobby Developer
- Posts: 1164
- Joined: 25 Sep 2006, 13:56
anticipating i don't know german, what i read there is "cannot load shared object libpython2.5.so.1.0"Rudirogdt wrote:-- LoadUnitSyncLib( ): : Loading from: /usr/local/share/games/spring/unitsync.so
!! LoadUnitSyncLib( ): : Couldn't load the unitsync library
!! LoadUnitSyncLib( ): : libpython2.5.so.1.0: Kann die Shared-Object-Datei nicht ├â┬Âffnen: Datei oder Verzeichnis nicht gefunden
do you have the python 2.5 libs installed?
apparently not *embarrassment*. totally didnt see that ^^Brain Damage wrote:anticipating i don't know german, what i read there is "cannot load shared object libpython2.5.so.1.0"Rudirogdt wrote:-- LoadUnitSyncLib( ): : Loading from: /usr/local/share/games/spring/unitsync.so
!! LoadUnitSyncLib( ): : Couldn't load the unitsync library
!! LoadUnitSyncLib( ): : libpython2.5.so.1.0: Kann die Shared-Object-Datei nicht ├â┬Âffnen: Datei oder Verzeichnis nicht gefunden
do you have the python 2.5 libs installed?
will take a while till gentoo has it in the portage tree...
A new windows binary has been released. As usual I would like to point out that it's a very early test realease There is probably still some bugs in the start scripts but I think most bugs have been sorted out by now.
It can be found here:
http://tc.serveftp.net/trac/wiki/Install
It can be found here:
http://tc.serveftp.net/trac/wiki/Install
The lobby crashes if you try to join a game and you do not have the map. Here is a patch that fixes that:
http://ce.et.tudelft.nl/~vladms/spring/ ... tch0.patch
General question. As you have a trac would you want to post patches there ? :D (I would assume yes, but right now I am a bit lazy so I just ask)
http://ce.et.tudelft.nl/~vladms/spring/ ... tch0.patch
General question. As you have a trac would you want to post patches there ? :D (I would assume yes, but right now I am a bit lazy so I just ask)