Massassi Forums Logo

This is the static archive of the Massassi Forums. The forums are closed indefinitely. Thanks for all the memories!

You can also download Super Old Archived Message Boards from when Massassi first started.

"View" counts are as of the day the forums were archived, and will no longer increase.

ForumsCog Forum → Need help: need to fix it in 2 days!!
Need help: need to fix it in 2 days!!
2002-03-25, 10:30 AM #1
i have a cog from here at massassi, and im using it in my MP level. the only problem is, is that the server side cant see half of the traps. (no, im not firing them all at once, so it cant be exceeding object amounts) The level is being made for the IJTC, so LordXT made some special MP templates for weapons. But the server STILL cant see the traps. I have tried editing the cog so it says "global" instead of "local" everywhere, but it still dosent work. I dont think its the cogs fault... becuase the server can still see some other traps. It can see ones of existing templates, and custom ones added to the level... can anybody help???

BTW< the cog that im using is:
Code:
# Jedi Knight Skinners Cog Script
#
# This script was made by Red (theensers@mindspring.com)
#
# Drop/Fire any templates (i.e. TDs, Mines, etc.) at the flick of a switch -up to 4 at a time.
# Cool Beans!
#
# ========================================================================================

symbols

surface	switch			desc=switch

template	proj_tpl=+seqchrg
thing		tdg1			nolink,desc=tdg1
thing		tdg2			nolink,desc=tdg2
thing		tdg3			nolink,desc=tdg3
thing		tdg4			nolink,desc=tdg4

int		rounds=2		desc=rounds

flex		rate=0.1		desc=rate
flex		delay=3.0	desc=delay

int		firing=0		global
int		cur_round=0	global
int		dummy			global

sound		on_snd=set_hi2.wav	global
sound		off_snd=lgclick1.wav	global

message		activated

end

# ========================================================================================

code

activated:
	if(firing == 1) Return;

	firing = 1;
	dummy = SetWallCel(switch, 1);
	dummy = PlaySoundPos(on_snd, SurfaceCenter(switch), 1.0, 5.0, 10.0, 0);
	

	cur_round = 0;
	while(cur_round < rounds)
	{
	 dummy = CreateThing(proj_tpl, tdg1);
	 Sleep(rate);
	 dummy = CreateThing(proj_tpl, tdg2);
	 Sleep(rate);
	 dummy = CreateThing(proj_tpl, tdg3);
	 Sleep(rate);
	 dummy = CreateThing(proj_tpl, tdg4);
	 Sleep(rate);

	 cur_round = cur_round + 1;
	}

	Sleep(delay);
	dummy = SetWallCel(switch, 0);
	dummy = PlaySoundPos(off_snd, SurfaceCenter(switch), 1.0, 5.0, 10.0, 0);
	firing = 0;
	Return;

end


Help! this IJTC level depends on it!!

------------------
Visit my site!
www.snerdcomic.homestead.com
I got kicked out of superfriends for painting Wonder Woman's jet red....
My levels never have bugs! The just develop random features...
-I am the Pencil Bandito!! Give me all of your Writing utensils!-
Fools!! I'll Destroy them all!!!!
The Situation:
The Sv_SetBrushModel: Null error has occurred in my map. This means that somewhere in my level, there is a paper-thin prush that needs to be deleted. There are 2888 brushes in my level. That's chances of 1/2888 of finding the correct brush. The statistics say I have a .035% chance of finding it.
Did I find it?
You bet I did.
2002-03-25, 10:51 AM #2
What he means is that only the host can see the projectile generated from the traps.
Ohh Crap! - Darien Fawkes (The Invisible Man)
2002-03-25, 12:10 PM #3
Your things are not being created because you have your proj_tpl in the static.jkl. To fix this, your things can be created seperately on each computer or you can put the template in the level's JKL.

To create the thing on each computer, send a trigger to the computers with SendTrigger() and create the thing in the trigger message. You might want to read through this tutorial by Hideki.

Several things:

1) There is no 'global' symbol extension.

2) SetWallCel() doesn't return anything.

3) There's no reason to have 'dummy' variables. LEC probably did this only to show that the verb returns a value, but it's not worth having them.

Good luck. [http://forums.massassi.net/html/wink.gif]
------------------
Author of the Jedi Knight DataMaster.
Visit Saber's Domain.

[This message has been edited by SaberMaster (edited March 25, 2002).]
Author of the JK DataMaster, Parsec, Scribe, and the EditPlus Cog Files.
2002-03-25, 2:26 PM #4
*smacks head* GEEZ! I should'a seen that one coming. I can try that but one of the traps fired concussion bolts which are standard templates in MotS and they never showed up. Ow well, thanks.
Ohh Crap! - Darien Fawkes (The Invisible Man)

↑ Up to the top!