Results 1 to 8 of 8

Thread: precaching more than once

  1. #1
    Brigadier General
    Join Date
    Dec 2012
    Posts
    1,012
    Thanks
    440
    Thanked 171 Times in 132 Posts

    precaching more than once

    Code:
    Script tried to precache the menu 'ingame' more than once
    Script tried to precache the menu 'team_britishgerman' more than once
    Script tried to precache the menu 'weapon_british' more than once
    Script tried to precache the menu 'weapon_german' more than once
    Script tried to precache the menu 'callvote' more than once
    Script tried to precache the menu 'muteplayer' more than once
    Script tried to precache the player head icon 'headicon_british' more than once
    Script tried to precache the player head icon 'headicon_german' more than once
    Those are stock cod2 menus and I dont have any other scripts that precache them. How is this possible? And how to fix this?

  2. #2
    Corporal voron00's Avatar
    Join Date
    Nov 2014
    Posts
    248
    Thanks
    64
    Thanked 216 Times in 116 Posts
    you might be calling your menus init twice perhaps? Check everything. If you use notepad++ or something similar use Find in files, i had similar stuff but sorted it pretty quckly with this.
    sudo apt-get rekt

  3. #3
    Brigadier General
    Join Date
    Dec 2012
    Posts
    1,012
    Thanks
    440
    Thanked 171 Times in 132 Posts
    Quote Originally Posted by voron00 View Post
    If you use notepad++ or something similar use Find in files
    Im using ++, how to use that function?

  4. #4
    Assadministrator IzNoGoD's Avatar
    Join Date
    Aug 2012
    Posts
    1,718
    Thanks
    17
    Thanked 1,068 Times in 674 Posts
    you're probably fast_restarting, sd round-restart triggers this stuff.

    Its not harmful.
    If you feel really worried, you could check if the game["menu_thingy"] isdefined before precaching.
    Gotto do some custom shit for headicons
    "Does not work" is an error report for a bug between keyboard and chair.

    All hail Artie Effem

  5. The Following User Says Thank You to IzNoGoD For This Useful Post:

    Ni3ls (26th April 2016)

  6. #5
    Corporal voron00's Avatar
    Join Date
    Nov 2014
    Posts
    248
    Thanks
    64
    Thanked 216 Times in 116 Posts
    Oh yeah and as IzNo mentioned, for SD like gametypes use this: https://github.com/voron00/vsh_cod2/...onhale.gsc#L23
    sudo apt-get rekt

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

    Ni3ls (26th April 2016)

  8. #6
    Brigadier General
    Join Date
    Dec 2012
    Posts
    1,012
    Thanks
    440
    Thanked 171 Times in 132 Posts
    Yes its SD gametype.
    @Voron I dont get what I should learn from that? What's the difference? My sd.gsc already looks like the thing with gamestarted

  9. #7
    Corporal voron00's Avatar
    Join Date
    Nov 2014
    Posts
    248
    Thanks
    64
    Thanked 216 Times in 116 Posts
    Use this definition for the rest of your precaches, menu stuff and headicons:
    https://github.com/voron00/vsh_cod2/.../_menus.gsc#L3
    https://github.com/voron00/vsh_cod2/...ndicons.gsc#L8
    sudo apt-get rekt

  10. The Following User Says Thank You to voron00 For This Useful Post:

    Ni3ls (26th April 2016)

  11. #8
    Assadministrator IzNoGoD's Avatar
    Join Date
    Aug 2012
    Posts
    1,718
    Thanks
    17
    Thanked 1,068 Times in 674 Posts
    The only thing you're fixing by doing all of this is removing 8 lines of log from the console. The rest (backend etc) is unaffected anyway.

    Backend caught a "trying to double-precache" and prevented the double-precache from happening. Which is EXACTLY what you'll do with your .gsc modification.
    "Does not work" is an error report for a bug between keyboard and chair.

    All hail Artie Effem

  12. The Following User Says Thank You to IzNoGoD For This Useful Post:

    Ni3ls (26th April 2016)

Posting Permissions

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