Renegade Public Forums
C&C: Renegade --> Dying since 2003™, resurrected in 2024!
Home » Renegade Discussions » Mod Forum » read gamelog from scripts.dll
Re: read gamelog from scripts.dll [message #206181 is a reply to message #205903] Fri, 30 June 2006 18:40 Go to previous messageGo to previous message
theplague is currently offline  theplague
Messages: 261
Registered: May 2004
Karma:
Recruit
wd, i made a mistake about the page's but player leave is in the renlog. page is in the bhs logs, which is still a log.

what confuses me is if bhs.dll can get pages, why can't it be made into a hook? or is there a deeper reason?

Chathook
AddChatHook(hook); /* add this someplace at the execution of the scripts,
like in dllmain's section where it loads the bhs.dll functions
and stuff. or even when ObjectHookClass's start is called*/

const char *WideCharToChar(const wchar_t *wcs); // this is in engine.h/.cpp so no need to redo the whole body
void hook(int id, int type, const wchar_t *msg) {
  // type 0 = normal chat
  // type 1 = team chat
  if (type == 2) return; // don't want ppage's to show as chat
  std::string text = WideCharToChar(msg);
  // phrase the message
}


http://users.tpg.com.au/ling44/av_firefox.gifhttp://users.tpg.com.au/ling44/av_rg.gif

[Updated on: Fri, 30 June 2006 18:46]

Report message to a moderator

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: function on launch
Next Topic: BuggyCross Founded Try it out today !!!!
Goto Forum:
  


Current Time: Thu Aug 15 20:45:26 MST 2024

Total time taken to generate the page: 0.00694 seconds