Weapon causes ACS problems

Archive of the old editing forum
Forum rules
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. This forum is archived - please use this set of forums to ask new questions.
Locked
User avatar
DonaldDuck
Posts: 69
Joined: Sat Jun 11, 2011 6:57 am

Weapon causes ACS problems

Post by DonaldDuck »

I have created a new Playerclass and a new weapon.
Whenever i start a normal map without any ACS scripting, it works (e.g.: normal doom maps).

But when I change the map to a map WITH ACS coding, errors come up like:
"ACS: I dont know what XXX is."

Playerclass:
Spoiler:
Weaponcode:
Spoiler:
The weapon also causes problem with my global script, when I enter a map with ACS coding.
Instead of the hudmessage "PlasmaAmmo: XXX" some random words will be shown like "ook they have0" or the mapname or something like this.

ACS coding:
Spoiler:
I really dont know where the problem is. :(
Blue Shadow
Posts: 5043
Joined: Sun Nov 14, 2010 12:59 am

Re: Weapon causes ACS problems

Post by Blue Shadow »

DonaldDuck wrote:The weapon also causes problem with my global script, when I enter a map with ACS coding.
Instead of the hudmessage "PlasmaAmmo: XXX" some random words will be shown like "ook they have0" or the mapname or something like this.
Maybe there is script number conflict between your scripts and the map's. If that's the case, use [wiki]named scripts[/wiki] instead.
User avatar
DonaldDuck
Posts: 69
Joined: Sat Jun 11, 2011 6:57 am

Re: Weapon causes ACS problems

Post by DonaldDuck »

OK, I've made something new.
But the problem is now:

The script with TakeInventory doesnt do anything on Zdoom maps, it only works on normal Doom maps!
But the scripts with SetActorVelocity and SetActorProperty are for other classes and they work on ALL maps.
I dont know why the terminator one wont (script. no. 314), even though it is the only wad i drag on zdoom exe. (no other scripts in use)
I tried it with skulltag too, but the same problem occurs.

I dont know what went wrong :(

Heres the ACS:
Spoiler:
And heres the Decorate (weapon and playerclass):
Spoiler:
If someone could help me, that'd be great, I'd really like to finish this mod. :D
(I still dont have that much experience)
User avatar
LilWhiteMouse
Posts: 2270
Joined: Tue Jul 15, 2003 7:00 pm
Location: Maine, US
Contact:

Re: Weapon causes ACS problems

Post by LilWhiteMouse »

Are your scripts in a library? If so, I think you've forgotten to add

Code: Select all

#library "My Library Name"
User avatar
DonaldDuck
Posts: 69
Joined: Sat Jun 11, 2011 6:57 am

Re: Weapon causes ACS problems

Post by DonaldDuck »

LilWhiteMouse wrote:Are your scripts in a library? If so, I think you've forgotten to add

Code: Select all

#library "My Library Name"
Hey it works!
Thx! :D
Locked

Return to “Editing (Archive)”