Search results

    1. Q

      Ship File Format

      Looked at the code again and I think I was slightly off (again) about the bitfield of the blocks. Here it is again amended, let me know if this helps, and I will update the script as well. 23-21 3 lower bits of orientation 20 isActive or MSB of the orientation...
    2. Q

      Created a server where you can upload blueprints and then view them online.

      I\'m curious to know if AltF4Dead\'s issue is because the page isn\'t ignoring the chunks which are missing from the chunk index table at the beginning of the .smd2 file. Here\'s the file format from the comments of my python based blueprint reader: start type 0 int unknown int 4...
    3. Q

      Offline Ship Editor

      Apparently not every browser plays nice with any of the object/embed/applet tags...you might try deployJava.js which is supposed to pick the most reliable method based on the browser you are using
    4. Q

      Ship File Format

      I see the price is stored in the catalog.cat file in the server database
    5. Q

      Ship File Format

      I didn\'t see price stored anywhere in the .sment/files in the blueprint folder. It must be in the database where the ship descriptions/etc. are?
    6. Q

      Offline Ship Editor

      Looks great jjaquinta, good work! :) I also love this idea of having a web applet or similar that websites can use as a sort of blueprint previewer/thumbnail generator.
    7. Q

      Ship File Format

      Ah, that makes sense :) Also, please refer to my last commits referred here: https://github.com/StarMade/StarMade/pull/6 The first ~64KB section is mostly understood now * The first 32KB section is a table which I called chunkIndex table. It is arranged in 16x16x16 grid and consists of an int...
    8. Q

      Ship File Format

      Do what you want, I wrote it mainly as an example and Python is generally simple to understand Definitely you\'ll want to implement in some other language if you want to make something efficient and that most people can download & use Edit: For github I think you\'ll either need to get...
    9. Q

      Ship File Format

      I just added some more info about the file structures in my last commit of an example script to the repo. At this point the logic/header structure is known (meta seems straightforward, but I didn\'t look much into it), along with the chunk part of the datafile. So now I will focus on trying to...
    10. Q

      Ship File Format

      Here is a rough example of what I was able to make parsing one of my ship blueprints for a small salvager ship. Using this script to help visually verify tha tthe parsing was being done properly which is mostly true although there is a bulge in the starboard engine which I don\'t recall being...
    11. Q

      Ship File Format

      Yes, just made some rough code to read through the file and print out stuff to the window, it needs more work to actually be useable in a script/program... https://github.com/StarMade/StarMade/pull/2
    12. Q

      Ship File Format

      well I found out some cool things about the format for the variable portion of the smd2 file. Basically with this info I think it\'s enough to at least be able to read a blueprint for the purposes of reconstructing overall look of a ship. As I mentioned in the last post smd2 file contains...
    13. Q

      Ship File Format

      It looks like to me that the .smd2 file consist the following: * an int (for file version)? * a fixed length portion 32,768 (0x8000) bytes long (consist of mostly alternating 0\'s and -1 int\'s, but there are a few other values here as well). * Then there is another fixed length portion of...
    14. Q

      Ship File Format

      Looking into this as well to make some kind of blueprint editor/viewer. So far fouund out these things about the files you were looking into. Although seems all I care about (info about where/what is each block in the ship) is all in the DATA subfolder. Maybe someone can start a documentation...