Hi Skyler,
If you are loading the game via the parameters:
-game "c:\absolutepathto\moddir"
The localization file will not load. This is because the '<moddir>_' prefix
is loaded from the -game parameter. This is a bug in the engine, and I have
reported it. I am told that this is being fixed.
If you wish to temporarilly get around this, copy your mod into
SteamApps/<username>/half-life 2/<moddir> and run HL2 with
-game moddir
That is - run it without any qoutes, and use the relative folder name.. the
same way as you would have loaded a HL1 mod.
Hope this helps.
Scott McNaught
http://hlrally.net
----- Original Message -----
From: "York" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, December 08, 2004 4:29 PM
Subject: Re: [hlcoders] Localization Files Issue
I forgot to answer your question, there were no #'s in the file. A
sample line looks like this:
"HL2_Crowbar" "CROWBAR"
On Tue, 7 Dec 2004 22:05:13 -0800, Alfred Reynolds
<[EMAIL PROTECTED]> wrote:
> Have you defined the "HL2_RPG" string (note the lack of the # !) in
> your
> <modname>_english.txt file? Note that hl2_english.txt will NOT be
> loaded
> by your mod by default (we may change this behavior). If you need it to
> be loaded you can simply add this to your client.dll:
>
> vgui::localize()->AddFile( vgui::filesystem(),
> "Resource/hl2_%language%.txt" );
>
> This will cause all of the hl2 strings to be loaded.
>
> - Alfred
>
>
>
> ----Original Message----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of Skyler York
> Sent: Tuesday, December 07, 2004 10:00 PM To:
> [EMAIL PROTECTED] Subject: [hlcoders] Localization Files
> Issue
>
> > In regards to the localization files under the /resources directory,
> > I'm having trouble getting Source to read the tokens from any of
> > these language files. The SDK documentation for VGUI2 states that
> > the filename should be in the format modname_language.txt, which is
> > what I have, however token strings (most notably the weapon names on
> > the HUD) show up as #HL2_RPG, #HL2_Crowbar, etc., instead of their
> > proper names. I've also tried various combinations of the name of my
> > mod to see if any of the filename combinations worked, which none do.
> > To make sure it wasn't something I changed accidentally, I started up
> > a test map using the base HL2 "mod" (<username>/sourcesdk/sdkcontent)
> > and experienced the same problem. I've been scoping this out for a
> > while but since the implementation for the localization interface is
> > in the engine I've hit a brick wall. Any insight would be
> > appreciated!
> >
> > _______________________________________________
> > To unsubscribe, edit your list preferences, or view the list
> > archives, please visit:
> > http://list.valvesoftware.com/mailman/listinfo/hlcoders
>
> _______________________________________________
> To unsubscribe, edit your list preferences, or view the list archives,
> please visit:
> http://list.valvesoftware.com/mailman/listinfo/hlcoders
>
>
_______________________________________________
To unsubscribe, edit your list preferences, or view the list archives,
please visit:
http://list.valvesoftware.com/mailman/listinfo/hlcoders
_______________________________________________
To unsubscribe, edit your list preferences, or view the list archives, please
visit:
http://list.valvesoftware.com/mailman/listinfo/hlcoders