Skip to content

Commit

Permalink
Not much progress on this front. We're effectively stuck on #1
Browse files Browse the repository at this point in the history
  • Loading branch information
Xaymar committed Feb 29, 2024
1 parent f79b34f commit 45e64af
Show file tree
Hide file tree
Showing 4 changed files with 89 additions and 3 deletions.
2 changes: 1 addition & 1 deletion extra/010 Editor/helldivers2_datafile.bt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
43 changes: 43 additions & 0 deletions extra/010 Editor/stingray_bundle.bt
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
// Copyright 2024 Michael Fabian 'Xaymar' Dirks <[email protected]>
//
// 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] <optimize=false>;
} entry[count] <optimize=false>;
};

#ifndef IS_INCLUDE
stingray_bundle_t StingrayBundle;
#endif

#endif
42 changes: 42 additions & 0 deletions extra/010 Editor/stingray_stream.bt
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
// Copyright 2024 Michael Fabian 'Xaymar' Dirks <[email protected]>
//
// 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 <format=hex>;
LittleEndian();
uint32_t __unk <format=decimal>;
uint32_t __unk <format=hex>;
uint32_t size <format=decimal>;
char data[size] <format=hex>;

};

#ifndef IS_INCLUDE
stingray_stream_t StingrayStream;
#endif

#endif
5 changes: 3 additions & 2 deletions extra/010 Editor/unit.bt
Original file line number Diff line number Diff line change
Expand Up @@ -309,8 +309,9 @@ struct unit_t {
uint32_t __unk_commonhash[count] <format=hex>;
LittleEndian();

uint32_t __unk <format=hex>;
uint32_t __unk <format=hex>;
// Overlaps into __unk4/__unk5.
//uint32_t __unk <format=hex>;
//uint32_t __unk <format=hex>;
} __unk1;
}

Expand Down

0 comments on commit 45e64af

Please sign in to comment.