Question about Tag Idents in the Halo 2 Map
Posted: Fri Jul 18, 2014 10:28 pm
Hello, I have a question that hopefully some of you can answer. I'm making a tag-duplicator, and I am trying to create a new Tag Ident for the tag being duplicated. From looking at the existing idents, I came to this conclusion:
short Index = (short)(Ident & 0xFFFF0000);
short hiwordId = (short)((Ident & 0x0000FFFF) >> 16);
You can calculate the next ID by
int nextID = ObjectCount | (0xE175 + ObjectCount) << 16);
tell me if I'm doing anything wrong here, because I'm not too sure about this...
EDIT: I looked at a map after duplicating a tag with entity, and Entity actually inserts the new index entry before the Ugh! entry. so the new tag's offset is at the Ugh! tag's offset, and the Ugh! tag gets bumped forward in the meta and the index. Does it really matter that it's the last tag in the map?
short Index = (short)(Ident & 0xFFFF0000);
short hiwordId = (short)((Ident & 0x0000FFFF) >> 16);
You can calculate the next ID by
int nextID = ObjectCount | (0xE175 + ObjectCount) << 16);
tell me if I'm doing anything wrong here, because I'm not too sure about this...
EDIT: I looked at a map after duplicating a tag with entity, and Entity actually inserts the new index entry before the Ugh! entry. so the new tag's offset is at the Ugh! tag's offset, and the Ugh! tag gets bumped forward in the meta and the index. Does it really matter that it's the last tag in the map?