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

Plutonium

  1. Home
  2. BO2 Modding Releases & Resources
  3. [Release] Mob of the Dead Mod: "A cat has 9 lives"

[Release] Mob of the Dead Mod: "A cat has 9 lives"

Scheduled Pinned Locked Moved BO2 Modding Releases & Resources
32 Posts 11 Posters 15.3k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • Vulture Aid Vulture Aid

    JezuzLizard One more thing, is there a way to decompile without using BO3 gsc? The syntax is different from BO2's gsc

    JezuzLizard Offline
    JezuzLizard Offline
    JezuzLizard
    Plutonium Staff
    wrote on last edited by
    #18

    Vulture Aid The cerberus decompiler was made for bo3 purposes so you'll have to change the output to bo2 syntax. The cerberus decompiler is pretty good though since it can detect for loops and foreachs unlike the the dumps most people use.

    Vulture Aid 1 Reply Last reply
    0
    • JezuzLizard JezuzLizard

      Vulture Aid The cerberus decompiler was made for bo3 purposes so you'll have to change the output to bo2 syntax. The cerberus decompiler is pretty good though since it can detect for loops and foreachs unlike the the dumps most people use.

      Vulture Aid Offline
      Vulture Aid Offline
      Vulture Aid
      Contributor
      wrote on last edited by
      #19

      JezuzLizard How can I change the output? Do I have to change the csc file manually to bo2's scripting?

      JezuzLizard 1 Reply Last reply
      0
      • Vulture Aid Vulture Aid

        JezuzLizard How can I change the output? Do I have to change the csc file manually to bo2's scripting?

        JezuzLizard Offline
        JezuzLizard Offline
        JezuzLizard
        Plutonium Staff
        wrote on last edited by
        #20

        Vulture Aid I'm not sure the Cerberus Decompiler will decompile in any other way. What I meant was you would have to go thru each function by hand and fix the errors in it. Though remember even though we have access to .cscs I don't believe plutonium supports modding them since modding is only serverside right now. .cscs can give a good idea as to what the limit of .gsc only modding can do before you run into exe_client_field_mismatch error.

        1 Reply Last reply
        0
        • rtyhts Offline
          rtyhts Offline
          rtyhts
          wrote on last edited by
          #21

          i followed the instructions but i have always 3 afterlife in co-op server.
          Please help me, can you explain me how to set it to a differnt value?
          Tank you.

          Vulture Aid 1 Reply Last reply
          0
          • rtyhts rtyhts

            i followed the instructions but i have always 3 afterlife in co-op server.
            Please help me, can you explain me how to set it to a differnt value?
            Tank you.

            Vulture Aid Offline
            Vulture Aid Offline
            Vulture Aid
            Contributor
            wrote on last edited by
            #22

            rtyhts if by "co-op server" you mean custom games, then no I will not help you

            This mod was made for dedicated servers only

            rtyhts 1 Reply Last reply
            0
            • Vulture Aid Vulture Aid

              rtyhts if by "co-op server" you mean custom games, then no I will not help you

              This mod was made for dedicated servers only

              rtyhts Offline
              rtyhts Offline
              rtyhts
              wrote on last edited by rtyhts
              #23
              This post is deleted!
              1 Reply Last reply
              0
              • Vulture Aid Vulture Aid

                Hey y'all, this is my first ever mod made in gsc, created by me and staff member homura.

                Essentially, what this mod does is increase your lives cap up to 9, a reference to the custom game loading screen of MOTD. It took me many days to code this in as not only was it my first time in gsc, but I also ran into many bugs with the hud, which I wasn't aware of and thought my code didn't work at all

                PLEASE READ
                To whom it may concern: I am deeply sorry I couldn't get the hud to display the current lives, me and Homura have tried for many days to fix this issue, but unfortunately, we couldn't. So bare with us as you'll have to rely on the status display to know how many lives you have, the cause of this error is in line 61 74 (self setclientfieldtoplayer( "player_lives", self.lives ); MY BAD Y'ALL), it would seem to be that it only displays base 4 numbers. If anyone has a fix, leave a comment on the forum post or message me directly if you know a fix. GLHF!!!!!

                Instructions
                Assuming you've already read Drgn's "Loading Custom GSC Scripts" and XERXES's "PlutoT6 server setup guide"...

                -Simply compile the .gsc file below the following in the GSC Example Toolkit with the compiler.exe,

                -Rename the newly compiled file to _clientids.gsc,

                -Place it in <Pluto>/t6r/data/maps/mp/gametypes_zm/ and replace it with the existing clientids,

                -Start up your dedicated server, launch the game, connect to your server and enjoy!

                Download: https://www.mediafire.com/file/pt14ma5s03xu5n2/9_lives_1.0.gsc/file

                MichaelCH Offline
                MichaelCH Offline
                MichaelCH
                wrote on last edited by
                #24

                Vulture Aid DO ANYONE KNOW HOW to install more than one mod?

                1 Reply Last reply
                0
                • Vulture Aid Vulture Aid

                  Hey y'all, this is my first ever mod made in gsc, created by me and staff member homura.

                  Essentially, what this mod does is increase your lives cap up to 9, a reference to the custom game loading screen of MOTD. It took me many days to code this in as not only was it my first time in gsc, but I also ran into many bugs with the hud, which I wasn't aware of and thought my code didn't work at all

                  PLEASE READ
                  To whom it may concern: I am deeply sorry I couldn't get the hud to display the current lives, me and Homura have tried for many days to fix this issue, but unfortunately, we couldn't. So bare with us as you'll have to rely on the status display to know how many lives you have, the cause of this error is in line 61 74 (self setclientfieldtoplayer( "player_lives", self.lives ); MY BAD Y'ALL), it would seem to be that it only displays base 4 numbers. If anyone has a fix, leave a comment on the forum post or message me directly if you know a fix. GLHF!!!!!

                  Instructions
                  Assuming you've already read Drgn's "Loading Custom GSC Scripts" and XERXES's "PlutoT6 server setup guide"...

                  -Simply compile the .gsc file below the following in the GSC Example Toolkit with the compiler.exe,

                  -Rename the newly compiled file to _clientids.gsc,

                  -Place it in <Pluto>/t6r/data/maps/mp/gametypes_zm/ and replace it with the existing clientids,

                  -Start up your dedicated server, launch the game, connect to your server and enjoy!

                  Download: https://www.mediafire.com/file/pt14ma5s03xu5n2/9_lives_1.0.gsc/file

                  Transgender_ Offline
                  Transgender_ Offline
                  Transgender_
                  wrote on last edited by
                  #25

                  Vulture Aid pog

                  1 Reply Last reply
                  0
                  • Ox_ Ox_

                    Vulture Aid said in [Release] Mob of the Dead Mod: "A cat has 9 lives":

                    PLEASE READ
                    To whom it may concern: I am deeply sorry I couldn't get the hud to display the current lives, me and Homura have tried for many days to fix this issue, but unfortunately, we couldn't. So bare with us as you'll have to rely on the status display to know how many lives you have, the cause of this error is in line 61, it would seem to be that it only displays base 4 numbers. If anyone has a fix, leave a comment on the forum post or message me directly if you know a fix. GLHF!!!!!

                    The player_lives clientfield is only allocated two bits, since that's all you're supposed to need.
                    You can only fit numbers 0 though 3 into those two bits.

                    To get past this, you'll need to patch maps\mp\zombies\_zm_afterlife.gsc.
                    This line specifically in init():

                    registerclientfield("toplayer", "player_lives", 9000, 4, "int"); //patched to allocate 4 bits
                    
                    AlexyGalaxy Offline
                    AlexyGalaxy Offline
                    AlexyGalaxy
                    wrote on last edited by AlexyGalaxy
                    #26

                    Ox_ Vulture Aid I did everything above but still got an error.

                    I edited self setclientfieldtoplayer( "player_lives", self.lives );

                    I edited _zm_afterlife: registerclientfield("toplayer", "player_lives", 9000, 4, "int");

                    Error:
                    Attempt to register ClientField player_lives failed. Client Filed set "toplayer" either already contains a filed called player_lives, or a hash collision has occurred.

                    Where should I be keeping the zm_afterlife.gsc file?
                    Currently it is in AppData\Local\Plutonium\storage\t6\scripts\zm\zm_prison

                    JezuzLizard 1 Reply Last reply
                    0
                    • AlexyGalaxy AlexyGalaxy

                      Ox_ Vulture Aid I did everything above but still got an error.

                      I edited self setclientfieldtoplayer( "player_lives", self.lives );

                      I edited _zm_afterlife: registerclientfield("toplayer", "player_lives", 9000, 4, "int");

                      Error:
                      Attempt to register ClientField player_lives failed. Client Filed set "toplayer" either already contains a filed called player_lives, or a hash collision has occurred.

                      Where should I be keeping the zm_afterlife.gsc file?
                      Currently it is in AppData\Local\Plutonium\storage\t6\scripts\zm\zm_prison

                      JezuzLizard Offline
                      JezuzLizard Offline
                      JezuzLizard
                      Plutonium Staff
                      wrote on last edited by
                      #27

                      AlexyGalaxy If you want to override a GSC the correct path is storage\t6\maps and just match the sub directory.
                      Like the post says the clientfield is only for the hud and it's limited to 4. You would use .lives on the player to properly set the lives.

                      AlexyGalaxy 1 Reply Last reply
                      0
                      • JezuzLizard JezuzLizard

                        AlexyGalaxy If you want to override a GSC the correct path is storage\t6\maps and just match the sub directory.
                        Like the post says the clientfield is only for the hud and it's limited to 4. You would use .lives on the player to properly set the lives.

                        AlexyGalaxy Offline
                        AlexyGalaxy Offline
                        AlexyGalaxy
                        wrote on last edited by
                        #28

                        JezuzLizard I put the compiled _zm_afterlife file into the correct path the error is gone. However I still cannot see more than 3 afterlifes.

                        What did you mean by "You would use .lives on the player to properly set the lives" and which file "9 lives 1" or "_zm_afterlife"?

                        JezuzLizard 1 Reply Last reply
                        0
                        • AlexyGalaxy AlexyGalaxy

                          JezuzLizard I put the compiled _zm_afterlife file into the correct path the error is gone. However I still cannot see more than 3 afterlifes.

                          What did you mean by "You would use .lives on the player to properly set the lives" and which file "9 lives 1" or "_zm_afterlife"?

                          JezuzLizard Offline
                          JezuzLizard Offline
                          JezuzLizard
                          Plutonium Staff
                          wrote on last edited by
                          #29

                          AlexyGalaxy Why are you modifying _zm_afterlife.gsc? The post doesn't modify this script at all.

                          1 Reply Last reply
                          0
                          • Ox_ Ox_

                            Vulture Aid said in [Release] Mob of the Dead Mod: "A cat has 9 lives":

                            PLEASE READ
                            To whom it may concern: I am deeply sorry I couldn't get the hud to display the current lives, me and Homura have tried for many days to fix this issue, but unfortunately, we couldn't. So bare with us as you'll have to rely on the status display to know how many lives you have, the cause of this error is in line 61, it would seem to be that it only displays base 4 numbers. If anyone has a fix, leave a comment on the forum post or message me directly if you know a fix. GLHF!!!!!

                            The player_lives clientfield is only allocated two bits, since that's all you're supposed to need.
                            You can only fit numbers 0 though 3 into those two bits.

                            To get past this, you'll need to patch maps\mp\zombies\_zm_afterlife.gsc.
                            This line specifically in init():

                            registerclientfield("toplayer", "player_lives", 9000, 4, "int"); //patched to allocate 4 bits
                            
                            AlexyGalaxy Offline
                            AlexyGalaxy Offline
                            AlexyGalaxy
                            wrote on last edited by AlexyGalaxy
                            #30

                            Ox_ said in [Release] Mob of the Dead Mod: "A cat has 9 lives":

                            The player_lives clientfield is only allocated two bits, since that's all you're supposed to need.
                            You can only fit numbers 0 though 3 into those two bits.

                            To get past this, you'll need to patch maps\mp\zombies\_zm_afterlife.gsc.
                            This line specifically in init():

                            registerclientfield("toplayer", "player_lives", 9000, 4, "int"); //patched to allocate 4 bits
                            

                            JezuzLizard This is what I am following. I am trying to get afterlife to display two digets or a number larger than 3.

                            JezuzLizard 1 Reply Last reply
                            0
                            • AlexyGalaxy AlexyGalaxy

                              Ox_ said in [Release] Mob of the Dead Mod: "A cat has 9 lives":

                              The player_lives clientfield is only allocated two bits, since that's all you're supposed to need.
                              You can only fit numbers 0 though 3 into those two bits.

                              To get past this, you'll need to patch maps\mp\zombies\_zm_afterlife.gsc.
                              This line specifically in init():

                              registerclientfield("toplayer", "player_lives", 9000, 4, "int"); //patched to allocate 4 bits
                              

                              JezuzLizard This is what I am following. I am trying to get afterlife to display two digets or a number larger than 3.

                              JezuzLizard Offline
                              JezuzLizard Offline
                              JezuzLizard
                              Plutonium Staff
                              wrote on last edited by
                              #31

                              AlexyGalaxy You can try but I don't think this is currently possible. Clientfields need to be synced exactly between client and server. If you want to register a clientfield you also need to register it clientside in CSC. But CSC is not currently supported for loading so it wouldn't be possible to sync the clientfields with new values.

                              1 Reply Last reply
                              0
                              • techboy04gaming Offline
                                techboy04gaming Offline
                                techboy04gaming
                                wrote on last edited by
                                #32

                                This script may be a little outdated so I decided to update it myself 🙂
                                Actually nothing is changed besides a proper HUD to show the lives... thats overlapped on the Afterlife logo ingame. So it aint perfect but aye, it shows the HUD and it works with the modern way Pluto uses scripts 🙂
                                https://github.com/techboy04/9Lives-PlutoniumT6

                                1 Reply Last reply
                                0

                                Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                                Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                                With your input, this post could be even better 💗

                                Register Login
                                Reply
                                • Reply as topic
                                Log in to reply
                                • Oldest to Newest
                                • Newest to Oldest
                                • Most Votes


                                • 1
                                • 2
                                • Login

                                • Don't have an account? Register

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