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

PheonixTool expand broke #4

Open
sugoidogo opened this issue Mar 13, 2018 · 5 comments
Open

PheonixTool expand broke #4

sugoidogo opened this issue Mar 13, 2018 · 5 comments

Comments

@sugoidogo
Copy link

phxtool.exe --env=phx --tool=era --mode=expand --path="C:\Users\Josef\Documents\Halo Wars Mods\vanilla\root" --out="C:\Users\Josef\Documents\Halo Wars Mods\vanilla" --name=root
Era:Expander: Treating ERA as 64-bit (Definitive Edition)
	Removing XMB file #1652 'art\effects\shield_dome\shield_fade_fast_01.xml.xmb' from listing since its XML already exists art\effects\shield_dome\shield_fade_fast_01.xml
	Removing XMB file #1653 'art\effects\shield_dome\shield_flicker_animation_01.xml.xmb' from listing since its XML already exists art\effects\shield_dome\shield_flicker_animation_01.xml
	Encountered an error while expanding archive: System.ArgumentNullException: Buffer cannot be null.
Parameter name: buffer
   at System.IO.MemoryStream..ctor(Byte[] buffer, Boolean writable)
   at KSoft.Phoenix.Resource.EraFile.TransformXmbToXml(Byte[] eraFileEntryBuffer, String fullPath, EndianFormat byteOrder, ProcessorSize vaSize)
   at KSoft.Phoenix.Resource.EraFile.UnpackToDisk(EndianStream blockStream, String fullPath, EraFileExpander expander, EraFileEntryChunk file)
   at KSoft.Phoenix.Resource.EraFile.TryUnpack(EndianStream blockStream, String workPath, EraFileExpander expander, EraFileEntryChunk file)
   at KSoft.Phoenix.Resource.EraFile.ExpandTo(EndianStream blockStream, String workPath)
   at KSoft.Phoenix.Resource.EraFileExpander.ExpandTo(String workPath, String listingName)
@kornman00
Copy link
Collaborator

Do you still have issues with 1.0.8's binaries?

@sugoidogo
Copy link
Author

I never actually got around to testing your new binaries. I'll have to re-install HWDE and get my dev env set up again (I had to wipe my pc recently)

@sugoidogo
Copy link
Author

sugoidogo commented May 27, 2018

Looks like same error in phxtool.exe

Input:  C:\Program Files (x86)\Steam\steamapps\common\HaloWarsDE\root.era
Output: C:\Users\Josef\Documents\Halo Wars Mods\vanilla\root.era.bin
phxtool.exe --env=phx --tool=era --mode=expand --path="C:\Users\Josef\Documents\Halo Wars Mods\vanilla\root" --out="C:\Users\Josef\Documents\Halo Wars Mods\vanilla" --name=root
Era:Expander: Treating ERA as 64-bit (Definitive Edition)
	Removing XMB file #1652 'art\effects\shield_dome\shield_fade_fast_01.xml.xmb' from listing since its XML already exists art\effects\shield_dome\shield_fade_fast_01.xml
	Removing XMB file #1653 'art\effects\shield_dome\shield_flicker_animation_01.xml.xmb' from listing since its XML already exists art\effects\shield_dome\shield_flicker_animation_01.xml
	Encountered an error while expanding archive: System.ArgumentNullException: Buffer cannot be null.
Parameter name: buffer
   at System.IO.MemoryStream..ctor(Byte[] buffer, Boolean writable)
   at KSoft.Phoenix.Resource.EraFile.TransformXmbToXml(Byte[] eraFileEntryBuffer, String fullPath, EndianFormat byteOrder, ProcessorSize vaSize)
   at KSoft.Phoenix.Resource.EraFile.UnpackToDisk(EndianStream blockStream, String fullPath, EraFileExpander expander, EraFileEntryChunk file)
   at KSoft.Phoenix.Resource.EraFile.TryUnpack(EndianStream blockStream, String workPath, EraFileExpander expander, EraFileEntryChunk file)
   at KSoft.Phoenix.Resource.EraFile.ExpandTo(EndianStream blockStream, String workPath)
   at KSoft.Phoenix.Resource.EraFileExpander.ExpandTo(String workPath, String listingName)

@kornman00
Copy link
Collaborator

Sorry :(, I'll looking fixing it later this week (hopefully!)

@kornman00
Copy link
Collaborator

Granted, I haven't tried debugging the 2018 binaries that are currently up, but running the following command with the 8th switch set to true (to decrypt the era in-place) with the latest code works:
--env=phx --tool=era --mode=expand --path="D:\SteamLibrary\steamapps\common\HaloWarsDE\root" --out="D:\HW\HWDE\Test" --name=root --switches=00000001

Era:Expander: Switch enabled - ERA will be loaded into memory and decrypted in place
Era:Expander: Treating ERA as 64-bit (Definitive Edition)
Opening and reading ERA file D:\SteamLibrary\steamapps\common\HaloWarsDE\root.era...
Decrypting...
        Verifying file hashes...
                Done
Removing any XMB files if their XML counterpart exists...
        Removing XMB file #1652 'art\effects\shield_dome\shield_fade_fast_01.xml.xmb' from listing since its XML already exists art\effects\shield_dome\shield_fade_fast_01.xml
        Removing XMB file #1653 'art\effects\shield_dome\shield_flicker_animation_01.xml.xmb' from listing since its XML already exists art\effects\shield_dome\shield_flicker_animation_01.xml
Outputting listing...
Expanding archive to D:\HW\HWDE\Test...
        Unpacking files...
                Done
Done
Done

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

2 participants