{"id":16145831,"url":"https://github.com/elenterius/stau","last_synced_at":"2025-04-06T20:25:57.116Z","repository":{"id":82564643,"uuid":"299449302","full_name":"Elenterius/stau","owner":"Elenterius","description":"Python scripts for reading/writing Star Trek Armada SOD model files.","archived":false,"fork":false,"pushed_at":"2020-10-12T18:13:29.000Z","size":1405,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-13T02:29:50.675Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Elenterius.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-09-28T22:49:21.000Z","updated_at":"2024-05-24T05:43:56.000Z","dependencies_parsed_at":"2023-03-06T10:45:37.210Z","dependency_job_id":null,"html_url":"https://github.com/Elenterius/stau","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Elenterius%2Fstau","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Elenterius%2Fstau/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Elenterius%2Fstau/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Elenterius%2Fstau/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Elenterius","download_url":"https://codeload.github.com/Elenterius/stau/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247545311,"owners_count":20956146,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-10T00:17:51.049Z","updated_at":"2025-04-06T20:25:57.090Z","avatar_url":"https://github.com/Elenterius.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Star Trek Armada Python Utilities\nPython scripts for reading/writing Start Trek Armada SOD model files.\n\n# Storm3D SOD (.sod) Files\n**custom SOD parser/builder without external dependencies**\n```python\nsod_io = SodIO() # sod_io.py\n\n# parse sod file\nfile_path = 'D:\\\\Program Files (x86)\\\\Activision\\\\Star Trek Armada II\\\\SOD\\\\fbattle.sod'\nsod: Sod = sod_io.read_file(file_path)\n\n...\n\n# export sod as json\nwith open('../dump/fbattle.json', 'w') as outfile:\n    json.dump(sod.to_dict(), outfile)\n\n...\n\n# write sod obj to file\nsod_io.write_file(sod, '../dump/fbattle.sod')\n```\n**SOD parser/builder script using the construct library**\n```python\nfrom construct import *\nfrom sod_construct_io import sod_format \n\nfile_path = 'D:\\\\Program Files (x86)\\\\Activision\\\\Star Trek Armada II\\\\SOD\\\\fconst.sod'\n\nwith open(file_path, 'rb') as binary_io:\n    sod_container: Container = sod_format.parse_stream(binary_io)\n\nversion: float = sod_container.get(\"version\")\ndata: Container = sod_container.get(\"data\")\nnodes: ListContainer = data.get(\"nodes\")\n\n...\n\nsod_format.build_file({...}, '../dump/fconst.sod')\n```\nSupported SOD Versions:\n- 1.6\n- 1.7\n- 1.8\n- 1.90, 1.91, 1.92, 1.93\n \nmileage may vary :shrug:\n \nTry it out and let me know what doesn't works.\n\n### Blender Addon [WIP]\nImport SOD models with all the hardpoints, etc.\n\n![](media/blender_addon_01.png)\n\nBlender Version: 2.8.x\n\n##### TODO:\n- [ ] add sod export capability\n- [ ] add animation import/export\n- [ ] remove hacky import \u0026 make it a proper addon\n\n# ODF Files\n#### ODF Parser\nReturns a dict containing the compiled result of an odf including all parent odfs.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Felenterius%2Fstau","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Felenterius%2Fstau","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Felenterius%2Fstau/lists"}