Era Developer
|
|
Join Date: Mar 2005
Location: Pennsylvania
Posts: 1,589
|
|
Let me try to explain prefixes a bit better.
A prefix is a character that comes before a word/sentence/etc. A prefix in files are what comes before that filename.
Example: Say the prefix is level_. Say the level name is lol.nw.
Now, take the level name, lol.nw, and put the level_ prefix on it. It becomes level_lol.nw.
Question: Who cares?
Answer: Many times, when you see random blocks or unusable tiles, it's because the wrong prefix was used.
Take a look at the tiledefs for Zone.
PHP Code:
tileset_zone-blank.png,zone,1,0,0
zone_stars.gif,zone_start,4,320,64
zone_stars.gif,zone_dropship_,4,512,0
tileset_zone-dropship.png,zone_dropship_,4,1024,256
tileset_zone-dropship2.png,zone_dropship_,4,1408,256
tileset_zone-dropship3.png,zone_dropship_,4,1024,0
tileset_zone-floor1.png,zone_alpha,4,1024,0
tileset_zone-wall1up.png,zone_alpha,4,1472,256
tileset_zone-wall1top.png,zone_alpha,4,1536,256
tileset_zone-wall2up.png,zone_alpha,4,1504,304
tileset_zone-earth_gray.png,zone_alpha,4,1024,32
zone_tiles1.png,zone_alpha,4,768,48
zone_tiles2_gray.png,zone_alpha,4,1664,256
zone_tiles3.png,zone_alpha,4,1504,352
zone_tiles4-tent.png,zone_alpha,4,1504,448
zone_tiles5-paths_gray.png,zone_alpha,4,768,128
zone_tiles6-sulfpits_gray.png,zone_alpha,4,1664,352
tileset_zone-floor1.png,zone_ad,4,1024,0
tileset_zone-wall1up.png,zone_ad,4,1472,256
tileset_zone-wall1top.png,zone_ad,4,1536,256
tileset_zone-wall2up.png,zone_ad,4,1504,304
tileset_zone-earth.png,zone_ad,4,1024,32
zone_tiles1.png,zone_ad,4,768,48
zone_tiles2.png,zone_ad,4,1664,256
zone_tiles3.png,zone_ad,4,1504,352
zone_tiles4-tent.png,zone_ad,4,1504,448
zone_tiles5-paths.png,zone_ad,4,768,128
zone_tiles6-sulfpits.png,zone_ad,4,1664,352
tileset_zone-floor1.png,zone_showdown,4,1024,0
tileset_zone-wall1up.png,zone_showdown,4,1472,256
tileset_zone-wall1top.png,zone_showdown,4,1536,256
tileset_zone-wall2up.png,zone_showdown,4,1504,304
tileset_zone-earth.png,zone_showdown,4,1024,32
zone_tiles1.png,zone_showdown,4,768,48
zone_tiles2.png,zone_showdown,4,1664,256
zone_tiles3.png,zone_showdown,4,1504,352
zone_tiles4-tent.png,zone_showdown,4,1504,448
zone_tiles5-paths.png,zone_showdown,4,768,128
zone_tiles6-sulfpits_water.png,zone_showdown,4,1664,352
tileset_zone-floor1.png,zone_koth,4,1024,0
tileset_zone-wall1up.png,zone_koth,4,1472,256
tileset_zone-wall1top.png,zone_koth,4,1536,256
tileset_zone-wall2up.png,zone_koth,4,1504,304
tileset_zone-earth_brown.png,zone_koth,4,1024,32
zone_tiles1.png,zone_koth,4,768,48
zone_tiles2_brown.png,zone_koth,4,1664,256
zone_tiles3.png,zone_koth,4,1504,352
zone_tiles4-tent.png,zone_koth,4,1504,448
zone_tiles5-paths_brown.png,zone_koth,4,768,128
zone_tiles6-sulfpits_brown.png,zone_koth,4,1664,352
tileset_zone-floor1.png,zone_arctic,4,1024,0
tileset_zone-wall1up.png,zone_arctic,4,1472,256
tileset_zone-wall1top.png,zone_arctic,4,1536,256
tileset_zone-wall2up.png,zone_arctic,4,1504,304
tileset_zone-earth_arctic.png,zone_arctic,4,1024,32
zone_tiles1.png,zone_arctic,4,768,48
zone_tiles2_arctic.png,zone_arctic,4,1664,256
zone_tiles3.png,zone_arctic,4,1504,352
zone_tiles4-tent.png,zone_arctic,4,1504,448
tileset_zone-floor1.png,zone_wars,4,1024,0
tileset_zone-wall1up.png,zone_wars,4,1472,256
tileset_zone-wall1top.png,zone_wars,4,1536,256
tileset_zone-wall2up.png,zone_wars,4,1504,304
tileset_zone-earth_arctic.png,zone_wars,4,1024,32
tileset_zone-earth.png,zone_wars,4,1424,32
zone_tiles1.png,zone_wars,4,768,48
zone_tiles2_arctic.png,zone_wars,4,1664,256
zone_tiles2.png,zone_wars,4,1664,352
zone_tiles3.png,zone_wars,4,1504,352
zone_tiles4-tent.png,zone_wars,4,1504,448
tileset_zone-floor1.png,zone_gwars,4,1024,0
tileset_zone-wall1up.png,zone_gwars,4,1472,256
tileset_zone-wall1top.png,zone_gwars,4,1536,256
tileset_zone-wall2up.png,zone_gwars,4,1504,304
tileset_zone-earth.png,zone_gwars,4,1024,32
zone_tiles1.png,zone_gwars,4,768,48
zone_tiles2.png,zone_gwars,4,1664,256
zone_tiles3.png,zone_gwars,4,1504,352
zone_tiles4-tent.png,zone_gwars,4,1504,448
zone_tiles5-paths.png,zone_gwars,4,768,128
zone_tiles6-sulfpits.png,zone_gwars,4,1664,352
Look at the fourth, fifth and sixth lines down. You will see this:
PHP Code:
tileset_zone-dropship.png,zone_dropship_,4,1024,256
tileset_zone-dropship2.png,zone_dropship_,4,1408,256
tileset_zone-dropship3.png,zone_dropship_,4,1024,0
There are three images listed there, one being tileset_zone-dropship.png. The image looks like this:
Question: What does that matter?
Answer: That's a group of tiles that you can use for level editing.
Question: Wow! How do I use them!?
Answer: Prefixes.
This is how we will do this. Look at the first line. Notice zone_dropship_ after the image name? Guess what? That's a prefix. Use that prefix in your level name and that image will appear on your tileset. You may have noticed this prefix is also in the other two lines listed. So guess what? Those images will be added too!
I hope this answered some questions. |
|