Note: LucasForums Archive Project
The content here was reconstructed by scraping the Wayback Machine in an effort to restore some of what was lost when LF went down. The LucasForums Archive Project claims no ownership over the content or assets that were archived on archive.org.

This project is meant for research purposes only.

A Script Question

Page: 1 of 1
 Darth Rhaith
12-15-2005, 5:53 AM
#1
Hello to everyone at Holowan.
I have a question about scripts. I am working on a megamod of my favorite mods for KOTOR and ran into two scripts with the same name "k_punk_fincs_en.ncs" belonging to the Carth Romance and Mekel Recruit, is there a way of combining the two scripts into one. One has a source script included and the other does not. The closest thing I had found was the tutorial on injecting a script. is this how I would do it or can I combine the two?
 stoffe
12-15-2005, 6:32 AM
#2
Hello to everyone at Holowan.
I have a question about scripts. I am working on a megamod of my favorite mods for KOTOR and ran into two scripts with the same name "k_punk_fincs_en.ncs" belonging to the Carth Romance and Mekel Recruit, is there a way of combining the two scripts into one. One has a source script included and the other does not. The closest thing I had found was the tutorial on injecting a script. is this how I would do it or can I combine the two?

At a quick glance I believe this is the script for the cutscene on the beach of the Rakatan homeworld before departing for the Star Forge. If the modded scripts don't already use ExecuteScript() to run the original, unaltered script, using it to run one of the modded scripts from the other would probably produce undesirable results. This is since both scripts likely contains the same standard code from the game in addition to their modifications.

If the code in the modded script you have the source for doesn't rely on any of the standard code in any way for the sequence in which things are done, you could remove the standard code from that script and run the other modded script with ExecuteScript() before running the new statements added by that mod. You'd have to know what you are doing though or you'll likely break the scene.

If it was me I'd decompile the other mod's version of the script and then combine the two scripts into one, since it lessens the risk of things going wrong. But then I do have a tendency to do things the hard way. :)
 cjt0202
12-15-2005, 9:50 AM
#3
It looks like Tanesh and I think alike :) There are 2 dialogs in the game named unk41_carth.dlg -- one in an Ebon Hawk module for when you first crash on the Unknown World, and one in the Central Beach module for when you return from the temple. We both renamed the Central Beach dialogue, and editted that particular script to call our renamed file. What you really need to do is merge my unk41_carth2.dlg with Tanesh's unk42_carth.dlg, and have the script launch whatever you call your final version.
 Darth Rhaith
12-15-2005, 10:26 PM
#4
At a quick glance I believe this is the script for the cutscene on the beach of the Rakatan homeworld before departing for the Star Forge. If the modded scripts don't already use ExecuteScript() to run the original, unaltered script, using it to run one of the modded scripts from the other would probably produce undesirable results. This is since both scripts likely contains the same standard code from the game in addition to their modifications.

If the code in the modded script you have the source for doesn't rely on any of the standard code in any way for the sequence in which things are done, you could remove the standard code from that script and run the other modded script with ExecuteScript() before running the new statements added by that mod. You'd have to know what you are doing though or you'll likely break the scene.

If it was me I'd decompile the other mod's version of the script and then combine the two scripts into one, since it lessens the risk of things going wrong. But then I do have a tendency to do things the hard way. :)


I merged the 2 scripts (k_punk_fincs_en) and when I compile them I get an error. here is the output of the error

k_punk_fincs_en.nss(212): error: syntax error at "interger constant"

I tried to compile it with this line:

nwnnsscomp -c --outputdir c:\kotorscripts\ k_punk_fincs_en.nss

This was a format I had seen used in the readme file. Is my syntax of the command wrong?
 Darth333
12-15-2005, 10:29 PM
#5
Can you post the script here? The ouput indicates an error at line 212.


Note that you need the authors permission befere publicly releasing a mod that intergrates other people's work. However, there's no problem in doing it for your personal needs ;)
 Darth Rhaith
12-16-2005, 5:29 AM
#6
Can you post the script here? The ouput indicates an error at line 212.


Note that you need the authors permission befere publicly releasing a mod that intergrates other people's work. However, there's no problem in doing it for your personal needs ;)

Right now this is for personal use but once I get it all working I intend on contacting all authors before a public release.

I'll post it in two since it is long:

/* This is the decompiled version of the script that fires the dialogue. The only change I made was to rename
the dialog file since both the conversation on the the Ebon Hawk after crashing on the Unknown World and the
conversation on the beach after the temple were both named "unk41_carth". Otherwise dropping the modified Central
Beach "unk41_carth.dlg" in the override folder would cause everyone to just stand around and look at each other after
landing
*/



// Globals
int intGLOB_1 = 0;
int intGLOB_2 = 1;
int intGLOB_3 = 2;
int intGLOB_4 = 3;
int intGLOB_5 = 4;
int intGLOB_6 = 5;
int intGLOB_7 = 6;
int intGLOB_8 = 7;
int intGLOB_9 = 8;
int intGLOB_10 = 9;
int intGLOB_11 = 10;
int intGLOB_12 = 11;
int intGLOB_13 = 12;
int intGLOB_14 = 13;
int intGLOB_15 = 14;
int intGLOB_16 = 15;
int intGLOB_17 = 16;
int intGLOB_18 = 17;
int intGLOB_19 = 18;
int intGLOB_20 = 19;
int intGLOB_21 = 1100;
int intGLOB_22 = (-6);
int intGLOB_23 = (-5);
int intGLOB_24 = (-4);
int intGLOB_25 = (-2);
int intGLOB_26 = (-1);
int intGLOB_27 = 0;
int intGLOB_28 = 1;
int intGLOB_29 = 2;
int intGLOB_30 = 3;
int intGLOB_31 = 4;
int intGLOB_32 = 5;
int intGLOB_33 = 6;
int intGLOB_34 = 3;
int intGLOB_35 = 4;
int intGLOB_36 = 5;
int intGLOB_37 = 6;
int intGLOB_38 = 7;
int intGLOB_39 = 1;
int intGLOB_40 = 2;
int intGLOB_41 = 3;
int intGLOB_42 = 4;
int intGLOB_43 = 5;
int intGLOB_44 = 6;
int intGLOB_45 = 7;
int intGLOB_46 = 8;
int intGLOB_47 = 9;
int intGLOB_48 = 10;
int intGLOB_49 = 11;
int intGLOB_50 = 12;
int intGLOB_51 = 13;
int intGLOB_52 = 14;
int intGLOB_53 = 15;
int intGLOB_54 = 16;
int intGLOB_55 = 17;
int intGLOB_56 = 18;
int intGLOB_57 = 19;
int intGLOB_58 = 20;
int intGLOB_59 = 21;
int intGLOB_60 = 22;
int intGLOB_61 = 23;
int intGLOB_62 = 24;
int intGLOB_63 = 25;
int intGLOB_64 = 26;
int intGLOB_65 = 27;
int intGLOB_66 = 28;
int intGLOB_67 = 29;
int intGLOB_68 = 30;
int intGLOB_69 = 59;
int intGLOB_70 = 0;
int intGLOB_71 = 1;
int intGLOB_72 = 2;
int intGLOB_73 = 29;
int intGLOB_74 = 30;
int intGLOB_75 = 34;
int intGLOB_76 = 35;
int intGLOB_77 = 36;
int intGLOB_78 = 37;
int intGLOB_79 = 38;
int intGLOB_80 = 39;
int intGLOB_81 = 41;
int intGLOB_82 = 42;
int intGLOB_83 = 46;
int intGLOB_84 = 47;
int intGLOB_85 = 15;
int intGLOB_86 = 10;
int intGLOB_87 = 5;
int intGLOB_88 = 2;
int intGLOB_89;
int intGLOB_90;
int intGLOB_91;
object objectGLOB_1;
int intGLOB_92;
int intGLOB_93;
int intGLOB_94;
int intGLOB_95;
int intGLOB_96;
int intGLOB_97;
int intGLOB_98 = 1;
int intGLOB_99 = 2;
int intGLOB_100 = 3;
int intGLOB_101 = 20;
int intGLOB_102 = 21;
int intGLOB_103 = 22;
int intGLOB_104 = 23;
int intGLOB_105 = 24;
int intGLOB_106 = 25;
int intGLOB_107 = 26;
int intGLOB_108 = 27;
int intGLOB_109 = 28;
int intGLOB_110 = 31;
int intGLOB_111 = 32;
int intGLOB_112 = 33;
int intGLOB_113 = 40;
int intGLOB_114 = 43;
int intGLOB_115 = 44;
int intGLOB_116 = 45;
int intGLOB_117 = 48;
int intGLOB_118 = 49;
int intGLOB_119 = 50;
int intGLOB_120 = 51;
int intGLOB_121 = 52;
int intGLOB_122 = 53;
int intGLOB_123 = 54;
int intGLOB_124 = 55;
int intGLOB_125 = 56;
int intGLOB_126 = 57;
int intGLOB_127 = 58;
int intGLOB_128 = 60;
int intGLOB_129 = 61;
int intGLOB_130 = 62;
int intGLOB_131 = 63;
int intGLOB_132 = 64;
int intGLOB_133 = 65;
int intGLOB_134 = 66;
int intGLOB_135 = 67;
int intGLOB_136 = 68;
int intGLOB_137 = 69;
int intGLOB_138 = 70;
int intGLOB_139 = 71;
int intGLOB_140 = 72;
int intGLOB_141 = 1;
int intGLOB_142 = 2;
int intGLOB_143 = 3;
int intGLOB_144 = 4;

// Prototypes
void sub3(object objectParam1, int intParam2);
void sub2(object objectParam1, location locationParam2);
int sub1(object objectParam1);

void sub3(object objectParam1, int intParam2) {
if (GetIsObjectValid(objectParam1)) {
if (((intParam2 == 1) || (intParam2 == 0))) {
SetLocalBoolean(objectParam1, intGLOB_11, intParam2);
}
}
}

void sub2(object objectParam1, location locationParam2) {
if ((!GetIsObjectValid(objectParam1))) {
return;
}
if ((GetCurrentHitPoints(objectParam1) < 1)) {
ApplyEffectToObject(0, EffectResurrection(), objectParam1, 0.0);
ApplyEffectToObject(0, EffectHeal(1), objectParam1, 0.0);
}
SetCommandable(1, objectParam1);
AssignCommand(objectParam1, ClearAllActions());
AssignCommand(objectParam1, ActionJumpToLocation(locationParam2));
}

int sub1(object objectParam1) {
int nLocalBool;
if (GetIsObjectValid(objectParam1)) {
nLocalBool = GetLocalBoolean(objectParam1, intGLOB_11);
if ((nLocalBool > 0)) {
return 1;
}
}
return 0;
}

void main() {
object oNPC;
object object2;
if (((sub1(OBJECT_SELF) == 0) && (GetGlobalNumber("G_FinalChoice") > 0))) {
SetGlobalFadeOut(0.0, 0.0, 0.0, 0.0, 0.0);
SetPartyLeader((-1));
oNPC = GetPartyMemberByIndex(1);
object2 = GetPartyMemberByIndex(2);
sub2(GetPartyMemberByIndex(0), GetLocation(GetObjectByTag("pcstart", 0)));
sub2(GetPartyMemberByIndex(1), GetLocation(GetObjectByTag("n2start", 0)));
sub2(GetPartyMemberByIndex(2), GetLocation(GetObjectByTag("n1start", 0)));
sub3(OBJECT_SELF, 1);
SetGlobalNumber("K_KOTOR_MASTER", 50);
NoClicksFor(0.4);
DelayCommand(0.15, AssignCommand(GetObjectByTag("carth", 0), ActionStartConversation(GetPartyMemberByIndex(0), "unk41_carth2", 0, 0, 1, "", "", "", "", "", "")));
}
}

00000008 42 00001011 T 00001011
0000000D 1E 00 00000008 JSR fn_00000015
00000013 20 00 RETN
00000015 02 03 RSADDI
00000017 04 03 00000000 CONSTI 00000000
0000001D 01 01 FFFFFFF8 0004 CPDOWNSP FFFFFFF8, 0004
00000025 1B 00 FFFFFFFC MOVSP FFFFFFFC
0000002B 02 03 RSADDI
0000002D 04 03 00000001 CONSTI 00000001
00000033 01 01 FFFFFFF8 0004 CPDOWNSP FFFFFFF8, 0004
0000003B 1B 00 FFFFFFFC MOVSP FFFFFFFC
00000041 02 03 RSADDI
00000043 04 03 00000002 CONSTI 00000002
00000049 01 01 FFFFFFF8 0004 CPDOWNSP FFFFFFF8, 0004
00000051 1B 00 FFFFFFFC MOVSP FFFFFFFC
00000057 02 03 RSADDI
00000059 04 03 00000003 CONSTI 00000003
0000005F 01 01 FFFFFFF8 0004 CPDOWNSP FFFFFFF8, 0004
00000067 1B 00 FFFFFFFC MOVSP FFFFFFFC
0000006D 02 03 RSADDI
0000006F 04 03 00000004 CONSTI 00000004
00000075 01 01 FFFFFFF8 0004 CPDOWNSP FFFFFFF8, 0004
0000007D 1B 00 FFFFFFFC MOVSP FFFFFFFC
00000083 02 03 RSADDI
00000085 04 03 00000005 CONSTI 00000005
0000008B 01 01 FFFFFFF8 0004 CPDOWNSP FFFFFFF8, 0004
00000093 1B 00 FFFFFFFC MOVSP FFFFFFFC
00000099 02 03 RSADDI
0000009B 04 03 00000006 CONSTI 00000006
000000A1 01 01 FFFFFFF8 0004 CPDOWNSP FFFFFFF8, 0004
000000A9 1B 00 FFFFFFFC MOVSP FFFFFFFC
000000AF 02 03 RSADDI
000000B1 04 03 00000007 CONSTI 00000007
000000B7 01 01 FFFFFFF8 0004 CPDOWNSP FFFFFFF8, 0004
000000BF 1B 00 FFFFFFFC MOVSP FFFFFFFC
000000C5 02 03 RSADDI
000000C7 04 03 00000008 CONSTI 00000008
000000CD 01 01 FFFFFFF8 0004 CPDOWNSP FFFFFFF8, 0004
000000D5 1B 00 FFFFFFFC MOVSP FFFFFFFC
000000DB 02 03 RSADDI
000000DD 04 03 00000009 CONSTI 00000009
000000E3 01 01 FFFFFFF8 0004 CPDOWNSP FFFFFFF8, 0004
000000EB 1B 00 FFFFFFFC MOVSP FFFFFFFC
000000F1 02 03 RSADDI
000000F3 04 03 0000000A CONSTI 0000000A
000000F9 01 01 FFFFFFF8 0004 CPDOWNSP FFFFFFF8, 0004
00000101 1B 00 FFFFFFFC MOVSP FFFFFFFC
00000107 02 03 RSADDI
00000109 04 03 0000000B CONSTI 0000000B
0000010F 01 01 FFFFFFF8 0004 CPDOWNSP FFFFFFF8, 0004
00000117 1B 00 FFFFFFFC MOVSP FFFFFFFC
0000011D 02 03 RSADDI
0000011F 04 03 0000000C CONSTI 0000000C
00000125 01 01 FFFFFFF8 0004 CPDOWNSP FFFFFFF8, 0004
0000012D 1B 00 FFFFFFFC MOVSP FFFFFFFC
00000133 02 03 RSADDI
00000135 04 03 0000000D CONSTI 0000000D
0000013B 01 01 FFFFFFF8 0004 CPDOWNSP FFFFFFF8, 0004
00000143 1B 00 FFFFFFFC MOVSP FFFFFFFC
00000149 02 03 RSADDI
0000014B 04 03 0000000E CONSTI 0000000E
00000151 01 01 FFFFFFF8 0004 CPDOWNSP FFFFFFF8, 0004
00000159 1B 00 FFFFFFFC MOVSP FFFFFFFC
0000015F 02 03 RSADDI
00000161 04 03 0000000F CONSTI 0000000F
00000167 01 01 FFFFFFF8 0004 CPDOWNSP FFFFFFF8, 0004
0000016F 1B 00 FFFFFFFC MOVSP FFFFFFFC
00000175 02 03 RSADDI
00000177 04 03 00000010 CONSTI 00000010
0000017D 01 01 FFFFFFF8 0004 CPDOWNSP FFFFFFF8, 0004
00000185 1B 00 FFFFFFFC MOVSP FFFFFFFC
0000018B 02 03 RSADDI
0000018D 04 03 00000011 CONSTI 00000011
00000193 01 01 FFFFFFF8 0004 CPDOWNSP FFFFFFF8, 0004
0000019B 1B 00 FFFFFFFC MOVSP FFFFFFFC
000001A1 02 03 RSADDI
000001A3 04 03 00000012 CONSTI 00000012
000001A9 01 01 FFFFFFF8 0004 CPDOWNSP FFFFFFF8, 0004
000001B1 1B 00 FFFFFFFC MOVSP FFFFFFFC
000001B7 02 03 RSADDI
000001B9 04 03 00000013 CONSTI 00000013
000001BF 01 01 FFFFFFF8 0004 CPDOWNSP FFFFFFF8, 0004
000001C7 1B 00 FFFFFFFC MOVSP FFFFFFFC
000001CD 02 03 RSADDI
000001CF 04 03 0000044C CONSTI 0000044C
000001D5 01 01 FFFFFFF8 0004 CPDOWNSP FFFFFFF8, 0004
000001DD 1B 00 FFFFFFFC MOVSP FFFFFFFC
000001E3 02 03 RSADDI
000001E5 04 03 00000006 CONSTI 00000006
000001EB 19 03 NEGI
000001ED 01 01 FFFFFFF8 0004 CPDOWNSP FFFFFFF8, 0004
000001F5 1B 00 FFFFFFFC MOVSP FFFFFFFC
000001FB 02 03 RSADDI
000001FD 04 03 00000005 CONSTI 00000005
00000203 19 03 NEGI
00000205 01 01 FFFFFFF8 0004 CPDOWNSP FFFFFFF8, 0004
0000020D 1B 00 FFFFFFFC MOVSP FFFFFFFC
00000213 02 03 RSADDI
00000215 04 03 00000004 CONSTI 00000004
0000021B 19 03 NEGI
0000021D 01 01 FFFFFFF8 0004 CPDOWNSP FFFFFFF8, 0004
00000225 1B 00 FFFFFFFC MOVSP FFFFFFFC
0000022B 02 03 RSADDI
0000022D 04 03 00000002 CONSTI 00000002
00000233 19 03 NEGI
00000235 01 01 FFFFFFF8 0004 CPDOWNSP FFFFFFF8, 0004
0000023D 1B 00 FFFFFFFC MOVSP FFFFFFFC
00000243 02 03 RSADDI
00000245 04 03 00000001 CONSTI 00000001
0000024B 19 03 NEGI
0000024D 01 01 FFFFFFF8 0004 CPDOWNSP FFFFFFF8, 0004
00000255 1B 00 FFFFFFFC MOVSP FFFFFFFC
0000025B 02 03 RSADDI
0000025D 04 03 00000000 CONSTI 00000000
00000263 01 01 FFFFFFF8 0004 CPDOWNSP FFFFFFF8, 0004
0000026B 1B 00 FFFFFFFC MOVSP FFFFFFFC
00000271 02 03 RSADDI
00000273 04 03 00000001 CONSTI 00000001
00000279 01 01 FFFFFFF8 0004 CPDOWNSP FFFFFFF8, 0004
00000281 1B 00 FFFFFFFC MOVSP FFFFFFFC
00000287 02 03 RSADDI
00000289 04 03 00000002 CONSTI 00000002
0000028F 01 01 FFFFFFF8 0004 CPDOWNSP FFFFFFF8, 0004
00000297 1B 00 FFFFFFFC MOVSP FFFFFFFC
0000029D 02 03 RSADDI
0000029F 04 03 00000003 CONSTI 00000003
000002A5 01 01 FFFFFFF8 0004 CPDOWNSP FFFFFFF8, 0004
000002AD 1B 00 FFFFFFFC MOVSP FFFFFFFC
000002B3 02 03 RSADDI
000002B5 04 03 00000004 CONSTI 00000004
000002BB 01 01 FFFFFFF8 0004 CPDOWNSP FFFFFFF8, 0004
000002C3 1B 00 FFFFFFFC MOVSP FFFFFFFC
000002C9 02 03 RSADDI
000002CB 04 03 00000005 CONSTI 00000005
000002D1 01 01 FFFFFFF8 0004 CPDOWNSP FFFFFFF8, 0004
000002D9 1B 00 FFFFFFFC MOVSP FFFFFFFC
000002DF 02 03 RSADDI
000002E1 04 03 00000006 CONSTI 00000006
000002E7 01 01 FFFFFFF8 0004 CPDOWNSP FFFFFFF8, 0004
000002EF 1B 00 FFFFFFFC MOVSP FFFFFFFC
000002F5 02 03 RSADDI
000002F7 04 03 00000003 CONSTI 00000003
000002FD 01 01 FFFFFFF8 0004 CPDOWNSP FFFFFFF8, 0004
00000305 1B 00 FFFFFFFC MOVSP FFFFFFFC
0000030B 02 03 RSADDI
0000030D 04 03 00000004 CONSTI 00000004
00000313 01 01 FFFFFFF8 0004 CPDOWNSP FFFFFFF8, 0004
0000031B 1B 00 FFFFFFFC MOVSP FFFFFFFC
00000321 02 03 RSADDI
00000323 04 03 00000005 CONSTI 00000005
00000329 01 01 FFFFFFF8 0004 CPDOWNSP FFFFFFF8, 0004
00000331 1B 00 FFFFFFFC MOVSP FFFFFFFC
00000337 02 03 RSADDI
00000339 04 03 00000006 CONSTI 00000006
0000033F 01 01 FFFFFFF8 0004 CPDOWNSP FFFFFFF8, 0004
00000347 1B 00 FFFFFFFC MOVSP FFFFFFFC
0000034D 02 03 RSADDI
0000034F 04 03 00000007 CONSTI 00000007
00000355 01 01 FFFFFFF8 0004 CPDOWNSP FFFFFFF8, 0004
0000035D 1B 00 FFFFFFFC MOVSP FFFFFFFC
00000363 02 03 RSADDI
00000365 04 03 00000001 CONSTI 00000001
0000036B 01 01 FFFFFFF8 0004 CPDOWNSP FFFFFFF8, 0004
00000373 1B 00 FFFFFFFC MOVSP FFFFFFFC
00000379 02 03 RSADDI
0000037B 04 03 00000002 CONSTI 00000002
00000381 01 01 FFFFFFF8 0004 CPDOWNSP FFFFFFF8, 0004
00000389 1B 00 FFFFFFFC MOVSP FFFFFFFC
0000038F 02 03 RSADDI
00000391 04 03 00000003 CONSTI 00000003
00000397 01 01 FFFFFFF8 0004 CPDOWNSP FFFFFFF8, 0004
0000039F 1B 00 FFFFFFFC MOVSP FFFFFFFC
000003A5 02 03 RSADDI
000003A7 04 03 00000004 CONSTI 00000004
000003AD 01 01 FFFFFFF8 0004 CPDOWNSP FFFFFFF8, 0004
000003B5 1B 00 FFFFFFFC MOVSP FFFFFFFC
000003BB 02 03 RSADDI
000003BD 04 03 00000005 CONSTI 00000005
000003C3 01 01 FFFFFFF8 0004 CPDOWNSP FFFFFFF8, 0004
000003CB 1B 00 FFFFFFFC MOVSP FFFFFFFC
000003D1 02 03 RSADDI
000003D3 04 03 00000006 CONSTI 00000006
000003D9 01 01 FFFFFFF8 0004 CPDOWNSP FFFFFFF8, 0004
000003E1 1B 00 FFFFFFFC MOVSP FFFFFFFC
000003E7 02 03 RSADDI
000003E9 04 03 00000007 CONSTI 00000007
000003EF 01 01 FFFFFFF8 0004 CPDOWNSP FFFFFFF8, 0004
000003F7 1B 00 FFFFFFFC MOVSP FFFFFFFC
000003FD 02 03 RSADDI
000003FF 04 03 00000008 CONSTI 00000008
00000405 01 01 FFFFFFF8 0004 CPDOWNSP FFFFFFF8, 0004
0000040D 1B 00 FFFFFFFC MOVSP FFFFFFFC
00000413 02 03 RSADDI
00000415 04 03 00000009 CONSTI 00000009
0000041B 01 01 FFFFFFF8 0004 CPDOWNSP FFFFFFF8, 0004
00000423 1B 00 FFFFFFFC MOVSP FFFFFFFC
00000429 02 03 RSADDI
0000042B 04 03 0000000A CONSTI 0000000A
00000431 01 01 FFFFFFF8 0004 CPDOWNSP FFFFFFF8, 0004
00000439 1B 00 FFFFFFFC MOVSP FFFFFFFC
0000043F 02 03 RSADDI
00000441 04 03 0000000B CONSTI 0000000B
00000447 01 01 FFFFFFF8 0004 CPDOWNSP FFFFFFF8, 0004
0000044F 1B 00 FFFFFFFC MOVSP FFFFFFFC
00000455 02 03 RSADDI
00000457 04 03 0000000C CONSTI 0000000C
0000045D 01 01 FFFFFFF8 0004 CPDOWNSP FFFFFFF8, 0004
00000465 1B 00 FFFFFFFC MOVSP FFFFFFFC
0000046B 02 03 RSADDI
0000046D 04 03 0000000D CONSTI 0000000D
00000473 01 01 FFFFFFF8 0004 CPDOWNSP FFFFFFF8, 0004
0000047B 1B 00 FFFFFFFC MOVSP FFFFFFFC
00000481 02 03 RSADDI
00000483 04 03 0000000E CONSTI 0000000E
00000489 01 01 FFFFFFF8 0004 CPDOWNSP FFFFFFF8, 0004
00000491 1B 00 FFFFFFFC MOVSP FFFFFFFC
00000497 02 03 RSADDI
00000499 04 03 0000000F CONSTI 0000000F
0000049F 01 01 FFFFFFF8 0004 CPDOWNSP FFFFFFF8, 0004
000004A7 1B 00 FFFFFFFC MOVSP FFFFFFFC
000004AD 02 03 RSADDI
000004AF 04 03 00000010 CONSTI 00000010
000004B5 01 01 FFFFFFF8 0004 CPDOWNSP FFFFFFF8, 0004
000004BD 1B 00 FFFFFFFC MOVSP FFFFFFFC
000004C3 02 03 RSADDI
000004C5 04 03 00000011 CONSTI 00000011
000004CB 01 01 FFFFFFF8 0004 CPDOWNSP FFFFFFF8, 0004
000004D3 1B 00 FFFFFFFC MOVSP FFFFFFFC
000004D9 02 03 RSADDI
000004DB 04 03 00000012 CONSTI 00000012
000004E1 01 01 FFFFFFF8 0004 CPDOWNSP FFFFFFF8, 0004
000004E9 1B 00 FFFFFFFC MOVSP FFFFFFFC
000004EF 02 03 RSADDI
000004F1 04 03 00000013 CONSTI 00000013
000004F7 01 01 FFFFFFF8 0004 CPDOWNSP FFFFFFF8, 0004
000004FF 1B 00 FFFFFFFC MOVSP FFFFFFFC
00000505 02 03 RSADDI
00000507 04 03 00000014 CONSTI 00000014
0000050D 01 01 FFFFFFF8 0004 CPDOWNSP FFFFFFF8, 0004
00000515 1B 00 FFFFFFFC MOVSP FFFFFFFC
0000051B 02 03 RSADDI
0000051D 04 03 00000015 CONSTI 00000015
00000523 01 01 FFFFFFF8 0004 CPDOWNSP FFFFFFF8, 0004
0000052B 1B 00 FFFFFFFC MOVSP FFFFFFFC
00000531 02 03 RSADDI
00000533 04 03 00000016 CONSTI 00000016
00000539 01 01 FFFFFFF8 0004 CPDOWNSP FFFFFFF8, 0004
00000541 1B 00 FFFFFFFC MOVSP FFFFFFFC
00000547 02 03 RSADDI
00000549 04 03 00000017 CONSTI 00000017
0000054F 01 01 FFFFFFF8 0004 CPDOWNSP FFFFFFF8, 0004
00000557 1B 00 FFFFFFFC MOVSP FFFFFFFC
0000055D 02 03 RSADDI
0000055F 04 03 00000018 CONSTI 00000018
00000565 01 01 FFFFFFF8 0004 CPDOWNSP FFFFFFF8, 0004
0000056D 1B 00 FFFFFFFC MOVSP FFFFFFFC
00000573 02 03 RSADDI
00000575 04 03 00000019 CONSTI 00000019
0000057B 01 01 FFFFFFF8 0004 CPDOWNSP FFFFFFF8, 0004
00000583 1B 00 FFFFFFFC MOVSP FFFFFFFC
00000589 02 03 RSADDI
0000058B 04 03 0000001A CONSTI 0000001A
00000591 01 01 FFFFFFF8 0004 CPDOWNSP FFFFFFF8, 0004
00000599 1B 00 FFFFFFFC MOVSP FFFFFFFC
0000059F 02 03 RSADDI
000005A1 04 03 0000001B CONSTI 0000001B
000005A7 01 01 FFFFFFF8 0004 CPDOWNSP FFFFFFF8, 0004
000005AF 1B 00 FFFFFFFC MOVSP FFFFFFFC
000005B5 02 03 RSADDI
000005B7 04 03 0000001C CONSTI 0000001C
000005BD 01 01 FFFFFFF8 0004 CPDOWNSP FFFFFFF8, 0004
000005C5 1B 00 FFFFFFFC MOVSP FFFFFFFC
000005CB 02 03 RSADDI
000005CD 04 03 0000001D CONSTI 0000001D
000005D3 01 01 FFFFFFF8 0004 CPDOWNSP FFFFFFF8, 0004
000005DB 1B 00 FFFFFFFC MOVSP FFFFFFFC
000005E1 02 03 RSADDI
000005E3 04 03 0000001E CONSTI 0000001E
000005E9 01 01 FFFFFFF8 0004 CPDOWNSP FFFFFFF8, 0004
000005F1 1B 00 FFFFFFFC MOVSP FFFFFFFC
000005F7 02 03 RSADDI
000005F9 04 03 0000003B CONSTI 0000003B
000005FF 01 01 FFFFFFF8 0004 CPDOWNSP FFFFFFF8, 0004
00000607 1B 00 FFFFFFFC MOVSP FFFFFFFC
0000060D 02 03 RSADDI
0000060F 04 03 00000000 CONSTI 00000000
00000615 01 01 FFFFFFF8 0004 CPDOWNSP FFFFFFF8, 0004
0000061D 1B 00 FFFFFFFC MOVSP FFFFFFFC
00000623 02 03 RSADDI
00000625 04 03 00000001 CONSTI 00000001
0000062B 01 01 FFFFFFF8 0004 CPDOWNSP FFFFFFF8, 0004
00000633 1B 00 FFFFFFFC MOVSP FFFFFFFC
00000639 02 03 RSADDI
0000063B 04 03 00000002 CONSTI 00000002
00000641 01 01 FFFFFFF8 0004 CPDOWNSP FFFFFFF8, 0004
00000649 1B 00 FFFFFFFC MOVSP FFFFFFFC
0000064F 02 03 RSADDI
00000651 04 03 0000001D CONSTI 0000001D
00000657 01 01 FFFFFFF8 0004 CPDOWNSP FFFFFFF8, 0004
0000065F 1B 00 FFFFFFFC MOVSP FFFFFFFC
00000665 02 03 RSADDI
00000667 04 03 0000001E CONSTI 0000001E
0000066D 01 01 FFFFFFF8 0004 CPDOWNSP FFFFFFF8, 0004
00000675 1B 00 FFFFFFFC MOVSP FFFFFFFC
0000067B 02 03 RSADDI
0000067D 04 03 00000022 CONSTI 00000022
00000683 01 01 FFFFFFF8 0004 CPDOWNSP FFFFFFF8, 0004
0000068B 1B 00 FFFFFFFC MOVSP FFFFFFFC
00000691 02 03 RSADDI
00000693 04 03 00000023 CONSTI 00000023
00000699 01 01 FFFFFFF8 0004 CPDOWNSP FFFFFFF8, 0004
000006A1 1B 00 FFFFFFFC MOVSP FFFFFFFC
000006A7 02 03 RSADDI
000006A9 04 03 00000024 CONSTI 00000024
000006AF 01 01 FFFFFFF8 0004 CPDOWNSP FFFFFFF8, 0004
000006B7 1B 00 FFFFFFFC MOVSP FFFFFFFC
000006BD 02 03 RSADDI
000006BF 04 03 00000025 CONSTI 00000025
000006C5 01 01 FFFFFFF8 0004 CPDOWNSP FFFFFFF8, 0004
000006CD 1B 00 FFFFFFFC MOVSP FFFFFFFC
000006D3 02 03 RSADDI
000006D5 04 03 00000026 CONSTI 00000026
000006DB 01 01 FFFFFFF8 0004 CPDOWNSP FFFFFFF8, 0004
000006E3 1B 00 FFFFFFFC MOVSP FFFFFFFC
000006E9 02 03 RSADDI
000006EB 04 03 00000027 CONSTI 00000027
000006F1 01 01 FFFFFFF8 0004 CPDOWNSP FFFFFFF8, 0004
000006F9 1B 00 FFFFFFFC MOVSP FFFFFFFC
000006FF 02 03 RSADDI
00000701 04 03 00000029 CONSTI 00000029
00000707 01 01 FFFFFFF8 0004 CPDOWNSP FFFFFFF8, 0004
0000070F 1B 00 FFFFFFFC MOVSP FFFFFFFC
00000715 02 03 RSADDI
00000717 04 03 0000002A CONSTI 0000002A
0000071D 01 01 FFFFFFF8 0004 CPDOWNSP FFFFFFF8, 0004
00000725 1B 00 FFFFFFFC MOVSP FFFFFFFC
0000072B 02 03 RSADDI
0000072D 04 03 0000002E CONSTI 0000002E
00000733 01 01 FFFFFFF8 0004 CPDOWNSP FFFFFFF8, 0004
0000073B 1B 00 FFFFFFFC MOVSP FFFFFFFC
00000741 02 03 RSADDI
00000743 04 03 0000002F CONSTI 0000002F
00000749 01 01 FFFFFFF8 0004 CPDOWNSP FFFFFFF8, 0004
00000751 1B 00 FFFFFFFC MOVSP FFFFFFFC
00000757 02 03 RSADDI
00000759 04 03 0000000F CONSTI 0000000F
0000075F 01 01 FFFFFFF8 0004 CPDOWNSP FFFFFFF8, 0004
00000767 1B 00 FFFFFFFC MOVSP FFFFFFFC
0000076D 02 03 RSADDI
0000076F 04 03 0000000A CONSTI 0000000A
00000775 01 01 FFFFFFF8 0004 CPDOWNSP FFFFFFF8, 0004
0000077D 1B 00 FFFFFFFC MOVSP FFFFFFFC
00000783 02 03 RSADDI
00000785 04 03 00000005 CONSTI 00000005
0000078B 01 01 FFFFFFF8 0004 CPDOWNSP FFFFFFF8, 0004
00000793 1B 00 FFFFFFFC MOVSP FFFFFFFC
00000799 02 03 RSADDI
0000079B 04 03 00000002 CONSTI 00000002
000007A1 01 01 FFFFFFF8 0004 CPDOWNSP FFFFFFF8, 0004
000007A9 1B 00 FFFFFFFC MOVSP FFFFFFFC
000007AF 02 03 RSADDI
000007B1 02 03 RSADDI
000007B3 02 03 RSADDI
000007B5 02 06 RSADDO
000007B7 02 03 RSADDI
000007B9 02 03 RSADDI
000007BB 02 03 RSADDI
000007BD 02 03 RSADDI
000007BF 02 03 RSADDI
000007C1 02 03 RSADDI
000007C3 02 03 RSADDI
 Darth Rhaith
12-16-2005, 5:32 AM
#7
Can you post the script here? The ouput indicates an error at line 212.


Note that you need the authors permission befere publicly releasing a mod that intergrates other people's work. However, there's no problem in doing it for your personal needs ;)

Here is the second part. It starts right after the last line of the previous post. I aplogize if I am not supposed to post something so long.

000007C5 04 03 00000001 CONSTI 00000001
000007CB 01 01 FFFFFFF8 0004 CPDOWNSP FFFFFFF8, 0004
000007D3 1B 00 FFFFFFFC MOVSP FFFFFFFC
000007D9 02 03 RSADDI
000007DB 04 03 00000002 CONSTI 00000002
000007E1 01 01 FFFFFFF8 0004 CPDOWNSP FFFFFFF8, 0004
000007E9 1B 00 FFFFFFFC MOVSP FFFFFFFC
000007EF 02 03 RSADDI
000007F1 04 03 00000003 CONSTI 00000003
000007F7 01 01 FFFFFFF8 0004 CPDOWNSP FFFFFFF8, 0004
000007FF 1B 00 FFFFFFFC MOVSP FFFFFFFC
00000805 02 03 RSADDI
00000807 04 03 00000014 CONSTI 00000014
0000080D 01 01 FFFFFFF8 0004 CPDOWNSP FFFFFFF8, 0004
00000815 1B 00 FFFFFFFC MOVSP FFFFFFFC
0000081B 02 03 RSADDI
0000081D 04 03 00000015 CONSTI 00000015
00000823 01 01 FFFFFFF8 0004 CPDOWNSP FFFFFFF8, 0004
0000082B 1B 00 FFFFFFFC MOVSP FFFFFFFC
00000831 02 03 RSADDI
00000833 04 03 00000016 CONSTI 00000016
00000839 01 01 FFFFFFF8 0004 CPDOWNSP FFFFFFF8, 0004
00000841 1B 00 FFFFFFFC MOVSP FFFFFFFC
00000847 02 03 RSADDI
00000849 04 03 00000017 CONSTI 00000017
0000084F 01 01 FFFFFFF8 0004 CPDOWNSP FFFFFFF8, 0004
00000857 1B 00 FFFFFFFC MOVSP FFFFFFFC
0000085D 02 03 RSADDI
0000085F 04 03 00000018 CONSTI 00000018
00000865 01 01 FFFFFFF8 0004 CPDOWNSP FFFFFFF8, 0004
0000086D 1B 00 FFFFFFFC MOVSP FFFFFFFC
00000873 02 03 RSADDI
00000875 04 03 00000019 CONSTI 00000019
0000087B 01 01 FFFFFFF8 0004 CPDOWNSP FFFFFFF8, 0004
00000883 1B 00 FFFFFFFC MOVSP FFFFFFFC
00000889 02 03 RSADDI
0000088B 04 03 0000001A CONSTI 0000001A
00000891 01 01 FFFFFFF8 0004 CPDOWNSP FFFFFFF8, 0004
00000899 1B 00 FFFFFFFC MOVSP FFFFFFFC
0000089F 02 03 RSADDI
000008A1 04 03 0000001B CONSTI 0000001B
000008A7 01 01 FFFFFFF8 0004 CPDOWNSP FFFFFFF8, 0004
000008AF 1B 00 FFFFFFFC MOVSP FFFFFFFC
000008B5 02 03 RSADDI
000008B7 04 03 0000001C CONSTI 0000001C
000008BD 01 01 FFFFFFF8 0004 CPDOWNSP FFFFFFF8, 0004
000008C5 1B 00 FFFFFFFC MOVSP FFFFFFFC
000008CB 02 03 RSADDI
000008CD 04 03 0000001F CONSTI 0000001F
000008D3 01 01 FFFFFFF8 0004 CPDOWNSP FFFFFFF8, 0004
000008DB 1B 00 FFFFFFFC MOVSP FFFFFFFC
000008E1 02 03 RSADDI
000008E3 04 03 00000020 CONSTI 00000020
000008E9 01 01 FFFFFFF8 0004 CPDOWNSP FFFFFFF8, 0004
000008F1 1B 00 FFFFFFFC MOVSP FFFFFFFC
000008F7 02 03 RSADDI
000008F9 04 03 00000021 CONSTI 00000021
000008FF 01 01 FFFFFFF8 0004 CPDOWNSP FFFFFFF8, 0004
00000907 1B 00 FFFFFFFC MOVSP FFFFFFFC
0000090D 02 03 RSADDI
0000090F 04 03 00000028 CONSTI 00000028
00000915 01 01 FFFFFFF8 0004 CPDOWNSP FFFFFFF8, 0004
0000091D 1B 00 FFFFFFFC MOVSP FFFFFFFC
00000923 02 03 RSADDI
00000925 04 03 0000002B CONSTI 0000002B
0000092B 01 01 FFFFFFF8 0004 CPDOWNSP FFFFFFF8, 0004
00000933 1B 00 FFFFFFFC MOVSP FFFFFFFC
00000939 02 03 RSADDI
0000093B 04 03 0000002C CONSTI 0000002C
00000941 01 01 FFFFFFF8 0004 CPDOWNSP FFFFFFF8, 0004
00000949 1B 00 FFFFFFFC MOVSP FFFFFFFC
0000094F 02 03 RSADDI
00000951 04 03 0000002D CONSTI 0000002D
00000957 01 01 FFFFFFF8 0004 CPDOWNSP FFFFFFF8, 0004
0000095F 1B 00 FFFFFFFC MOVSP FFFFFFFC
00000965 02 03 RSADDI
00000967 04 03 00000030 CONSTI 00000030
0000096D 01 01 FFFFFFF8 0004 CPDOWNSP FFFFFFF8, 0004
00000975 1B 00 FFFFFFFC MOVSP FFFFFFFC
0000097B 02 03 RSADDI
0000097D 04 03 00000031 CONSTI 00000031
00000983 01 01 FFFFFFF8 0004 CPDOWNSP FFFFFFF8, 0004
0000098B 1B 00 FFFFFFFC MOVSP FFFFFFFC
00000991 02 03 RSADDI
00000993 04 03 00000032 CONSTI 00000032
00000999 01 01 FFFFFFF8 0004 CPDOWNSP FFFFFFF8, 0004
000009A1 1B 00 FFFFFFFC MOVSP FFFFFFFC
000009A7 02 03 RSADDI
000009A9 04 03 00000033 CONSTI 00000033
000009AF 01 01 FFFFFFF8 0004 CPDOWNSP FFFFFFF8, 0004
000009B7 1B 00 FFFFFFFC MOVSP FFFFFFFC
000009BD 02 03 RSADDI
000009BF 04 03 00000034 CONSTI 00000034
000009C5 01 01 FFFFFFF8 0004 CPDOWNSP FFFFFFF8, 0004
000009CD 1B 00 FFFFFFFC MOVSP FFFFFFFC
000009D3 02 03 RSADDI
000009D5 04 03 00000035 CONSTI 00000035
000009DB 01 01 FFFFFFF8 0004 CPDOWNSP FFFFFFF8, 0004
000009E3 1B 00 FFFFFFFC MOVSP FFFFFFFC
000009E9 02 03 RSADDI
000009EB 04 03 00000036 CONSTI 00000036
000009F1 01 01 FFFFFFF8 0004 CPDOWNSP FFFFFFF8, 0004
000009F9 1B 00 FFFFFFFC MOVSP FFFFFFFC
000009FF 02 03 RSADDI
00000A01 04 03 00000037 CONSTI 00000037
00000A07 01 01 FFFFFFF8 0004 CPDOWNSP FFFFFFF8, 0004
00000A0F 1B 00 FFFFFFFC MOVSP FFFFFFFC
00000A15 02 03 RSADDI
00000A17 04 03 00000038 CONSTI 00000038
00000A1D 01 01 FFFFFFF8 0004 CPDOWNSP FFFFFFF8, 0004
00000A25 1B 00 FFFFFFFC MOVSP FFFFFFFC
00000A2B 02 03 RSADDI
00000A2D 04 03 00000039 CONSTI 00000039
00000A33 01 01 FFFFFFF8 0004 CPDOWNSP FFFFFFF8, 0004
00000A3B 1B 00 FFFFFFFC MOVSP FFFFFFFC
00000A41 02 03 RSADDI
00000A43 04 03 0000003A CONSTI 0000003A
00000A49 01 01 FFFFFFF8 0004 CPDOWNSP FFFFFFF8, 0004
00000A51 1B 00 FFFFFFFC MOVSP FFFFFFFC
00000A57 02 03 RSADDI
00000A59 04 03 0000003C CONSTI 0000003C
00000A5F 01 01 FFFFFFF8 0004 CPDOWNSP FFFFFFF8, 0004
00000A67 1B 00 FFFFFFFC MOVSP FFFFFFFC
00000A6D 02 03 RSADDI
00000A6F 04 03 0000003D CONSTI 0000003D
00000A75 01 01 FFFFFFF8 0004 CPDOWNSP FFFFFFF8, 0004
00000A7D 1B 00 FFFFFFFC MOVSP FFFFFFFC
00000A83 02 03 RSADDI
00000A85 04 03 0000003E CONSTI 0000003E
00000A8B 01 01 FFFFFFF8 0004 CPDOWNSP FFFFFFF8, 0004
00000A93 1B 00 FFFFFFFC MOVSP FFFFFFFC
00000A99 02 03 RSADDI
00000A9B 04 03 0000003F CONSTI 0000003F
00000AA1 01 01 FFFFFFF8 0004 CPDOWNSP FFFFFFF8, 0004
00000AA9 1B 00 FFFFFFFC MOVSP FFFFFFFC
00000AAF 02 03 RSADDI
00000AB1 04 03 00000040 CONSTI 00000040
00000AB7 01 01 FFFFFFF8 0004 CPDOWNSP FFFFFFF8, 0004
00000ABF 1B 00 FFFFFFFC MOVSP FFFFFFFC
00000AC5 02 03 RSADDI
00000AC7 04 03 00000041 CONSTI 00000041
00000ACD 01 01 FFFFFFF8 0004 CPDOWNSP FFFFFFF8, 0004
00000AD5 1B 00 FFFFFFFC MOVSP FFFFFFFC
00000ADB 02 03 RSADDI
00000ADD 04 03 00000042 CONSTI 00000042
00000AE3 01 01 FFFFFFF8 0004 CPDOWNSP FFFFFFF8, 0004
00000AEB 1B 00 FFFFFFFC MOVSP FFFFFFFC
00000AF1 02 03 RSADDI
00000AF3 04 03 00000043 CONSTI 00000043
00000AF9 01 01 FFFFFFF8 0004 CPDOWNSP FFFFFFF8, 0004
00000B01 1B 00 FFFFFFFC MOVSP FFFFFFFC
00000B07 02 03 RSADDI
00000B09 04 03 00000044 CONSTI 00000044
00000B0F 01 01 FFFFFFF8 0004 CPDOWNSP FFFFFFF8, 0004
00000B17 1B 00 FFFFFFFC MOVSP FFFFFFFC
00000B1D 02 03 RSADDI
00000B1F 04 03 00000045 CONSTI 00000045
00000B25 01 01 FFFFFFF8 0004 CPDOWNSP FFFFFFF8, 0004
00000B2D 1B 00 FFFFFFFC MOVSP FFFFFFFC
00000B33 02 03 RSADDI
00000B35 04 03 00000046 CONSTI 00000046
00000B3B 01 01 FFFFFFF8 0004 CPDOWNSP FFFFFFF8, 0004
00000B43 1B 00 FFFFFFFC MOVSP FFFFFFFC
00000B49 02 03 RSADDI
00000B4B 04 03 00000047 CONSTI 00000047
00000B51 01 01 FFFFFFF8 0004 CPDOWNSP FFFFFFF8, 0004
00000B59 1B 00 FFFFFFFC MOVSP FFFFFFFC
00000B5F 02 03 RSADDI
00000B61 04 03 00000048 CONSTI 00000048
00000B67 01 01 FFFFFFF8 0004 CPDOWNSP FFFFFFF8, 0004
00000B6F 1B 00 FFFFFFFC MOVSP FFFFFFFC
00000B75 02 03 RSADDI
00000B77 04 03 00000001 CONSTI 00000001
00000B7D 01 01 FFFFFFF8 0004 CPDOWNSP FFFFFFF8, 0004
00000B85 1B 00 FFFFFFFC MOVSP FFFFFFFC
00000B8B 02 03 RSADDI
00000B8D 04 03 00000002 CONSTI 00000002
00000B93 01 01 FFFFFFF8 0004 CPDOWNSP FFFFFFF8, 0004
00000B9B 1B 00 FFFFFFFC MOVSP FFFFFFFC
00000BA1 02 03 RSADDI
00000BA3 04 03 00000003 CONSTI 00000003
00000BA9 01 01 FFFFFFF8 0004 CPDOWNSP FFFFFFF8, 0004
00000BB1 1B 00 FFFFFFFC MOVSP FFFFFFFC
00000BB7 02 03 RSADDI
00000BB9 04 03 00000004 CONSTI 00000004
00000BBF 01 01 FFFFFFF8 0004 CPDOWNSP FFFFFFF8, 0004
00000BC7 1B 00 FFFFFFFC MOVSP FFFFFFFC
00000BCD 2A 00 SAVEBP
00000BCF 1E 00 00000010 JSR fn_00000BDF
00000BD5 2B 00 RESTOREBP
00000BD7 1B 00 FFFFFDBC MOVSP FFFFFDBC
00000BDD 20 00 RETN
00000BDF 02 06 RSADDO
00000BE1 02 06 RSADDO
00000BE3 02 03 RSADDI
00000BE5 04 06 00000000 CONSTO 00000000
00000BEB 1E 00 00000207 JSR fn_00000DF2
00000BF1 04 03 00000000 CONSTI 00000000
00000BF7 0B 20 EQUALII
00000BF9 03 01 FFFFFFFC 0004 CPTOPSP FFFFFFFC, 0004
00000C01 1F 00 00000026 JZ off_00000C27
00000C07 04 05 000D str CONSTS "G_FinalChoice"
00000C18 05 00 0244 01 ACTION GetGlobalNumber(0244), 01
00000C1D 04 03 00000000 CONSTI 00000000
00000C23 0E 20 GTII
00000C25 06 20 LOGANDII
00000C27 1F 00 000001C3 JZ off_00000DEA
00000C2D 04 04 00000000 CONSTF 0.000000
00000C33 04 04 00000000 CONSTF 0.000000
00000C39 04 04 00000000 CONSTF 0.000000
00000C3F 04 04 00000000 CONSTF 0.000000
00000C45 04 04 00000000 CONSTF 0.000000
00000C4B 05 00 02D0 05 ACTION SetGlobalFadeOut(02D0), 05
00000C50 04 03 00000001 CONSTI 00000001
00000C56 19 03 NEGI
00000C58 05 00 000D 01 ACTION SetPartyLeader(000D), 01
00000C5D 1B 00 FFFFFFFC MOVSP FFFFFFFC
00000C63 04 03 00000001 CONSTI 00000001
00000C69 05 00 0241 01 ACTION GetPartyMemberByIndex(0241), 01
00000C6E 01 01 FFFFFFF4 0004 CPDOWNSP FFFFFFF4, 0004
00000C76 1B 00 FFFFFFFC MOVSP FFFFFFFC
00000C7C 04 03 00000002 CONSTI 00000002
00000C82 05 00 0241 01 ACTION GetPartyMemberByIndex(0241), 01
00000C87 01 01 FFFFFFF8 0004 CPDOWNSP FFFFFFF8, 0004
00000C8F 1B 00 FFFFFFFC MOVSP FFFFFFFC
00000C95 04 03 00000000 CONSTI 00000000
00000C9B 04 05 0007 str CONSTS "pcstart"
00000CA6 05 00 00C8 02 ACTION GetObjectByTag(00C8), 02
00000CAB 05 00 00D5 01 ACTION GetLocation(00D5), 01
00000CB0 04 03 00000000 CONSTI 00000000
00000CB6 05 00 0241 01 ACTION GetPartyMemberByIndex(0241), 01
00000CBB 1E 00 000001DF JSR fn_00000E9A
00000CC1 04 03 00000000 CONSTI 00000000
00000CC7 04 05 0007 str CONSTS "n2start"
00000CD2 05 00 00C8 02 ACTION GetObjectByTag(00C8), 02
00000CD7 05 00 00D5 01 ACTION GetLocation(00D5), 01
00000CDC 04 03 00000001 CONSTI 00000001
00000CE2 05 00 0241 01 ACTION GetPartyMemberByIndex(0241), 01
00000CE7 1E 00 000001B3 JSR fn_00000E9A
00000CED 04 03 00000000 CONSTI 00000000
00000CF3 04 05 0007 str CONSTS "n1start"
00000CFE 05 00 00C8 02 ACTION GetObjectByTag(00C8), 02
00000D03 05 00 00D5 01 ACTION GetLocation(00D5), 01
00000D08 04 03 00000002 CONSTI 00000002
00000D0E 05 00 0241 01 ACTION GetPartyMemberByIndex(0241), 01
00000D13 1E 00 00000187 JSR fn_00000E9A
00000D19 04 03 00000001 CONSTI 00000001
00000D1F 04 06 00000000 CONSTO 00000000
00000D25 1E 00 00000264 JSR fn_00000F89
00000D2B 04 03 00000032 CONSTI 00000032
00000D31 04 05 000E str CONSTS "K_KOTOR_MASTER"
00000D43 05 00 0245 02 ACTION SetGlobalNumber(0245), 02
00000D48 04 04 3ECCCCCD CONSTF 0.400000
00000D4E 05 00 02F7 01 ACTION NoClicksFor(02F7), 01
00000D53 2C 10 00000244 00000008 STORE_STATE 10, 00000244, 00000008
00000D5D 1D 00 0000007C JMP off_00000DD9
00000D63 2C 10 00000244 00000008 STORE_STATE 10, 00000244, 00000008
00000D6D 1D 00 00000051 JMP off_00000DBE
00000D73 04 05 0000 str CONSTS ""
00000D77 04 05 0000 str CONSTS ""
00000D7B 04 05 0000 str CONSTS ""
00000D7F 04 05 0000 str CONSTS ""
00000D83 04 05 0000 str CONSTS ""
00000D87 04 05 0000 str CONSTS ""
00000D8B 04 03 00000001 CONSTI 00000001
00000D91 04 03 00000000 CONSTI 00000000
00000D97 04 03 00000000 CONSTI 00000000
00000D9D 04 05 000B str CONSTS "unk42_carth"
00000DAC 04 03 00000000 CONSTI 00000000
00000DB2 05 00 0241 01 ACTION GetPartyMemberByIndex(0241), 01
00000DB7 05 00 00CC 0B ACTION ActionStartConversation(00CC), 0B
00000DBC 20 00 RETN
00000DBE 04 03 00000000 CONSTI 00000000
00000DC4 04 05 0005 str CONSTS "carth"
00000DCD 05 00 00C8 02 ACTION GetObjectByTag(00C8), 02
00000DD2 05 00 0006 02 ACTION AssignCommand(0006), 02
00000DD7 20 00 RETN
00000DD9 04 04 3E19999A CONSTF 0.150000
00000DDF 05 00 0007 02 ACTION DelayCommand(0007), 02
00000DE4 1D 00 00000006 JMP off_00000DEA
00000DEA 1B 00 FFFFFFF8 MOVSP FFFFFFF8
00000DF0 20 00 RETN
00000DF2 02 03 RSADDI
00000DF4 03 01 FFFFFFF8 0004 CPTOPSP FFFFFFF8, 0004
00000DFC 05 00 002A 01 ACTION GetIsObjectValid(002A), 01
00000E01 1F 00 0000006B JZ off_00000E6C
00000E07 27 01 FFFFFDE4 0004 CPTOPBP FFFFFDE4, 0004
00000E0F 03 01 FFFFFFF4 0004 CPTOPSP FFFFFFF4, 0004
00000E17 05 00 02A7 02 ACTION GetLocalBoolean(02A7), 02
00000E1C 01 01 FFFFFFF8 0004 CPDOWNSP FFFFFFF8, 0004
00000E24 1B 00 FFFFFFFC MOVSP FFFFFFFC
00000E2A 03 01 FFFFFFFC 0004 CPTOPSP FFFFFFFC, 0004
00000E32 04 03 00000000 CONSTI 00000000
00000E38 0E 20 GTII
00000E3A 1F 00 0000002C JZ off_00000E66
00000E40 04 03 00000001 CONSTI 00000001
00000E46 01 01 FFFFFFF0 0004 CPDOWNSP FFFFFFF0, 0004
00000E4E 1B 00 FFFFFFF8 MOVSP FFFFFFF8
00000E54 1D 00 0000003E JMP off_00000E92
00000E5A 1B 00 FFFFFFFC MOVSP FFFFFFFC
00000E60 1D 00 00000006 JMP off_00000E66
00000E66 1D 00 00000006 JMP off_00000E6C
00000E6C 04 03 00000000 CONSTI 00000000
00000E72 01 01 FFFFFFF0 0004 CPDOWNSP FFFFFFF0, 0004
00000E7A 1B 00 FFFFFFF8 MOVSP FFFFFFF8
00000E80 1D 00 00000012 JMP off_00000E92
00000E86 1B 00 FFFFFFFC MOVSP FFFFFFFC
00000E8C 1B 00 FFFFFFFC MOVSP FFFFFFFC
00000E92 1B 00 FFFFFFFC MOVSP FFFFFFFC
00000E98 20 00 RETN
00000E9A 03 01 FFFFFFFC 0004 CPTOPSP FFFFFFFC, 0004
00000EA2 05 00 002A 01 ACTION GetIsObjectValid(002A), 01
00000EA7 22 03 NOTI
00000EA9 1F 00 00000012 JZ off_00000EBB
00000EAF 1D 00 000000D2 JMP off_00000F81
00000EB5 1D 00 00000006 JMP off_00000EBB
00000EBB 03 01 FFFFFFFC 0004 CPTOPSP FFFFFFFC, 0004
00000EC3 05 00 0031 01 ACTION GetCurrentHitPoints(0031), 01
00000EC8 04 03 00000001 CONSTI 00000001
00000ECE 0F 20 LTII
00000ED0 1F 00 0000004E JZ off_00000F1E
00000ED6 04 04 00000000 CONSTF 0.000000
00000EDC 03 01 FFFFFFF8 0004 CPTOPSP FFFFFFF8, 0004
00000EE4 05 00 0052 00 ACTION EffectResurrection(0052), 00
00000EE9 04 03 00000000 CONSTI 00000000
00000EEF 05 00 00DC 04 ACTION ApplyEffectToObject(00DC), 04
00000EF4 04 04 00000000 CONSTF 0.000000
00000EFA 03 01 FFFFFFF8 0004 CPTOPSP FFFFFFF8, 0004
00000F02 04 03 00000001 CONSTI 00000001
00000F08 05 00 004E 01 ACTION EffectHeal(004E), 01
00000F0D 04 03 00000000 CONSTI 00000000
00000F13 05 00 00DC 04 ACTION ApplyEffectToObject(00DC), 04
00000F18 1D 00 00000006 JMP off_00000F1E
00000F1E 03 01 FFFFFFFC 0004 CPTOPSP FFFFFFFC, 0004
00000F26 04 03 00000001 CONSTI 00000001
00000F2C 05 00 00A2 02 ACTION SetCommandable(00A2), 02
00000F31 2C 10 00000244 00000008 STORE_STATE 10, 00000244, 00000008
00000F3B 1D 00 0000000D JMP off_00000F48
00000F41 05 00 0009 00 ACTION ClearAllActions(0009), 00
00000F46 20 00 RETN
00000F48 03 01 FFFFFFFC 0004 CPTOPSP FFFFFFFC, 0004
00000F50 05 00 0006 02 ACTION AssignCommand(0006), 02
00000F55 2C 10 00000244 00000008 STORE_STATE 10, 00000244, 00000008
00000F5F 1D 00 00000015 JMP off_00000F74
00000F65 03 01 FFFFFFF8 0004 CPTOPSP FFFFFFF8, 0004
00000F6D 05 00 00D6 01 ACTION ActionJumpToLocation(00D6), 01
00000F72 20 00 RETN
00000F74 03 01 FFFFFFFC 0004 CPTOPSP FFFFFFFC, 0004
00000F7C 05 00 0006 02 ACTION AssignCommand(0006), 02
00000F81 1B 00 FFFFFFF8 MOVSP FFFFFFF8
00000F87 20 00 RETN
00000F89 03 01 FFFFFFFC 0004 CPTOPSP FFFFFFFC, 0004
00000F91 05 00 002A 01 ACTION GetIsObjectValid(002A), 01
00000F96 1F 00 00000073 JZ off_00001009
00000F9C 03 01 FFFFFFF8 0004 CPTOPSP FFFFFFF8, 0004
00000FA4 04 03 00000001 CONSTI 00000001
00000FAA 0B 20 EQUALII
00000FAC 03 01 FFFFFFFC 0004 CPTOPSP FFFFFFFC, 0004
00000FB4 1F 00 00000014 JZ off_00000FC8
00000FBA 03 01 FFFFFFFC 0004 CPTOPSP FFFFFFFC, 0004
00000FC2 1F 00 00000016 JZ off_00000FD8
00000FC8 03 01 FFFFFFF4 0004 CPTOPSP FFFFFFF4, 0004
00000FD0 04 03 00000000 CONSTI 00000000
00000FD6 0B 20 EQUALII
00000FD8 07 20 LOGORII
00000FDA 1F 00 00000029 JZ off_00001003
00000FE0 03 01 FFFFFFF8 0004 CPTOPSP FFFFFFF8, 0004
00000FE8 27 01 FFFFFDE4 0004 CPTOPBP FFFFFDE4, 0004
00000FF0 03 01 FFFFFFF4 0004 CPTOPSP FFFFFFF4, 0004
00000FF8 05 00 02A8 03 ACTION SetLocalBoolean(02A8), 03
00000FFD 1D 00 00000006 JMP off_00001003
00001003 1D 00 00000006 JMP off_00001009
00001009 1B 00 FFFFFFF8 MOVSP FFFFFFF8
0000100F 20 00 RETN
 cjt0202
12-16-2005, 6:43 AM
#8
I know I'm not the scripting expert that Darth333 is, but I do know a thing or two about of the mods you're tinkering with. ;)

I decompiled the "Recruit Mekel" version of that script yesterday, and I swear to you, the only difference between that script and my script is on the last line. Mine is:

DelayCommand(0.15, AssignCommand(GetObjectByTag("carth", 0), ActionStartConversation(GetPartyMemberByIndex(0), "unk41_carth2", 0, 0, 1, "", "", "", "", "", "")));
where the Mekel version is:

DelayCommand(0.15, AssignCommand(GetObjectByTag("carth", 0), ActionStartConversation(GetPartyMemberByIndex(0), "unk42_carth", 0, 0, 1, "", "", "", "", "", "")));
The difference is we're calling different dialogs. Like I said before, that scene on the Central Beach after the temple used a dialog named "unk41_carth.dlg". If you just dropped that file in your override folder as-is, when you crashed on the Unknown World, everyone would just stand around looking at each other because the dialog that is supposed to trigger (with Mission complaining about Carth's drunken flying) is also named "unk41_carth.dlg". I renamed the Central Beach dialog to "unk41_carth2.dlg" to get around that problem. The author of the Mekel mod renamed it to "unk42_carth.dlg". Your problem isn't that we both have k_punk_fincs_en.ncs; it's why we both have it: because unk41_carth2.dlg and unk42_carth.dlg are really the same file.
 Darth Rhaith
12-16-2005, 6:12 PM
#9
I know I'm not the scripting expert that Darth333 is, but I do know a thing or two about of the mods you're tinkering with. ;)

I decompiled the "Recruit Mekel" version of that script yesterday, and I swear to you, the only difference between that script and my script is on the last line. Mine is:

DelayCommand(0.15, AssignCommand(GetObjectByTag("carth", 0), ActionStartConversation(GetPartyMemberByIndex(0), "unk41_carth2", 0, 0, 1, "", "", "", "", "", "")));
where the Mekel version is:

DelayCommand(0.15, AssignCommand(GetObjectByTag("carth", 0), ActionStartConversation(GetPartyMemberByIndex(0), "unk42_carth", 0, 0, 1, "", "", "", "", "", "")));
The difference is we're calling different dialogs. Like I said before, that scene on the Central Beach after the temple used a dialog named "unk41_carth.dlg". If you just dropped that file in your override folder as-is, when you crashed on the Unknown World, everyone would just stand around looking at each other because the dialog that is supposed to trigger (with Mission complaining about Carth's drunken flying) is also named "unk41_carth.dlg". I renamed the Central Beach dialog to "unk41_carth2.dlg" to get around that problem. The author of the Mekel mod renamed it to "unk42_carth.dlg". Your problem isn't that we both have k_punk_fincs_en.ncs; it's why we both have it: because unk41_carth2.dlg and unk42_carth.dlg are really the same file.

Thanks for the help cjt0202, I ll merge the the two dlg. To make sure I got this right. I only need one of the scripts and change the part of the script that you posted so it calls to the merged dlg file?

Once again thanks for the help. Scripting is very new to me and is going to be the next thing I am going to learn so I can intergrate a story and character I have thought of.
 cjt0202
12-16-2005, 7:01 PM
#10
I ll merge the the two dlg. To make sure I got this right. I only need one of the scripts and change the part of the script that you posted so it calls to the merged dlg file?That's right. And if it's any help, I didn't touch anything in the "sided with Bastila" half of the conversation.
 tk102
02-27-2006, 1:28 AM
#11
It looks like Tanesh and I think alike :) There are 2 dialogs in the game named unk41_carth.dlg -- one in an Ebon Hawk module for when you first crash on the Unknown World, and one in the Central Beach module for when you return from the temple. We both renamed the Central Beach dialogue, and editted that particular script to call our renamed file. What you really need to do is merge my unk41_carth2.dlg with Tanesh's unk42_carth.dlg, and have the script launch whatever you call your final version.

Patch has been posted: http://www.lucasforums.com/showthread.php?t=161440)
Page: 1 of 1