A Community discussion forum for Halo Custom Edition, Halo 2 Vista, Portal and Halo Machinima

Home  Search Register  Login Member ListRecent Posts
  
 
»Forums Index »Halo Custom Edition (Bungie/Gearbox) »Halo CE Technical / Map Design »How does one compile scripts for XBOX maps?

Author Topic: How does one compile scripts for XBOX maps? (5 messages, Page 1 of 1)
Moderators: Dennis

ayylien
Joined: Aug 30, 2018

The silent takedown.


Posted: Aug 30, 2018 09:24 PM    Msg. 1 of 5       
Heya. I'm pretty new to modding, and I took up a project on editing the campaign maps for the Original Xbox with Arsenic, as well as trying to edit some of their scripts. I've been able to extract the scripts, edit and save them, but I cannot seem to find a method to compile the scripts into the map I'm modifying. I tried using Sapien, but it keeps crashing after I open the scenario file with this message appearing in debug.txt:

08.30.18 20:41:10 a hobo pc 01.01.00.0609 ----------------------------------------------
08.30.18 20:41:10 reference function: _write_to_error_file
08.30.18 20:41:10 reference address: 401b13
08.30.18 20:41:10 Couldn't read map file './a_hobobeta.map'
08.30.18 20:41:10 CreateDevice succeeded with refresh rate = 0
08.30.18 20:41:10 Sound card doesn't meet minimum hardware requirements. Disabling hardware option.
08.30.18 20:41:11 file_open('tags\ui\editor\markers\normal\normal.gbxmodel') error 0x00000003 'The system cannot find the path specified. '
08.30.18 20:41:11 couldn't open gbxmodel tag 'normal.gbxmodel'.
08.30.18 20:41:11 EAX: 0x00000000
08.30.18 20:41:11 EBX: 0x706C6101
08.30.18 20:41:11 ECX: 0x00000000
08.30.18 20:41:11 EDX: 0x00000000
08.30.18 20:41:11 EDI: 0x0019F298
08.30.18 20:41:11 ESI: 0x00000000
08.30.18 20:41:11 EBP: 0x0019F170
08.30.18 20:41:11 ESP: 0x0019F164
08.30.18 20:41:11 EIP: 0x7773B0BC, C2 08 00 90 ?????
08.30.18 20:41:11 EXCEPTION halt in .\editor_renderer.cpp,#189: marker.model_index!=NONE

Any ideas would be much appreciated, thanks!
Edited by ayylien on Aug 30, 2018 at 09:25 PM
Edited by ayylien on Aug 30, 2018 at 09:29 PM


DeadHamster
Joined: Jun 8, 2014


Posted: Aug 30, 2018 10:01 PM    Msg. 2 of 5       
Quote: --- Original message by: ayylien

Heya. I'm pretty new to modding, and I took up a project on editing the campaign maps for the Original Xbox with Arsenic, as well as trying to edit some of their scripts. I've been able to extract the scripts, edit and save them, but I cannot seem to find a method to compile the scripts into the map I'm modifying. I tried using Sapien, but it keeps crashing after I open the scenario file with this message appearing in debug.txt:

08.30.18 20:41:10 a hobo pc 01.01.00.0609 ----------------------------------------------
08.30.18 20:41:10 reference function: _write_to_error_file
08.30.18 20:41:10 reference address: 401b13
08.30.18 20:41:10 Couldn't read map file './a_hobobeta.map'
08.30.18 20:41:10 CreateDevice succeeded with refresh rate = 0
08.30.18 20:41:10 Sound card doesn't meet minimum hardware requirements. Disabling hardware option.
08.30.18 20:41:11 file_open('tags\ui\editor\markers\normal\normal.gbxmodel') error 0x00000003 'The system cannot find the path specified. '
08.30.18 20:41:11 couldn't open gbxmodel tag 'normal.gbxmodel'.
08.30.18 20:41:11 EAX: 0x00000000
08.30.18 20:41:11 EBX: 0x706C6101
08.30.18 20:41:11 ECX: 0x00000000
08.30.18 20:41:11 EDX: 0x00000000
08.30.18 20:41:11 EDI: 0x0019F298
08.30.18 20:41:11 ESI: 0x00000000
08.30.18 20:41:11 EBP: 0x0019F170
08.30.18 20:41:11 ESP: 0x0019F164
08.30.18 20:41:11 EIP: 0x7773B0BC, C2 08 00 90 ?????
08.30.18 20:41:11 EXCEPTION halt in .\editor_renderer.cpp,#189: marker.model_index!=NONE

Any ideas would be much appreciated, thanks!
Edited by ayylien on Aug 30, 2018 at 09:25 PM
Edited by ayylien on Aug 30, 2018 at 09:29 PM



Did you try to open the map after ripping with refinery but without installing the HEK?

The HEK, while also installing the "base tags" you need to make mp maps, also installs a few tags for the editors to use. For example, a .gbxmodel for the controls that sapien places on any object when it's class is selected (aka the transform gizmo, whatever you call it). That has an actual model, as do other such pieces, at least one of which you do not have.

Long story short, install the HEK.


ayylien
Joined: Aug 30, 2018

The silent takedown.


Posted: Aug 30, 2018 11:12 PM    Msg. 3 of 5       
By the HEK, you mean the official install program linked in one of the stickies here, right? If so, I reinstalled it about two or three times, same error. Might just be me being dumb, I dunno.

edit: turns out i'm an idiot and moved the editor tags into a sub folder, which broke it
Edited by ayylien on Aug 30, 2018 at 11:29 PM

edit edit: now debug.txt is throwing a load of errors about not being able to open tags now, probably incompatible or something; here's the errors i'm getting

08.31.18 00:12:54 a hobo pc 01.01.00.0609 ----------------------------------------------
08.31.18 00:12:54 reference function: _write_to_error_file
08.31.18 00:12:54 reference address: 401b13
08.31.18 00:12:54 Couldn't read map file './a_hobobeta.map'
08.31.18 00:12:54 CreateDevice succeeded with refresh rate = 0
08.31.18 00:12:54 Sound card doesn't meet minimum hardware requirements. Disabling hardware option.
08.31.18 00:12:54 Increasing sound decompression buffer size to 1048576 bytes
08.31.18 00:12:54 file_open('tags\sky\sky_a50\skynight0\skynight0.gbxmodel') error 0x00000002 'The system cannot find the file specified. '
08.31.18 00:12:54 couldn't open gbxmodel tag 'skynight0.gbxmodel'.
08.31.18 00:12:54 failed to load sky tag 'sky\sky_a50\skynight0\skynight0'
08.31.18 00:12:54 file_open('tags\sky\sky_a50\skynight1\skynight1.gbxmodel') error 0x00000002 'The system cannot find the file specified. '
08.31.18 00:12:54 couldn't open gbxmodel tag 'skynight1.gbxmodel'.
08.31.18 00:12:54 failed to load sky tag 'sky\sky_a50\skynight1\skynight1'
08.31.18 00:12:54 EAX: 0x00000000
08.31.18 00:12:54 EBX: 0x00000001
08.31.18 00:12:54 ECX: 0x00000000
08.31.18 00:12:54 EDX: 0x00000000
08.31.18 00:12:54 EDI: 0x0019EC18
08.31.18 00:12:54 ESI: 0x00000000
08.31.18 00:12:54 EBP: 0x0019EAF0
08.31.18 00:12:54 ESP: 0x0019EAE4
08.31.18 00:12:54 EIP: 0x7773B0BC, C2 08 00 90 ?????
08.31.18 00:12:54 EXCEPTION halt in \halopc\haloce\source\bitmaps\bitmaps.c,#1016: !TEST_FLAG(bitmap->flags, _bitmap_swizzled_bit)




Edited by ayylien on Aug 31, 2018 at 12:28 AM


MosesofEgypt
Joined: Apr 3, 2013


Posted: Aug 31, 2018 02:39 AM    Msg. 4 of 5       
First off, if you extracted the tags with anything other than refinery, they won't have been extracted perfectly right. Refinery also generates uncompressed vertices in the bsp tags when it extracts, which sapien needs since it doesn't use the compressed ones.

Secondly, you can't just load a bunch of xbox tags into sapien and expect them to work. You'll need to run my model to gbxmodel converter since sapien works with gbxmodels and not models. You'll also need to run the bitmap converter built into mozzarilla to convert the entire folder of bitmaps from xbox format into pc format. You'll need to run the converter again to turn them back when you're ready to build an xbox map though. This includes changing them from swizzled to un-swizzled(which is reported in part of the error message you provided). Finally, you should be able to not only load the map in sapien, but actually compile it and play it in halo custom edition. I've done this with the b30 xbox demo. The pause menu wont work since it's built for xbox, the generic transparent shaders wont render, and lots of bitmap related things wont be right without manual conversions(like hud element meters), but it'll be fully playable.

Oh also, if you want to recompile scripts, I believe you'll need to check a setting in refinery to make it rename duplicate objects when it extracts the scenario, otherwise it wont be able to determine which object to reference in the script.


If you need a copy of the MEK(the collection you can download these tools in) you can get it here.
https://discord.gg/H8HnGaV
If you have any questions or run into any bugs, you can report them to me there as well.
Edited by MosesofEgypt on Aug 31, 2018 at 02:48 AM


ayylien
Joined: Aug 30, 2018

The silent takedown.


Posted: Aug 31, 2018 05:05 PM    Msg. 5 of 5       
Downloaded MEK, ran the converters and it works like a charm now. Thanks a bunch!

 

 
Previous Older Thread    Next newer Thread







Time: Tue December 18, 2018 11:17 AM 156 ms.
A Halo Maps Website