H2Codez icon indicating copy to clipboard operation
H2Codez copied to clipboard

Singleplayer maps compiled using single_player_shared.map instead of shared.map crash.

Open General-101 opened this issue 7 years ago • 0 comments

There is a section in H2Codez here

https://github.com/Himanshu-01/H2Codez/blob/H2OS_EK/H2Codez/H2Tool_Commands.cpp#L364

Uncommenting this line causes the compiler to crash whether the map is singleplayer or not. Not sure if bin files might affect anything as you can delete the bin folder and maps will still compile. Here is the log

https://pastebin.com/U6E3PH20

Look at line 106-109. This is what tool says about the missing bin files

file_open('C:\Program Files (x86)\Microsoft Games\Halo 2 Map Editor\bin\ui_shared_resource_header.bin') error 0x00000003 'The system cannot find the path specified. ' file_close('C:\Program Files (x86)\Microsoft Games\Halo 2 Map Editor\bin\ui_shared_resource_header.bin') error 0x00000006 'The handle is invalid. ' file_open('C:\Program Files (x86)\Microsoft Games\Halo 2 Map Editor\bin\multiplayer_shared_resource_header.bin') error 0x00000003 'The system cannot find the path specified. ' file_close('C:\Program Files (x86)\Microsoft Games\Halo 2 Map Editor\bin\multiplayer_shared_resource_header.bin') error 0x00000006 'The handle is invalid. '

Map still functions ingame and seems to suffer no negative effects.

This is a log and dump file with line 364 in H2Tool_Commands.cpp uncommented.

https://pastebin.com/suR0xBzC

https://mega.nz/#!l8kgXD5A!2_0EcCrfn-3FPBjxVcL8FXQvZYrmQfA5fcVYSnFcZac

Same map from before except with that line uncommented packaging fails.

General-101 avatar Mar 18 '18 19:03 General-101