Reading Values from Strings.xml into Scripts

Post » Fri Feb 18, 2011 8:17 pm

I was hoping to make Oblivion XP easier to translate by putting all the text strings in Strings.xml. I can do that for the menu text no problem, but I also wanted to include the text used in various message boxes in there as well. Does anyone know if there's anyway to read the text strings from Strings.xml? I thought I would use GetMenuStringValue but that requires a menu type and I don't know what to pass as the menu type for reading Strings.xml. I think Pluggy could do this, but I'd rather not use Pluggy.

I was thinking an alternative would be to put them all in an initialization type file and using RunBatchScript, but that would require I declare a whole bunch of string variables and I wouldn't be able to destroy them at the end of the script. I'm not even sure I could use set commands to set a string variable anyway - I usually use let.
User avatar
james reed
 
Posts: 3371
Joined: Tue Sep 18, 2007 12:18 am

Post » Sat Feb 19, 2011 7:57 am

How about ConScribe? It can read from text files.
User avatar
danni Marchant
 
Posts: 3420
Joined: Sat Oct 07, 2006 2:32 am

Post » Sat Feb 19, 2011 12:43 am

It can? Oh. *scurries of to read docs* Holy crap! It's got exactly what I need! Thank you! And I've been running Conscribe all along...
User avatar
Yonah
 
Posts: 3462
Joined: Thu Aug 02, 2007 4:42 am

Post » Fri Feb 18, 2011 8:58 pm

An alternative is MenuQue's mqGetMenuGlobalStringValue, which if I understand it correctly, will read any string value you put in Strings.xml
User avatar
Lynette Wilson
 
Posts: 3424
Joined: Fri Jul 14, 2006 4:20 pm

Post » Fri Feb 18, 2011 6:05 pm

Thanks. I had a look at MenuQue but didn't see those commands. The ones I was looking at still required a menu type. I can see those ones specifically read from strings.xml.

So now I need to decide which OBSE plugin I can get everyone to load: Conscrbe or MenuQue? Probably more likely with MenuQue since TheNiceOne has gotten them all trained already - right? ;)
User avatar
Miragel Ginza
 
Posts: 3502
Joined: Thu Dec 21, 2006 6:19 am


Return to IV - Oblivion