Jump to content
  • Register Now

    Sign up and take advantage of the features of our community! Some forums are only accessible to our members!

[SMALL TUT] Missing icon image


Recommended Posts

Posted (edited)

 Hello Guys! 

I was so frustated with my syserr floods (%s ĆÄŔĎŔĚ ľř˝Ŕ´Ď´Ů.CItemData::__SetIconImage) when an item has no icon. 

With this correction the client will only notice you once per item that has no image, and set a default icon for them, so you can drop it to the ground from your inventory, instead of giving attention to make them a new icon, or copy/paste an existing image.
 

Spoiler

In GameLib/ItemData.h search:

TraceError("%s ĆÄŔĎŔĚ ľř˝Ŕ´Ď´Ů.CItemData::__SetIconImage",c_szFileName);
m_pIconImage = NULL;

And replace m_pIconImage = NULL; with:

m_pIconImage = (CGraphicSubImage*)CResourceManager::Instance().GetResourcePointer("icon/item/blank.tga");

 

Download: blank.tga


Again, is not a big deal and my English is bad as always ?
Have a nice day guys! ?

Edited by Heathcliff™ (see edit history)
  • Love 6
Link to post
Posted (edited)

There was a solution for this in the files of Martino. 

 

 

        m_pIconImage = NULL;
#ifdef ENABLE_LOAD_ALTER_ITEMICON
        static const char* c_szAlterIconImage = "icon/item/27995.tga";
        if (CResourceManager::Instance().IsFileExist(c_szAlterIconImage))
            m_pIconImage = (CGraphicSubImage*)CResourceManager::Instance().GetResourcePointer(c_szAlterIconImage);
#endif
Edited by Tunga (see edit history)
  • Love 1
Link to post
Posted (edited)

Better let a bug crash your client than fixing it with that "fixing" lines. can item been with blank image? logic says no. let it crash to find where you missing files ^^

Edited by Zeke (see edit history)

Untitled.png

Link to post
Posted (edited)

 

19 hours ago, Cunoo said:

Why? Just repair item_list.txt... Client is not trash can..

 

19 hours ago, Zeke said:

Better let a bug crash your client than fixing it with that "fixing" lines. can item been with blank image? logic says no. let it crash to find where you missing files ^^

Client still inform you that you have icon problems with xy item, and your client won't crash bcs of this small "error". This correction is just for not flooding it every second if you have missing icon. It will inform you once, and set a default image for it as I mentioned before. ?

Edited by Heathcliff™ (see edit history)
  • Love 1
Link to post
4 hours ago, Heathcliff™ said:

 

 

Client still inform you that you have icon problems with xy item, and your client won't crash bcs of this small "error". This correction is just for not flooding it every second if you have missing icon. It will inform you once, and set a default image for it as I mentioned before. ?

Its good idea to help someone like that. on my project tho that i want everything under control i would like a logic bug (logic because you can't have an item with out an image) to crash. so i would throw an errror there ^^ its just different point of view. your idea is good tho for the other ones than me :P 

  • Love 1

Untitled.png

Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.