Spring players and Python

Spring players and Python

Various things about Spring that do not fit in any of the other forums listed below, including forum rules.

Moderator: Moderators

Do you have Python?

Yes
22
59%
No
15
41%
 
Total votes: 37

User avatar
Slamoid
Posts: 237
Joined: 25 Jan 2005, 19:23

Spring players and Python

Post by Slamoid »

I've got some programs coming down the pipe for Spring, mostly single-player frontends and, while Linux usually comes with Python pre-loaded, I noticed few windows people know what Python is. For you guys, please look into it.

Why am I going with Python? Because it's an open-source oriented, easy-to-read language. A random skirmish generator took me 2 hours to make; It's that easy. I don't expect more than a couple days to get a whole single-player menu system up.

Please answer the poll! I'd love to know. Thanks!
User avatar
iamacup
Posts: 987
Joined: 26 Jun 2006, 20:43

Post by iamacup »

i think, people on windows go

"oh shit more things to install, i just want 1 installer that works" and just dont do..........

you cant (iirc) do that though because of the python licence. :(
User avatar
Relative
Posts: 1371
Joined: 15 Oct 2006, 13:17

Post by Relative »

Isn't TASclient python?
User avatar
smoth
Posts: 22309
Joined: 13 Jan 2005, 00:46

Post by smoth »

I am a student of programing though, so I am not sure you want to strike me out as an outlier.
el_matarife
Posts: 933
Joined: 27 Feb 2006, 02:04

Post by el_matarife »

No, but including the Python runtime is not a big deal since its pretty small. You could also use IronPython to make it run in the .NET runtime, though admittedly the distribution base of that's isn't 100% either.
User avatar
Peet
Malcontent
Posts: 4384
Joined: 27 Feb 2006, 22:04

Post by Peet »

Relative wrote:Isn't TASclient python?
No, delphi.
User avatar
Guessmyname
Posts: 3301
Joined: 28 Apr 2005, 21:07

Post by Guessmyname »

I know about Python. Make a few very basic programs in it for fun and practise
User avatar
Zpock
Posts: 1218
Joined: 16 Sep 2004, 23:20

Post by Zpock »

Language wars!!!!!

C++ all the way!!! everything else is toy-languages
User avatar
FLOZi
MC: Legacy & Spring 1944 Developer
Posts: 6242
Joined: 29 Apr 2005, 01:14

Post by FLOZi »

smoth wrote:I am a student of programing though, so I am not sure you want to strike me out as an outlier.
And me.


p.s. Python ftw, great language :-)
User avatar
tooleh
Posts: 57
Joined: 14 Jul 2005, 00:47

Post by tooleh »

Doesn't python in bigger apps have horrific CPU usage?
Isn't the pile-of-shite EVE Online client written in python?
User avatar
zwzsg
Kernel Panic Co-Developer
Posts: 7052
Joined: 16 Nov 2004, 13:08

Post by zwzsg »

It would be nice if Spring didn't require to install and learn 1337 different languages compilers, libraries, and others. Each new... eh Python is already listed in the http://spring.clan-sy.com/wiki/Engine_D ... the_Source !

But it's not clear what you're using Python for. If it's just for extra program that we don't really need to compile and run Spring, no reason to not use whatever you want.

But if each new dev adds support for and makes Spring requires his own favourite language, soon only one or two core dev will be able to compile Spring, and no newcomer will ever figure out his way past the dependancy maze. At least that's my worry, maybe it's unfounded and all big project are made combining several languages and it's how it goes and all is well.
Last edited by zwzsg on 02 May 2007, 13:39, edited 1 time in total.
Tobi
Spring Developer
Posts: 4598
Joined: 01 Jun 2005, 11:36

Post by Tobi »

Python is needed because scons, the Linux/MinGW buildsystem we use is in python. I don't think you need it when compiling with MSVC.
malric
Posts: 521
Joined: 30 Dec 2005, 22:22

Post by malric »

zwzsg wrote:...
But if each new dev adds support for and makes Spring requires his own favourite language, soon only one or two core dev will be able to compile Spring, and no newcomer will ever figure out his way past the dependancy maze. At least that's my worry, maybe it's unfounded and all big project are made combining several languages and it's how it goes and all is well.
..
Even if I agree with you that is a good thing to have few dependencies, this should be merely an effect and not a cause.

As a developer you use the best tool that you have, or know how to use. It is true that the core developers should be familiar with all tool used.... otherwise they will not be core develoers :wink: .

So the focus should be : what can you do in Python much better than in other languages and with what costs ?
CautionToTheWind
Posts: 272
Joined: 30 May 2006, 17:06

Post by CautionToTheWind »

This discussion is moot. Python can build standalone windows executables that require no python install.

http://www.py2exe.org/
User avatar
KDR_11k
Game Developer
Posts: 8293
Joined: 25 Jun 2006, 08:44

Post by KDR_11k »

Python has a readable syntax and loose typing. The latter is also its biggest drawback.

Oh and list comprehensions. Those are always nice. I wish it had the pattern matching of Haskell but that probably won't work without strict typing.
User avatar
Slamoid
Posts: 237
Joined: 25 Jan 2005, 19:23

Post by Slamoid »

So when I get this finished, is there anyone here who Would like to use their windows machine to compile it for windows users via Py2exe?
User avatar
Michilus_nimbus
Posts: 634
Joined: 19 Nov 2004, 20:38

Post by Michilus_nimbus »

Slamoid wrote:So when I get this finished, is there anyone here who Would like to use their windows machine to compile it for windows users via Py2exe?
sure thing.
User avatar
AF
AI Developer
Posts: 20687
Joined: 14 Sep 2004, 11:32

Post by AF »

I think that this might be a nonissue. Linux lacks these tools, you have an open market.

Windows already has the upcoming aflobby, tasclient, altaclient, spring client, and spring singleplayer, settings.exe, xmlsettings.exe, and a key changing program.

You may find that these python programs are simply too much hassle in comaprison to the already overcrowding competition. If python distribution wasnt an issue then you'd have Unity lobby threatening to steal away your userbase.
User avatar
Dragon45
Posts: 2883
Joined: 16 Aug 2004, 04:36

Post by Dragon45 »

My opinion as a programmer: I know most of the languages that various parts of the Spring code are cobbled together with (minus Delphi). I can handle whatever is thrown at me.

My opinion as a player: I don't *care* about what's going on behind the scenes. I want it to work.

My opinion as a mod-maker: I do not want to have to learn another language and program set and IDE on top of UpSpring, 3DO Builder, Scripter, LUA, and whatnot. The game should facilitate the modmaking process, not hinder it.
User avatar
rattle
Damned Developer
Posts: 8278
Joined: 01 Jun 2006, 13:15

Post by rattle »

Michilus_nimbus wrote:
Slamoid wrote:So when I get this finished, is there anyone here who Would like to use their windows machine to compile it for windows users via Py2exe?
sure thing.
Ditto.
Post Reply

Return to “General Discussion”