Skip to content
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Donate
Collapse

Plutonium

  1. Home
  2. BO1 Modding Support & Discussion
  3. How to avoid crashes? (string overflow, etc)

How to avoid crashes? (string overflow, etc)

Scheduled Pinned Locked Moved BO1 Modding Support & Discussion
4 Posts 2 Posters 173 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • cowboymodeundefined Offline
    cowboymodeundefined Offline
    cowboymode
    wrote on last edited by cowboymode
    #1

    I'm in need of advice and information regarding common crashes such as the G_FindConfigStringIndex overflow. I've reduced my Hud SetText() usage by using SetValue() wherever possible but I'm still concerned that I'll hit some kind of limit. Any and all information related to this issue and other issues like it would be immensely helpful, thank you!

    JezuzLizardundefined 1 Reply Last reply
    0
    • JezuzLizardundefined Offline
      JezuzLizardundefined Offline
      JezuzLizard Plutonium Staff
      replied to cowboymode on last edited by
      #2

      cowboymode Whenever settext() or .label is used it caches that string on the server forever.
      Its an optimization the developers did to save bandwidth by making it so if the string was reused it wouldn't need to be sent over the network.

      So you cannot use settext with unique strings, unless you use an overflow fix gsc system.

      cowboymodeundefined 1 Reply Last reply
      0
      • cowboymodeundefined Offline
        cowboymodeundefined Offline
        cowboymode
        replied to JezuzLizard on last edited by
        #3

        JezuzLizard Thanks for the response, that makes a lot of sense. Do you know where I can find a working "overflow fix" for BO1? I've seen some code snippets for BO2, and I've also tried to implement my own but it didn't seem to make a difference.

        JezuzLizardundefined 1 Reply Last reply
        0
        • JezuzLizardundefined Offline
          JezuzLizardundefined Offline
          JezuzLizard Plutonium Staff
          replied to cowboymode on last edited by
          #4

          cowboymode A BO2 overflow fix should still be applicable.

          I've personally never needed to use an overflow fix, so I don't have an example on hand unfortunately.

          1 Reply Last reply
          0

          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Recent
          • Tags
          • Popular
          • Users
          • Groups
          • Donate