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

Plutonium

  1. Home
  2. BO2 Modding Releases & Resources
  3. [Release][ZM] Origins Gungame+Spawnroom challenge

[Release][ZM] Origins Gungame+Spawnroom challenge

Scheduled Pinned Locked Moved BO2 Modding Releases & Resources
6 Posts 2 Posters 880 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.
  • undefined Offline
    undefined Offline
    HasjBlok
    wrote on Feb 18, 2024, 6:50 PM last edited by HasjBlok Feb 19, 2024, 9:20 PM
    #1

    Description

    Hi everyone, this script adds a fun challenge to the game, the player will be restricted to the spawnroom on Origins. Every 16 kills the player makes, he will get a new weapon and when he has completed all of the weapons the player will get some fun upgraded weapons to finish the game.

    This challenge is not that difficult and I find it perfect for hanging out while listening to music or whatever.

    a956f116-17ad-4766-a25b-ed0008f1bf16-image.png

    Download the script here

    TypeScript

    The cool thing about this script is that it was written in TypeScript instead of GSC! I've done this using my own TypeScript to GSC transpiler which you can try out for yourself here. typescript-to-gsc is in a very early prototyping stage and this script basically serves as a proof of concept. If you are interested in this, please take a look at the source file which is in the github repo and see for yourself how easy and readable TS_GSC makes scripting.

    undefined 1 Reply Last reply Feb 19, 2024, 12:29 AM
    0
    • undefined Offline
      undefined Offline
      JezuzLizard Plutonium Staff
      replied to HasjBlok on Feb 19, 2024, 12:29 AM last edited by
      #2

      HasjBlok Just an FYI setText() is not safe to use for infinite unique strings. Once zombie count reaches a high enough value the game will error with a Configstring Overflow error on localized strings. You can see the amount of remaining localized strings available in the configstring pool ingame by using the configstrings command in the console.

      undefined 1 Reply Last reply Feb 19, 2024, 1:23 AM
      0
      • undefined Offline
        undefined Offline
        HasjBlok
        replied to JezuzLizard on Feb 19, 2024, 1:23 AM last edited by
        #3

        JezuzLizard Ive been stuck on this issue for so long, what do you recommend for fixing it? Do I separate the hud element into two parts, the label and the value and do it that way or would I just run into the same error again?

        undefined 1 Reply Last reply Feb 19, 2024, 2:27 AM
        0
        • undefined Offline
          undefined Offline
          JezuzLizard Plutonium Staff
          replied to HasjBlok on Feb 19, 2024, 2:27 AM last edited by
          #4

          HasjBlok In this case I would use a label and setValue() since only the value of the zombies count needs to be changed. The label field can also cause the error if you change it to too many unique string values, but if you use it as a static string which is only set once then it would be fine.

          undefined 2 Replies Last reply Feb 19, 2024, 2:33 AM
          0
          • undefined Offline
            undefined Offline
            HasjBlok
            replied to JezuzLizard on Feb 19, 2024, 2:33 AM last edited by
            #5

            JezuzLizard Alright I'll fix that issue tomorrow then thank you so much for helping me understand this!

            1 Reply Last reply
            0
            • undefined Offline
              undefined Offline
              HasjBlok
              replied to JezuzLizard on Feb 19, 2024, 7:21 PM last edited by
              #6

              JezuzLizard I added your suggestion and it doesn't crash anymore, once again thank you so much. Ive updated the download links to the new versions so everything should be good now.

              1 Reply Last reply
              0

              1/6

              Feb 18, 2024, 6:50 PM

              • Login

              • Don't have an account? Register

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