Unknown P-Code 266 in Script 1 - WTF does this mean?

Discuss anything ZDoom-related that doesn't fall into one of the other categories.
Post Reply
JoeCapricorn
Posts: 81
Joined: Sat Dec 04, 2004 10:25 pm
Contact:

Unknown P-Code 266 in Script 1 - WTF does this mean?

Post by JoeCapricorn »

I cannot figure out why I get this. I am trying to execute a relatively simple script that changes the dynamics of a complex room.

Like so...

script 1 (void)
{
changesky (0,"sky3");
light_changetovalue(20,96);
light_changetovalue(21,192);
light_changetovalue(22,176);
light_changetovalue(23,160);
light_changetovalue(31,240);
light_changetovalue(32,224);
light_changetovalue(33,208);
light_changetovalue(34,200);
light_changetovalue(35,192);
light_changetovalue(36,176);
light_changetovalue(37,160);
light_changetovalue(38,144);
light_changetovalue(39,128);
light_changetovalue(40,200);
light_changetovalue(41,200);
light_changetovalue(42,200);
light_changetovalue(43,200);
light_changetovalue(44,200);
floor_raisebyvalue(40,32,22);
floor_raisebyvalue(41,32,34);
floor_raisebyvalue(42,32,34);
floor_raisebyvalue(43,32,36);
changefloor(44,"blood1");
changefloor(43,"blood1");
changefloor(42,"blood1");
changefloor(41,"blood1");
changefloor(40,"blood1");
}

Is there a limit to how much a script can have or something? O_o

I checked the tags and everything. It's all in place.

although tag 20 affects about 3000 sectors...
User avatar
Enjay
 
 
Posts: 27266
Joined: Tue Jul 15, 2003 4:58 pm
Location: Scotland
Contact:

Post by Enjay »

Not sure because I've never used it, but I think you could have the changesky parameters wrong.
the Wiki wrote:void changesky (str sky1, str sky2);
To me that looks like changesky does not expect any numeric parameters but rather up to 2 strings - one for the sky1 and one for the sky2 to be used in the level. Remember, the sky normally affects the whole level, so tags are irrelevant for that command.
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49252
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Post by Graf Zahl »

It means that you try to run a new ACS command with an old version of ZDoom. ChangeSky has been added for one of the 2.0.9x versions. Are you still using 2.0.63a?
JoeCapricorn
Posts: 81
Joined: Sat Dec 04, 2004 10:25 pm
Contact:

Post by JoeCapricorn »

I still use .63a...

So that's the problem eh?

Damn.

I will find a way around it though. Certainly .63a supports skyboxes right?

Also, sorry, I meant to put this in Editing x_x

I just wasn't awake at 3:45 AM
User avatar
Macil
Posts: 2529
Joined: Mon Mar 22, 2004 7:00 pm
Preferred Pronouns: He/Him
Location: California, USA. Previously known as "Agent ME".
Contact:

Post by Macil »

Just get version *.98...
User avatar
Enjay
 
 
Posts: 27266
Joined: Tue Jul 15, 2003 4:58 pm
Location: Scotland
Contact:

Post by Enjay »

Joe Capricorn wrote:Certainly .63a supports skyboxes right?
Certainly does. :) But consider upgrading. Any reason you're sticking with 63a?
JoeCapricorn
Posts: 81
Joined: Sat Dec 04, 2004 10:25 pm
Contact:

Post by JoeCapricorn »

Some weapon mods crash Zdoom 98

Also, I want to make sure that my mod works with both .63a and 98, because I am not the only one who is sticking with 63a

Also, I tested what I wanted to do with 98, and it looked horrible. Even though it was bloody hellish, it was still bright compared to the landscape and made everything look ugly.

Instead, I changed all of the sectors that had the F_sky texture to a different tag (except for street lights) and it looks much better. Plus it works with both 63a and 98.

Finally, if anyone is familiar with Deus Vult... the demos done by Converted and that other guy only work for 63a and not any 9x version. They are fun to watch. Hell, in the one demo the guy kills about 1000 monsters in less than 25 minutes.
User avatar
wildweasel
Posts: 21706
Joined: Tue Jul 15, 2003 7:33 pm
Preferred Pronouns: He/Him
Operating System Version (Optional): A lot of them
Graphics Processor: Not Listed
Contact:

Post by wildweasel »

Joe Capricorn wrote:Some weapon mods crash Zdoom 98
That's why you keep 63a in a seperate directory from 98. I still do, so I can play mods like Warzone, Destructomaniac, and ActionRevolution (since their modified DEHSUPP is 63a-only).
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49252
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Post by Graf Zahl »

Sigh...

Just because some jerks refuse to upgrade to a newer version doesn't mean you have to ignore all the new features. If everyone thought like that there wouldn't be any progress at all. For new projects there is absolutely no reason to stick to an almost 2 year old version of ZDoom!


BTW, I said from the start that DEHSUPP modifications are evil and will cause problems. It seems I was more correct than I ever anticipated.
User avatar
Belial
Posts: 1616
Joined: Wed Feb 09, 2005 3:09 pm

Post by Belial »

As for Deus Vult, meh. Vile's PrBoom demos are waaaaay better. For obvious reasons.

63a ftw. Other versions only for their specific stuff.
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49252
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Post by Graf Zahl »

Coming from you that doesn't surprise me.
Post Reply

Return to “General”