Script problem - Unknown event


(stebbi67) #1

Hi all.

I’m working on a map which I call Al Kad. This is the old Ammo Bunker 2 map which I have altered in many ways. I’m about 95% done with brush work and I wanted to get it up and running to test out some things in it before I continue with the brush work. I have made a pk3 file but prompt with the exact error :


G_Script_ScriptParse(), Error (line 361) : unknown event: allied_compost_built.

This is the same script as I used in Ammo Bunker 2 for the command post and it works fine there.
I have compared the command post in Ammo Bunker 2 with the one in Al Kad to check if I accidentally deleted some thing but that is not the case.
I have jump the search wagon but did not get any wiser from what I found.

I do not believe that this is a error in the map but in the script :

You can see the script here : http://stebbi.homeip.net/temp/al_kad.script

I had to make a link to it since I could not posted here due to this error : “1. The text that you have entered is too long (13720 characters). Please shorten it to 10000 characters long.”

Can anyone point out to me what is wrong with the script?

Some premature screens and info of Al Kad if you like : http://stebbi.homeip.net/al_kad/alkad.html

Thanks,

Stebbi67


(th0rn3) #2

allied_compost_built should be

trigger allied_compost_built

(stebbi67) #3

Thanks, I think that solved the problem. I have not had much time to test though.


(DeatH) #4

Map looks really good, although it could do with a bit more lighting in certain indoor areas.

Good job so far.


(stebbi67) #5

Although I look for example in the TC base script the “allied_compost_built” is not a trigger.


(stebbi67) #6

[QUOTE=DeatH;175889]Map looks really good, although it could do with a bit more lighting in certain indoor areas.

Good job so far.[/QUOTE]

Thanks, more lights and sounds will be added in more final stage of the map. That is if I will ever get the deam script to work. Today I do not get any errors but I can not see anything working like it should be acording to the script.

The screens are from different stage of the map and many of them are basicaly out of date :wink:


(stebbi67) #7

I really hate to say this but I really need help with the script. It is just not working.

I can send the pk3 and the source if any one is willing to help me with it.

Thanks,

Stebbi67


(isbowhten) #8

i haven’T anything to do but i think i’m to stupid to find the mistake ^^ but i try it
send the source


(stebbi67) #9

[QUOTE=isbowhten;176084]i haven’T anything to do but i think i’m to stupid to find the mistake ^^ but i try it
send the source[/QUOTE]

I have just send you a pm.


(TNR360) #10

I’m having the same problem here, what was the solution?


(stebbi67) #11

[QUOTE=th0rn3;175819]allied_compost_built should be

trigger allied_compost_built

[/QUOTE]

This, above, was the solution to my problem.

If you get the exact same error then you should try to add “trigger” in front of allied_compost_built.


(TNR360) #12

same problem but it says unknown action- spawn


(TomTom7777) #13

TNR360: In most maps scripts I have seen allied_compost_built is used as the scriptname of the allies’ func_constructable for a neutral command post. Now if you put trigger in front of the scriptname block it will try to parse the word after the opening brace as an action rather than the spawn event !

allied_compost_built
{
	spawn
	{
		wait 400
		[B]trigger [/B]allied_compost_built setup

is OK (might be able to do trigger self setup instead)
but

trigger  allied_compost_built
{
	spawn
	{
		wait 400
		...

will result in your error if the previous script block was not closed (eg. a displaced closing brace)

Take out the trigger if that is the case and check for any common typos ( no closing brace or mismatched braces, bad comment syntax, bad string quotes etc.)


(TNR360) #14

turns out it was a mess with opening and closing brackets { } but once I found and marked with a comment where the closing one should be everything was fine