UnityLobby
Moderator: Moderators
-
- Posts: 665
- Joined: 06 Jun 2006, 19:49
Ohh wasn't aware of it not working when player isnt in first spot. Thx
Found the probelm & only a small fix , will be in next release.
And the whole idea of no player choice, starting a game with player as spectator is brillant .
Alot better than my idea, where u have to add player to list & then tick a box to be spectator
Found the probelm & only a small fix , will be in next release.
And the whole idea of no player choice, starting a game with player as spectator is brillant .
Alot better than my idea, where u have to add player to list & then tick a box to be spectator
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.
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.
-
- Posts: 665
- Joined: 06 Jun 2006, 19:49
Nah it's possible
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
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
-
- Posts: 665
- Joined: 06 Jun 2006, 19:49
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)
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)
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).
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).
-
- Posts: 665
- Joined: 06 Jun 2006, 19:49
@ 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
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.
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
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.
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
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
Been warm / hot in ireland recently, so havent been coding to much lately.
-
- Posts: 665
- Joined: 06 Jun 2006, 19:49
@ 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.
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.
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:
Ok, the latest error message I am getting is this, I have no idea what it means:
Im using Python 2.4.3-8.FC5, on Fedora Core 5.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'
This is it:
There should be no problems with the paths, they all seem to point to the correct places.# 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'
-
- Posts: 665
- Joined: 06 Jun 2006, 19:49