Spark Engine

Laynester

New member
Messages
3
Reaction score
1
hi, inspired by quacksters libreshockwave and the dirplayer, ive created my own "runtime" if u will,

The Dumper - this tool is used to decompress cct/dcrs, download the binary and install it, you can run it by doing "sparkd client_dir ./exported" client_dir being for example a folder with a bunch of ccts/dcrs, this walks all directories within the said directory so be careful when entering, ./exported being local from the root you run this to or you can do like c:/projects/exported-cct for example. this exports all images/texts and bitmap data required to recompress in my custom format spark-engine uses.

The Engine - this, is not like libre or dirplayer, it requires a custom format unlike the other two, i did it this way so the client didnt have to decompress the weird cct/dcr formats, to me this is easier to understand, if you wish to live more accurately to shockwave i suggest libreshockwave or dirplayer, this is again, a custom implementation, theres a tool in here you can use to bundle the files too, read the README for more information!

example usage:
HTML:
<spark-player movie="/casts/31/habbo.spark" sw1="site.url=http://www.habbo.ch;url.prefix=http://www.habbo.ch"
      sw2="connection.info.host=localhost;connection.info.port=12321" sw3="client.reload.url=http://localhost/"
      sw4="connection.mus.host=localhost;connection.mus.port=12322"
      sw5="external.variables.txt=/external_vars_31.txt?;external.texts.txt=http://localhost/v31/stuff/gamedata/external_texts.txt?"
      sw6="use.sso.ticket=1;sso.ticket=">
</spark-player>

obviously with your own loader info, how this works is, it loads the .spark files that you create by using the spark bundler, then as the lingo works it calls more files to be loaded, you shouldnt need to change anything related to texts/variables it should just work, with websockets tho so you will need to create a websocket proxy for your server or build it directly into your server, by default since the browser doesnt support "ws" on https it will default to "wss" on https and ws for http non ssl

i need people to test this, i believe its pretty close to being 1:1 ive just havent tested alot of furniture, battleball, snowstorm or any of the other mini-games, ive tested with v14 and v31 but id like more people to try it!
 
Back
Top Bottom