Unic?

Discuss Halo 2 modding, progress on figuring things out, mapfiles...you know the drill. Cheating discussion not allowed.
Post Reply
User avatar
turk645




Artisan Translator Pyre

Posts: 2887
Joined: Wed May 18, 2005 12:32 pm
Location: In my special pillow fort.
Contact:

Unic?

Post by turk645 »

OK i have a few ideas for my main menu but there is just one thing stoping me, the unic tag. I can only use certain strings from a unic for text for options and what not and i wan to know if its possable to add more strings to a unic so things like spawn times can have proper lables.
Image
ScottyGee wrote:Smokers suck >_< (to avoid someone saying it later, both literally and in the derogatory way)
"Before you criticize someone, walk a mile in their shoes. That way after you make fun of them, you still have their shoes."-Dranciel ಠ_ಠ
User avatar
xzodia




Translator Connoisseur Coagulator

Posts: 1981
Joined: Sun May 15, 2005 10:31 am
Location: UK
Contact:

Post by xzodia »

correct me if im wrong but the unic points to strings in the string table in which cause you cant add strings but you can reuse unused strings
Image
Halo 2 Plugins | Lock-on To Just About Anything | My Sites | Snow Hog
Old Plugins you have, upgrade you must...
Always Maintain a High Quality-To-Crap Ratio.
User avatar
Prey




Connoisseur Snitch! Pyre Articulatist 500

Posts: 1026
Joined: Wed Dec 27, 2006 6:49 am
Location: UK
Contact:

Post by Prey »

Append your extra strings to the bottom of the string table, then link'em. Don't think any released program has that ability though.
Halo 2 Prophet - Skin with ease with the simple 3D point and click interface.
Halo 3 Research Thread - Contribute to the research into Halo 3.
User avatar
shade45




Translator Artisan Enthraller Logistician
Stylist Wave Firestorm New Age

Posts: 2270
Joined: Fri Apr 01, 2005 1:04 pm

Post by shade45 »

Prey wrote:Append your extra strings to the bottom of the string table, then link'em. Don't think any released program has that ability though.
Nah it wont work you need to add the string at its proper location in the unicode table then update the [unic] tag that points to that section of the table to include the new string. you would also have to shift the offsets in every other unic tag after the one you updated to make up for the added space.
User avatar
turk645




Artisan Translator Pyre

Posts: 2887
Joined: Wed May 18, 2005 12:32 pm
Location: In my special pillow fort.
Contact:

Post by turk645 »

:? so i have no chance of getting new strings in a unic or linking strings from another unic into the one i need?
Image
ScottyGee wrote:Smokers suck >_< (to avoid someone saying it later, both literally and in the derogatory way)
"Before you criticize someone, walk a mile in their shoes. That way after you make fun of them, you still have their shoes."-Dranciel ಠ_ಠ
User avatar
neodos
Readers Club




Artisan Miner

Posts: 1394
Joined: Thu Aug 12, 2004 11:57 am

Post by neodos »

turk645 wrote::? so i have no chance of getting new strings in a unic or linking strings from another unic into the one i need?
Yes you'll have to do a cheap knock off :wink:
User avatar
Prey




Connoisseur Snitch! Pyre Articulatist 500

Posts: 1026
Joined: Wed Dec 27, 2006 6:49 am
Location: UK
Contact:

Post by Prey »

Yea your right shade, each unic points to only a block of strings, so instead of appending you would have to do some inserting :P

Your not completely out of luck turk. If you first go to the end of the english unicode table and count up the space(padding) to the beginning of the next unicode index(if your not sure where it starts just check the uberanalyzer), then go to the end of the block of strings referenced by the unic tag in question, and add your string in (making sure you don't go over the size of the padding you just counted), and then go back to the padding and delete the length of the string you just wrote, then go to the english unicode index and add your string offset in the table to the end of it (overwriting the index's padding), and then go into entity and through every unic tag and if it's english offset is larger than the unic tag your editing, increment that offset by the length of the string you just inserted.

Not really that hard to do, your only problem is there may not be much padding :? ..gl anyway :P
Halo 2 Prophet - Skin with ease with the simple 3D point and click interface.
Halo 3 Research Thread - Contribute to the research into Halo 3.
User avatar
turk645




Artisan Translator Pyre

Posts: 2887
Joined: Wed May 18, 2005 12:32 pm
Location: In my special pillow fort.
Contact:

Post by turk645 »

havent even looked yet but i can already guess there isnt enough for what i want to do cause i need to add several new strings to the unics used for gametype options so there are things like 0 second arm time on assault bombs and what not with proper lables.
Image
ScottyGee wrote:Smokers suck >_< (to avoid someone saying it later, both literally and in the derogatory way)
"Before you criticize someone, walk a mile in their shoes. That way after you make fun of them, you still have their shoes."-Dranciel ಠ_ಠ
User avatar
Prey




Connoisseur Snitch! Pyre Articulatist 500

Posts: 1026
Joined: Wed Dec 27, 2006 6:49 am
Location: UK
Contact:

Post by Prey »

True, the most padding you'll ever get is 511 bytes, and thats being optimistic.

What you could do though is find the last string in the block that is referenced, open up Blu and find that string, add in a bunch of spaces, then back in hex overwrite the spaces with your new strings, insert the offsets into the english index, delete away the padding of the index that you 'overwrite' (as in one offset takes 4 bytes, so subtract 4 bytes) and then increase the english string count in the unic tag your editing by how many you entered (forgot to mention that part before).
EDIT: You'll have to go through the unic tags and fix their offset if its larger again as well actually, Blu doesn't do that so you'll have to increment by the number of spaces you added.

Your only problem though is there may not be enough padding at the end of the english index to fit all the new offsets. GL again though :P
Halo 2 Prophet - Skin with ease with the simple 3D point and click interface.
Halo 3 Research Thread - Contribute to the research into Halo 3.
OwnZ joO




Articulatist 500

Posts: 980
Joined: Thu Nov 10, 2005 4:24 pm

Post by OwnZ joO »

Have you used up all of the unicode strings already? I mean there are a lot of them that have to do with Live aren't there, and I'm guessing most people won't be using live with your mainmenu.
User avatar
turk645




Artisan Translator Pyre

Posts: 2887
Joined: Wed May 18, 2005 12:32 pm
Location: In my special pillow fort.
Contact:

Post by turk645 »

you dont understand the issue. Some strings are links to specific UNIC's. The live ones arent part of the game varient unic so i cant use them.
Image
ScottyGee wrote:Smokers suck >_< (to avoid someone saying it later, both literally and in the derogatory way)
"Before you criticize someone, walk a mile in their shoes. That way after you make fun of them, you still have their shoes."-Dranciel ಠ_ಠ
OwnZ joO




Articulatist 500

Posts: 980
Joined: Thu Nov 10, 2005 4:24 pm

Post by OwnZ joO »

I guess I didn't think of that, it makes sense.
User avatar
Prey




Connoisseur Snitch! Pyre Articulatist 500

Posts: 1026
Joined: Wed Dec 27, 2006 6:49 am
Location: UK
Contact:

Post by Prey »

Well I guess you could delete the unneeded string, insert a string with the same char count in the block referenced by the unic tag, fix the other unic's, and the unicode index, and your good to go.
Halo 2 Prophet - Skin with ease with the simple 3D point and click interface.
Halo 3 Research Thread - Contribute to the research into Halo 3.
User avatar
xzodia




Translator Connoisseur Coagulator

Posts: 1981
Joined: Sun May 15, 2005 10:31 am
Location: UK
Contact:

Post by xzodia »

Prey wrote:Well I guess you could delete the unneeded string, insert a string with the same char count in the block referenced by the unic tag, fix the other unic's, and the unicode index, and your good to go.
that sounds like that kinda thing that needs an app really
Image
Halo 2 Plugins | Lock-on To Just About Anything | My Sites | Snow Hog
Old Plugins you have, upgrade you must...
Always Maintain a High Quality-To-Crap Ratio.
User avatar
turk645




Artisan Translator Pyre

Posts: 2887
Joined: Wed May 18, 2005 12:32 pm
Location: In my special pillow fort.
Contact:

Post by turk645 »

yes cause i didnt understand what you said at all.
Image
ScottyGee wrote:Smokers suck >_< (to avoid someone saying it later, both literally and in the derogatory way)
"Before you criticize someone, walk a mile in their shoes. That way after you make fun of them, you still have their shoes."-Dranciel ಠ_ಠ
Post Reply