UGX-Mods

Call of Duty: Black Ops 3 => Help Desk => Scripting => Topic started by: Mineturtle on October 05, 2016, 08:43:34 pm

Title: Having a clientfield mismatch, and I have no idea how to fix.
Post by: Mineturtle on October 05, 2016, 08:43:34 pm
http://i.imgur.com/PHRol1h.png (http://i.imgur.com/PHRol1h.png)

I added a piece of script to change the lightstate when the power is turned on, but this does not seem to work. Does this work right?


function poweron()
{
   trig = getent("use_power_switch","targetname");

   trig waittill("trigger",user);
   if( isdefined( user ) )
   {
      level util::set_lighting_state( 2 );
   }


}


Double Post Merge: October 06, 2016, 12:23:52 am
I even commentated it out, and it still happens. :(
Title: Re: Having a clientfield mismatch, and I have no idea how to fix.
Post by: DidUknowiPwn on October 06, 2016, 02:43:07 pm
This is an extremely frustrating issue apparently (when I asked the devs on this) and there's no way of knowing of what the error is.

What it means is that you're initializing a clientfield without ever catching it in csc.

So your issue is to look at the scripts you've included that started causing this.

For example in MP scripts/mp/bots/_bot.gsc will cause it.
Title: Re: Having a clientfield mismatch, and I have no idea how to fix.
Post by: Mineturtle on October 06, 2016, 10:46:18 pm
The thing is, I only edited my GSC.
Here it is in its entirety.
http://hastebin.com/opazinigen.php (http://hastebin.com/opazinigen.php)

Double Post Merge: October 07, 2016, 03:48:39 am
And now it happens on any other map I make. Completely unedited, doesn't work.