lfnetwork.com mark read register faq members calendar

Thread: [TSL] The Endgame Script???
Thread Tools Display Modes
Post a new thread. Add a reply to this thread. Indicate all threads in this forum as read. Subscribe to this forum. RSS feed: this forum RSS feed: all forums
Old 07-29-2013, 04:50 AM   #1
Fair Strides 2
Witty Programmer
 
Fair Strides 2's Avatar
 
Join Date: Jan 2012
Location: Oregon, United States
Posts: 613
Current Game: Master of Orion 2
Helpful! 
[TSL] The Endgame Script???

Okay, don't ask any questions because I don't have the answers. I was talking to somebody about modding and scripting and they brought up the endgame to TSL, not RCM, and the possibility of adding on to it.

I told them that the game most likely uses a script that launches the Kreia movie and then the fate of Malachor, and then the Credits, and then most likely calles the EndGame function. I told them that we'd have to find that script and tweak it, removing the EndGame part before we could add on the end of the game.

Now that I told him what most likely happened, I told him that I'd try to find the script. I've checked in dlg files, kriea's On* script handles, and the module's scripts, and I can't find anything!

So, does this exist? If not, how would one extend the storyline after Kreia dies? I'm finding myself in a bind where I might not be able to answer what I said I'd do...

Thanks for the help, guys!


All of my mods are available on Deadlystream.

Always remember modders: "Quality= Effort*Time"

KSE 3.3.4 is LIVE!!! Check it out here.

Check out WalkSwitch, the Walkmesh-changing tool!
Fair Strides 2 is offline   you may: quote & reply,
Old 07-29-2013, 07:30 AM   #2
darthtyren
Rookie
 
darthtyren's Avatar
 
Join Date: May 2011
Location: Kotor Tool folder
Posts: 145
I'm not a scripting genius, but the script you're looking for is the a_end_game.ncs, which fires from the dialog after either the a_playgoodmovie.ncs or the a_playdarkmovie.ncs, and both these scripts include the credits. The endgame script looks like this:

Code:
void main() {
	if (((GetGlobalNumber("G_PC_Align_Val") > 49) && (GetGlobalNumber("GBL_GAME_COMPLETE") >= 2))) {
		IncrementGlobalNumber("GBL_GAME_COMPLETE", 1);
	}
	else {
		if (((GetGlobalNumber("G_PC_Align_Val") > 49) && (GetGlobalNumber("GBL_GAME_COMPLETE") == 0))) {
			SetGlobalNumber("GBL_GAME_COMPLETE", 1);
		}
		else {
			if ((GetGlobalNumber("GBL_GAME_COMPLETE") == 1)) {
				SetGlobalNumber("GBL_GAME_COMPLETE", 3);
			}
			else {
				if ((GetGlobalNumber("GBL_GAME_COMPLETE") == 0)) {
					SetGlobalNumber("GBL_GAME_COMPLETE", 2);
				}
			}
		}
	}
	UnlockAllSongs();
	EndGame(0);
}
So, yes. If the EndGame(0) is removed from the bottom, then it will go back to the trayus core (which for ls players wouldn't make any sense), or you could replace the function with another telling the game to warp to the Ebon Hawk, (which for ds players, arguably, wouldn't make any sense).


Good with dialogues and getting better
Working on Scripting and Module Editing/Re-skinning
Started work on Modeling New Areas
darthtyren is offline   you may: quote & reply,
Old 07-29-2013, 08:31 AM   #3
Fair Strides 2
Witty Programmer
 
Fair Strides 2's Avatar
 
Join Date: Jan 2012
Location: Oregon, United States
Posts: 613
Current Game: Master of Orion 2
Helpful! 
Quote:
Originally Posted by darthtyren View Post
I'm not a scripting genius, but the script you're looking for is the a_end_game.ncs, which fires from the dialog after either the a_playgoodmovie.ncs or the a_playdarkmovie.ncs, and both these scripts include the credits. The endgame script looks like this:

Code:
void main() {
	if (((GetGlobalNumber("G_PC_Align_Val") > 49) && (GetGlobalNumber("GBL_GAME_COMPLETE") >= 2))) {
		IncrementGlobalNumber("GBL_GAME_COMPLETE", 1);
	}
	else {
		if (((GetGlobalNumber("G_PC_Align_Val") > 49) && (GetGlobalNumber("GBL_GAME_COMPLETE") == 0))) {
			SetGlobalNumber("GBL_GAME_COMPLETE", 1);
		}
		else {
			if ((GetGlobalNumber("GBL_GAME_COMPLETE") == 1)) {
				SetGlobalNumber("GBL_GAME_COMPLETE", 3);
			}
			else {
				if ((GetGlobalNumber("GBL_GAME_COMPLETE") == 0)) {
					SetGlobalNumber("GBL_GAME_COMPLETE", 2);
				}
			}
		}
	}
	UnlockAllSongs();
	EndGame(0);
}
So, yes. If the EndGame(0) is removed from the bottom, then it will go back to the trayus core (which for ls players wouldn't make any sense), or you could replace the function with another telling the game to warp to the Ebon Hawk, (which for ds players, arguably, wouldn't make any sense).
A few questions(and pardon me please if I sound antagonistic):

1. WHERE was that file?!

2. How'd you decompile it? Every time I try to use DeNCS it fails or gives byte code...

3. Can I hug you? Finding that script made my day! Thank you.


All of my mods are available on Deadlystream.

Always remember modders: "Quality= Effort*Time"

KSE 3.3.4 is LIVE!!! Check it out here.

Check out WalkSwitch, the Walkmesh-changing tool!
Fair Strides 2 is offline   you may: quote & reply,
Old 07-29-2013, 08:53 AM   #4
darthtyren
Rookie
 
darthtyren's Avatar
 
Join Date: May 2011
Location: Kotor Tool folder
Posts: 145
Quote:
Originally Posted by Fair Strides 2 View Post
A few questions(and pardon me please if I sound antagonistic):

1. WHERE was that file?!

2. How'd you decompile it? Every time I try to use DeNCS it fails or gives byte code...

3. Can I hug you? Finding that script made my day! Thank you.
A few answers:

1. Packed into the 904MAL_s.rim

2. I don't understand what your issue is. It works just fine for me.

3. You're very welcome, and happy modding.


Good with dialogues and getting better
Working on Scripting and Module Editing/Re-skinning
Started work on Modeling New Areas

Last edited by darthtyren; 07-29-2013 at 09:01 AM.
darthtyren is offline   you may: quote & reply,
Old 07-29-2013, 05:01 PM   #5
Malxados
Rookie
 
Malxados's Avatar
 
Join Date: Feb 2009
Location: Mandalore
Posts: 224
Current Game: Warframe, SC Blacklist, KOTOR1
Quote:
Originally Posted by Fair Strides 2 View Post
2. How'd you decompile it? Every time I try to use DeNCS it fails or gives byte code...
Not sure about the failure part, but as far as the byte code part try right-clicking on the byte code and selecting "View Decompiled Code"


"But God demonstrates His own love toward us, in that while we were still sinners, Christ died for us." (Romans 5:8, NKJV)
"For the wages of sin is death, but the gift of God is eternal life in Christ Jesus our Lord." (Romans 6:23, NKJV)

Ask me about my sig!

Bao-Dur: I'll take the one who was stupid enough to threaten us instead of shoot us when he had the chance.

k_inc_force bothers me.
Malxados is offline   you may: quote & reply,
Old 07-29-2013, 10:53 PM   #6
Fair Strides 2
Witty Programmer
 
Fair Strides 2's Avatar
 
Join Date: Jan 2012
Location: Oregon, United States
Posts: 613
Current Game: Master of Orion 2
Helpful! 
Quote:
Originally Posted by darthtyren View Post
A few answers:

1. Packed into the 904MAL_s.rim
Ah. KT has two sections marked as Trayus Core, and I thought the last one was it. 907MAL, I believe.


All of my mods are available on Deadlystream.

Always remember modders: "Quality= Effort*Time"

KSE 3.3.4 is LIVE!!! Check it out here.

Check out WalkSwitch, the Walkmesh-changing tool!
Fair Strides 2 is offline   you may: quote & reply,
Old 07-29-2013, 10:59 PM   #7
darthtyren
Rookie
 
darthtyren's Avatar
 
Join Date: May 2011
Location: Kotor Tool folder
Posts: 145
Quote:
Originally Posted by Fair Strides 2 View Post
Ah. KT has two sections marked as Trayus Core, and I thought the last one was it. 907MAL, I believe.
Yep, very deceitful, but 907MAL is a stunt module. It has the Kreia's Fall cutscene as well as others, I think.


Good with dialogues and getting better
Working on Scripting and Module Editing/Re-skinning
Started work on Modeling New Areas
darthtyren is offline   you may: quote & reply,
Post a new thread. Add a reply to this thread. Indicate all threads in this forum as read. Subscribe to this forum. RSS feed: this forum RSS feed: all forums
Go Back   LucasForums > Network > Knights of the Old Republic > Editing / Modding > Holowan Laboratories > [TSL] The Endgame Script???

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 03:40 AM.

LFNetwork, LLC ©2002-2011 - All rights reserved.
Powered by vBulletin®
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.