Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DD2 Support #25

Closed
TooMuchLegacy opened this issue Jun 8, 2018 · 2 comments
Closed

DD2 Support #25

TooMuchLegacy opened this issue Jun 8, 2018 · 2 comments
Assignees
Labels
Milestone

Comments

@TooMuchLegacy
Copy link

                /// <summary>
                /// 688/117
                /// </summary>
                [Build(688, 117)]
                DungeonDefenders2,

SerialOffset is always 0 for export table items.

How to calculate:
SerialOffset = Package.HeaderSize + Sum of SerialSize of previous items
or:

#if DUNGEONDEFENDERS2
            if (stream.Package.Build == UnrealPackage.GameBuild.BuildName.DungeonDefenders2)
            {
                if (stream.Package.Exports.Count == 0)
                {
                    SerialOffset = (int)(stream.Package.HeaderSize);
                }
                else
                {
                    var PreviousExportTableItem = stream.Package.Exports[stream.Package.Exports.Count - 1];
                    SerialOffset = (int)(PreviousExportTableItem.SerialOffset+ PreviousExportTableItem.SerialSize);                    
                }
            }
#endif   

Sorry for leaving this as an issue. I can branch when I have the time; if needed.
Maybe also someone else has a better idea how to do the trick? Espiacally because of the long->int casting ...

@EliotVU EliotVU self-assigned this Jun 23, 2022
@EliotVU EliotVU added this to the 1.4.0 milestone Jun 23, 2022
@EliotVU
Copy link
Owner

EliotVU commented Jun 23, 2022

Thanks, I'll be pushing a fix for this game soon!

Better late than never :D

EliotVU added a commit that referenced this issue Jun 23, 2022
Updated EngineBranch capabilities and re-factored some AA2 stuff to its own EngineBranch.
@EliotVU EliotVU closed this as completed Jun 23, 2022
@TooMuchLegacy
Copy link
Author

The good old times when I digged through dd2. 😆
Thanks for bringing back the memories and especially for maintaining this project.
🥇

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants