View Full Version : Anyone know where text for the menus are?
08-01-2002, 03:53 AM
I can't find the variables holding text for things like ForceRank - I've searched all over for the string "Jedi Guardian" and i can only find it in the comments of bg_misc.c , yet it must be stored somewhere.
Does anyone know where those strings are stored in the game?
08-01-2002, 05:10 AM
They're in the .menu files. Adding stuff to the menus is not an easy task though, so be weary. There was a thread awhile ago about this... Try going back a few pages (or searching if they ever enable it again).
08-01-2002, 03:00 PM
Thanks for the tip - i looked through a number of the menu files and the text was referred to with something like:
... isn't that referring to a variable of some sort? I'll keep checking through them, and i'm looking for the older post you were talking about.
08-01-2002, 03:20 PM
Those @blahblahblah things get parse through the engine which then gets the info it needs from the .sp files in the strip folder. This is so that the engine can return the correct text for the particular language the game is registered for. That way there's only one set of menu files and not half a dozen or so different sets for each language the game supports.
08-01-2002, 04:50 PM
................just change @blabla to "your text" and you're done.
08-01-2002, 05:17 PM
Okay, that makes sense (Tchouky did that with his menus) ...but for the most part i need to add text, without replacing existing text. One thing specifically is to add more forceRank levels. I have them placeholding in the code, and they cycle normally - i added 3 more, and after "Jedi Master" it cycles through 3 blank spots (it functions fine in the game, but doesn't display the name) and then restarts at 'Uninitiated" or whatever the base level is. I just need to figure out how to add the text to the list of them.
I traced the function calls back to something like
return syscall (BIGSTRINGTHING, blahblah ....)
...inside of some string return function, and couldn't follow it further. I'll keep poking through the menus to see what i can find, but it seems to use literal strings like "MASTERY5" to identify the "Jedi Guardian" string, etc...
08-01-2002, 08:04 PM
i had the same thing u had also for forceranks, i couldnt solve it back then cause i had other things todo. If u manage to get it work then pls do post it
08-01-2002, 09:52 PM
I just got back home and found the folder you were talking about - it's got everything in there.
If you're reading Subject452, in assest1.pk3\strip there are a number of *.sp files like NickR referred to - mp_ingame.sp has the text we were looking for. Search for guardian and you'll find 'em on around line 600.
08-02-2002, 06:19 AM
the thing with those .sp files is that when u pack them into zip files and ren them 2 pk3s they wont load because they wont overwrite the original ones. If you want to use those files ull have 2 place them in your dir but unpacked.
08-02-2002, 03:01 PM
I packed mine in a pk3 and the new text showed up in all the right screens except for the screen that's displayed while the level is loading with the waiting bar at the bottom.
08-02-2002, 06:30 PM
owkay my bad, then i seem to have a other problem =)
have u got the new levels to work now?
08-02-2002, 06:48 PM
Yup. It displays them in all the screens except the server startup screen, where it still says: Force Rank: ??
In the mp_ingame.sp file, you have to change the number of items from 126 to 126 + # of levels you want to add, and i just added mine (i added 3) at the bottom as INDEX 126, 127, and 128.
You also have to alter bg_misc.c (i think that's the one) where is denotes each level as "MASTERY1", "MASTERY2".... and add your own at the end.
vBulletin®, Copyright ©2000-2013, Jelsoft Enterprises Ltd.