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...
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...
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
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.
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...
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...
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...
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...
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
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...
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...
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...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.