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

Scripts: How to make a car appear more or less often in the dealers!

By FJ_6523 Jun 22, 2013 19k views

Ok this is my first tutorial,and im not really good at this but i will try 😃
So… you may want to play “LEGALY” by instead of going to vehicle catalog,you want to go to dealer and get a car which most of the times it’s cheaper… It’s quite simple…First go to the car’s VT.java you want to edit (where at the fck is that?) that is in SLRR/cars/racers/carname*/scripts/src,there you will find a java that ends with “VT” Let’s take a car like… hmm Jesus christ’s
Ok
Here is a sample(this is the Duhen_VT java from Jesus christ’s EK9) i didn’t take whole part but only last lines… (whole java is around 300 lines)
Spoiler: // SunStrip 1.8 DVC //
vmd=new VehicleModel( cars.racers.Duhen:0x00000126r, VS_DRACE );
vtdarr.addElement( vmd );
vmd.prevalence = 2050.0;
vmd.minPower = 1.0; vmd.maxPower = 1.75;
vmd.minOptical = 1.0; vmd.maxOptical = 2.0;
vmd.minTear = 1.0; vmd.maxTear = 1.0;
vmd.minWear = 1.0; vmd.maxWear = 1.0;
vmd.stockPrestige=292; vmd.fullPrestige= 313;
vmd.stockQM = qm_stock_Duhen_SunStrip_1_8_DVC; vmd.fullQM = qm_full_Duhen_SunStrip_1_8_DVC;
vmd.vehicleName = “Duhen SunStrip 1.8 DVC”;
prevalence += vmd.prevalence;

		vmd=new VehicleModel( cars.racers.Duhen:0x00000126r, VS_NRACE );
		vtdarr.addElement( vmd );
		vmd.prevalence = 650.0;
		vmd.minPower	= 1.7;	vmd.maxPower	= 2.0;
		vmd.minOptical	= 1.0;	vmd.maxOptical	= 2.0;
		vmd.stockPrestige=292;	vmd.fullPrestige= 313;
		vmd.stockQM = qm_stock_Duhen_SunStrip_1_8_DVC;	vmd.fullQM = qm_full_Duhen_SunStrip_1_8_DVC;
		vmd.vehicleName = "Duhen SunStrip 1.8 DVC";

	// SunStrip 2.2 DVC //
		vmd=new VehicleModel( cars.racers.Duhen:0x00000127r, VS_DRACE );
		vtdarr.addElement( vmd );
		vmd.prevalence = 650.0;
		vmd.minPower	= 1.0;	vmd.maxPower	= 1.5;
		vmd.minOptical	= 1.0;	vmd.maxOptical	= 2.0;
		vmd.minTear	= 1.0;	vmd.maxTear	= 1.0;
		vmd.minWear	= 1.0;	vmd.maxWear	= 1.0;
		vmd.stockPrestige=297;	vmd.fullPrestige= 317;
		vmd.stockQM = qm_stock_Duhen_SunStrip_2_2_DVC;	vmd.fullQM = qm_full_Duhen_SunStrip_2_2_DVC;
		vmd.vehicleName = "Duhen SunStrip 2.2 DVC";
		prevalence += vmd.prevalence;

		vmd=new VehicleModel( cars.racers.Duhen:0x00000127r, VS_NRACE );
		vtdarr.addElement( vmd );
		vmd.prevalence = 950.0;
		vmd.minPower	= 1.7;	vmd.maxPower	= 2.0;
		vmd.minOptical	= 1.0;	vmd.maxOptical	= 2.0;
		vmd.stockPrestige=297;	vmd.fullPrestige= 317;
		vmd.stockQM = qm_stock_Duhen_SunStrip_2_2_DVC;	vmd.fullQM = qm_full_Duhen_SunStrip_2_2_DVC;
		vmd.vehicleName = "Duhen SunStrip 2.2 DVC";

	// Racing SunStrip 2.0 CDVC //
		vmd=new VehicleModel( cars.racers.Duhen:0x00000128r, VS_DRACE | VS_NRACE );
		vtdarr.addElement( vmd );
		vmd.prevalence = 800.0;
		vmd.minPower	= 1.0;	vmd.maxPower	= 2.0;
		vmd.minOptical	= 1.0;	vmd.maxOptical	= 2.0;
		vmd.minTear	= 0.75;	vmd.maxTear	= 1.0;
		vmd.minWear	= 0.75;	vmd.maxWear	= 1.0;
		vmd.stockPrestige=458;	vmd.fullPrestige= 482;
		vmd.stockQM = qm_stock_Duhen_Racing_SunStrip_2_0_CDVC;	vmd.fullQM = qm_full_Duhen_Racing_SunStrip_2_0_CDVC;
		vmd.vehicleName = "Duhen Racing SunStrip 2.0 CDVC";
		prevalence += vmd.prevalence;

		vmd=new VehicleModel( cars.racers.Duhen:0x00000128r, VS_RRACE );
		vtdarr.addElement( vmd );
		vmd.prevalence = 800.0;
		vmd.minPower	= 1.4;	vmd.maxPower	= 2.0;
		vmd.minOptical	= 1.0;	vmd.maxOptical	= 2.0;
		vmd.minTear	= 1.0;	vmd.maxTear	= 1.0;
		vmd.minWear	= 1.0;	vmd.maxWear	= 1.0;
		vmd.stockPrestige=458;	vmd.fullPrestige= 482;
		vmd.stockQM = qm_stock_Duhen_Racing_SunStrip_2_0_CDVC;	vmd.fullQM = qm_full_Duhen_Racing_SunStrip_2_0_CDVC;
		vmd.vehicleName = "Duhen Racing SunStrip 2.0 CDVC";

	// make color indexes //
	addColorIndex(GameLogic.RID_CARCOLOR_Baiern_Devils_eye_red);
	addColorIndex(GameLogic.RID_CARCOLOR_Baiern_Spring_yellow);

	addColorIndex(GameLogic.RID_CARCOLOR_Einvagen_Zucker);
	addColorIndex(GameLogic.RID_CARCOLOR_Einvagen_Tornado_rot);
	addColorIndex(GameLogic.RID_CARCOLOR_Einvagen_Nacht);
	addColorIndex(GameLogic.RID_CARCOLOR_Einvagen_Smaragd);
	addColorIndex(GameLogic.RID_CARCOLOR_Einvagen_Black_mage);
	addColorIndex(GameLogic.RID_CARCOLOR_Einvagen_Hamvas_Grun);
	addColorIndex(GameLogic.RID_CARCOLOR_Einvagen_Indigo);
	addColorIndex(GameLogic.RID_CARCOLOR_Einvagen_Jazz);
	addColorIndex(GameLogic.RID_CARCOLOR_Einvagen_Antracit);
	addColorIndex(GameLogic.RID_CARCOLOR_Einvagen_Mercator_Blau);
	addColorIndex(GameLogic.RID_CARCOLOR_Einvagen_Murano);
	addColorIndex(GameLogic.RID_CARCOLOR_Einvagen_Champagner);
	addColorIndex(GameLogic.RID_CARCOLOR_Einvagen_Ozean);
	addColorIndex(GameLogic.RID_CARCOLOR_Einvagen_Reflex);
	addColorIndex(GameLogic.RID_CARCOLOR_Einvagen_Saratoga);

// prevalence *= 1000.0;
}
Edit this orange number to change car’s appeareance in dealers,lower value to make it appear less often and higher the value to make the car appear more often in the car dealer,simple right?
WARNING: If you do that with the stock slrr cars,if there are not any other addon cars to appear,dealer will be empty and game will just CRASH.
Comment below if you didn’t undestand something,and remember… SLRR FTW!


No file was attached to this page.

Garage talk

9 comments
  1. Frostyfox

    What about in the scrap dealers?

  2. dthug69

    mine couldnt open it said it was lost

  3. birger89

    Isn’t that VT going to load a Duhen? Or is that the point? When I read EK9 i think of the Honda Civic

  4. Im2Fast4U

    The z33 take all the slots in all garage but it doesnt have a scripts folders…

  5. e39_525i

    The magic “orange” number didn’t work. Is there any other way to fix this?
    It only made more beirns spawn at the dealership…
    mod: e39 M5 by: jesus christ

  6. TheOne10118

    In that case you need to fix your VTs.

  7. SilviaS15Lover

    So what if I have a car that only has a XXXXXXX_VT.class (NOTHING in the src folder)? Can I still change that?

  8. BlueEyedCookie

    SilviaS15Lover: No, that means that the author didn’t provide the source files for the mod. The only way to do this is by editing the src/XXXXXX_VT.java source files. You could try sending a PM to the mod author to ask for the sources but it’s unlikely they will give them out for a mod that doesn’t already have them as they usually have a valid reason for not including them. Thankfully though, most mod authors provide all sources from release (props to you guys)

  9. bitelaserkhalif
    1. the vt are incorrect, game would crash. It should not says car.racers.Duhen; has to fixed.
    2. remove this “//”, java uses em as commentary (thus not get compiled).
    3. some mod don’t had vt, you probably can try to rescript it.

Leave a comment

Members can comment. Log in or create an account.