The Gang Garrison 2 Forum
May 20, 2013, 09:02:12 am *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Chat with us on IRC: http://ganggarrison.com/irc.html
Server: irc.esper.net, Channel: #gg2
 
   Home   Help Search Login Register  
Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 »
  Print  
Author Topic: Official PyGG2 Development thread  (Read 37209 times)
Orpheon
Moderator
*****
Online Online

Posts: 5821


Developer


« on: August 25, 2011, 02:25:56 pm »

Here's the current source. Help is needed.

We've agreed on Python 2.7 as a main language.

Progress so far:



Hmm, let me just sum everything up.

The advantages of PyGG2:

  • Python is a "real" programming language, unlike GML. This gives us a better chance to market the game to for example get it featured on steam. AKA more users.
  • Python is free, unlike GML. This means that everyone can contribute code without having to "buy" Game Maker. AKA more contributors
  • PyGG2 will have better performance than GG2, simply because Python is way faster than GML and the programmer is free to optimize in any way he wants. AKA more speed and less lag
  • Because Python's object system is better designed for large systems than GML's and we have full control over the system it is easier to keep the code clean and maintain the game. AKA less bugs
  • Because Python is faster and allows for more complex systems than GML it is easier to implement lag compensation. AKA less lag
  • PyGG2 is built up from the ground allowing us to revise previous not-so-wise design decisions (major one: UDP vs TCP). AKA less lag, less bugs
  • Because Python runs on every major platform, and so will PyGG2, PyGG2 can be run on Windows, Linux and Mac. AKA more users
  • And by far the most important one, because PyGG2 runs on every major platform and we can run the game engine without the graphics engine in PyGG2 (we couldn't do this in GML due to the way GML works) we can run dedicated servers. AKA A HELL OF A LOT LESS LAG


The disadvantages of PyGG2:

  • It takes a lot of time to develop, but Orpheon and I are working on it


Posting so I can follow, but AJF and Orph, is python easy to learn if you've had minimal Javascript, batch, and GML programming experience?

Differences between Python and GML:
I think that like covers most of the basics.


Old post:

Previous discussions:
I ported GG2 to Mac successfully!
Gang Garrison Dedicated Server (in Python)
Medo's try with JGang (and a C++ engine, if you read the thread)
Recent request about a console-based dedicated server that kinda spiralled into a discussion about this
Ajf's main thread about this (Beta tester forums)

Those are only those I just found now, I probably missed a few.


Important quotes from those discussions I followed:

« Last Edit: April 19, 2012, 03:16:05 pm by Orpheon » Logged

Your mind is software. Program it.
Your body is a shell. Change it.
Death is a disease. Cure it.
Extinction is approaching. Fight it.
Mr.L
Guest
« Reply #1 on: August 25, 2011, 02:32:03 pm »

We (I and Nagn) will take interest and participate in such a project.

We were deciding on C++ with the 2dbox engine

srry L.
NOTE THAT YOU'RE GOING TO HAVE TO INSTALL PYSFML. SINCE THIS IS AN UNSTABLE LIBRARIES, EASY TO DISTRIBUTE WAYS TO INSTALL IT IS NOT AVAILIBLE (atm).
Installers should come soon! But they're not here yet z4
HOW TO RUN PyGG2 ON WINDOWS

1) INSTALLING PYTHON 2.7

Download Python 2.7

Install it to "C:\Python27".
Go to "controlpanel>System>Advanced>Environment Variables".

In the "System Variables" box, click on "Path", then click "Edit".
In the "Variable Value" box, add to the end: ";C:\Python27;C:\MinGW\bin".
Click OK, then OK again in the system menu.

2) INSTALLING PIL, PySFML AND MINGW

Download and install PIL

Download and install MinGW

3) INSTALLING PYGG2 AND BITMAP EXTENSION

Download and unzip: PyGG2

Move the folder to My Documents and rename it to "PyGG2".

Go to command prompt (start>accessories>command prompt) and type "cd " (with a space after cd).
drag the PyGG2 folder into the command prompt window and press enter.

Type in "python make.py build" and press enter.

After it is finished, exit command prompt.

4) MAKING PyGG2.bat

Go to notepad (start>accessories>notepad).

Type the following, but change <USER> to your computer's username.

cd "C:\Documents and Settings\<USER>\My Documents\PyGG2"
python make.py testclient (for launching the client)


Click file>save, and in the "File Name" box, type "PyGG2client.bat", and set the "Save as Type" box to "All Files".
Save it wherever you like.

Create another notepad file

cd "C:\Documents and Settings\<USER>\My Documents\PyGG2"
python make.py testserver (for launching the server)

Click file>save, and in the "File Name" box, type "PyGG2server.bat", and set the "Save as Type" box to "All Files".

And you're done! Whenever you want to run PyGG2 client, you just have to open PyGG2client.bat, but make sure to run PyGG2server.bat first
If you want to update PyGG2, just repeat delete the PyGG2 folder in My documents and repeat step 3.
« Last Edit: July 03, 2012, 10:58:42 pm by NAGN » Logged
Vindicator
Developer
******
Online Online

Posts: 2016



« Reply #2 on: August 25, 2011, 04:03:38 pm »

Orpheon, if you would like to gather some people to work with python, I could help out.
Logged

Vindicator
Developer
******
Online Online

Posts: 2016



« Reply #3 on: August 25, 2011, 04:52:46 pm »

Yall nighas needa quit trippin n' port GG2 to Swagalese!!!! strait up #thuglife, basic hoes ya hear??

whose wid me bras

This isn't RC.
Logged

dr.stampy
Guest
« Reply #4 on: August 25, 2011, 05:19:24 pm »

>implyin i cant talk da way i whanna talk? ASIAN MAN DONT KEEP A NIGGA DOWN DAWG
>implyan wat i said aint tru (#as_if_basic_hoe)
>yhu BEST be trippan
>I rich so i spell my swagg with q's #schwaqq
Quote
DON'T DO THIS. This is exactly how not to post a request - grammatically incorrect
Logged
Orpheon
Moderator
*****
Online Online

Posts: 5821


Developer


« Reply #5 on: August 26, 2011, 03:21:42 am »

@Uberdeath: If you don't have anything smart to say, shut up. This isn't the place for that.

@Vindicator: Would you also be available for C++? I'm not saying we have to do that, I'm just asking whether you could.

@NAGN and L: Same thing. Could you guys imagine doing it in Python?
« Last Edit: August 26, 2011, 03:22:23 am by Orpheon » Logged

Your mind is software. Program it.
Your body is a shell. Change it.
Death is a disease. Cure it.
Extinction is approaching. Fight it.
Super Sgt. Brown
Guest
« Reply #6 on: August 26, 2011, 04:54:33 am »

People, before doing teams and what-not, you should agree on which language you're going to use.

Either use C++ or Python. Not both, darn it.  z8
Logged
Derpduck [LORD]
2011 Haxxy Finalist
*
Offline Offline

Posts: 3529



« Reply #7 on: August 26, 2011, 05:02:32 am »

This would be a good oppertunity to learn some other languages
Logged

Orpheon
Moderator
*****
Online Online

Posts: 5821


Developer


« Reply #8 on: August 26, 2011, 06:42:17 am »

People, before doing teams and what-not, you should agree on which language you're going to use.

Either use C++ or Python. Not both, darn it.  z8

To know what language we use, we need to know who can work on it in what language.
That's the main factor in the choosing of the language.

Personally, I think I vote for Python. I know it much better than C++, and prefer it.

Also, if Flaw every re-appears, I think he'll prefer Python too.


Next question: Do we all agree on the library pygame?
Or are there other propositions?
« Last Edit: August 26, 2011, 06:43:03 am by Orpheon » Logged

Your mind is software. Program it.
Your body is a shell. Change it.
Death is a disease. Cure it.
Extinction is approaching. Fight it.
Floyd Pinkerton
Hero Member
*****
Offline Offline

Posts: 779


Is there anybody out there?


« Reply #9 on: August 26, 2011, 09:23:51 am »

basically speaking, this thread is all about a plan to rewrite the gg2 engine into another language?
Logged


Waiting to cut out the deadwood.
trog
member of intel's squad of garbagemen against the yakuza
1000$ Monopoly Rich Beta Male
*
Offline Offline

Posts: 9868


i am uberdeath


« Reply #10 on: August 26, 2011, 09:42:55 am »

basically speaking, this thread is all about a plan to rewrite the gg2 engine into another language?
It's not like that's the thread title or anything...
Logged

Mr.L
Guest
« Reply #11 on: August 26, 2011, 11:57:27 am »

The pythons that's ok too though I want to work on C++, but I'm mediocre at both so no real preferences.

Isn't pygame the python sdl library?
Logged
Orpheon
Moderator
*****
Online Online

Posts: 5821


Developer


« Reply #12 on: August 26, 2011, 12:28:51 pm »

The pythons that's ok too though I want to work on C++, but I'm mediocre at both so no real preferences.

Isn't pygame the python sdl library?
Ok, great.

And yes, it is.
Logged

Your mind is software. Program it.
Your body is a shell. Change it.
Death is a disease. Cure it.
Extinction is approaching. Fight it.
Mr.L
Guest
« Reply #13 on: August 26, 2011, 05:18:32 pm »

I love you Orpheon.
Logged
Maxaxle
Sr. Member
****
Offline Offline

Posts: 406


Resident Serious Business


WWW
« Reply #14 on: August 26, 2011, 09:09:45 pm »

I don't mean to be rude, but what's the upshot of this? Faster compiling? Stability? Fewer glitches?
Logged
Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 »
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!
Page created in 0.417 seconds with 20 queries.