H2GEM ~ Halo 2 Gametype Editor & Manager

Jan 14, 2019
67
25
8
Gamertag
Yuri Bacon
#1
Welcome to H2GEM~!! This program allows you to manage and edit all of your Halo 2 gametypes.

- Convert signed Halo 2 Xbox (H2X) gametype saves into unencrypted Halo 2 Vista (H2V) saves and back, individually or all at once!
- Edit existing H2X and H2V gametypes, including rich gametype options not normally available for selection when editing gametypes in game!
- Custom score and time limits, up to a score of 32,767 and a time limit of 9 hours, 6 minutes, and 7 seconds
- Custom respawn times as quick as instant (~1 second), or as long as 4 minutes, 15 seconds
- Custom life limits up to 255
- Spawn with any weapon, including two of the same weapon, or no weapon at all!
- Custom Object reset times, including never resetting! (Careful not to make impossible CTF gametypes!)
- Fast movement with held objectives in all gametypes, Ex. Fast movement with flag in CTF
- A never before seen Sentinel Beams on map weapon set!
- And most amazing of all: Free for All Territories! (I've only been able to personally test up to 5 players)
- And probably more I didn't think to put in this description!
- Generate a list.txt file that lists all of your gametypes by name and gamemode, and the folder they are contained in for H2X and H2V gametypes. Find and share/copy your favorite gametypes easily!



~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~


This program has been released with no copyright license because honestly I can't be bothered to fuck with copyright shit. Source code is included, along with a text file that documents all the variables in Halo 2 gametypes and all the possible options for them, so feel free to modify or use this code as you please, but be sure to credit me if you use it or the reference document for any of your projects!

I'd like to make a special thanks to M0niak and Divine1gore for being cool people, even if I haven't talked to either of you in ages.


~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~


This doesn't actually have anything to do with the program, but since I'm posting again to the H2V forum when I left the Project Cartographer community a long time ago, I'd just like to let everyone know I'm a girl now, so if you can use she/her pronouns what referring to me, however rarely that might be, that'd be great~ :)


~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~


SCREENSHOTS

Screenshot from 2020-06-22 21-11-17.png
Screenshot from 2020-06-22 21-12-32.png


~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~


DOWNLOADS:
I have attached the program to this post for download, but you can also get it on Github: https://github.com/bigger0gamer/H2GEM

EDIT: I finally bothered to put this up on Github.
 

Attachments

Last edited:
Sep 18, 2020
2
1
3
24
Gamertag
trit301
#5
Screenshot 2020-09-18 200737.jpg
I hate to be that person, but I have no experience with Java. Do you happen to know what may cause this?
 
Jan 14, 2019
67
25
8
Gamertag
Yuri Bacon
#6
View attachment 848
I hate to be that person, but I have no experience with Java. Do you happen to know what may cause this?
It seems one of your H2V save files has malformed meta data. My program just assumes that if it finds a save file and corresponding meta data that the meta data file must be valid, and it would seem yours isn't and crashes. I probably could make sure it doesn't crash here pretty easily, but likely at the expense that the program won't read it, because I have no clue why your meta data was malformed.

Java helpfully tells me the lines that caused it to crash, so I know what it was doing (performing String operations on data it loaded from the meta data file), but it doesn't say what file(s) it was working with when it crashed, and I didn't leave any debugging in it to ask you for any more information, so you'd either have to post your H2V save data folder for people to look through and find the offending save data. Copy all of your save data out of the H2V save folder, then start copying them in one at a time and opening the program again. Once you find the one that makes it crash, you'll have to fix it manually with a hex editor. If you post the save data that makes it crash, I can fix it for you. If thats too much work tho, just add the one gametype you wanted to edit, make your changes, then put everything back afterwards.

If I ever bother to revisit this code, perhaps I should rewrite the loadMetadata() method to look only for gametype files, and check for the gametype's name and game mode directly from there, but meh. Maybe some day :p
 
Likes: trit301
Sep 18, 2020
2
1
3
24
Gamertag
trit301
#7
It seems one of your H2V save files has malformed meta data. My program just assumes that if it finds a save file and corresponding meta data that the meta data file must be valid, and it would seem yours isn't and crashes. I probably could make sure it doesn't crash here pretty easily, but likely at the expense that the program won't read it, because I have no clue why your meta data was malformed.

Java helpfully tells me the lines that caused it to crash, so I know what it was doing (performing String operations on data it loaded from the meta data file), but it doesn't say what file(s) it was working with when it crashed, and I didn't leave any debugging in it to ask you for any more information, so you'd either have to post your H2V save data folder for people to look through and find the offending save data. Copy all of your save data out of the H2V save folder, then start copying them in one at a time and opening the program again. Once you find the one that makes it crash, you'll have to fix it manually with a hex editor. If you post the save data that makes it crash, I can fix it for you. If thats too much work tho, just add the one gametype you wanted to edit, make your changes, then put everything back afterwards.

If I ever bother to revisit this code, perhaps I should rewrite the loadMetadata() method to look only for gametype files, and check for the gametype's name and game mode directly from there, but meh. Maybe some day :p
Ah, alright. That makes sense, as I had used sav3r to see if it worked with h2pc earlier that day hoping to add symbols to my game variants and name, but it seems it doesnt work :/ Thanks for the tool and reply!
 
Likes: Yuri Bacon
Jan 14, 2019
67
25
8
Gamertag
Yuri Bacon
#8
Ah, alright. That makes sense, as I had used sav3r to see if it worked with h2pc earlier that day hoping to add symbols to my game variants and name, but it seems it doesnt work :/ Thanks for the tool and reply!
I don't have any experience with sav3r, but it seems like its meant only for H2X gametypes. H2V saves the meta data differently (I don't know why, as they didn't change the actual gametype file in any way), so its possible it saved the meta data in H2X format, and H2GEM loaded the meta data wrong because of it, trying to load it as H2V metadata. If I'm correct, then you can just put the gametypes you tried to edit in sav3r into the 4d530064 folder and then convert them from H2X to H2V gametypes and it should fix the meta data for you. Also assuming I'm right about sav3r, then you can use H2GEM to convert your H2V gametypes into H2X gametypes so that sav3r can handle your gametypes meta data properly when it edits names (H2GEM doesn't edit names 'cause I couldn't be bothered with it :p), then you can convert them back with H2GEM. I'd just make a copy of what you have and put it in another folder somewhere before doing anything tho, just in case.
 
Likes: trit301