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 → Help needed
Help needed
2001-08-24, 1:05 AM #1
In MotS there's this function: jkGetSaberSidemat()

I can't find a similar method to get this info from within JK. I need it to decide which mesh to apply for the glowing saber (succeded in MotS). How the engine retrieve this info from the character file? Anyone knows? Is there another method to get it (Maybe a generic function to get a texture mat from a surface)?

Please help me...
"May the SourceCode be with you..."
Nemios, MOD developer.
2001-08-24, 1:09 AM #2
LEC made such function in MotS because it wasn't in JK.

The saber is made through a function called

jkSetSaberInfo and not done through a 3do and a surface, so I don't think is anyway to get saber side mat in JK.

------------------
http://millennium.massassi.net/ - Millennium
2001-08-24, 2:14 AM #3
Functions are made not only to implement new things, but also as a shortcut. The saber actually is a 3DO (along with the right hand) and has some MATs applied on it (ex. sabergreen0,sabergreen1,handi...). So I think there's a workaround for that. My problem is I'm not so expert, specially on the 3D side of editing and I can't understand the functions to get infos from objects. Maybe who does levels and new 3DOs could help...

hoping to make you curious to find out something useful... [http://forums.massassi.net/html/wink.gif]

[This message has been edited by Nemios (edited August 24, 2001).]
"May the SourceCode be with you..."
Nemios, MOD developer.
2001-08-24, 3:32 AM #4
> find out something useful...

Yeah, I probably know every cog commands and what they do (excluding just a few real minor ones that I couldn't even tell by testing them, about 10 or so out of all I'd say)

1. I can tell you that there is no way to get a 3do surface mat out of cog commands. You can get a mat from a certain surface within level geometry, but not from a 3do.

2. Some functions are yes, indeed shortcuts, but jkGetSaberSideMat is a whole new command.

3. The saber 3do that you're talking about has default mat set and gets overridden by jkSetSaberInfo. That command will set *any* mat specified in the parenthesis, even mats that don't fit as a saber mat.

>Maybe who does levels and new 3DOs could help...

Maybe if you know all cog commands, you don't need [http://forums.massassi.net/html/smile.gif]

And I guess that you're trying to get the saber side mat from another player. If your intention is not just like this, then there may be a way, but can't really tell from your first post on what you really want to do.

------------------
http://millennium.massassi.net/ - Millennium
2001-08-24, 3:45 AM #5
Thanks for posting.

Well, I'll explain what I want. I'm making a MOD that uses Glowsaber but don't want that your saber is always green (or other color) and then you can change the color with a hotkey. I want the saber of the color you chose when you make your characters.
In Glowsaber there are some 3DOs, one for each color, so I have to decide which 3DO to use on-the-fly and to know that, I have to get infos from the character profile (its file phisically stores the name of the mat of the saber selected in the character editors, which I think is retrieved by the MotS function).

So, is there onether method to do this? I found nobody's MOD which does what I want. My MOD's MotS version works 'cause I use that function...
"May the SourceCode be with you..."
Nemios, MOD developer.
2001-08-24, 3:09 PM #6
>I found nobody's MOD which does what I want.

This issue is quite simple, because there is no way.
Cog can't open another file, nor get the saber mat information in JK.

Other glowsaber mods made players to cycle through colors as a compensation for that.

As for single players mode, you may get what color of the saber Kyle uses by getting which level he is at (actually getting one of the inventory bin value) and on what side of the force he is on. Don't think it's possible in multi player mode.

------------------
http://millennium.massassi.net/ - Millennium
2001-08-24, 3:13 PM #7
I wanted to do something similar once. But it's not possible in JK. A good alternative would be to find out what player model the person chose and give him a saber 3do that suits his character. That way you wouldn't always start with green(or some other color), and you could get a hotkey to change the 3do.

You'd still have to disable the saber selection screen, though.

------------------
Truth is in the eye of the beholder
Author of the JK DataMaster, Parsec, Scribe, and the EditPlus Cog Files.
2001-08-26, 8:43 PM #8
Thanks for all your feedback. I'm a little bit sad... [http://forums.massassi.net/html/frown.gif] I think I'll fix it with GetThingModel() assigning a color to every standard skin.

Anyway, another problem this time on MotS. What is this: jkGetMultiParam()? It is used MANY times in kyle_m.cog and its "brothers" with different values. It seems similar to GetParam but maybe about personalities in multiplayer. How can I know what actually returns in every case? I'm changing some force powers... (ex. Grip uses it for damage)

------------------
May the Source Code be with you.
"May the SourceCode be with you..."
Nemios, MOD developer.
2001-08-27, 3:45 AM #9
The saber 3do in normal JK doesn't even have a blade. The blade is done by the engine.
Capitalization
Commas
Periods
Question Marks
Apostrophes
Confusable Words
Plague Words
2001-08-27, 6:19 AM #10
The darkjedi cogs create the saber blades for the darkjedi actors via jkSetSaberInfo(darkjedi, side_mat, tip_mat, 0.003, 0.001, 0.110, tpl_wall, tpl_blood, tpl_saber);, could something similar maybe be done for the player? I'm probably way off base, I've never experimented with saber stuff.
2001-08-27, 7:03 AM #11
It works. It's just not possible to get the saber mat.
Capitalization
Commas
Periods
Question Marks
Apostrophes
Confusable Words
Plague Words
2001-08-28, 5:05 AM #12
It seems tha GetThingModel() doesn't work. I've done something like this:

model Katarn = ky.3do local
model Yun = ky18.3do local
model ...
...
...
cmodel = GetThingModel(player)
if ((cmodel==Katarn) || (cmodel==Yun)) color = 5;

Where I am wrong?

[This message has been edited by Nemios (edited August 28, 2001).]
"May the SourceCode be with you..."
Nemios, MOD developer.
2001-08-29, 8:23 PM #13
Anybody? [http://forums.massassi.net/html/frown.gif]

------------------
"May the SourceCode be with you..."
"May the SourceCode be with you..."
Nemios, MOD developer.
2001-08-30, 10:07 AM #14
GetThingModel(player) works fine. Did you check the syntax with Cogwriter? Hideki uses some code just like that in EP 2.1's weap_saber cog to give Darth Maul a different saber handle.

------------------
Truth is in the eye of the beholder
Author of the JK DataMaster, Parsec, Scribe, and the EditPlus Cog Files.
2001-09-04, 2:19 AM #15
Still no luck... [http://forums.massassi.net/html/frown.gif]

------------------
"May the SourceCode be with you..."
"May the SourceCode be with you..."
Nemios, MOD developer.

↑ Up to the top!