lfnetwork.com mark read register faq members calendar

Thread: OJP Enchanced sabers
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 01-08-2007, 12:27 PM   #41
Maxstate
I forgot.... what?
 
Maxstate's Avatar
 
Join Date: Aug 2004
Location: ;o ;p :eek:
Posts: 2,090
Quote:
Originally Posted by Lathain Valtiel
*Checks*

Yes, rgb_line is rendered first, it provides the blade color because the white in its texture is filled in. rgb_core is rendered on top of it with its white staying as-is to provide a visible white core. What you could try is making rgb_core's sides gray, so that the color will only partially shine through. We just cut off the sides so the whole thing shows through as it is now. My bad, most likely.
Do you have MSN? Or an email I could send you the files too?
Just incase I need further help, don't want to mess up this thread any more than I already have

Maxstate is offline   you may: quote & reply,
Old 01-08-2007, 01:02 PM   #42
Lathain Valtiel
Ex-Angel
 
Lathain Valtiel's Avatar
 
Join Date: Jul 2002
Posts: 929
LFN Staff Member 
...Wow, I'm a screwup, I read them backwards and switched what the cores do. LOL

rgb_line is rendered first, it's the white core.

rgb_core is rendered second, and winds up behind the white core. It's usually bigger. Its color is filled in by the RGB values to give the saber color. Since it's bigger, its color shows up on the edges of the white core.

Thus we should edit rgb_line's sides to gray so that rgb_core's color goes through it.


Kurgan's Meatgrinder (JA Server: 72.5.248.212:29070)

Player tested, Valtiel approved.

Valtiel approved downloads for Meatgrinder: http://strategy.jediknight.net/jka/downloads.shtml

Last edited by Lathain Valtiel; 01-08-2007 at 01:14 PM.
Lathain Valtiel is offline   you may: quote & reply,
Old 01-08-2007, 01:55 PM   #43
TheShaman
Junior Member
 
Join Date: Nov 2006
Posts: 277
Hem, I don't really understand the difference between the core and the blade, to me, a lightsaber is made of the core, which is a cutting white laser blade, and of the core, which determines the colour, for a cool effect.

Also Max, I think your sabers are a bit too bright (glow), especially the cyan one, and the core/blade (white thing) isn't straight, it seemed you drew it with hand, going left, right, left, right again... instead of just being a line. Weird thing.
TheShaman is offline   you may: quote & reply,
Old 01-08-2007, 01:58 PM   #44
Lathain Valtiel
Ex-Angel
 
Lathain Valtiel's Avatar
 
Join Date: Jul 2002
Posts: 929
LFN Staff Member 
It's just the way the RGB sabers were coded so that it looked nice. I imagine it was done so you could provide some color to the edge of the white center.


Kurgan's Meatgrinder (JA Server: 72.5.248.212:29070)

Player tested, Valtiel approved.

Valtiel approved downloads for Meatgrinder: http://strategy.jediknight.net/jka/downloads.shtml
Lathain Valtiel is offline   you may: quote & reply,
Old 01-08-2007, 03:48 PM   #45
Maxstate
I forgot.... what?
 
Maxstate's Avatar
 
Join Date: Aug 2004
Location: ;o ;p :eek:
Posts: 2,090
Quote:
Originally Posted by TheShaman
Hem, I don't really understand the difference between the core and the blade, to me, a lightsaber is made of the core, which is a cutting white laser blade, and of the core, which determines the colour, for a cool effect.
Blade = everything in it's entirety.
Quote:
Originally Posted by SHAMMY
Also Max, I think your sabers are a bit too bright (glow), especially the cyan one, and the core/blade (white thing) isn't straight, it seemed you drew it with hand, going left, right, left, right again... instead of just being a line. Weird thing.
Your resolution isn't picking it up right then, the sabers themselves (the version you have) are on 2500x XXXX I think, lol. They look that way because I made them to be smaller in perspective, meaning they get smaller near the tip and are rounder and wider near the emitter.

Maxstate is offline   you may: quote & reply,
Old 01-11-2007, 11:08 PM   #46
JRHockney*
Moderator
 
JRHockney*'s Avatar
 
Join Date: Jan 2006
Posts: 1,255
Hot Topic Starter LFN Staff Member 
Hey I got the SFX sabers working! Great cvar, Lathain!

The only thing you forgot in those files was this: vec3_t rgb1={255.0f,255.0f,255.0f}; in the definition section of cg_players.c. Given my sad level of coding knowledge, its a miracle that I figured that out, especially since that appeared to be defined in several other places in that file.


Game screen name: Master Jon Hoc Ni

UDM Quote: in singapore, gangsters are...skinny jacka**es who think they can 0wn you. they hurl insults at u, and then lose in a fight. n00bs
JRHockney* is offline   you may: quote & reply,
Old 01-13-2007, 12:59 AM   #47
Lathain Valtiel
Ex-Angel
 
Lathain Valtiel's Avatar
 
Join Date: Jul 2002
Posts: 929
LFN Staff Member 
Actually, it's there, it just happened to fall to the joys of only being stored between parantheses... typical.

I uploaded a new file with the fix. If you just pasted the declaration somewhere (probably after the line: // Draw the SFX blade. Yeah, it has to be here. Yes, the person who wrote this should be shot.), I don't think it will work exactly as intended due to having lost the old SFX rgb1 value, which retains it, so use the fixed file. Same link as before.

The cvar worked? Any other problems?


Kurgan's Meatgrinder (JA Server: 72.5.248.212:29070)

Player tested, Valtiel approved.

Valtiel approved downloads for Meatgrinder: http://strategy.jediknight.net/jka/downloads.shtml

Last edited by Lathain Valtiel; 01-13-2007 at 01:15 AM.
Lathain Valtiel is offline   you may: quote & reply,
Old 01-13-2007, 04:26 PM   #48
JRHockney*
Moderator
 
JRHockney*'s Avatar
 
Join Date: Jan 2006
Posts: 1,255
Hot Topic Starter LFN Staff Member 
Hmm, Ok I replaced your new file with the one I modified and I got some errors. I looked for that definition that I showed and I found it after "CheckTrail:" I tried that previously and it didn't work for some reason. It showed it as not being defined properly. I put it back to were I had it before which was around line 35 before that "char *cg_customSoundNames[MAX_CUSTOM_SOUNDS] = {" thing and it compiled with no errors. I might just be my code though, there are alot of weird things about it.

As far as how it works overall, it works very well for the most part. The RGB sabers don't really work right with the SFX ones and you can't use the base sabers and SFX sabers at the same time on a server without it messed up it seems, but I didn't expect those to work anyways since their based on different code. THe funny thing is, when I first added the code and compiled it without doing a fresh build, it compiled, but had the CRAZIEST effects in game: the sabers were mess up, the sounds were messed up and I got struck with a red lightning bolt everytime I rolled or jumped! LOL! I thought you played a prank on us! Of course after I did a fresh build, I got those errors that I fixed with that definition. Heh, shows how much I know about code I don't know the first thing about vector stuff.


Game screen name: Master Jon Hoc Ni

UDM Quote: in singapore, gangsters are...skinny jacka**es who think they can 0wn you. they hurl insults at u, and then lose in a fight. n00bs

Last edited by JRHockney*; 01-13-2007 at 04:43 PM.
JRHockney* is offline   you may: quote & reply,
Old 01-13-2007, 09:33 PM   #49
Lathain Valtiel
Ex-Angel
 
Lathain Valtiel's Avatar
 
Join Date: Jul 2002
Posts: 929
LFN Staff Member 
Did you change the code?

Max got it to compile without changing it apparently, so it may be something on your end.


Kurgan's Meatgrinder (JA Server: 72.5.248.212:29070)

Player tested, Valtiel approved.

Valtiel approved downloads for Meatgrinder: http://strategy.jediknight.net/jka/downloads.shtml
Lathain Valtiel is offline   you may: quote & reply,
Old 01-13-2007, 11:06 PM   #50
JRHockney*
Moderator
 
JRHockney*'s Avatar
 
Join Date: Jan 2006
Posts: 1,255
Hot Topic Starter LFN Staff Member 
Quote:
Originally Posted by Lathain Valtiel
Did you change the code?

Max got it to compile without changing it apparently, so it may be something on your end.
Probably is. I don't remember changing anything and that definition after checktrail should work, but since it works now, I don't have the patience to figure out why. Anyways, thanks again for making it available.


Game screen name: Master Jon Hoc Ni

UDM Quote: in singapore, gangsters are...skinny jacka**es who think they can 0wn you. they hurl insults at u, and then lose in a fight. n00bs
JRHockney* is offline   you may: quote & reply,
Old 01-14-2007, 06:58 AM   #51
Maxstate
I forgot.... what?
 
Maxstate's Avatar
 
Join Date: Aug 2004
Location: ;o ;p :eek:
Posts: 2,090
I got a friend of mine to compile the OLD one that was posted, didn't do anything myself. I'm starting PHP in 2 weeks and my coach gave me permission to use the school network to download the full visual studios pack from msdn though

Maxstate 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 > Community > Hosted Forums > Open Jedi Project (OJP) > OJP Enchanced sabers

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 01:45 PM.

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