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.

Notifications
Clear all

Amilmand WIP

526 Posts
57 Users
0 Reactions
282.9 K Views
Holy_Shit_Man
(@holy_shit_man_3240)
Member Moderator
Joined: 14 years ago
Posts: 2251
 

Hey, is this possible to make some sort of fast loader for SLRR that would go instantly into last used career instead of showing main menu?



   
ReplyQuote
amilmand
(@amilmand_18634)
Reputable Member
Joined: 11 years ago
Posts: 259
Topic starter  

Thats not a bad idea ALAN.
For that I added two new functions to the File class though they are pretty hmm peculiar.
I'm calling the GetFileTime API and returning the low and high DWORD of the LastWriteTime but these values are unsigned and the slrr script engine only supports signed integers so the return values are strange though not impossible to use (I added a "continue last saved carrier" button to the SlrrExhaustive patch link)
If you have two unsigned integers interpreted as signed ones their arithmetic changes significantly for example a function deciding if a > b given the two numbers are badly interpreted would look like:

int BadReinterpretGreater(int a, int b)
{
	if(a >= 0 && b < 0)
		return 0;
	if(a < 0 && b >= 0)
		return 1;
	if(a > b)
		return 1;
	return 0;
}

But this is enough to find the most recent saved file so I stopped here.
I also added these functions to the SlrrExhaustive Bits
although I doubt it will be used frequently 😛



   
ReplyQuote
adnan54
(@adnan54_2457)
Reputable Member
Joined: 14 years ago
Posts: 252
 

It come in handy for who makes car mods, especially for fixing the driver position or the car weight distribution



   
ReplyQuote
Stevo2
(@stevo2_15689)
Estimable Member
Joined: 12 years ago
Posts: 99
 

Good point, Adnan .. also for setting up car wheelbase and track dimensions when fine scaling the car.

Good job, Amilmand... your contribution is a huge leap forward for SLRR 🙂



   
ReplyQuote
Holy_Shit_Man
(@holy_shit_man_3240)
Member Moderator
Joined: 14 years ago
Posts: 2251
 

Downloaded Exhaustive, applied patch... :/

Spoiler:

---
!Script error

Thread: THRD-CREATE
Error: Thread::callMethod: "Ljava.game.MainMenu;PartsCache(I)" not found

java.game.MainMenu:enter (line:35)
java.game.GameLogic:changeActiveSection (line:828)
java.game.GameLogic:<init> (line:360)
java.game.Init:<init> (line:24)

I'm using ReShade version (because as far I can see it's the only updated so far)



   
ReplyQuote
amilmand
(@amilmand_18634)
Reputable Member
Joined: 11 years ago
Posts: 259
Topic starter  

Hmmm which patch?
The downloads on SlrrExhaustive Bits are not for SlrrExhaustive.
For that the patch link is PatchLink

But this error suggests that you somehow have the MainMenu from SlrrExhaustive in a base game
All the links have been updated with the new exe and the new function definitions in the File.java I wont include a MainMenu.java there because it is different for each version of the game.

If you want to add this button (continue last) to some arbitrary MainMenu.java from the MainMenu of SlrrExhaustive copy the CMD_CONTINUE related part and the
BadReinterpretGreater function.

But you can delete that line MainMenu.java line 35.
Thats just there to preload some lookups they will be loaded in first request anyway.
That line should look like:

PartsCache.GetEntry(0);

Why is it looking for the function in the MainMenu class?



   
ReplyQuote
Holy_Shit_Man
(@holy_shit_man_3240)
Member Moderator
Joined: 14 years ago
Posts: 2251
 

I meant SlrrExhaustive Bits, yeah. And I've just noticed the patch is standalone. I've reinstalled the no ReShade version on clean SLRR (BB's) and now I cannot buy any car...

Spoiler:

---
!Script error

Thread: THRD-RUNVMI Honda_S2k_Model_AP1.updatevariables
Error: name cannot be parsed

java.game.parts.rgearpart.reciprocatingrgearpart.Brake:updatevariables (line:42)
java.game.parts.rgearpart.reciprocatingrgearpart.brake.DiscBrake:updatevariables (line:55)
java.game.parts.bodypart.Chassis:updatevariables (line:400)
java.game.cars.Honda_S2k_models:updatevariables (line:26)


   
ReplyQuote
amilmand
(@amilmand_18634)
Reputable Member
Joined: 11 years ago
Posts: 259
Topic starter  

BB's clean version does not have a Honda in it as far as I know so this is not a clean install.
Also the SlrrExhaustive Bits downloads do not modify anything related to this error :/ (not even the chassis.class by default and certainly not the brake classes)
Which version did you use of BB?
I tried this one LINK it works as intended.

Though I suspect you still have SlrrExhaustive mixed in this because the chassis.java I'm fairly certain is from SlrrExhaustive because it is the only one (from the pure MWM chassis.java, stock Slrr chassis.java and the exhaustive one) that has an updatevariables() call on line 400.

The patch (PatchLink) is not standalone it is for the new SlrrExhaustive (1.8).

The Bits versions are fore arbitrary installs.



   
ReplyQuote
Holy_Shit_Man
(@holy_shit_man_3240)
Member Moderator
Joined: 14 years ago
Posts: 2251
 

Exhaustive bits don't do anything with installed cars too, so that's not the case. And I don't even have your game, so... Whatever. I'll stick to vanilla



   
ReplyQuote
amilmand
(@amilmand_18634)
Reputable Member
Joined: 11 years ago
Posts: 259
Topic starter  

Dont give up 🙂
There are some very essential fixes (car deloading from behind the camera, decal crashfix [..]) included in these patches at least use the new exe from one of them.



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

I'm getting a game crash from the d3d9.dll from approximately Feb 21, by the way. If that's not the latest one, I can go download the current one.



   
ReplyQuote
amilmand
(@amilmand_18634)
Reputable Member
Joined: 11 years ago
Posts: 259
Topic starter  

March 4 is the latest one



   
ReplyQuote
Franco
(@franco_4)
Member Admin
Joined: 17 years ago
Posts: 774
 

really love what you acomplished here, and i have a question, i'm a bit rusted with slr, used to mod it, i did lots of rims, and i always wanted a feature.... may be posible....

like a lot of other games do, is it posible for change the mesh of a rim, lets say at certain speed, so this way, we can have motion blur efecto on the wheels, even with the game paused, i think Assetto Corsa does it this way, you have a mesh for when the Wheel is stationary, and once it moves to a certain speed, lets say 10kmph, the mesh switchs for another one which looks blurred, so when you pause the game, the blur on the wheels stay there... dont know if i made myself clear...



   
ReplyQuote
amilmand
(@amilmand_18634)
Reputable Member
Joined: 11 years ago
Posts: 259
Topic starter  

The part class has getMesh/setMesh, getRenderType/setRenderType functions it may be achievable with those but I recall these returning typeIDs with an rpk index of 0xff meaning they are runtime generated but who knows, maybe you can make a part with the wanted visuals and then just use the typeIDs returned by that.
If there is no standard way to do this than I'm afraid it can not be done yet, this would need full understanding of the virtual draw calls and then further more adding some parameters to the hierarchy (so reshade would know which draw calls correspond to the desired meshes and so on), far too advanced compared to the simple hacks I've been doing.



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

Wouldnt a simple check with getspeedsquare, done in multiple steps(for the different speeds), mixed with a renderref with a new mesh' render id do the job?

Kinda like RedCarDriver did for my "Community Rimpack", you can see it in the HK15_WheelWithExtras and HK15_WheelFace javas.



   
ReplyQuote
Page 16 / 36
Share: