SPK

From Spheriki

Jump to: navigation, search

The .spk file type refers to a sphere game package file. It is just a modified version of a .zip file and is designed to carry all of your games' content to be played in the engine.

Running an SPK with Sphere

  • The easiest method in Windows is to find the .spk and drag it on top of the engine.exe file. This will invoke windows to run the .spk with the engine.
  • For use in a console or batch/link file: first, locate your Sphere engine executable. If your .spk is in there with the engine all you'll need to do is type:
engine name_of_spk_file.spk
  • In the Linux console it works pretty much like the above. If you're running Sphere through Wine, however, don't forget to add "wine" in front of your command, like this:
wine engine name_of_spk_file.spk



Some useful commands in the commandline shell: To view the list of files in the directory, use:

dir

To change to a different directory, use:

cd <path>

Don't forget to add double quotes to the path if it contains spaces. This also counts for file names. Examples:

cd "C:\Program Files\Sphere"
engine "Name of SPK file.spk"

Unpacking SPKs

There are a few programs out there that can unpack SPK files. The most well-known is the following SPK unpacker. It will unpack your file into a directory so you can look straight at the project's source and play it by other means.

Knows bugs with SPK files

  • it will not play MIDI files. If you have any in your game, you will receive an error on how the MIDI file does not exist, even if it does.
  • it may not load a file that is buried in multiple subdirectories.
Personal tools