Hello,

I have tested code in a MP and SP mod. No barebones ones though. (I'm
running Vista.) Essentially
I just want to load a keyvalues file from the disk on the server machine. It
is used to define \ commands in the chat (like in WoW) so for example it
would look like this:

//"kick"
//{
// >>type 1
// >>sequence "lower_anim_kick"
// >>chat_plain "kicked high into the air"
// >>chat_self "kicked himself"
// >>chat_other "kicked"
//}

All of these entries are a subkey of the files main key Emotes{}. It is
located in the scripts folder as emote_base.txt.

Now the problem that arises is that first and foremost attempts to load the
file with the filesystem have failed. I have tried

http://developer.valvesoftware.com/wiki/CScriptParser

and I have also tried a simple kevValues->LoadFromFile(yada). I 've been
using the "MOD" searchpath.

Interestingly if I ask the filesystem to change a relative path to the local
machine's path it just returns back the relative path. If I ask the engine
object what the game directory is it returns the path to my sourcemod's mod
folder fine. Am I missing something?


_______________________________________________
To unsubscribe, edit your list preferences, or view the list archives, please 
visit:
http://list.valvesoftware.com/mailman/listinfo/hlcoders

Reply via email to