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 → This causes my level to crash -- why?
This causes my level to crash -- why?
2004-06-27, 6:08 AM #1
I put this little dandy together because I suspected I had too many COGs loaded for JK to handle, and so I decided to compile a bunch of my ai_sleep.cog files into one file.

However, upon start-up, this COG, and one similar to it (less four "thugs"), causes the level to crash on start-up. Any help would be appreciated. Yes, all thing slots and sector slots are filled.

Code:
# Jedi Knight Cog Script
#
# filename.cog
#
# Combines ai_sleep.cog into one nice file.
# I...hate...COG.  God damn you, Justin Chin, and your long-gone development team!
# 
#
# This Cog is Not supported by LucasArts Entertainment Co

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

symbols

message	startup
message	entered
message	user0

sector	trigger

thing		thug0
thing		thug1
thing		thug2
thing		thug3
thing		thug4
thing		thug5
thing		thug6
thing		thug7
thing		thug8
thing		thug9
thing		thug10
thing		thug11
thing		thug12
thing		thug13
thing		thug14
thing		thug15
thing		thug16
thing		thug17
thing		thug18

int		awake=0			local
int		i=0				local

end

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

code

startup:
	Sleep(1.0);
	for(i=0; i < 19; i=i+1)
	  {
		AiSetMode(thug, 0x2000);
	  }
	return;

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

entered:
	for(i=0; i < 19; i=i+1)
	  {
		AIClearMode(thug, 0x2000);
		AISetMode(thug, 0x200);
	  }
	return;
	
# ========================================================================================

user0:
	call entered;
	return;

end


------------------
<ubuu> does hitler have a last name?
<jipe> .. yes, Ubuu, we're racist commy nazi jews, and we hate male pattern baldness
<Professor`K> Sorry, but half-way through your logic, my head exploded

[This message has been edited by Wolfy (edited June 27, 2004).]
the idiot is the person who follows the idiot and your not following me your insulting me your following the path of a idiot so that makes you the idiot - LC Tusken
2004-06-27, 6:16 AM #2
Upon further inspection, I believe the for/next stuff is crashing the level.

------------------
<ubuu> does hitler have a last name?
<jipe> .. yes, Ubuu, we're racist commy nazi jews, and we hate male pattern baldness
<Professor`K> Sorry, but half-way through your logic, my head exploded
the idiot is the person who follows the idiot and your not following me your insulting me your following the path of a idiot so that makes you the idiot - LC Tusken
2004-06-27, 7:50 AM #3
Nevermind, I fixed it. Instead, go here.

------------------
<ubuu> does hitler have a last name?
<jipe> .. yes, Ubuu, we're racist commy nazi jews, and we hate male pattern baldness
<Professor`K> Sorry, but half-way through your logic, my head exploded
the idiot is the person who follows the idiot and your not following me your insulting me your following the path of a idiot so that makes you the idiot - LC Tusken

↑ Up to the top!