Page 1 of 2 12 LastLast
Results 1 to 10 of 13

Thread: Custom headicon problems

  1. #1
    Sergeant EvoloZz's Avatar
    Join Date
    Sep 2012
    Location
    Helsinki, Finland
    Posts
    360
    Thanks
    314
    Thanked 167 Times in 120 Posts

    Custom headicon problems

    I've started to work on custom rank system like in CoD: UO, and I am almost done with it, shader works, statusicon works, but headicon doesnt. I tried modifying some headicon related stuff in _friendicons and _quickmessages, but i cant seem to get it to work. The headicons does not show over the head of player, headicons are precached and everything. If somebody could help me with it, i would really appreciate.

  2. #2
    Global Mossaderator Mitch's Avatar
    Join Date
    Nov 2012
    Posts
    654
    Thanks
    204
    Thanked 450 Times in 305 Posts
    What are your settings in asset manager? It should be 2d and blend for headicons.
    (also for which cod is it)
    Last edited by Mitch; 2nd February 2013 at 15:21.

  3. #3
    Sergeant EvoloZz's Avatar
    Join Date
    Sep 2012
    Location
    Helsinki, Finland
    Posts
    360
    Thanks
    314
    Thanked 167 Times in 120 Posts
    I mean the .iwi files were already in the stock game, so thats not the problem

  4. #4
    Global Mossaderator Mitch's Avatar
    Join Date
    Nov 2012
    Posts
    654
    Thanks
    204
    Thanked 450 Times in 305 Posts
    So you are replacing headicon_american.iwi? (this one is 64x64)

  5. #5
    Sergeant EvoloZz's Avatar
    Join Date
    Sep 2012
    Location
    Helsinki, Finland
    Posts
    360
    Thanks
    314
    Thanked 167 Times in 120 Posts
    nope, in the scripts itself i am trying to set headicons for every rank

  6. #6
    Global Mossaderator Mitch's Avatar
    Join Date
    Nov 2012
    Posts
    654
    Thanks
    204
    Thanked 450 Times in 305 Posts
    Quote Originally Posted by EvoloZz View Post
    nope, in the scripts itself i am trying to set headicons for every rank
    You can only set 15 headicons. (might be one more, but the limit is low)

    Edit:
    Quote Originally Posted by EvoloZz View Post
    I mean the .iwi files were already in the stock game, so thats not the problem
    What materials are you using? It could be that they have the wrong settings. I thought you were using your own custom images.
    Last edited by Mitch; 2nd February 2013 at 15:32.

  7. The Following User Says Thank You to Mitch For This Useful Post:

    kung foo man (2nd February 2013)

  8. #7
    Sergeant EvoloZz's Avatar
    Join Date
    Sep 2012
    Location
    Helsinki, Finland
    Posts
    360
    Thanks
    314
    Thanked 167 Times in 120 Posts
    Quote Originally Posted by Mitch View Post
    You can only set 15 headicons. (might be one more, but the limit is low)

    Edit:

    What materials are you using? It could be that they have the wrong settings. I thought you were using your own images that you created.
    There are only 8 ranks, similiar to eXtreme+ or something.
    And yeah I used the same .iwi files for statusicon, so i am sure they should work in the headicons also

    Edit:
    I think its just because of the scripts
    Last edited by EvoloZz; 2nd February 2013 at 15:42.

  9. The Following User Says Thank You to EvoloZz For This Useful Post:

    kung foo man (2nd February 2013)

  10. #8
    Brigadier General
    Join Date
    Oct 2012
    Posts
    994
    Thanks
    20
    Thanked 588 Times in 388 Posts
    Quote Originally Posted by EvoloZz View Post
    There are only 8 ranks, similiar to eXtreme+ or something.
    And yeah I used the same .iwi files for statusicon, so i am sure they should work in the headicons also

    Edit:
    I think its just because of the scripts
    The _friendicons.gsc script will always override your rank script. I wrote the ranking system for the eXtreme+ mod back in 2006 and I had the exact same problem. You need to look at the eXtreme _friendicons.gsc file and see how I handled a ranking system with rank headicons.

    BTW - you can use the same shader as a statusicon, but it will show through buildings. Use the ones out of eXtreme+ mod. It sets the alpha depth test correctly to prevent the rank headicons showing through walls.
    Last edited by Tally; 2nd February 2013 at 17:01.

  11. The Following 2 Users Say Thank You to Tally For This Useful Post:

    EvoloZz (2nd February 2013),kung foo man (2nd February 2013)

  12. #9
    Brigadier General
    Join Date
    Oct 2012
    Posts
    994
    Thanks
    20
    Thanked 588 Times in 388 Posts
    Quote Originally Posted by Mitch View Post
    You can only set 15 headicons. (might be one more, but the limit is low)

    Edit:

    What materials are you using? It could be that they have the wrong settings. I thought you were using your own custom images.
    Isn't the limit lower? Isn't it only 12 max? I only used 12 in my mod, but I can't remember whether it was because the statusicon max limit was 12, or whether headicons is 12.

  13. #10
    Global Mossaderator Mitch's Avatar
    Join Date
    Nov 2012
    Posts
    654
    Thanks
    204
    Thanked 450 Times in 305 Posts
    Quote Originally Posted by Tally View Post
    Isn't the limit lower? Isn't it only 12 max? I only used 12 in my mod, but I can't remember whether it was because the statusicon max limit was 12, or whether headicons is 12.
    I forgot the right limit. I have seen the error message that says this limit.

    Edit: I just checked and it is 15.
    Code:
    ******* script runtime error *******
    Too many player head icons precached. Max allowed is 15: (file 'maps/mp/gametypes/_ranks.gsc', line 129)
       precacheHeadIcon(level.ranks[i].hud_icon);
    Last edited by Mitch; 2nd February 2013 at 18:25.

  14. The Following 2 Users Say Thank You to Mitch For This Useful Post:

    EvoloZz (2nd February 2013),kung foo man (2nd February 2013)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •