Jump to content

HELP with: Class "script" overflowed the variable count field while linking. The class is marked as invalid.


Recommended Posts

Posted

See title.

I somehow seem to hit a barrier of some kind with the main script of my Naked Defeat mod:


Papyrus log says this: 
 

"Class nade_configquest_scr overflowed the variable count field while linking. The class is marked as invalid. A programmer must adjust the bit field sizes"

And now I wonder how I can fix this? Google and GPT told me something about reducing parameters, but I have no idea still what that means.

How can I work around this?

I have no basic scripting knowlegde (so no theoretical foundation), I m just working with what I learn on the way. So please try to explain it like to fool :D

I attached the script. I guess there are a lot of criminal offenses done in that, but in the end I just want to know how I can change it (put properties in other scripts, reduce functions etc.)

I dont even know if only "Property Auto" stuff is counted here or all Functions and the added "Bool XY" stuff that I use within the script?
Thank you alot. 

nade_configquest_scr.rar

Posted
1 minute ago, Swe-DivX said:

It sound like you have to many STATE, i think max is 100 on one quest.

 

what is a State? I dont use them at all. Or do you mean something else? I only know of the "Go To State XY" thingy.

Posted
1 minute ago, Nymra said:

 

what is a State? I dont use them at all. Or do you mean something else? I only know of the "Go To State XY" thingy.


saw it now, you can disable some properties and test.

Posted
9 minutes ago, Swe-DivX said:


saw it now, you can disable some properties and test.

 

can it help to move properties into an array?

 

Like 

Property A 
Property B
Property C

Property [] Array with ABC?

and will it work on an existing save? :D :P
sigh...

 

Posted
23 minutes ago, Nymra said:

"Class nade_configquest_scr overflowed the variable count field while linking. The class is marked as invalid. A programmer must adjust the bit field sizes"

Supposedly, MCM allows 128 pages per mod and 128 option entries per page.  You don't have many mod pages, but one of them has quite a few options.  Possibly that's the cause.  If so, splitting the page into smaller ones will solve the problem.  I don't think there's any limit on number of properties (some of my scripts have really a lot).

Posted
1 minute ago, Nymra said:

 

can it help to move properties into an array?

 

Like 

Property A 
Property B
Property C

Property [] Array with ABC?

and will it work on an existing save? :D :P
sigh...

 


It should work, as you instead add more instances to the script. You can also move property that is directly connected to esp or esm value to its own script. spells, faction, race or actors.

Posted
13 minutes ago, Hex Bolt said:

Supposedly, MCM allows 128 pages per mod and 128 option entries per page.  You don't have many mod pages, but one of them has quite a few options.  Possibly that's the cause.  If so, splitting the page into smaller ones will solve the problem.  I don't think there's any limit on number of properties (some of my scripts have really a lot).

 

hmm, weird.
I did a bit of everything, deleted old functions, unused properties and stuff... 

Now the message is gone and the mod works again... I see if I can force this to happen by overloading either with properties or MCM entries. Because I need tons of properties still,, aaah :D

Posted
5 minutes ago, Swe-DivX said:


It should work, as you instead add more instances to the script. You can also move property that is directly connected to esp or esm value to its own script. spells, faction, race or actors.

 

yeah, I m aware of this. But I was lazy and I needed all stuff in one place so I used the configquest to store it all.... 
thx so far. will keep working on this... 
at least the script works again now. 

Posted

so its definatly the properties...

 

I just put this into the script and it stopped working. (basically added 100 extra Strings...)

No other changes were made... 
So it seems indeed the count of these properties is too high... 
Gosh, this makes things complicated ^^

 

Spoiler

string B001 = "1";
string B002 = "2";
string B003 = "3";
string B004 = "4";
string B005 = "5";
string B006 = "6";
string B007 = "7";
string B008 = "8";
string B009 = "9";
string B010 = "10";
string B011 = "11";
string B012 = "12";
string B013 = "13";
string B014 = "14";
string B015 = "15";
string B016 = "16";
string B017 = "17";
string B018 = "18";
string B019 = "19";
string B020 = "20";
string B021 = "21";
string B022 = "22";
string B023 = "23";
string B024 = "24";
string B025 = "25";
string B026 = "26";
string B027 = "27";
string B028 = "28";
string B029 = "29";
string B030 = "30";
string B031 = "31";
string B032 = "32";
string B033 = "33";
string B034 = "34";
string B035 = "35";
string B036 = "36";
string B037 = "37";
string B038 = "38";
string B039 = "39";
string B040 = "40";
string B041 = "41";
string B042 = "42";
string B043 = "43";
string B044 = "44";
string B045 = "45";
string B046 = "46";
string B047 = "47";
string B048 = "48";
string B049 = "49";
string B050 = "50";
string B051 = "51";
string B052 = "52";
string B053 = "53";
string B054 = "54";
string B055 = "55";
string B056 = "56";
string B057 = "57";
string B058 = "58";
string B059 = "59";
string B060 = "60";
string B061 = "61";
string B062 = "62";
string B063 = "63";
string B064 = "64";
string B065 = "65";
string B066 = "66";
string B067 = "67";
string B068 = "68";
string B069 = "69";
string B070 = "70";
string B071 = "71";
string B072 = "72";
string B073 = "73";
string B074 = "74";
string B075 = "75";
string B076 = "76";
string B077 = "77";
string B078 = "78";
string B079 = "79";
string B080 = "80";
string B081 = "81";
string B082 = "82";
string B083 = "83";
string B084 = "84";
string B085 = "85";
string B086 = "86";
string B087 = "87";
string B088 = "88";
string B089 = "89";
string B090 = "90";
string B091 = "91";
string B092 = "92";
string B093 = "93";
string B094 = "94";
string B095 = "95";
string B096 = "96";
string B097 = "97";
string B098 = "98";
string B099 = "99";
string B100 = "100";
 


 

Posted
1 hour ago, Pamatronic said:

Those are variables, not properties. Important difference.

 

hmm, so I could have added those 100 String Properties via ESP without issue, but those "extra variables" that are saved in the script only are problematic? 
 

Posted

I think the programmer who wrote the "overflowed the variable count field while linking. The class is marked as invalid. A programmer must adjust the bit field sizes" is checking for max 1024 variable on one script.

  • 7 months later...
Posted

In the past (since this thread was created) I solved the problem by changing 

 

int SomeInt 
to 
int Property SomeInt Auto

 

(with the corresponding entry in the ESP).

But suddenly this stopped working. 
Is there some other stuff that I need to work with? Found no hints on google.

 

But not this does not work anymore.
I changed liked 20 variables (mostly ints) into Properties and still this error does not go away :(

Am I missing something here? 

 

 

"Class nade_configquest_scr overflowed the variable count field while linking. The class is marked as invalid. A programmer must adjust the bit field sizes" 

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...