lfnetwork.com mark read register faq members calendar

Thread: The "Random" Saber Color
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 08-06-2005, 11:57 PM   #1
Shem
Master of the Force
 
Shem's Avatar
 
Join Date: May 2002
Location: Vancouver, WA
Posts: 2,906
Current Game: Variations of games
10 year veteran! Veteran Modder Notable contributor Hot Topic Starter 
The "Random" Saber Color

As in both Jedi Knight games by Raven, when you put the saber color in the NPC file as random, you get either blue, green, purple, orange, or yellow. But not red of course. What I am wondering is how you do change the programing on it. Say I want to add red to the list, how would I go doing that? Or say I want to remove orange and yellow, how would I go doing that?


Interested in hosting a your KOTOR or TSL mod at FileFront? Send your mod HERE and we'll validate it as soon as we can! FileFront is a good way to get publicity for your mod as we get 1000's of visitors everyday. Is my LucasForum PM box full again? If you really need to reach me, PM me at YouTube under the username: Shem L -- Watch my KOTOR videos! Download my mods from FileFront!

Shem is offline   you may: quote & reply,
Old 08-07-2005, 01:06 AM   #2
ensiform
The Stig
 
ensiform's Avatar
 
Join Date: Nov 2004
Location: Sawtooth Cauldron
Posts: 1,241
Current Game: Borderlands 2
this really cannot be done by making a mod.

if you would like to add red to the list of random colors and you have the SDK:

Code:
bg_saberLoad.c has exactly what you want:

	if ( !Q_stricmp( name, "random" ) ) 
	{
		return ((saber_colors_t)(Q_irand( SABER_ORANGE, SABER_PURPLE )));
	}
now, change where it says SABER_ORANGE to SABER_RED. and random now chooses red as a random color, this would probably be client mod.

as for adding or removing colors from the menu, well thats all ui scripting.


iojamp project lead / coder
ensiform is offline   you may: quote & reply,
Old 08-07-2005, 01:37 AM   #3
Shem
Master of the Force
 
Shem's Avatar
 
Join Date: May 2002
Location: Vancouver, WA
Posts: 2,906
Current Game: Variations of games
10 year veteran! Veteran Modder Notable contributor Hot Topic Starter 
Quote:
Originally Posted by ensiform
this really cannot be done by making a mod.
That's all right. I wasn't looking to make it a mod.


Quote:
Originally Posted by ensiform
if you would like to add red to the list of random colors and you have the SDK:
What is the SDK?


Quote:
Originally Posted by ensiform
as for adding or removing colors from the menu, well thats all ui scripting.
I figured that out. That's something I learned when I found out how to add hilts to the menu.


Interested in hosting a your KOTOR or TSL mod at FileFront? Send your mod HERE and we'll validate it as soon as we can! FileFront is a good way to get publicity for your mod as we get 1000's of visitors everyday. Is my LucasForum PM box full again? If you really need to reach me, PM me at YouTube under the username: Shem L -- Watch my KOTOR videos! Download my mods from FileFront!

Shem is offline   you may: quote & reply,
Old 08-07-2005, 03:31 AM   #4
Slider744
Junior Member
 
Slider744's Avatar
 
Join Date: Dec 2003
Location: France
Posts: 260
you need firstable to learn how to programm using the C programming language
and download the SDK of the game which is the C source code of some of the dynamic library launched by the main programm of the game....

this is like that that some mods like the RS, FM3,OJP, lugormod, mobiebattle, JA+...etc... are doing

SDK download
http://jediknight2.filefront.com/fil...y_SDK_MP;20909


******************************
Slider
JA+ MOD Author for Jedi Academy
the lastest version on

http://www.japlus.net/


******************************
Slider744 is offline   you may: quote & reply,
Old 08-07-2005, 12:44 PM   #5
ensiform
The Stig
 
ensiform's Avatar
 
Join Date: Nov 2004
Location: Sawtooth Cauldron
Posts: 1,241
Current Game: Borderlands 2
Quote:
Originally Posted by JediShemL
That's all right. I wasn't looking to make it a mod.

well i meant cant be done without making one*.


iojamp project lead / coder
ensiform is offline   you may: quote & reply,
Old 08-07-2005, 05:23 PM   #6
Shem
Master of the Force
 
Shem's Avatar
 
Join Date: May 2002
Location: Vancouver, WA
Posts: 2,906
Current Game: Variations of games
10 year veteran! Veteran Modder Notable contributor Hot Topic Starter 
Quote:
Originally Posted by Slider744
you need firstable to learn how to programm using the C programming language
and download the SDK of the game which is the C source code of some of the dynamic library launched by the main programm of the game....

this is like that that some mods like the RS, FM3,OJP, lugormod, mobiebattle, JA+...etc... are doing

SDK download
http://jediknight2.filefront.com/fil...y_SDK_MP;20909
Okay, I've downloaded the program. I've found the "bg_saber.c" file. Opening it with Microsoft Word shows me that it is 84 pages long. I've been going through just now. If anybody knows what page it is before I get back, please mention just in case I don't find it.

As for using it. Do you still "pk3" it the folder path in which the file is located?


Interested in hosting a your KOTOR or TSL mod at FileFront? Send your mod HERE and we'll validate it as soon as we can! FileFront is a good way to get publicity for your mod as we get 1000's of visitors everyday. Is my LucasForum PM box full again? If you really need to reach me, PM me at YouTube under the username: Shem L -- Watch my KOTOR videos! Download my mods from FileFront!

Shem is offline   you may: quote & reply,
Old 08-07-2005, 06:17 PM   #7
Shem
Master of the Force
 
Shem's Avatar
 
Join Date: May 2002
Location: Vancouver, WA
Posts: 2,906
Current Game: Variations of games
10 year veteran! Veteran Modder Notable contributor Hot Topic Starter 
Actually I was looking at the wrong file. The file is 57 pages. I did find the script Ensiform showed me. It seems incomplete. It mentions orange and purple than returns to blue. Where are yellow and green at? Or does it matter?


Interested in hosting a your KOTOR or TSL mod at FileFront? Send your mod HERE and we'll validate it as soon as we can! FileFront is a good way to get publicity for your mod as we get 1000's of visitors everyday. Is my LucasForum PM box full again? If you really need to reach me, PM me at YouTube under the username: Shem L -- Watch my KOTOR videos! Download my mods from FileFront!

Shem is offline   you may: quote & reply,
Old 08-08-2005, 02:04 AM   #8
Shem
Master of the Force
 
Shem's Avatar
 
Join Date: May 2002
Location: Vancouver, WA
Posts: 2,906
Current Game: Variations of games
10 year veteran! Veteran Modder Notable contributor Hot Topic Starter 
From what I'm seeing here, this is a MP download. How would this work in single player?


Interested in hosting a your KOTOR or TSL mod at FileFront? Send your mod HERE and we'll validate it as soon as we can! FileFront is a good way to get publicity for your mod as we get 1000's of visitors everyday. Is my LucasForum PM box full again? If you really need to reach me, PM me at YouTube under the username: Shem L -- Watch my KOTOR videos! Download my mods from FileFront!

Shem is offline   you may: quote & reply,
Old 08-08-2005, 09:28 AM   #9
MDN14
Rookie
 
Join Date: Sep 2003
Posts: 159
the Single Player SDK isnt released
MDN14 is offline   you may: quote & reply,
Old 08-08-2005, 07:25 PM   #10
Shem
Master of the Force
 
Shem's Avatar
 
Join Date: May 2002
Location: Vancouver, WA
Posts: 2,906
Current Game: Variations of games
10 year veteran! Veteran Modder Notable contributor Hot Topic Starter 
So basically I can't change the random saber color in SP?


Interested in hosting a your KOTOR or TSL mod at FileFront? Send your mod HERE and we'll validate it as soon as we can! FileFront is a good way to get publicity for your mod as we get 1000's of visitors everyday. Is my LucasForum PM box full again? If you really need to reach me, PM me at YouTube under the username: Shem L -- Watch my KOTOR videos! Download my mods from FileFront!

Shem is offline   you may: quote & reply,
Old 08-08-2005, 10:11 PM   #11
ensiform
The Stig
 
ensiform's Avatar
 
Join Date: Nov 2004
Location: Sawtooth Cauldron
Posts: 1,241
Current Game: Borderlands 2
no, only MP.


iojamp project lead / coder
ensiform is offline   you may: quote & reply,
Old 08-08-2005, 10:39 PM   #12
riceplant
Junior Member
 
riceplant's Avatar
 
Join Date: Jul 2005
Posts: 348
As for the only using orange and purple thing, I'm guessing that values are stored as ints, right? And the Q_irand function generates a number (colour) between these two?
riceplant is offline   you may: quote & reply,
Old 08-09-2005, 12:57 AM   #13
ensiform
The Stig
 
ensiform's Avatar
 
Join Date: Nov 2004
Location: Sawtooth Cauldron
Posts: 1,241
Current Game: Borderlands 2
Quote:
Originally Posted by riceplant
As for the only using orange and purple thing, I'm guessing that values are stored as ints, right? And the Q_irand function generates a number (colour) between these two?
yes correct. except they are enums with the int cast so they are ints then.

Code:
typedef int saber_colors_t;


iojamp project lead / coder
ensiform is offline   you may: quote & reply,
Old 08-09-2005, 03:54 AM   #14
Shem
Master of the Force
 
Shem's Avatar
 
Join Date: May 2002
Location: Vancouver, WA
Posts: 2,906
Current Game: Variations of games
10 year veteran! Veteran Modder Notable contributor Hot Topic Starter 
Quote:
Originally Posted by ensiform
no, only MP.
That's unfortunate.


Interested in hosting a your KOTOR or TSL mod at FileFront? Send your mod HERE and we'll validate it as soon as we can! FileFront is a good way to get publicity for your mod as we get 1000's of visitors everyday. Is my LucasForum PM box full again? If you really need to reach me, PM me at YouTube under the username: Shem L -- Watch my KOTOR videos! Download my mods from FileFront!

Shem 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 > JediKnight Series > Editing Central > JA Coding > The "Random" Saber Color

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 Off
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 10:56 AM.

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