Notices


Reply
Thread Tools
epage's Avatar
Posts: 1,684 | Thanked: 1,562 times | Joined on Jun 2008 @ Austin, TX
#31
Originally Posted by FRuMMaGe View Post
Ahh. Well that sums up how new I am to python

I assumed that global variables were the ones you called with the "global" command in order to access them from any class on the script, and the ones in the config file were different.

In that case I am not sure where to proceed
Putting them into the config would still be better. This makes it easier to know what state is global and makes it easier to search for.

The next step after that is a config class with an instance in the config module. You are then calling methods rather than writing variables. This makes it easier to debug who is manipulating what (breakpoints, prints, etc) and allows you to have a single place to enforce rules as to what are valid values.

The final step would be to move this config instance into the UI and have it pass it to its children. This probably isn't as necessary.
__________________
770, n810, n900, Ideapad S10-3t
TheOneRing, DialCentral, Gonvert, Quicknote, Multilist, ejpi, nQa, Waters of Shiloah
Programming Blog
 
epage's Avatar
Posts: 1,684 | Thanked: 1,562 times | Joined on Jun 2008 @ Austin, TX
#32
Some maps have a "9" on them but I don't see it listed out along with PELLET, etc. What does 9 mean?
__________________
770, n810, n900, Ideapad S10-3t
TheOneRing, DialCentral, Gonvert, Quicknote, Multilist, ejpi, nQa, Waters of Shiloah
Programming Blog
 
FRuMMaGe's Avatar
Posts: 330 | Thanked: 483 times | Joined on Dec 2010 @ Norwich, UK
#33
Originally Posted by epage View Post
Some maps have a "9" on them but I don't see it listed out along with PELLET, etc. What does 9 mean?
9 is an empty block. It's not used often because most maps are completely filled with pellets
__________________
OMNOM: Pacman-like game now in extras-devel

fAircrack (Aircrack GUI): Point-and-click pwnage for your N900
Now with John the Ripper integration
 
epage's Avatar
Posts: 1,684 | Thanked: 1,562 times | Joined on Jun 2008 @ Austin, TX
#34
I'm calling it quits for the night
  • Fixed some more packaging bugs (oops, forgot all of that data non-sense)
  • Fixed it so omnom recovers more gracefully from an error (logging in/out of my computer for a bug is not fun)
  • Made levels data-driven (not entirely perfect yet and we will probably want to write converters as the format evolves)
  • Cleaned up some code
  • Formatted the readme in textile so github would make it pretty
  • Updated some of the documentation
__________________
770, n810, n900, Ideapad S10-3t
TheOneRing, DialCentral, Gonvert, Quicknote, Multilist, ejpi, nQa, Waters of Shiloah
Programming Blog
 
FRuMMaGe's Avatar
Posts: 330 | Thanked: 483 times | Joined on Dec 2010 @ Norwich, UK
#35
Originally Posted by epage View Post
I'm calling it quits for the night
  • Fixed some more packaging bugs (oops, forgot all of that data non-sense)
  • Fixed it so omnom recovers more gracefully from an error (logging in/out of my computer for a bug is not fun)
  • Made levels data-driven (not entirely perfect yet and we will probably want to write converters as the format evolves)
  • Cleaned up some code
  • Formatted the readme in textile so github would make it pretty
  • Updated some of the documentation
Just downloaded the latest version from devel. Here are some notes:

Performance is now better, so I think we can remove the OCing recommendation.

Config menu is now broken

Level loading is broken. As in, completing a level now takes you back to the main menu. I think this is probably something to do with the "ShowScores" function, as this is called vefore each level load.

When you are online, let me know how to edit code and I will take a look
__________________
OMNOM: Pacman-like game now in extras-devel

fAircrack (Aircrack GUI): Point-and-click pwnage for your N900
Now with John the Ripper integration
 
epage's Avatar
Posts: 1,684 | Thanked: 1,562 times | Joined on Jun 2008 @ Austin, TX
#36
Originally Posted by FRuMMaGe View Post
Just downloaded the latest version from devel. Here are some notes:

Performance is now better, so I think we can remove the OCing recommendation.

Config menu is now broken

Level loading is broken. As in, completing a level now takes you back to the main menu. I think this is probably something to do with the "ShowScores" function, as this is called vefore each level load.

When you are online, let me know how to edit code and I will take a look
I'm getting ready for work now but some quick comments.

Performance is already better? I didn't really change anything specifically targeting performance, weird.

The quick and dirty way:
  1. Go to github
  2. https://github.com/epage/omnom
  3. Click "Downloads" in the top right
  4. Select the file format you want
  5. Edit
  6. Post up here again
  7. I will merge the changes

The slower but better in long term way
  1. Install git
  2. Go to gitbhub
  3. Create an account
  4. Go back to my omnom page
  5. Click the "fork" button (this creates your own person copy to edit)
  6. Select the URL under the description
  7. git clone URL
  8. Start editing
  9. git commit -a -m "WHAT YOU CHANGED"
  10. git push
  11. Either let me know you made the changes and I will start following your fork or go back to my page and click "Pull Request" and I can handle merging your changes back into mine
__________________
770, n810, n900, Ideapad S10-3t
TheOneRing, DialCentral, Gonvert, Quicknote, Multilist, ejpi, nQa, Waters of Shiloah
Programming Blog
 
epage's Avatar
Posts: 1,684 | Thanked: 1,562 times | Joined on Jun 2008 @ Austin, TX
#37
If you chose to download the archive (which would probably be easiest for now) the folder in the archive is "epage-omnom-da29514" (with the last part different depending on when you download). Please preserve that name is it let's me know when in the history you downloaded so I can more easily merge the changes in.
__________________
770, n810, n900, Ideapad S10-3t
TheOneRing, DialCentral, Gonvert, Quicknote, Multilist, ejpi, nQa, Waters of Shiloah
Programming Blog
 
epage's Avatar
Posts: 1,684 | Thanked: 1,562 times | Joined on Jun 2008 @ Austin, TX
#38
Originally Posted by FRuMMaGe View Post
Config menu is now broken

Level loading is broken. As in, completing a level now takes you back to the main menu. I think this is probably something to do with the "ShowScores" function, as this is called vefore each level load.
fixed the config menu and the show scores screen.
__________________
770, n810, n900, Ideapad S10-3t
TheOneRing, DialCentral, Gonvert, Quicknote, Multilist, ejpi, nQa, Waters of Shiloah
Programming Blog
 

The Following User Says Thank You to epage For This Useful Post:
FRuMMaGe's Avatar
Posts: 330 | Thanked: 483 times | Joined on Dec 2010 @ Norwich, UK
#39
Originally Posted by epage View Post
fixed the config menu and the show scores screen.
Wow nice work. I'm still compiling git at the moment. I will give it a go

Edit: The only minor bug (?) I see now is when the enemies pass each other I notice they have a square black background. It's only aesthetic so it's not important right now
__________________
OMNOM: Pacman-like game now in extras-devel

fAircrack (Aircrack GUI): Point-and-click pwnage for your N900
Now with John the Ripper integration

Last edited by FRuMMaGe; 2010-12-30 at 14:42.
 
epage's Avatar
Posts: 1,684 | Thanked: 1,562 times | Joined on Jun 2008 @ Austin, TX
#40
Originally Posted by FRuMMaGe View Post
Wow nice work. I'm still compiling git at the moment. I will give it a go

Edit: The only minor bug (?) I see now is when the enemies pass each other I notice they have a square black background. It's only aesthetic so it's not important right now
compiling git? You using gentoo?
__________________
770, n810, n900, Ideapad S10-3t
TheOneRing, DialCentral, Gonvert, Quicknote, Multilist, ejpi, nQa, Waters of Shiloah
Programming Blog
 
Reply


 
Forum Jump


All times are GMT. The time now is 11:54.