google-site-verification: googlebaca44933768a824.html Finding materials folder - Old Royal Hack Forum

Announcement

Collapse
No announcement yet.

Finding materials folder

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Finding materials folder

    Hey guys,

    might be a noobish question, but I can't fucking get the solution. I need to know the path of the materials folder (/.../game/materials) to copy files in there. Does anyone know how to get it not staticly since I don't know the accountname of every guy, lol. Thanks in advice.
    Originally posted by wav
    My German blood demands I decimate this game quickly.
    XFire - AddMe


    #2
    lulz.

    you need an app ( gcfscape ) and the materials are stored within a gcf file.

    or if you mean via code. you can use
    const char* lol = m_pEngine->GetGameDirectory();

    better yet:
    for(int i= m_pMaterialSystem->FirstMaterial(); i < m_pMaterialSystem->GetNumMaterials(); i++)
    {
    IMaterial *Material = m_pMaterialSystem->GetMaterial(i);
    char *name = (char*) Material->GetName();
    char *group = (char*) Material->GetTextureGroupName();


    ---------
    go forth and codens young padawan

    sigpic

    -=[ http://kaos.99k.org ]=-

    czkb: yay but for now i still understand half of the half of the quarter of the half of what i must know.
    [email protected] (E-mail Address Not Verified) says:
    http://www.youtube.com/user/ka0s99k#p/f/70/iK9bhyl6B_E
    J says:
    can we please accomplish something

    Comment


      #3
      nah, I meant via code.
      thanks, didn't know about the GetGameDirectory() func.
      Originally posted by wav
      My German blood demands I decimate this game quickly.
      XFire - AddMe

      Comment

      Working...
      X