shithub: pokecrystal

Download patch

ref: 35d77a29885ccdbcde4350f59c93b6afe010b5f3
parent: f5ec58bea0f98675681f0e69d2e3cd8614cb7be9
parent: 4b4445138d62fd072552344568938f96344f9c09
author: Bryan Bishop <[email protected]>
date: Sun May 12 03:53:46 EDT 2013

Merge pull request #132 from yenatch/master

map groups + gfx.py fix

--- a/extras/gfx.py
+++ b/extras/gfx.py
@@ -1440,7 +1440,7 @@
 						to_png(os.path.join(root, name), None, os.path.join(root, os.path.splitext(name)[0]+'.pal'))
 					else:
 						to_png(os.path.join(root, name))
-					os.touch(os.path.join(root, name))
+					os.utime(os.path.join(root, name), None)
 	
 	# only monster and trainer pics for now
 	for root, dirs, files in os.walk('../gfx/pics/'):
@@ -1451,7 +1451,7 @@
 					to_png(os.path.join(root, name), None, os.path.join(root, 'normal.pal'))
 				else:
 					to_png(os.path.join(root, name))
-				os.touch(os.path.join(root, name))
+				os.utime(os.path.join(root, name), None)
 	
 	for root, dirs, files in os.walk('../gfx/trainers/'):
 		for name in files:
@@ -1458,7 +1458,7 @@
 			if debug: print os.path.splitext(name), os.path.join(root, name)
 			if os.path.splitext(name)[1] == '.2bpp':
 				to_png(os.path.join(root, name), None, os.path.join(root, name[:-5]+'.pal'))
-				os.touch(os.path.join(root, name))
+				os.utime(os.path.join(root, name), None)
 
 
 def mass_decompress(debug=False):
@@ -1483,7 +1483,7 @@
 				else:
 					with open(os.path.join(root, name), 'rb') as lz: de = Decompressed(lz.read())
 					to_file(os.path.join(root, os.path.splitext(name)[0]+'.2bpp'), de.output)
-				os.touch(os.path.join(root, name))
+				os.utime(os.path.join(root, name), None)
 
 def append_terminator_to_lzs(directory):
 	# fix lzs that were extracted with a missing terminator
--- a/main.asm
+++ b/main.asm
@@ -12678,7 +12678,6 @@
 
 MapGroupPointers: ; 0x94000
 ; pointers to the first map header of each map group
-	dw MapGroup0
 	dw MapGroup1
 	dw MapGroup2
 	dw MapGroup3
@@ -12704,6 +12703,7 @@
 	dw MapGroup23
 	dw MapGroup24
 	dw MapGroup25
+	dw MapGroup26
 
 
 INCLUDE "maps/map_headers.asm"
--- a/maps/map_headers.asm
+++ b/maps/map_headers.asm
@@ -1,5 +1,5 @@
 
-MapGroup0:
+MapGroup1:
 
 OlivinePokeCenter1F_MapHeader: ; 0x94034
 	; bank, tileset, permission
@@ -158,7 +158,7 @@
 ; 0x940b2
 
 
-MapGroup1:
+MapGroup2:
 
 MahoganyRedGyaradosSpeechHouse_MapHeader: ; 0x940b2
 	; bank, tileset, permission
@@ -238,7 +238,7 @@
 ; 0x940f1
 
 
-MapGroup2:
+MapGroup3:
 
 SproutTower1F_MapHeader: ; 0x940f1
 	; bank, tileset, permission
@@ -1242,7 +1242,7 @@
 ; 0x94424
 
 
-MapGroup3:
+MapGroup4:
 
 EcruteakHouse_MapHeader: ; 0x94424
 	; bank, tileset, permission
@@ -1344,7 +1344,7 @@
 ; 0x94475
 
 
-MapGroup4:
+MapGroup5:
 
 BlackthornGym1F_MapHeader: ; 0x94475
 	; bank, tileset, permission
@@ -1457,7 +1457,7 @@
 ; 0x944cf
 
 
-MapGroup5:
+MapGroup6:
 
 CinnabarPokeCenter1F_MapHeader: ; 0x944cf
 	; bank, tileset, permission
@@ -1548,7 +1548,7 @@
 ; 0x94517
 
 
-MapGroup6:
+MapGroup7:
 
 CeruleanGymBadgeSpeechHouse_MapHeader: ; 0x94517
 	; bank, tileset, permission
@@ -1738,7 +1738,7 @@
 ; 0x945b0
 
 
-MapGroup7:
+MapGroup8:
 
 AzaleaPokeCenter1F_MapHeader: ; 0x945b0
 	; bank, tileset, permission
@@ -1818,7 +1818,7 @@
 ; 0x945ef
 
 
-MapGroup8:
+MapGroup9:
 
 LakeofRageHiddenPowerHouse_MapHeader: ; 0x945ef
 	; bank, tileset, permission
@@ -1887,7 +1887,7 @@
 ; 0x94625
 
 
-MapGroup9:
+MapGroup10:
 
 Route32_MapHeader: ; 0x94625
 	; bank, tileset, permission
@@ -2077,7 +2077,7 @@
 ; 0x946be
 
 
-MapGroup10:
+MapGroup11:
 
 Route34_MapHeader: ; 0x946be
 	; bank, tileset, permission
@@ -2344,7 +2344,7 @@
 ; 0x94796
 
 
-MapGroup11:
+MapGroup12:
 
 Route6_MapHeader: ; 0x94796
 	; bank, tileset, permission
@@ -2490,7 +2490,7 @@
 ; 0x9480b
 
 
-MapGroup12:
+MapGroup13:
 
 Route1_MapHeader: ; 0x9480b
 	; bank, tileset, permission
@@ -2559,7 +2559,7 @@
 ; 0x94841
 
 
-MapGroup13:
+MapGroup14:
 
 Route3_MapHeader: ; 0x94841
 	; bank, tileset, permission
@@ -2650,7 +2650,7 @@
 ; 0x94889
 
 
-MapGroup14:
+MapGroup15:
 
 OlivinePort_MapHeader: ; 0x94889
 	; bank, tileset, permission
@@ -2785,7 +2785,7 @@
 ; 0x948f5
 
 
-MapGroup15:
+MapGroup16:
 
 Route23_MapHeader: ; 0x948f5
 	; bank, tileset, permission
@@ -2876,7 +2876,7 @@
 ; 0x9493d
 
 
-MapGroup16:
+MapGroup17:
 
 Route13_MapHeader: ; 0x9493d
 	; bank, tileset, permission
@@ -3022,7 +3022,7 @@
 ; 0x949b2
 
 
-MapGroup17:
+MapGroup18:
 
 Route8_MapHeader: ; 0x949b2
 	; bank, tileset, permission
@@ -3179,7 +3179,7 @@
 ; 0x94a30
 
 
-MapGroup18:
+MapGroup19:
 
 Route28_MapHeader: ; 0x94a30
 	; bank, tileset, permission
@@ -3226,7 +3226,7 @@
 ; 0x94a54
 
 
-MapGroup19:
+MapGroup20:
 
 PokeCenter2F_MapHeader: ; 0x94a54
 	; bank, tileset, permission
@@ -3295,7 +3295,7 @@
 ; 0x94a8a
 
 
-MapGroup20:
+MapGroup21:
 
 Route7_MapHeader: ; 0x94a8a
 	; bank, tileset, permission
@@ -3584,7 +3584,7 @@
 ; 0x94b74
 
 
-MapGroup21:
+MapGroup22:
 
 Route40_MapHeader: ; 0x94b74
 	; bank, tileset, permission
@@ -3763,7 +3763,7 @@
 ; 0x94c04
 
 
-MapGroup22:
+MapGroup23:
 
 Route2_MapHeader: ; 0x94c04
 	; bank, tileset, permission
@@ -3909,7 +3909,7 @@
 ; 0x94c79
 
 
-MapGroup23:
+MapGroup24:
 
 Route26_MapHeader: ; 0x94c79
 	; bank, tileset, permission
@@ -4055,7 +4055,7 @@
 ; 0x94cee
 
 
-MapGroup24:
+MapGroup25:
 
 Route5_MapHeader: ; 0x94cee
 	; bank, tileset, permission
@@ -4223,7 +4223,7 @@
 ; 0x94d75
 
 
-MapGroup25:
+MapGroup26:
 
 Route30_MapHeader: ; 0x94d75
 	; bank, tileset, permission