Page 7 of 41
Posted: 19 Jul 2006, 01:28
by keithjr
Ok, here's a link to my personal, very free and very limited webspace where you can find yourself a unitsync.so. I'm banking on the bet that not many people out there need it. I compiled this on Ubuntu 6.06, using (as of last week) the latest spring svn. I have ABSOLUTELY NO garuntee that it will work on anybody else's computer but my own.
http://ggleague.tripod.com/unitsync.so
Posted: 19 Jul 2006, 02:19
by keithjr
just tested out 3.08, everything looks good at first glance (after one full skirmish). the graphics seem fine (even on Castle) and I can play as arm or core (no hardcoding). Sorry I didn't notice that earlier; I never play Core...
Let me know if there are any other features you want me to bash out for you.
Oh one thing, the Name and Sound Volume settings don't seem to have any usibility (no buttons associated with them) but I think you already know this.
Posted: 19 Jul 2006, 13:49
by clericvash
New error, i have the unitsync supplied by keithjr
liam@ubuntu:~$ /home/liam/spring-gui-3.08/main.py
Traceback (most recent call last):
File "/home/liam/spring-gui-3.08/main.py", line 195, in ?
if Config.get_option(ini, 'MAIN', 'STARTUP', '0') == '1':
File "/home/liam/spring-gui-3.08/config.py", line 102, in get_option
set_option(src,section,option,default_value)
File "/home/liam/spring-gui-3.08/config.py", line 114, 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'
Posted: 19 Jul 2006, 13:58
by hollowsoul
More than likey a typo in GLOBAL.py.
i.e
Code: Select all
SPRING_GUI_INSTALL = '/home/deco/spring-config/spring-gui-3.08'
Make sure u got it set right
Also if u find the typo u will need to nuke below before u try again. As script doesnt check for a failed setup
i.e
Code: Select all
rm -rv /home/liam/.springdir/localhost:0.0/spring-gui
Or join irc
irc server = irc.freenode.net
channel = #taspring
Posted: 19 Jul 2006, 14:38
by clericvash
Ok i got it working and joined IRC please talk there, still a few problems.
Posted: 19 Jul 2006, 15:14
by hollowsoul
u could try waitin abit.... i was afk
or actually describe your problems...
Posted: 19 Jul 2006, 15:30
by Betalord
How can I run it under windows?
Posted: 19 Jul 2006, 15:47
by hollowsoul
Cant atm....
To sunny in ireland atm to be motivated to code much atm.
Only 3 things really need to be done to get it to run on windows atm.
Once i get script to work i post a thread for it in General Discussion.
- Need to add code to save config values to windows registery (already a standard python module to save to registry just need to find out where in registry the config options for spring are saved )
Also need to do minor changes to os.path.join so its not assuming \ / (only take a few minutes to this one)
Add platform detect to script (already tested it out & simple enough only a few minutes to code aswell)
Maybe i start work on it tomorrow supposed to rain / thunder then.
Atm i am just adding team options to skirmish
WIP
Player name & sound volume already added to options menu
DONE
Bear in mind all AI is broken for me atm under linux (even if i try a old svn checkout). Might be cause of glibc update is to blame, but cant exactly downgrade glibc without breaking everything. And i dont feel like doing a reinstall
Lastly need to find out what compiler is used to make spring releases, since will need to package unitsync.dll along with script for windows
Posted: 19 Jul 2006, 16:27
by clericvash
Well my only problems right now, i get no picture of the chosen map come up and when i lick ok to start a skirmish, nothing happens.
And about the weather, gosh, where did those clouds come from!
I am slowly getting more motivation to do stuff, and if it is rainy tomorrow as it is supposed to be i should be able to help you test.
Also have you tried the new AAI? They have just released a new vrrsion for windows and linux.
Posted: 19 Jul 2006, 16:31
by hollowsoul
For future reference to everyone.
If script doesnt work
PM me your (or pastebin.ca & post a link to it)
GLOBAL.py
AND
(non debspring peep) ~/spring-gui/setup.ini
(debspring peep) ~/.springdir/localhost:0.0/spring-gui/setup.ini
Nothing worse than peep that something is wrong & then dont send the files i ask for.
I ask for those 2 files for the following
To check u edited GLOBAL.py right (its only 3 lines) and setup.ini is to check script got setup alright.
I do know this release works for debspring users as it works for atleast 1 peep (peep had 1 typo in GLOBAL.py. after that was fixed it worked properbly)
Posted: 19 Jul 2006, 20:42
by AF
SVN wotn work with AI's for me using VS 2003 to compile so it isnt a glibc compile, I am not aware fo anyone who has managed to get a post 0.72b1 svn build to play NTai effectively, and submarine cant get AAI 0.7 workign with the latest svn build either.
svn + ai == nightmare
Python bindings for UnitSync wont compile under MS VS 2003 either, when i tried I got "errors exceeded 100 aborting".
Other than that maybe setting it to run settings.exe isntead of modifying the registry would be better.
It sitn too high a priority, I need to replace Spring SP for the next version though as it cant use the sm3 format and I cant compile it and android_x has dissapeared. So if you manage to create a .exe bianry that doesnt require python at all that'd be good.
Posted: 19 Jul 2006, 22:29
by hollowsoul
@ AF
Regrading AI
I used an old svn check revision & (old NTAI 7.5 & JCAI) ai's worked for me
I use the same revision now & ai's = messed up (i.e cant build anything but workers = weird). Only thing i can think of is glibc update that could be cause of it.
(Think i need a reinstall
using stable branch of gentoo to avoid it)
As for script (gonna try hardest to get unitsync to compile somehow).
Need unitsync for map previews & sides info atm.
As for registry found out where it is kept, did search using regedit

Plus script config / skirmish = slightly linked together. Rather get windows reg support added, then support to different branchs for script
Posted: 19 Jul 2006, 22:37
by clericvash
FBO sent me a deb package that gave me a fully working unitsync.so
I can now see mod sides and map preview, although your GUI doesn't pickup mods i have downloaded with FBO's downloader.
Posted: 19 Jul 2006, 22:42
by hollowsoul
well aware of that....
hoping for fbo response on that matter. to add support for his download-content
Posted: 19 Jul 2006, 23:39
by hollowsoul
Outof curiosty any ai dev's interested in a spectator option for skirmish ?
i.e so u can use pygtk to setup match etc & then watch it play out versus other bots.
If not guess no point adding it in atm
Posted: 19 Jul 2006, 23:54
by AF
There's no way of compiling unitsync python bindings for Windows atm, so even if you had it all the AI devs I know of use windows so it'd be pointless
Posted: 20 Jul 2006, 00:18
by hollowsoul
The whole point in asking, was to see if anyone said yes dont need a response sayin no point from everyone possible, just to see if 1 peep said yes i would add it.
Only a few lines of code (just dont wont to add unnessary stuff to UI if noone is gonna use it)
And u already mentioned twice unitsync wouldnt compile for u. On this page. Still doesnt stop me from tryin to fix the problem.
Posted: 20 Jul 2006, 00:37
by nuisance
hollowsoul wrote:Outof curiosty any ai dev's interested in a spectator option for skirmish ?
i.e so u can use pygtk to setup match etc & then watch it play out versus other bots.
If not guess no point adding it in atm
Yes, I'd love that. My AI doesn't do anything besides build some buildings right now, so don't hold your breath on that front. Right now I'm just using .cheat .spectator, which works well enough, but getting it to just make me a spectator and separate from the AIs would be nice.
Tim
Posted: 20 Jul 2006, 18:30
by keithjr
I'm sorry to hear about everybody's SVN and AI problems. Since I've been running with debspring, I haven't been playing with svn and so I can still get a working game and everything. I really really don't have a lot of free time but what little I have I can still use to try to help test changes if you are unable to.
Posted: 21 Jul 2006, 02:33
by keithjr
I've found a strange behavior, not sure if it is spring-gui, spring in general, or just me...
If I try to start a game without a Player, as in, let's say, NTAI Arm vs NTAI Core on any map, the program gets a Segmentation Fault before the splash screen.
If, however, I rearrange it so that there is a Player on the list but the Player isn't first (say, NTAI Core then Player Arm), I get this message, also before the splash screen comes up
Code: Select all
Info: SHUTDOWN ERROR
Error sending data. 22
Just chiming in.