"Unknown P-Code 381 in Script 1"

Ask about ACS, DECORATE, ZScript, or any other scripting questions here!

Moderator: GZDoom Developers

Forum rules
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. If you still don't understand how to use a feature, then ask here.

"Unknown P-Code 381 in Script 1"

Postby Ravick » Wed Jan 10, 2018 8:58 pm

Well, maybe it'd be more accurate to post it at Zandronum forums, but...


I get this error message when I try to test a map in Zandronum. I usually use GZDoom, where it has no problems. What is this P-Code? Do I need to avoid it to make the map Zandronum compatible?

Thanks in advance!
User avatar
Ravick
Do what thou wilt, since you don't bug the hell out of me!
 
Joined: 22 Aug 2010
Location: Tubarão, Brasil

Re: "Unknown P-Code 381 in Script 1"

Postby wildweasel » Wed Jan 10, 2018 11:35 pm

What is the source for script 1? I suspect you may be using an ACS function that is too new to be in Zandronum.
User avatar
wildweasel
change o' pace.
Moderator Team Lead
 
Joined: 15 Jul 2003

Re: "Unknown P-Code 381 in Script 1"

Postby Ravick » Thu Jan 11, 2018 7:31 pm

I'm guessing the same. Is there any documentation about GZDoom's P-Codes list? I've found only this, but it does have just quite a few of them. :(

Well, there is nothing fancy at Scrpit 1:

Polyobj_DoorSlide
SetLineTexture
AmbientSound
Thing_SetGoal
Floor_RaiseByValue
Light_LowerByValue
ReplaceTextures
changecamera
Elevator_LowerToNearest
SetActorStates

And a bunch of delays, tagwaits and very simple things just like that .

What ACS code is 381? :|
User avatar
Ravick
Do what thou wilt, since you don't bug the hell out of me!
 
Joined: 22 Aug 2010
Location: Tubarão, Brasil

Re: "Unknown P-Code 381 in Script 1"

Postby wildweasel » Thu Jan 11, 2018 8:24 pm

I'm not having any luck blundering through the wiki for historical info, nor reading the raw source code for ACC++ - I don't imagine I'd be able to get anywhere without a copy of your script source.
User avatar
wildweasel
change o' pace.
Moderator Team Lead
 
Joined: 15 Jul 2003

Re: "Unknown P-Code 381 in Script 1"

Postby Ravick » Thu Jan 11, 2018 9:59 pm

Uh... the map itself is a revamp of a map from 2008 from another author... I was hoping not to show it because it is a bit messy right now as the scene got changed many times... :mrgreen:

Anyway, I've just uploaded a "debugging" version of it here for another thread.

Script 1 is activated when the scene gets at the elevator.
User avatar
Ravick
Do what thou wilt, since you don't bug the hell out of me!
 
Joined: 22 Aug 2010
Location: Tubarão, Brasil

Re: "Unknown P-Code 381 in Script 1"

Postby _mental_ » Fri Jan 12, 2018 3:27 am

P-code 381 is used by Floor_Stop() function. Although in map you posted this instruction comes from script 2.
I'm pretty sure that there is no such p-code in script 1. It could be a different thing unsupported by Zandronum and this error is reported by occasion.
In order to figure it out I need to debug Zandronum but that's too much for me.
_mental_
 
 
 
Joined: 07 Aug 2011

Re: "Unknown P-Code 381 in Script 1"

Postby Edward-san » Fri Jan 12, 2018 5:06 am

Isn't P-Code 381 PCD_LSPEC5EX? It's used to handle line specials greater than 255 (and of course Zandronum doesn't have it yet because it was added in 2016, while its codebase is from 2014).
Edward-san
Mathematics is the language with which God has written the universe. (Galilei)
 
Joined: 17 Oct 2009


Return to Scripting

Who is online

Users browsing this forum: No registered users and 2 guests