Page 15 of 22

Posted: 16 Aug 2007, 21:54
by YokoZar
Hooray a segfault:

Open springlobby, give a wrong password. Fail to login. Click connect, enter correct password and try to connect.

Posted: 16 Aug 2007, 21:58
by YokoZar
Also the add bot button just pops up an add bot dialog with no AIs to select from in the pull down list, then the program locks up. I'm using Linux and the latest tarball (0.0.1.0512)

Posted: 17 Aug 2007, 07:28
by YokoZar
YokoZar wrote:Also the add bot button just pops up an add bot dialog with no AIs to select from in the pull down list, then the program locks up. I'm using Linux and the latest tarball (0.0.1.0512)
This is because for some reason my ~/.spring/AI folder did not have a bot-libs subfolder.


Anyway, I can't figure out how to force someone's team or kick people.

Posted: 17 Aug 2007, 11:11
by tc-
imbaczek: Will do that later, it will probably be in the first release.

YokoZar: The bot libs search path is a bit too restricted atm. Will fix that after forcing ally, team etc.

Posted: 17 Aug 2007, 11:27
by semi
EDIT: clicked the wrong button

Posted: 17 Aug 2007, 22:46
by rabe
check if you have stdoutdebug=1 in your .springrc; setting such value to 0 fixed the black screen problem here
That did the trick. Thank you very much!

Posted: 17 Aug 2007, 23:06
by tc-
Forcing team, ally, spectator etc works now for both players and bots. Kicking and removing bots works. Also implemented Ring.

Next is the problem with the bot libs...

Edit: We have decided to wait until next spring release to fix the bot-lib problem since we can fix it in a much better way then. Until then symlinking the AI/Bot-lib directory to the direcotry specified in the settings should work.

Posted: 18 Aug 2007, 00:48
by YokoZar
I did the symlink, it does indeed work.

This latest release had a serious problem for me - the game simply didn't launch when the host started it. I was ready, but it just never started.

The only anomalous thing I can think of was the host changed my team and ally team before starting. My color was also different from the dropdown box for some reason. But, either way, it simply didn't start.

Hosting a single player game bot caused a more serious problem: the lobby appeared to hang after I hit start.

Here's the last thing in the terminal window:

Code: Select all

-- OnListRightClick(  ): : Done
** OnBattleUpdateBot(  ): 
** GetBot(  ): 
-- GetBot(  ): : index
-- GetBot(  ): : Bot1
-- GetBot(  ): : index
-- GetBot(  ): : Bot2
-- GetBot(  ): : index
-- GetBot(  ): : Bot3
-- GetBot(  ): : index
-- GetBot(  ): : Bot4
-- GetBot(  ): : return != 0
** GetBot(  ): 
-- GetBot(  ): : index
-- GetBot(  ): : Bot1
-- GetBot(  ): : index
-- GetBot(  ): : Bot2
-- GetBot(  ): : index
-- GetBot(  ): : Bot3
-- GetBot(  ): : index
-- GetBot(  ): : Bot4
-- GetBot(  ): : return != 0
** OnUserJoinedBattle(  ): 
** OnBattleInfoUpdated(  ): 
** OnBattleInfoUpdated(  ): 
** OnStartHostedBattle(  ): 
** SendMyBattleStatus(  ): 
** SendMyUserStatus(  ): 

Posted: 18 Aug 2007, 10:41
by tc-
YokoZar: That bug should be fixed in latest svn now. Thanks for reporting :-)

Posted: 18 Aug 2007, 16:27
by Comp1337
After having hell with installing wxwidgets, I get major compiletime errors..
I think I have screwed up with the wxwidgets. Anyone care to help a linux newb?
I did what this page said, but the only packages that showed up on the apt-get at the end were

Code: Select all

wx2.8-doc - wxWidgets Cross-platform C++ GUI toolkit (documentation)
wx2.8-examples - wxWidgets Cross-platform C++ GUI toolkit (examples)
wx2.8-headers - wxWidgets Cross-platform C++ GUI toolkit (header files)
wx2.8-i18n - wxWidgets Cross-platform C++ GUI toolkit (i18n support)
I tried installing them all with no avail :(


After that i searched for 'wx', and got loads.
I installed libwxbase2.8-dev (2.8.4.0-0), and now i got wx-config and everything seemed jolly. During compiletime i got LOADS of wx-related errors
:(

Posted: 18 Aug 2007, 22:21
by tc-
Comp1337: What distro do you use? Also can you pastebin the the whole build log? Also it might help specifying where you wx-config script is located with

Code: Select all

./configure --with-wx-config=/path/to/wx-config

Posted: 18 Aug 2007, 23:29
by Comp1337
tc- wrote:Comp1337: What distro do you use? Also can you pastebin the the whole build log? Also it might help specifying where you wx-config script is located with

Code: Select all

./configure --with-wx-config=/path/to/wx-config
Ubuntu 7.04 Feisty AMD64
Ill getcha the build log tomorrow, i closed the terminal and i cba atm

Posted: 19 Aug 2007, 12:40
by YokoZar
tc- wrote:YokoZar: That bug should be fixed in latest svn now. Thanks for reporting :-)
Hmm, nope, with version 22 it's still not launching games about half the time. When I make a single player game it'll freeze up sometimes too - I managed to get one bot as a test, but then when I added 6 it didn't work.

edit: whoops, you've got a tarball up to version 30 now, I'll check that.

Ok, so now the game starts with my 7 AIs, but they all appear to be comm sharing, ending the game instantly.

Posted: 19 Aug 2007, 14:53
by tc-
YokoZar: It all seems to work here, are you sure it's the latest build?

Posted: 19 Aug 2007, 16:05
by YokoZar
tc- wrote:YokoZar: It all seems to work here, are you sure it's the latest build?
Version 0530. Yeah.

Posted: 19 Aug 2007, 19:30
by tc-
YokoZar: Can you pastebin the springlobby_script_debug.txt file so we can see whats wrong?

Posted: 20 Aug 2007, 01:35
by YokoZar
tc- wrote:YokoZar: Can you pastebin the springlobby_script_debug.txt file so we can see whats wrong?
Still getting the same problem in latest tarball (0536): http://pastebin.com/meb0551

Posted: 20 Aug 2007, 13:07
by tc-
YokoZar: I fixed at least one bug releated to you script problems now. Might work now :-)

GetMapName

Posted: 20 Aug 2007, 22:53
by bruno07
If you lack the LastMap= entry in $HOME/.SpringLobby or if this line refer to a deleted map, the lobby segfaults when you press the ''Host'' button. (Not the previous ''Host new..'')

Nothing useful is returned from the lobby or strace if the LastMap line refer to missing files.
This is returned on the console if the LastMap line is missing completely:

Code: Select all

unitsync: Unitsync assertion failed: tools/unitsync/unitsync.cpp:313: Array index out of bounds. Call GetMapCount before GetMapName.
Segmentation fault
Same if this is your first run, eg. the .Springlobby config file is new and therefore contains no LastMap.

Edit: (At revision 544.)
/Allan

Posted: 21 Aug 2007, 08:13
by YokoZar
tc- wrote:YokoZar: I fixed at least one bug releated to you script problems now. Might work now :-)
Almost. If I change my own team to 7 and change the AI Bot to team 1, I still end up as team 1 (and him as 7). This means I have to always start on the same spot in fixed positions :(