December 25, 2024, 09:05:05 pm

The Gang Garrison 2 Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

NOTICE: Wondering where all the forums have gone?

Join the community Discord server!

Pages: 1 ... 21 22 [23] 24 25 ... 77

Author Topic: Official PyGG2 Development thread  (Read 161488 times)

nightcracker

  • NC
  • Full Member
  • ***
  • Karma: 0
  • Offline Offline
  • Posts: 516
  • PyGG2 dev
    • NC Labs
Re: Porting GG2 to Python - PyGG2
« Reply #330 on: December 09, 2011, 01:25:16 am »

The current build on github isn't stable, because I uploaded it a few days ago while in the middle of something.

This version is stable I think:

https://github.com/nightcracker/PyGG2/commit/372308e752a87b8652aa4d92b09c73c1b2696053
Logged

Nukleus

  • Guest
Re: Porting GG2 to Python - PyGG2
« Reply #331 on: December 09, 2011, 06:38:35 am »

How do I intstall this on a mac? I have pygame and 2.7 installed, but when I run main.py in terminal (cmd for mac), I get back this error:
Code: [Select]
MacBook-Pro:~ fakename$ /var/folders/6_/82m86h0d5fs7swwxv0psfhkw0000gn/T/Cleanup\ At\ Startup/main-345126843.489.py.command
Traceback (most recent call last):
  File "/Users/fakename/Desktop/Downloaded Zips/nightcracker-PyGG2-a3e8c4c/client/main.py", line 17, in <module>
    import engine.game
  File "../engine/game.py", line 7, in <module>
    import map
  File "../engine/map.py", line 5, in <module>
    import function
  File "../function.py", line 6, in <module>
    import mask
  File "../mask.py", line 1, in <module>
    import mask_extension._mask
« Last Edit: February 16, 2024, 05:32:00 pm by MedO »
Logged

notajf

  • Guest
Re: Porting GG2 to Python - PyGG2
« Reply #332 on: December 09, 2011, 08:04:02 am »

How do I intstall this on a mac? I have pygame and 2.7 installed, but when I run main.py in terminal (cmd for mac), I get back this error:
Code: [Select]
MacBook-Pro:~ fakename$ /var/folders/6_/82m86h0d5fs7swwxv0psfhkw0000gn/T/Cleanup\ At\ Startup/main-345126843.489.py.command
Traceback (most recent call last):
  File "/Users/fakename/Desktop/Downloaded Zips/nightcracker-PyGG2-a3e8c4c/client/main.py", line 17, in <module>
    import engine.game
  File "../engine/game.py", line 7, in <module>
    import map
  File "../engine/map.py", line 5, in <module>
    import function
  File "../function.py", line 6, in <module>
    import mask
  File "../mask.py", line 1, in <module>
    import mask_extension._mask
Ah, you need to compile the mask extension using gcc. You're on a mac, so it shouldn't be too hard to acquire, if you have XCode it may already be installed.
« Last Edit: February 16, 2024, 05:32:09 pm by MedO »
Logged

Orpheon

  • Moderator
  • *****
  • Karma: 15
  • Offline Offline
  • Posts: 6409
  • Developer
Re: Porting GG2 to Python - PyGG2
« Reply #333 on: December 28, 2011, 05:10:58 am »

Requesting a move to Dev discussion.

EDIT: Thankee Medo.
« Last Edit: December 28, 2011, 06:05:27 am by Orpheon »
Logged

nightcracker

  • NC
  • Full Member
  • ***
  • Karma: 0
  • Offline Offline
  • Posts: 516
  • PyGG2 dev
    • NC Labs
Re: Porting GG2 to Python - PyGG2
« Reply #334 on: December 30, 2011, 03:18:51 pm »

Can people please try out this? It for my pygrafix library, a 2D Python library (perhaps to be used in PyGG2, but certainly useful on it's own).

http://nclabs.org/downloads/pygrafix.zip

You need Python 2.7 and Windows to run this. If you have windows you can install Python 2.7 from here: http://www.python.org/ftp/python/2.7/python-2.7.msi

Instructions:
Extract everything somewhere. Run dist/test.py to run the test. Please test a bit (you can scroll around by moving your mouse to the side of the screen). The console window will spit out FPS every second and also performance statistic. If you know how to copy paste them, you are very welcome to do so, but posting your average FPS is fine also.

EDIT: Sorry, I uploaded a wrong version, if you see this, you know you have the right one :)
« Last Edit: December 30, 2011, 03:25:42 pm by nightcracker »
Logged

nightcracker

  • NC
  • Full Member
  • ***
  • Karma: 0
  • Offline Offline
  • Posts: 516
  • PyGG2 dev
    • NC Labs
Re: Porting GG2 to Python - PyGG2
« Reply #335 on: January 01, 2012, 03:46:54 pm »

Well, should've know you guys were lazy  :hehe:

Download: http://nclabs.org/downloads/pygrafix.zip

So, this time I made an .exe again, no need to install anything. Just unzip somewhere and run test.exe. A sort of demo will open, move a little bit around in it by moving your mouse. Also a console window will open, this will tell you your FPS. Please post the ~FPS you get. And if you are feeling really generous, please try pressing F11 which will open fullscreen, and report if it works.

Thanks!

Logged

Lemonade

  • Apprenticecrastinator
  • Seasoned Member
  • *****
  • Karma: 1
  • Offline Offline
  • Posts: 2437
  • BACK FROM THE DEAD (for now)
Re: Porting GG2 to Python - PyGG2
« Reply #336 on: January 01, 2012, 04:21:47 pm »

Min : 5. Max : 1000. Average : ~600. Dunno.
Logged
i already have a pet that follows me around 24/7
it's called  :z4:
you may have seen it

nightcracker

  • NC
  • Full Member
  • ***
  • Karma: 0
  • Offline Offline
  • Posts: 516
  • PyGG2 dev
    • NC Labs
Re: Porting GG2 to Python - PyGG2
« Reply #337 on: January 01, 2012, 04:37:57 pm »

That 5 happened while switching to fullscreen I suppose?
Logged

Nukleus

  • Guest
Re: Porting GG2 to Python - PyGG2
« Reply #338 on: January 01, 2012, 05:31:06 pm »

I'll try run this under wine when I get back :c1:
Logged

nightcracker

  • NC
  • Full Member
  • ***
  • Karma: 0
  • Offline Offline
  • Posts: 516
  • PyGG2 dev
    • NC Labs
Re: Porting GG2 to Python - PyGG2
« Reply #339 on: January 02, 2012, 04:21:55 am »

I'll try run this under wine when I get back :c1:

Oh, don't try to use fullscreen BTW. Fullscreen through Wine crashed Orpheon's computer. Now don't be sad, because pygrafix is also available natively on linux (and mac!), but I haven't made a makefile yet.
« Last Edit: January 02, 2012, 04:22:15 am by nightcracker »
Logged

Lorgan

  • Retired Randomizer Mod Developer
  • Resident Miku
  • *****
  • Karma: 28
  • Offline Offline
  • Posts: 3625
    • My own website
Re: Porting GG2 to Python - PyGG2
« Reply #340 on: January 02, 2012, 04:38:51 am »

windowed: ~1350 fps while watching the map, about 1800 while watching the void.
fullscreen: It ran smoother in fullscreen lol, constantly 2000+ (when watching the map)
Logged
Unfortunately, turning a section into a communist oppressive regime is not against the forum rules, so there is really nothing we can do.
Quote from: steam
21:08 - Hullusorsa: lorgan, when will you buy us the keys?
21:09 - Lorgan: i'm waiting for greece to collapse so the value of the euro drops
21:09 - Lorgan: not even joking

Haxton Sale

  • The only true
  • Haxxy Organizer
  • *
  • Karma: 18
  • Offline Offline
  • Posts: 3285
  • HAXTON SAAAAAAAAAAALE!
Re: Porting GG2 to Python - PyGG2
« Reply #341 on: January 02, 2012, 01:43:39 pm »

~4800 windowed, ~5500 fullscreen.
amicool?  :hehe16:

Also, when changing to fullscreen it dropped to 1800 for a sec.
« Last Edit: January 02, 2012, 01:44:27 pm by Elkondo »
Logged
THIS POST GOT SIGNED BY

Meower

  • Elder God tier or Fagthulu, the great
  • Community Manager
  • *****
  • Karma: 230
  • Offline Offline
  • Posts: 22286
  • Went fat once, never went back
Re: Porting GG2 to Python - PyGG2
« Reply #342 on: January 02, 2012, 07:59:54 pm »

'scuse me pals, holding the idiot ball for the night

Will python-developed versions of gg2 be compatible with the servers hosted on game maker ones, during the transition time and/or to test them?
Logged

BassMakesPaste

  • Guest
Re: Porting GG2 to Python - PyGG2
« Reply #343 on: January 02, 2012, 08:48:39 pm »

no
« Last Edit: January 02, 2012, 08:48:52 pm by BassMakesPaste »
Logged

NAGN

  • Developer
  • ******
  • Karma: 146
  • Offline Offline
  • Posts: 16150
  • Yeah so now I have an idea
Re: Porting GG2 to Python - PyGG2
« Reply #344 on: January 02, 2012, 10:07:05 pm »

there's really no reason to stay with the game maker codebase anyways, as updates require a redownloading of the exe
Logged
Pages: 1 ... 21 22 [23] 24 25 ... 77
 

Page created in 0.02 seconds with 50 queries.