VStanced/mods
Submit a mod
Mods Guides Forum Submit a mod Log in Register

Forum

Questions, builds, help and the odd argument. The mods and guides are out front.

RedCarDriver's Work...
 
Notifications
Clear all

RedCarDriver's Workshop

924 Posts
124 Users
0 Reactions
749.3 K Views
RedCarDriver
(@redcardriver_1155)
Member Moderator
Joined: 15 years ago
Posts: 1125
Topic starter  

@ JC: It would have been more obvious if I took a side-view pic. I'll make sure to do that the next time I take a set of screenshots. The car now looks "properly big" and fits 19" wheels comfortably, versus it being too big and 19" wheels looking tiny.



   
ReplyQuote
radu_cainamisir
(@radu_cainamisir_2013)
Reputable Member
Joined: 15 years ago
Posts: 284
 

# Harrison15 :
Thank you! I'll try that and post the results when I get a chance.

Added 6 days later:

Aaaaand the rescaling is done, along with most of the light glows and some more of the HSV parts.

Pics of the HSV rear bumper / lights / spoiler during the day.

G8 spoiler.

Light-glows on G8. Front bumper / quarter panel glows not done yet.

EDIT - some notes: These pics were taken in MWM (technically LE2MWM) this time around. Also, I forgot to take a pic that clearly shows the side of the car, but the scale has been reduced by 2%. The 19" wheels now fit a little bit better.

great glows!



   
ReplyQuote
KrYpToN
(@krypton_191)
Trusted Member
Joined: 16 years ago
Posts: 82
 

nice car :X



   
ReplyQuote
M3fx
 M3fx
(@m3fx_1388)
Trusted Member
Joined: 15 years ago
Posts: 85
 

nice work...and car is awesome 😃



   
ReplyQuote
RedCarDriver
(@redcardriver_1155)
Member Moderator
Joined: 15 years ago
Posts: 1125
Topic starter  

Random question for an experienced modder: Is there any way to create a "shift light" (a light that lights up when the engine RPMs exceed a certain value)? I thought of creating a glow mesh that uses the cockpit_RPM thing in the CFG and then setting it to rotate 180 degrees once it passes the desired rev limit, but that does not allow for multiple RPM needles (I still want the standard one) or for attaching it to a part other than the chassis.

Also, is there any way to read the time of day and whether or not the car is "on" (lights are on, engine is started) from within a part's java? I think I might be able to create pop-up headlights that open by themselves when the car turns on.



   
ReplyQuote
Bigg_Boss93
(@bigg_boss93_1370)
Member Admin
Joined: 15 years ago
Posts: 3835
 

all two things should be possible via java, but im not sure how..

for the pop up lights, you should be able to use the aero spoiler script from Franco's 3000gt and rewrite just some parts to make it work as you need.

for the shift light, i think you have to wait someone that knows javas better than me



   
ReplyQuote
RedCarDriver
(@redcardriver_1155)
Member Moderator
Joined: 15 years ago
Posts: 1125
Topic starter  

Thanks for the response, Bigg Boss! For the pop-up headlights, Franco's 3000GT wing was actually what I was thinking of using as the basis. What I need to figure out is how to read the time of day from within the java for the part. I'll have to go code-diving into the sources for the rest of the game, I guess.

As far as the needle, I remember reading that someone was unable find a way to access the current engine RPM reading (they were working on variable cam timing), but if I could figure it out, I would probably use the same method.

Neither of those things pertains directly to the Commodore; they're just for random other SLRR things.

Added 14 days later:

Got another scripting question. (I also posted this to GOM.)

I am having a problem getting a tuning menu to read the values from the menu into the part's variables. I have created tuning menus before, but I can never get multiple-choice menus (like the standard fuel type menu) to work. Additionally, even though I have gotten slider-based menus to work, I cannot get this one in particular to work; it seems very stubborn.

Here is the code in question. (I am omitting part of the java source because not all of it is relevant, and it is a rather lengthy class file. This IS for the animated headlights I was describing before.)

	float rads, degs, fullcloserads, fullopenrads;

float old_rads;

float old_open_mode;

public int isTuneable()
{
	return true;
}

public void buildTuningMenu( Menu m )
{

	demonstrate_sleeper = 1;
	
	old_rads = rads;
	degs = rad2deg(rads);

	old_open_mode = open_mode;
	
	String[]	headlightmodeText = new String[4];
	headlightmodeText[0] = "Standard (Full Open/Close)";
	headlightmodeText[1] = "Full Close, Custom Angle When Open";
	headlightmodeText[2] = "Custom Angle When Closed, Full Open";
	headlightmodeText[3] = "Custom Angle Full-Time";

	m.addItem( "Headlight Mode: ", 2, open_mode, headlightmodeText, null );

	m.addItem( "Custom Headlight Angle", 1, degs, (rad2deg(fullcloserads)), (rad2deg(fullopenrads)), 1.1, null ).printValue("   %1.1f degrees");

	m.addItem( "Reset to factory defaults",			0);	//this should always be with cmd=0
	

}

public void endTuningSession( int cancelled )
{
	if( cancelled )
	{
		rads = old_rads;
		open_mode = old_open_mode;
	}
	else
	{
		if (rads != old_rads)
			GameLogic.spendTime(5*60);
		if (open_mode != old_open_mode)
			GameLogic.spendTime(5*60);
		getCar_LocalVersion();
		if (the_car)
			the_car.forceUpdate();
	}
	demonstrate_sleeper = 0;
	animate_progress = 0.5; // forces animation to reset
}

public void handleMessage( Event m )
{
	if( m.cmd == 0 )
	{
		rads = fullopenrads;
		m.gadget.osd.findGadget( this, 1 ).setValue( 0 );
		m.gadget.osd.findGadget( this, 2 ).setValue( rad2deg(fullopenrads) );

		setSlotPos( 7, null, new Ypr(0.000,rads,0.000) );
		
		open_mode = 0;
	}
	else
	if( m.cmd == 1 )
	{
		rads = deg2rad(((Slider)m.gadget).value);
		degs = ((Slider)m.gadget).value;
		((Slider)m.gadget).changeVLabelText( Float.toString(degs, "   %1.1f degrees"));
		setSlotPos( 7, null, new Ypr(0.000,rads,0.000) );
	}
	else
	if( m.cmd == 2 )
	{
		open_mode = ((MultiChoice)m.gadget).value;
	}
}

public float rad2deg( float rad )
{
	return(rad * 180 / 3.141);
}
public float deg2rad( float deg )
{
	return(deg * 3.141 / 180);
}


   
ReplyQuote
radu_cainamisir
(@radu_cainamisir_2013)
Reputable Member
Joined: 15 years ago
Posts: 284
 

this is really difficult 🙂) I think this is C++ or smth like that because i'm using a same at school



   
ReplyQuote
RedCarDriver
(@redcardriver_1155)
Member Moderator
Joined: 15 years ago
Posts: 1125
Topic starter  

It is actually Java. SLRR was built using Java, and all of the cars use Java as their basis.

I'd really appreciate it if someone would help me figure out what the problem is here. There is nothing glaringly wrong, but yet it doesn't work! So frustrating.



   
ReplyQuote
radu_cainamisir
(@radu_cainamisir_2013)
Reputable Member
Joined: 15 years ago
Posts: 284
 

do you need help at the RPM indicator and speed indicator?



   
ReplyQuote
RedCarDriver
(@redcardriver_1155)
Member Moderator
Joined: 15 years ago
Posts: 1125
Topic starter  

W00t! I think I may have found the problem, thanks to Bigg Boss93 and Franco's posts on GOM. I am probably missing the following line in the buildTuningMenu method:

GameLogic.player.car.wakeUp();

I'll add this and see if it works. I do not have access to my SLRR installation right now, but I'll do it later. (This is mostly a note to myself more than to anyone else, but should also help anyone who has similar problems in the future.)

@ Radu: Thanks for offering, but I have already done the RPM and speed gauges in the Commodore and I know how to do those in general.

Added 7 hours 20 minutes later:

Aargh! I found out that the code I had written is correct, but the animation code prevents the tuning menu from altering the variables! It has something to do with thread execution; I'm not knowledgeable enough about Java to have any idea how to fix this. I tried a couple of things that caught my eye on the Java database, including setting the "rads" and "degs" variables to volatile, but that didn't help.

Miran? Wichur? RAXAT? Anyone? :/

Added 18 days later:

More Commodore stuff!

FYI: dG.Cyanide @ GOM has offered to help me with the Commodore.

HSV GTS E3 front bumper and rear wing, converted from FM4 by Joealex. Rear bumper coming soon. Also shows carbon fiber hood, interchangeable badges, and hood addon bits that are interchangeable. Also note that the wheels here are the W427 wheels. GTS wheels will be here too eventually.

Again, rear bumper not done yet; neither are badges. Note the chrome trim on the trunk; this is a custom trunk.

V8 Supercars front bumper and grille. This has been done for a while, but I haven't gotten around to taking pics of it. Regular Commodore SS front bumper will be based off of this one. Rear bumper again not done yet. Note the wing in the background.

Chevrolet Lumina (Middle East) grille.

Chevy rear badge.

Other things that have gotten done but aren't in pictures yet: The interior has been re-done so that it is recolorable by exchanging textures; Holden, Chevy, and HSV steering wheels (the Pontiac one used to be the only one); and the G8 GXP wheels have been imported too.



   
ReplyQuote
radu_cainamisir
(@radu_cainamisir_2013)
Reputable Member
Joined: 15 years ago
Posts: 284
 

that's cool, i really like it

Did you try to put a little releflection at the lights texture?



   
ReplyQuote
Bigg_Boss93
(@bigg_boss93_1370)
Member Admin
Joined: 15 years ago
Posts: 3835
 

# radu_cainamisir :
Did you try to put a little releflection at the lights texture?

if you use the transparency(alpha) the reflection doesnt shows up

Added 2 minutes later:

(at least, this is what happens to me)



   
ReplyQuote
RedCarDriver
(@redcardriver_1155)
Member Moderator
Joined: 15 years ago
Posts: 1125
Topic starter  

@ Bigg Boss: This is correct. From my experience, I think it is impossible to use both a reflection texture and a transparency texture on an SLRR part. (This is part of why the Mustang rear lights never worked!)

The reason the headlights and tail lights of the Commodore have reflections is because they use a plain glass material for the lenses (like the windows), not any kind of textured material.

Speaking of, Joealex told me that he thinks the glass is too light on the car. What do you guys think? If enough people agree, I'll think about changing all of the glass.



   
ReplyQuote
radu_cainamisir
(@radu_cainamisir_2013)
Reputable Member
Joined: 15 years ago
Posts: 284
 

i understand, but i mean at the texture "lights", or what name you have, to set the spectacular level and a little glossiness 😃



   
ReplyQuote
Page 2 / 62
Share: