Skip to content

Commit

Permalink
Release 1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
MrTenda committed May 29, 2012
1 parent 454b8a4 commit 90a1477
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 12 deletions.
6 changes: 3 additions & 3 deletions CoilSnakeGUI.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
from modules.Fun import getTitle
from tools import EbRomExpander

_version = "0.1"
_releaseDate = "?/?/??"
_version = "1.0"
_releaseDate = "5/28/12"

class CoilSnakeFrontend:
PREFS_FNAME = "prefs.yml"
Expand Down Expand Up @@ -53,7 +53,7 @@ def aboutMenu(self):
+ "Created by MrTenda.\n\n"
+ "With help from\n"
+ " Penguin, Mr. Accident, Goplat,\n"
+ " AnyoneEB, Captain Bozo,\n"
+ " AnyoneEB, Reg, Captain Bozo,\n"
+ " and the rest of the PK Hack community.",
anchor="w",justify="left",bg="white",borderwidth=5,
relief=GROOVE).pack(
Expand Down
4 changes: 2 additions & 2 deletions modulelist.txt
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
eb.CccInterfaceModule
eb.SkipNamingModule
eb.TilesetModule
eb.MapSpriteModule
eb.DoorModule
eb.SpriteGroupModule
eb.MiscTablesModule
#eb.ExpTablesModule
eb.MapModule
eb.SpriteGroupModule
eb.MapEnemyModule
eb.MapMusicModule
eb.MapEventModule
Expand All @@ -15,3 +14,4 @@ eb.WindowGraphicsModule
eb.BattleBgModule
eb.CompressedGraphicsModule
eb.EnemyModule
eb.TilesetModule
16 changes: 9 additions & 7 deletions modules/eb/SpriteGroupModule.py
Original file line number Diff line number Diff line change
Expand Up @@ -256,17 +256,19 @@ def readFromProject(self, resourceOpener):
pal = [ ]

# Read the palette from the image
for i in range(1, 16):
pal.append((palData[i*3], palData[i*3+1], palData[i*3+2]))
for j in range(1, 16):
pal.append((palData[j*3], palData[j*3+1], palData[j*3+2]))
# Assign the palette number to the sprite
for i in range(8):
if pal == self._grPalTbl[i,0].val()[1:]:
g.setPalette(i)
for j in range(8):
if pal == self._grPalTbl[j,0].val()[1:]:
g.setPalette(j)
break
else:
# Error, this image uses an invalid palette
raise RuntimeError("Sprite Group #" + i
+ "uses an invalid palette.")
for j in range(8):
print j, ":", self._grPalTbl[j,0].val()[1:]
raise RuntimeError("Sprite Group #" + str(i)
+ " uses an invalid palette: " + str(pal))
updateProgress(pct)

def writeToRom(self, rom):
Expand Down

0 comments on commit 90a1477

Please sign in to comment.