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 → why do this crash?
why do this crash?
2000-11-08, 5:47 AM #1
Ok this is as simple asit gets it should only work the kyle model right as it is but it don't work it crashes to windows when activated, at the buttom I included a debug that did't tell me much. I need to get the name of the model the player is and then use it as the name for the model I want to change to. anyway here is the cog if anyone can find the error or a work around.


# Jedi Knight Cog Script
#
# Bin 118
# Not endorsed by LucasArts Entertainment Co.

symbols

thing player

model cky=kyc.3do local #Katarn

message startup
message activated

end

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

code

startup:
player = GetLocalPlayerThing();
old = GetThingModel(player);
Return;

# ........................................................................................

activated:
player = GetSourceRef();

if(!(GetInv(player, 118))) Return;

you = c[old];
Print("model shift");
SetThingModel(player, c[you]);

# SetThingModel(player, c[GetThingModel(player)]);
# SetThingModel(player, [GetThingModel(player)]);
# I tried these three versions with luck

Return;
# ........................................................................................

end

#stdStrTable.c(177): The key 'GUI_JEDIONLY_HINT' is in the string table 'ui\jkstrings.uni' more than once.
# >>>"GUI_JEDIONLY_HINT" 0 "All players are Jedi; the maximum rank is determined by the server"
#
#Premature 'END' found after only 26 lines in 'misc\sithStrings.uni'. Check number in 'MSG xxx' header.
#Premature 'END' found after only 375 lines in 'ui\credits.uni'. Check number in 'MSG xxx' header.
#Premature 'END' found after only 37 lines in 'misc\cogStrings.uni'. Check number in 'MSG xxx' header.
#Premature 'END' found after only 37 lines in 'misc\cogStrings.uni'. Check number in 'MSG xxx' header.
#Premature 'END' found after only 37 lines in 'misc\cogStrings.uni'. Check number in 'MSG xxx' header.
#Premature 'END' found after only 37 lines in 'misc\cogStrings.uni'. Check number in 'MSG xxx' header.
#Premature 'END' found after only 37 lines in 'misc\cogStrings.uni'. Check number in 'MSG xxx' header.
#Premature 'END' found after only 37 lines in 'misc\cogStrings.uni'. Check number in 'MSG xxx' header.
2000-11-08, 1:55 PM #2
Because you have "c[aaa]", which is not even declared in the symbols.

What is "you" in that cog?
Just use "old" to change to that model.

------------------
http://millennium.massassi.net/ - Millennium

↑ Up to the top!