User:Chaosteil/Galaxy Stations/File format
		
		
		
		
		
		Jump to navigation
		Jump to search
		
		
	
Local data for Galaxy Stations will be stored on the SD card, under the /data/galaxystations directory.
- /data/galaxystations/
- servername/
- stations/
- awesomestation/
- otherdatathatisnotastation/
- ablanktile.png
 
 
- player/
 
- stations/
- preferences.txt/xml
 
- servername/
Keep in mind there will probably only be one server.
As you can see, each (cached) station is stored as a directory. This structure will look like the following:
- awesomestation/
- images/
- sounds/
- music/
- scripts/
- layers/
- background.bin
- level.bin
 
- station.txt/xml/whatever
- collision.bin
 
The directories can be anything, I just gave that as an example. The important part is station.txt/xml/whatever, a structured plaintext file, XML for example. Here is what I plan for it to look like (XML here)
<galaxystation>
  <layer z=-1>
    <binarytiles rel="layers/background.bin" />
  </layer>
  <collision>
    <blockbitmap rel="collision.bin" />
  </collision>
  <sprites>
    <sprite z=0>
      <pos x=42 y=69 />
      <png rel="images/switch.png" />
      <action>
        <lua call="killplayer()" />
      </action>
    </sprite>
  </sprites>
</galaxystation>
To be continued...