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

Won't load single-file umap #11

Open
masonwheeler opened this issue Dec 5, 2020 · 1 comment
Open

Won't load single-file umap #11

masonwheeler opened this issue Dec 5, 2020 · 1 comment

Comments

@masonwheeler
Copy link

I'm attempting to use JFortniteParse to load a Unreal map. However, because the map is a single file, without uexp and ubulk files split out, AbstractFileProvider.loadGameFile returns null. Attempting to modify the code to work around this doesn't work, as Package is hard-coded to look up all the export data in the uexp file.

A bit of Googling suggests that I can force Unreal to split out those files by changing a couple settings in my project's Engine.ini file. After making this change, then attempting to re-save the map, both in-place and as a copy in a different folder, it still saves only as a single file, even after shutting down and restarting Unreal.

I'm kind of lost now. What do I have to do to be able to load and process the data in this map?

@masonwheeler
Copy link
Author

I'm no expert at these things, but it looks like what splitting the file data out does is turn the asset file into an index and put the data in the other files. So I thought to try editing AbstractFileProvider to tell it that the data file and the asset (index) file are one and the same in that case:

val uexp = saveGameFile(path.substringBeforeLast(".") + ".uexp") ?: uasset

And... it almost worked. But when I go to load the map, FPackageFileSummary parsing blows up when it tries to read a truly absurd number of generations (23.6 million), reaching the end of the file partway through. So clearly it's not that simple.

Any help would be appreciated.

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

No branches or pull requests

1 participant