Forum
Questions, builds, help and the odd argument. The mods and guides are out front.
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?
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 😛
It come in handy for who makes car mods, especially for fixing the driver position or the car weight distribution
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 🙂
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)
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?
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)
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.
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
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.
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.
March 4 is the latest one
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...
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.
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.