[closed, project moved to SMTools][File decoder] - SMDecoder php/node.js

    Joined
    Jun 29, 2013
    Messages
    144
    Reaction score
    64
    • Modder
    • Legacy Citizen 4
    • Purchased!
    Hi everyone,

    This php class let's you decode some StarMade file to re use information in your web based project.
    It can be used to check server statut and extra info.
    For documentation and credits see the readme.md file on github

    Download:


    Version: 0.7
    SM-Version: dev build 0.19+

    Files supported:
    • *.cat
    • *.ent
    • *.fac
    • *.smbph
    • *.smbpl
    • *.smbpm -- actually broken
    • *.smd2
    • *.sment
    • *.smskin
    Exemple of project usage:
    0.7:
    - Full rewrite of SMDecoder
    - Move binary decoder inside std.php
    - Move stream read functions inside std.php
    - Update decoder for dev build 0.19+
    - Need fix for *.smbpm format
    - Need fix for format functions

    • add support for *.smsec format
    • upgrade *.cat format
    • upgrade *.fac format
    • upgrade *.ent format
    • upgrade *.smbph format
    • upgrade *.smbpl format
    • upgrade *.smbpm format
    • upgrade *.smd2 format
    • add support for *.sment format
    • add support for *.smskin format
     
    Last edited:
    • Like
    Reactions: Calbiri
    Joined
    Jun 20, 2013
    Messages
    462
    Reaction score
    70
    • Legacy Citizen 3
    • Purchased!
    • Community Content - Bronze 1
    i see .smskin is not in the list? could you add that
    Je vois que .smskin n'est pas dans la liste tu peux l'ajouter un jour?
     
    Joined
    Jun 29, 2013
    Messages
    144
    Reaction score
    64
    • Modder
    • Legacy Citizen 4
    • Purchased!
    Yes, I can see for implementing *.smskin. Format .*sment are not yet implemented

    Oui, je peux voir pour implémenter le *.smskin. Le format *.sment n'est pas encore implémenté lui aussi.
     
    • Like
    Reactions: testkil
    Joined
    Jun 29, 2013
    Messages
    144
    Reaction score
    64
    • Modder
    • Legacy Citizen 4
    • Purchased!
    I've updated SMDecoder for Starmade 0.175

    Change-log:
    • Update to StarMade 0.175
    • Added support for .sment (not for docked parts)
    • Added support for .smskin
    • Improve formating code
     
    • Like
    Reactions: Megacrafter127
    Joined
    Jun 29, 2013
    Messages
    144
    Reaction score
    64
    • Modder
    • Legacy Citizen 4
    • Purchased!
    New update, SMDecode is also available for node.js!
    Put the file to your server folder and add
    Code:
    SMD = require('./SMDecoder.js')
    to load it.
    .sment reader is not yet implemented in SMDecoder.js
     
    Joined
    Jun 29, 2013
    Messages
    144
    Reaction score
    64
    • Modder
    • Legacy Citizen 4
    • Purchased!
    Hello evrybody! Somes news about this project :)

    I've completly rewrite the SMDecoder class for php, now you'll have two file, std.php with two class, Binary and StreamReader.
    The Binary class is a simplified version of my old binary decoder (13 functions to 5 functions).
    The StreamReader privide basic fonctions to open end read file byte by byte.
    This file can be used without SMD and for other project than StarMade.
    BTW SMDecoder was fully rewrite to use thoses class and actually seems to read every starmade files (but i need to do more test).
    At last i curently rewrite all the formating functions and i think that i'll switch to a xml format because it's seems to be more appropriate with the default decoded format.

    I think the update will come really soon.
     
    Joined
    Jun 29, 2013
    Messages
    144
    Reaction score
    64
    • Modder
    • Legacy Citizen 4
    • Purchased!
    I've updated SMDecoder for Starmade 0.19+

    Change-log:
    • Move binary decoder inside std.php
    • Move stream read functions inside std.php
    • Update decoder for dev build 0.19+
    • Need fix for *.smbpm format
    • Need fix for format functions