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

Halo 2 Map Loading Exception - build 2024.02.14.15.24.44-dev #366

Open
ToffeeSurprise opened this issue Jun 30, 2024 · 1 comment
Open

Comments

@ToffeeSurprise
Copy link

ToffeeSurprise commented Jun 30, 2024

Describe the bug
Attempting to load a stock MCC Halo 2 map in the latest public build 2024.02.14.15.24.44-dev results in the following error:

"Invalid index table header magic. This map could be compressed, try the Compressor in the Tools menu before reporting."

Full output:

"System.ArgumentException: Invalid index table header magic. This map could be compressed, try the Compressor in the Tools menu before reporting.
at Assembly.Metro.Controls.PageTemplates.Games.HaloMap.<>c__DisplayClass26_1.b__4()
at System.Windows.Threading.DispatcherOperation.InvokeDelegateCore()
at System.Windows.Threading.DispatcherOperation.InvokeImpl()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Windows.Threading.DispatcherOperation.Wait(TimeSpan timeout)
at System.Windows.Threading.Dispatcher.InvokeImpl(DispatcherOperation operation, CancellationToken cancellationToken, TimeSpan timeout)
at System.Windows.Threading.Dispatcher.Invoke(Action callback, DispatcherPriority priority, CancellationToken cancellationToken, TimeSpan timeout)
at System.Windows.Threading.Dispatcher.Invoke(Action callback)
at Assembly.Metro.Controls.PageTemplates.Games.HaloMap.InitalizeMap()
at System.ComponentModel.BackgroundWorker.OnDoWork(DoWorkEventArgs e)
at System.ComponentModel.BackgroundWorker.WorkerThreadStart(Object argument)"

To Reproduce
Steps to reproduce the behavior:

  1. Attempt to open a Halo 2 map.
  2. Assembly will fail to open the map and raises the above exception.

Expected behavior
The map should open in Assembly.

Screenshots
If applicable, add screenshots to help explain your problem.

PC (please complete the following information):

  • OS: [e.g. iOS]

Additional context
Attempted with multiple Halo 2 maps that are all stock. This only impacts Halo 2 maps, all other games in the collection have the map files open as expected.

@Lord-Zedd
Copy link
Member

Halo 2 maps in MCC are compressed. You can decompress them by selecting Tools>Map Compressor. The exception mentions compression but actually for H2 MCC I could make it more clear since the state of compression is a flag in the header.

Lord-Zedd added a commit that referenced this issue Jul 1, 2024
instead of waiting for it to fail at the tags header and muddying things, the compressed flag is now checked to simply tell the user that the map is compressed. #366
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