Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse

LiquidBounce Forum

  1. Home
  2. ScriptAPI
  3. mc.thePlayer is undefined

mc.thePlayer is undefined

Scheduled Pinned Locked Moved Solved ScriptAPI
41 Posts 6 Posters 14.6k Views
  • 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.
  • CzechHekC CzechHek

    @cancernameu what about mc.thePlayer.getClass()

    ? Offline
    ? Offline
    A Former User
    wrote on last edited by
    #16

    @czechhek

     	try {
    	    Chat.print(mc.thePlayer.getClass());
    	}
    	catch(e) {
    	    Chat.print(e);
    	}
    

    TypeError: Cannot read property "getClass" from undefined

    Ali00035A 1 Reply Last reply
    0
    • ? A Former User

      @czechhek

       	try {
      	    Chat.print(mc.thePlayer.getClass());
      	}
      	catch(e) {
      	    Chat.print(e);
      	}
      

      TypeError: Cannot read property "getClass" from undefined

      Ali00035A Offline
      Ali00035A Offline
      Ali00035
      wrote on last edited by
      #17

      @cancernameu What do you need that for

      Btw, whats your Matrix?

      ? 1 Reply Last reply
      0
      • Ali00035A Ali00035

        @cancernameu What do you need that for

        Btw, whats your Matrix?

        ? Offline
        ? Offline
        A Former User
        wrote on last edited by
        #18

        @ali00035 I want to have access to the methods of the player. I don't use Matrix all that much nowadays, just send me a message on here.

        CzechHekC 1 Reply Last reply
        0
        • ? A Former User

          @ali00035 I want to have access to the methods of the player. I don't use Matrix all that much nowadays, just send me a message on here.

          CzechHekC Offline
          CzechHekC Offline
          CzechHek
          wrote on last edited by
          #19

          @cancernameu https://scriptapi.liquidbounce.net/net/minecraft/client/entity/EntityPlayerSP.html

          ? 1 Reply Last reply
          0
          • CzechHekC CzechHek

            @cancernameu https://scriptapi.liquidbounce.net/net/minecraft/client/entity/EntityPlayerSP.html

            ? Offline
            ? Offline
            A Former User
            wrote on last edited by
            #20

            @czechhek Yeah, I'm aware of the class. Usually, the current player is accessible with mc.thePlayer. It isn't here, all my previous scripts have broken, and I doubt any new ones will. I just want to solve the issue.

            ? 1 Reply Last reply
            0
            • ? A Former User

              @czechhek Yeah, I'm aware of the class. Usually, the current player is accessible with mc.thePlayer. It isn't here, all my previous scripts have broken, and I doubt any new ones will. I just want to solve the issue.

              ? Offline
              ? Offline
              A Former User
              wrote on last edited by
              #21

              And as you can see, it isn't among the fields of mc I listed.

              1 Reply Last reply
              0
              • Ali00035A Ali00035

                @cancernameu said in typeof(mc.thePlayer) == undefined??:

                Chat.print(typeof(mc.thePlayer))

                Isn't that supposed to be like Chat.print(typeof mc.thePlayer) ?

                Ali00035A Offline
                Ali00035A Offline
                Ali00035
                wrote on last edited by
                #22

                @ali00035 said in mc.thePlayer is undefined:

                @cancernameu said in typeof(mc.thePlayer) == undefined??:

                Chat.print(typeof(mc.thePlayer))

                Isn't that supposed to be like Chat.print(typeof mc.thePlayer) ?

                @cancernameu

                1 Reply Last reply
                0
                • kawaiinekololisK Offline
                  kawaiinekololisK Offline
                  kawaiinekololis
                  Admin
                  wrote on last edited by
                  #23

                  There might be something wrong with your b72 build. Is it official? I could only think of missing mappings. Could you check your .minecraft/LiquidBounce-1.8.9 folder for the mcp-stable_22.srg file? It should be about 4.25 MB, so maybe something went wrong on the download and fucked up the mappings.

                  ? 2 Replies Last reply
                  0
                  • kawaiinekololisK kawaiinekololis

                    There might be something wrong with your b72 build. Is it official? I could only think of missing mappings. Could you check your .minecraft/LiquidBounce-1.8.9 folder for the mcp-stable_22.srg file? It should be about 4.25 MB, so maybe something went wrong on the download and fucked up the mappings.

                    ? Offline
                    ? Offline
                    A Former User
                    wrote on last edited by A Former User
                    #24

                    @kawaiinekololis Yup. official Linux build, fresh from the website. Edit looking for it

                    Ali00035A 1 Reply Last reply
                    0
                    • ? A Former User

                      @kawaiinekololis Yup. official Linux build, fresh from the website. Edit looking for it

                      Ali00035A Offline
                      Ali00035A Offline
                      Ali00035
                      wrote on last edited by Ali00035
                      #25

                      @cancernameu GNU/Linux... Based!

                      1 Reply Last reply
                      0
                      • kawaiinekololisK kawaiinekololis

                        There might be something wrong with your b72 build. Is it official? I could only think of missing mappings. Could you check your .minecraft/LiquidBounce-1.8.9 folder for the mcp-stable_22.srg file? It should be about 4.25 MB, so maybe something went wrong on the download and fucked up the mappings.

                        ? Offline
                        ? Offline
                        A Former User
                        wrote on last edited by A Former User
                        #26

                        It's only 512b. I'll try and redownload again.
                        Thanks ❤

                        Ali00035A ? 2 Replies Last reply
                        0
                        • ? A Former User

                          It's only 512b. I'll try and redownload again.
                          Thanks ❤

                          Ali00035A Offline
                          Ali00035A Offline
                          Ali00035
                          wrote on last edited by
                          #27

                          @cancernameu The link is on the Ccbluex Github

                          ? 1 Reply Last reply
                          0
                          • Ali00035A Offline
                            Ali00035A Offline
                            Ali00035
                            wrote on last edited by
                            #28

                            https://github.com/CCBlueX/LiquidCloud/blob/master/LiquidBounce/srgs/mcp-stable_22.srg

                            1 Reply Last reply
                            0
                            • Ali00035A Ali00035

                              @cancernameu The link is on the Ccbluex Github

                              ? Offline
                              ? Offline
                              A Former User
                              wrote on last edited by
                              #29

                              @ali00035 Thanks. I got it from the site, if that's borked I'll try the gh

                              1 Reply Last reply
                              0
                              • ? A Former User

                                It's only 512b. I'll try and redownload again.
                                Thanks ❤

                                ? Offline
                                ? Offline
                                A Former User
                                wrote on last edited by A Former User
                                #30

                                @cancernameu

                                mcp-stable_22.srg is still empty.
                                Edit: getting t from the gh.

                                Ali00035A kawaiinekololisK 2 Replies Last reply
                                0
                                • ? A Former User

                                  @cancernameu

                                  mcp-stable_22.srg is still empty.
                                  Edit: getting t from the gh.

                                  Ali00035A Offline
                                  Ali00035A Offline
                                  Ali00035
                                  wrote on last edited by
                                  #31

                                  @cancernameu How

                                  1 Reply Last reply
                                  0
                                  • ? A Former User

                                    @cancernameu

                                    mcp-stable_22.srg is still empty.
                                    Edit: getting t from the gh.

                                    kawaiinekololisK Offline
                                    kawaiinekololisK Offline
                                    kawaiinekololis
                                    Admin
                                    wrote on last edited by
                                    #32

                                    @cancernameu Could you please send me your log? There might be network issues.

                                    ? 1 Reply Last reply
                                    0
                                    • Ali00035A Offline
                                      Ali00035A Offline
                                      Ali00035
                                      wrote on last edited by
                                      #33

                                      @cancernameu, can you try with latest LB B73

                                      1 Reply Last reply
                                      0
                                      • kawaiinekololisK kawaiinekololis

                                        @cancernameu Could you please send me your log? There might be network issues.

                                        ? Offline
                                        ? Offline
                                        A Former User
                                        wrote on last edited by
                                        #34

                                        @kawaiinekololis After I got the srg from github, it worked perfectly. After deleting it and re-launching LB, it broke again. You hit the nail on its head -- it's apparently a networking issue. Here's the relevant part:
                                        http://0x0.st/oTxu.log

                                        Ali00035A kawaiinekololisK 2 Replies Last reply
                                        0
                                        • ? A Former User

                                          @kawaiinekololis After I got the srg from github, it worked perfectly. After deleting it and re-launching LB, it broke again. You hit the nail on its head -- it's apparently a networking issue. Here's the relevant part:
                                          http://0x0.st/oTxu.log

                                          Ali00035A Offline
                                          Ali00035A Offline
                                          Ali00035
                                          wrote on last edited by
                                          #35

                                          @cancernameu handshake_failure

                                          1 Reply Last reply
                                          0
                                          Reply
                                          • Reply as topic
                                          Log in to reply
                                          • Oldest to Newest
                                          • Newest to Oldest
                                          • Most Votes


                                          About
                                          • Terms of Service
                                          • Privacy Policy
                                          • Status
                                          • Contact Us
                                          Downloads
                                          • Releases
                                          • Source code
                                          • License
                                          Docs
                                          • Tutorials
                                          • CustomHUD
                                          • AutoSettings
                                          • ScriptAPI
                                          Community
                                          • Forum
                                          • Guilded
                                          • YouTube
                                          • Twitter
                                          • D.Tube
                                          • Login

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