diff --git a/extra/010 Editor/helldivers2_datafile.bt b/extra/010 Editor/helldivers2_datafile.bt index c0b4576..255e814 100644 --- a/extra/010 Editor/helldivers2_datafile.bt +++ b/extra/010 Editor/helldivers2_datafile.bt @@ -19,7 +19,7 @@ #define IS_INCLUDE #define HELLDIVERS2_DATAFILE_INCLUDE #endif -#include "helldivers2_common.bt" +#include "common.bt" #ifdef HELLDIVERS2_DATAFILE_INCLUDE #undef IS_INCLUDE #endif diff --git a/extra/010 Editor/stingray_bundle.bt b/extra/010 Editor/stingray_bundle.bt new file mode 100644 index 0000000..30d4612 --- /dev/null +++ b/extra/010 Editor/stingray_bundle.bt @@ -0,0 +1,43 @@ +// Copyright 2024 Michael Fabian 'Xaymar' Dirks +// +// Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: +// +// 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. +// 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. +// 3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS “AS IS” AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +// + +// Thanks to: +// - h3x3r (https://reshax.com/profile/183-h3x3r/) for providing the BMS script that this is based on. + +#ifndef STINGRAY_BUNDLE_DATABASE +#define STINGRAY_BUNDLE_DATABASE + +#ifndef IS_INCLUDE + #define IS_INCLUDE + #define STINGRAY_BUNDLE_DATABASE_INCLUDE +#endif +#include "common.bt" +#ifdef STINGRAY_BUNDLE_DATABASE_INCLUDE + #undef IS_INCLUDE +#endif + +struct stingray_bundle_t { + uint32_t __unk; + uint32_t count; + struct { + uint32_t count; + struct { + uint32_t length; + char text[length]; + } path[count] ; + } entry[count] ; +}; + +#ifndef IS_INCLUDE +stingray_bundle_t StingrayBundle; +#endif + +#endif \ No newline at end of file diff --git a/extra/010 Editor/stingray_stream.bt b/extra/010 Editor/stingray_stream.bt new file mode 100644 index 0000000..fa6bdfb --- /dev/null +++ b/extra/010 Editor/stingray_stream.bt @@ -0,0 +1,42 @@ +// Copyright 2024 Michael Fabian 'Xaymar' Dirks +// +// Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: +// +// 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. +// 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. +// 3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS “AS IS” AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +// + +// Thanks to: +// - h3x3r (https://reshax.com/profile/183-h3x3r/) for providing the BMS script that this is based on. + +#ifndef STINGRAY_STREAM +#define STINGRAY_STREAM + +#ifndef IS_INCLUDE + #define IS_INCLUDE + #define STINGRAY_STREAM_INCLUDE +#endif +#include "common.bt" +#ifdef STINGRAY_STREAM_INCLUDE + #undef IS_INCLUDE +#endif + +struct stingray_stream_t { + BigEndian(); + uint32_t magic_number ; + LittleEndian(); + uint32_t __unk ; + uint32_t __unk ; + uint32_t size ; + char data[size] ; + +}; + +#ifndef IS_INCLUDE +stingray_stream_t StingrayStream; +#endif + +#endif \ No newline at end of file diff --git a/extra/010 Editor/unit.bt b/extra/010 Editor/unit.bt index 455ffdb..2c12a47 100644 --- a/extra/010 Editor/unit.bt +++ b/extra/010 Editor/unit.bt @@ -309,8 +309,9 @@ struct unit_t { uint32_t __unk_commonhash[count] ; LittleEndian(); - uint32_t __unk ; - uint32_t __unk ; + // Overlaps into __unk4/__unk5. + //uint32_t __unk ; + //uint32_t __unk ; } __unk1; }