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

Plutonium

  1. Home
  2. BO2 Modding Support & Discussion
  3. [Support] unresolved external errors?

[Support] unresolved external errors?

Scheduled Pinned Locked Moved BO2 Modding Support & Discussion
7 Posts 2 Posters 1.5k 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.
  • Trizzundefined Offline
    Trizzundefined Offline
    Trizz
    wrote on last edited by Mr. Android
    #1

    I'm trying to add the zombie counter script. What is this error trying to tell me i'm doing wrong kevin.PNG

    1 Reply Last reply
    0
    • Kalitosundefined Offline
      Kalitosundefined Offline
      Kalitos
      wrote on last edited by
      #2

      More details of your code would be needed to see what the error is.

      But I implemented the Zombies counter on my server, you can guide yourself from here:
      https://forum.plutonium.pw/topic/403/zombie-counter-help/2

      Trizzundefined 1 Reply Last reply
      0
      • Kalitosundefined Kalitos

        More details of your code would be needed to see what the error is.

        But I implemented the Zombies counter on my server, you can guide yourself from here:
        https://forum.plutonium.pw/topic/403/zombie-counter-help/2

        Trizzundefined Offline
        Trizzundefined Offline
        Trizz
        wrote on last edited by Trizz
        #3

        Kalitos I'm new to this, it says in the original post you linked call drawzombiescounter() in your init function so i've ended up trying to thread it but i dont even know if im anywhere close to being correct haha. ```
        code_text

        #include common_scripts\utility;
        #include maps\mp\zombies\_zm;
        #include maps\mp\zombies\_zm_utility;
        
        init()
        {
        	level.clientid = 0;
        	level.perk_purchase_limit = 9;
        	level thread onplayerconnect();
        	level thread drawzombiescounter();
        }
        
        onplayerconnect()
        {
        	for ( ;; )
        	{
        		level waittill( "connecting", player );
        		player.clientid = level.clientid;
        		player thread onplayerspawned();
        		level.clientid++;
        	}
        }
        
        onplayerspawned()
        {
        	level endon( "game_ended" );
                self endon( "disconnect" );
        	
        	for(;;)
        	{
        		self welcome();
        	}
        }
        
        welcome()
        {
            self waittill( "spawned_player" );
            self maps/mp/zombies/_zm_perks::give_perk( "specialty_longersprint" );
            wait 7;
            self iprintln("^2" +self.name + "^7 , your perk limit has been removed. Have fun.");
        }
        
        drawZombiesCounter()
        {
            level.zombiesCountDisplay = createServerFontString("Objective" , 1.7);
            level.zombiesCountDisplay setPoint("RIGHT", "CENTER", 315, "CENTER");
        
            thread updateZombiesCounter();
        }
        
        updateZombiesCounter()
        {
            level endon("stopUpdatingZombiesCounter");
        
            while(true)
            {
                zombiesCount = get_current_zombie_count();
                level.zombiesCountDisplay setSafeText("Zombies: " + zombiesCount);
        
                waitForZombieCountChanged("stopUpdatingZombiesCounter");
            }
        }
        
        recreateZombiesCounter()
        {
            level notify("stopUpdatingZombiesCounter");
        
            thread updateZombiesCounter();
        }
        
        waitForZombieCountChanged(endonNotification)
        {
            level endon(endonNotification);
        
            oldZombiesCount = get_current_zombie_count();
        
            while(true)
            {
                newZombiesCount = get_current_zombie_count();
        
                if(oldZombiesCount != newZombiesCount)
                {
                    return;
                }
        
                wait 0.05;
            }
        }```
        code_text
        
        1 Reply Last reply
        0
        • Kalitosundefined Offline
          Kalitosundefined Offline
          Kalitos
          wrote on last edited by
          #4

          Trizz said in unresolved external errors?:

          setSafeText

          you should change this line

          level thread drawzombiescounter();
          

          for this:

          drawzombiescounter();
          

          and this function

          setSafeText
          

          for this

          SetText
          
          Trizzundefined 1 Reply Last reply
          0
          • Kalitosundefined Kalitos

            Trizz said in unresolved external errors?:

            setSafeText

            you should change this line

            level thread drawzombiescounter();
            

            for this:

            drawzombiescounter();
            

            and this function

            setSafeText
            

            for this

            SetText
            
            Trizzundefined Offline
            Trizzundefined Offline
            Trizz
            wrote on last edited by
            #5

            Kalitos I tried changing it and still the same error It seems to have a problem with createserverfrontstring and setpoint

            #include common_scripts\utility;
            #include maps\mp\zombies\_zm;
            #include maps\mp\zombies\_zm_utility;
            #include maps/mp/zombies/_zm_utility;
            
            init()
            {
            	
            	level.clientid = 0;
            	level.perk_purchase_limit = 9;
            	level thread onplayerconnect();
            	drawZombiesCounter();
            }
            
            onplayerconnect()
            {
            	for ( ;; )
            	{
            		level waittill( "connecting", player );
            		player.clientid = level.clientid;
            		player thread onplayerspawned();
            		level.clientid++;
            	}
            }
            
            onplayerspawned()
            {
            	level endon( "game_ended" );
                    self endon( "disconnect" );
            	
            	for(;;)
            	{
            		self welcome();
            	}
            }
            
            welcome()
            {
                self waittill( "spawned_player" );
                self maps/mp/zombies/_zm_perks::give_perk( "specialty_longersprint" );
                wait 7;
                self iprintln("^2" +self.name + "^7 , your perk limit has been removed. Have fun.");
            }
            
            drawZombiesCounter()
            {
                level.zombiesCountDisplay = createServerFontString("Objective" , 1.7);
                level.zombiesCountDisplay setPoint("RIGHT", "CENTER", 315, "CENTER");
            
                thread updateZombiesCounter();
            }
            
            updateZombiesCounter()
            {
                level endon("stopUpdatingZombiesCounter");
            
                while(true)
                {
                    zombiesCount = get_current_zombie_count();
                    level.zombiesCountDisplay setText("Zombies: " + zombiesCount);
            
                    waitForZombieCountChanged("stopUpdatingZombiesCounter");
                }
            }
            
            recreateZombiesCounter()
            {
                level notify("stopUpdatingZombiesCounter");
            
                thread updateZombiesCounter();
            }
            
            waitForZombieCountChanged(endonNotification)
            {
                level endon(endonNotification);
            
                oldZombiesCount = get_current_zombie_count();
            
                while(true)
                {
                    newZombiesCount = get_current_zombie_count();
            
                    if(oldZombiesCount != newZombiesCount)
                    {
                        return;
                    }
            
                    wait 0.05;
                }
            }
            

            this is the error sssss.PNG

            1 Reply Last reply
            0
            • Kalitosundefined Offline
              Kalitosundefined Offline
              Kalitos
              wrote on last edited by
              #6

              Replace this in your project:

              #include common_scripts\utility;
              #include maps\mp\zombies\_zm;
              #include maps\mp\zombies\_zm_utility;
              #include maps\mp\gametypes_zm\_hud_util;
              #include maps\mp\gametypes_zm\_hud_message;
              #include maps\mp\_utility;
              #include common_scripts\utility;
              
              Trizzundefined 1 Reply Last reply
              0
              • Kalitosundefined Kalitos

                Replace this in your project:

                #include common_scripts\utility;
                #include maps\mp\zombies\_zm;
                #include maps\mp\zombies\_zm_utility;
                #include maps\mp\gametypes_zm\_hud_util;
                #include maps\mp\gametypes_zm\_hud_message;
                #include maps\mp\_utility;
                #include common_scripts\utility;
                
                Trizzundefined Offline
                Trizzundefined Offline
                Trizz
                wrote on last edited by
                #7

                Kalitos Those includes are going to be the death of me thankyou.

                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


                • Login

                • Don't have an account? Register

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