UnityLobby - Page 8

UnityLobby

Discuss everything related to running Spring on your chosen distribution of Linux.

Moderator: Moderators

Locked

What would u like to see implentent next (after next release should be tomorrow or day after at most)???

Poll ended at 20 Jul 2006, 01:04

Direct IP Multiplayer Games
7
54%
Chatroom (chat only for the moment)
1
8%
More Options for Configure Section
2
15%
More Options for Skirmish Section i.e colors teams spectators etc
3
23%
 
Total votes: 13

Word
Posts: 80
Joined: 12 Jun 2006, 09:59

Post by Word »

Without a player i believe is because he didn't get anyone who wanted a spectater function and player not at top I think is just because he hasn't made code for that particular situation. Not a big issue just a lil querk.
hollowsoul
Posts: 665
Joined: 06 Jun 2006, 19:49

Post by hollowsoul »

Ohh wasn't aware of it not working when player isnt in first spot. Thx
Found the probelm & only a small fix :P, will be in next release.

And the whole idea of no player choice, starting a game with player as spectator is brillant :P.
Alot better than my idea, where u have to add player to list & then tick a box to be spectator
keithjr
Posts: 110
Joined: 30 Jun 2006, 18:45

Post by keithjr »

ah, it's good to feel useful...

That is a really nice idea indeed, the auto-spectator thing. Would that make it so that the player wouldn't even exist in the game? Currently, the in debspring spring-setup menu, choosing the demo (watch two comps fight) starts you up with a commander that you simply can't control and will sit there and shoot at anything that passes. Be better just to not spawn one at all, but I'm not sure if spring can handle this... but what do I know.
hollowsoul
Posts: 665
Joined: 06 Jun 2006, 19:49

Post by hollowsoul »

Nah it's possible 8)
Just dont assign the player a team in the script.txt
Got it just coded in & did a quick test


Left todo is add some sort of version check for
$HOME/.springgui
$HOME/localhost:0.0/springgui

i.e check the folder & if for older version of spring-gui, bugs the user to remove the folder, since its for a older version spring-gui
hollowsoul
Posts: 665
Joined: 06 Jun 2006, 19:49

Post by hollowsoul »

Released 3.09
Name & Sound added to options
Teams selection added to skirmish
Cosmetic fix for mods selection
Auto-Spectator (thx for idea keithjr) just add AI & start game. And u will automatic be spectator.


Have both version 3.08 & 3.09 in download links.
Just incase someone finds a bug in teams code. Plz test it when u can.
Anyway back to tryin to get AI that works for me

Dont forget to remove old setup files for previous version
i.e nuke $HOME/.spring-gui
or if u are debspring user
nuke $HOME/.springdir/localhost:0.0/spring-gui

Srry didnt time to add version check into code. And though better off to release it as is since its the weekend (well friday counts)
Word
Posts: 80
Joined: 12 Jun 2006, 09:59

Post by Word »

Wee Teams works well but uh at the end..it's always done this but if i'm team 1 it'll say when i destroy the last enemy Team2(Word) is no more then it'll say You have Won the Game in the lil window thing.
wishkah
Posts: 3
Joined: 20 Jul 2006, 23:45

Post by wishkah »

I can't get your tool to start up. I got some weird config problems sorted out but now it's complaining about the missing file /etc/spring/datadir. Thi s is missing because I manually installed the tool, not using debian or gentoo packages. I think you should add a third option to the respective GLOBAL variable, something like "hardcoded', and then a second variable with the spring data directory (or something along those lines).

I intended to do a pygtk based configuration tool for gnu/linux as well, but then I found out about your project and I want to contribute to it. Will you accept patches posted here?

edit: There is something seriously broken when the $HOME/.spring-gui/setup.ini file is missing. It's trying to create that, but since the variable containing the sprin temp script file name ("spring-temp.txt") is not yet set, it's trying to read from file "", which doesn't cause the python ConfigParser to bitch for some strange reason, but it results in the error I get about missing section "MAIN" (there are no sections at all, of course).
hollowsoul
Posts: 665
Joined: 06 Jun 2006, 19:49

Post by hollowsoul »

@ Word notice this myself got no idea how to change the team names in script.txt :(
If u got any idea give me a shout & i test it out & code it in if its possible
Atm AI teams are named after the player (that is running the AI)

@ Wishtak post patchs here / or PM (or if u want pm for email address).
Any help is welcomed :-) Note this really my first time @ python & pygtk

As for setup Gentoo is for gentoo setup / manually svn build

Code: Select all

mkdir -p /etc/spring
echo /path/to/spring/datadir > /etc/spring/datadir
I use that for svn builds since spring itself reads that file to find out where the datadir is installed, came in svn awhile ago.

Yeah as for missing setup.ini really need to add better setup code.
  • It makes ~/.spring-gui & the reads from /etc/spring/datadir bailed on u & complained.

    When u rerun it just checks if .spring-gui is there & assumes it was setup ok last time. And thus the problem with setup.ini missing

Nuke rm -rv ~/.spring-gui
Then add /etc/spring/datadir
And try the script again


If u still got problems care to PM your GLOBAL.py & setup.ini plz

If u interested the code for setup, was quickly thrown together is in main.py search for

Code: Select all

# Check ini
Added this rough setup code, since peep were complaining of the older static setup in GLOBAL.py. That it was to hard :(
Been warm / hot in ireland recently, so havent been coding to much lately.
Word
Posts: 80
Joined: 12 Jun 2006, 09:59

Post by Word »

I'd think just naming the AI's 'Computer 1' 'Computer 2' would solve the problem. :-/
hollowsoul
Posts: 665
Joined: 06 Jun 2006, 19:49

Post by hollowsoul »

@ Word look @ ~/.spring-gui/script.txt
or if debspring try ~/.springdir/localhost:0.0/spring-gui/script.txt

And find me a way to name the AI teams.

Basicly dont know how to name the teams in script.txt
Or dont even know if its possible?? (if it can be done an example would be brillant).

Atm spring is naming the AI Teams after the player name, that the AI is running on.

update :- NM Word, i ask spring dev's at some stage if its possible to name AI teams.
Last edited by hollowsoul on 22 Jul 2006, 12:43, edited 1 time in total.
Word
Posts: 80
Joined: 12 Jun 2006, 09:59

Post by Word »

2 probably wrong suggestions..

1) in the team of the bot name=computer

2)make each bot a player and give them names that way..

only -possible- solutions i could think of but again I'm pretty sure neither will work. ><
Tangaroa
Posts: 77
Joined: 17 Aug 2004, 04:50

Post by Tangaroa »

Im trying this on Fedora Core 5, have been encountering errors, fixed one by compiling a different unitsync.so, but Im encountering errors, just now seeing how far I can get before it either works, or I am totally stumped.

Ok, the latest error message I am getting is this, I have no idea what it means:
Traceback (most recent call last):
File "./main.py", line 220, in ?
if Config.get_option(ini, 'MAIN', 'STARTUP', '0') == '1':
File "/usr/local/games/taspring/spring-gui/config.py", line 104, in get_option
set_option(src,section,option,default_value)
File "/usr/local/games/taspring/spring-gui/config.py", line 116, in set_option
config.set(section,option,value)
File "/usr/lib/python2.4/ConfigParser.py", line 358, in set
raise NoSectionError(section)
ConfigParser.NoSectionError: No section: 'MAIN'
Im using Python 2.4.3-8.FC5, on Fedora Core 5.
Word
Posts: 80
Joined: 12 Jun 2006, 09:59

Post by Word »

Pretty sure that's the error when you edit your Global.py wrong post it the part you're supposed to edit here (it's 3 values or something should be clearly marked) if you want help getting it right.
Tangaroa
Posts: 77
Joined: 17 Aug 2004, 04:50

Post by Tangaroa »

This is it:
# INSTALL is show spring-gui knows how u installed spring i.e
# INSTALL = Gentoo is for gentoo / svn builds
# INSTALL = Debspring is for debspring i.e fbo package
#INSTALL = 'Debspring'
INSTALL = 'Gentoo'

# Location where spring-gui is installed
SPRING_GUI_INSTALL = '/usr/local/games/taspring/spring-gui'

# Location for spring binary
# i.e for debspring /usr/bin/spring.bin
SPRING = '/usr/local/games/taspring/spring'
There should be no problems with the paths, they all seem to point to the correct places.
Word
Posts: 80
Joined: 12 Jun 2006, 09:59

Post by Word »

Try spring.bin for the location of the binary instead...I think that's what it's supposed to be.
Tangaroa
Posts: 77
Joined: 17 Aug 2004, 04:50

Post by Tangaroa »

Nope, still getting the exact same error message, even after doing that.
Word
Posts: 80
Joined: 12 Jun 2006, 09:59

Post by Word »

after you do that you have to nuke some directory somewhere...hollowsoul's said it a few times in this thread.
Tangaroa
Posts: 77
Joined: 17 Aug 2004, 04:50

Post by Tangaroa »

Ahh, done, got to the end of the error messages, now it just does nothing at all when run, no text output to the command line, no window, no anything.
Word
Posts: 80
Joined: 12 Jun 2006, 09:59

Post by Word »

i believe first run is configure second runs it ..unless he's changed that since previous versions.
hollowsoul
Posts: 665
Joined: 06 Jun 2006, 19:49

Post by hollowsoul »

paste your $HOME/.spring-gui/setup.ini
to see whats gone wrong
Locked

Return to “Linux”