Forum
Questions, builds, help and the odd argument. The mods and guides are out front.
Hinata23 wroteBy adding other cars[..]
Hmm I'm sorry to be this dull but I still dont really get what you want to do
but if I get it right you want to mix up the cars appearing in career mode.
Well the order of the ladder (the night races) is set when you start a new career the cars are sorted by their max horse power.
In the tournaments usually you get opponents that are near you in the Valocity ladder (or ones who are at the top of your club) this you can mix up:
First make sure you installed the latest patch (LINK) after that you can edit the sl\Scripts\game\src\GameLogic.java:
on line 31 at the end there is a literal (5) if you are this close to be the top racer the game will instead of selecting from the ladder will generate random opponents for you if you set this to like 400 you will get random opponents always (in the tournaments).
The same should be done on line 143
Sorry if I missed your point again :/
No, it wasn't it. I'm bad at explaining. It's my idea to put cars into the game that are not there. I'd like to put my own car mods into the game. But if I do, they'll be way too cheap to buy and likely OP. I would also like to remove some cars (because of terrible models) but I don't know if it would kinda break the game. Hope I got it more understandable right now ^^'
Bigg Boss93 wrote[..]shadowmaps just work right[..]
Ok lets stick to one model and we can figure this out:
Put the unmerged model: lr_smod_toolchest_02_00.scx ingame as you would the merged (also how are you doing that as a RenderRef from script?)
using the lr_smod_toolchest_02_00_SM.tga as the second texture and give me picture.
When I do it I get this🙁disabled everything to avoid incompatibility with reshade or anything)
In the rpk I tried removing the flags line also tried setting it to 2048.000, 459400.000, 1160.000 it always looks like this (and this is how it should look when you check the alpha channel for the corresponding secondlayer texture) Maybe you can force slrr to combine the textures by multiplying and that is what you are doing but I have no clue how.
Added 14 minutes later:
Hinata23 wrotemy own car mods[..]
It is a mighty quest doing that but it is far from impossible so firstly you would need to stick to a one rpk out one rpk in method so that you wont get over the rpk limit.
The rpk load-order is burnt into the GameLogic.LoadInOrder() so you will have to modify that function to get a different rpk to load.
I reference racer rpks directly in these classes: (the list may be incomplete)
ExtraPartCatalogLookup
PartsCache
RacerLookup
WheelsCache
You would have to remove the references from these calsses if you want to remove a car.
In the Valocity.java I use the RacerLookup class to get the dummy car definition for cars to place as dummies into the city during career you would have to edit this part because there is not much error checking generally you should integrate the car to the RacerLookup class (I get the default HP in there aswell)
Also the game expects that all the cars define the following slots:
slot [..] 572 ; Rear Neon
slot [..] 573 ; Left Neon
slot [..] 574 ; Right Neon
slot [..] 575 ; Front Neon
slot [..] 1323 ; RoofScoop
slot [..] 1324 ;DecorMuffel_1
slot [..] 1325 ;DecorMuffel_2
slot [..] 5024 ; FrontLeftRollPrevention
slot [..] 5025 ; FrontLeftRollPrevention
slot [..] 5026 ; FrontLeftRollPrevention
slot [..] 5027 ; FrontLeftRollPrevention
I think after these the game should accept the new car but if not I'll would probably be able to point you to the right direction from an errorlog
After a small research i can tell you that it's using(when you merge all the toolboxes in one file) the texture lr_smod_toolchest_05_00_01_SM.tga instead than one for each toolbox(as it is when they're not merged).
So the tool isnt, as i said before, reindexing the textures.
I'm gonna do some hex editing and see if i manage manually reindexing, in order to make them follow the correct loading order, and let you know what i come up with.
ps: it does index properly the diffuse textures but not the self-illumination ones, it only picks the last one(i have checked and verified that it happens exactly the same in all the merged files) and applies it to all the materials.
Added 21 minutes later:
Nevermind, i'm just struggling to understand V3's structure, besides from reflection amount, specular level, specular color and material color... fml
Added 10 minutes later:
I went on with tests, i only kept the ground mesh and the merged toolchest one, changed the loading order, it was supposed to show different textures ingame but nope, it only works if i change the 2nd texture in the loading order, let me show you
Added 9 minutes later:
Stock loading order after merging:
pre
loading order after first edit:
pre
loading order after second edit:
pre
So in short, it isnt re-indexing the self-illumination textures, it's only applying one for all the materials in the scene(contrary to what i said before, it's the first from the top, the lr_smod_toolchest9_SM.tga)
Sorry if i'm spamming your thread, thanks for the help
Added 1 minute later:
I wish V3 materials had the same hex coords as V4 ones, you know, the 06 ##(where ## stands for the number of the texture in the loading order, 00 is the first and so on)
Ok I uploaded the original again I think in my definition the self illumination texture index would be one of the "unkown" ones i reapplied the reindexing to those aswell in the link (LINK) see if that does what it should.
It's exactly the same as before >.<
Sry didnt upload... router dropped me. Now its up.
juhuu 🙂
Added 36 minutes later:
I addressed a performance related regression error in the last reshade concerning the blurring of the environment map.
(Same links as always)
I dont know exactly how to explain it but is it possible to implement in reshade a function to use cubemaps instead of envmaps or real time reflections? (i have no idea how these things works, im sorry)
Proper reflections are quite hopeless through reshade you wont get much further than the current implementation (GTA SA is the example here, people (very competent people) have been modding that game for more than a decade and for the reflection model through post process injection it is using the same (object-filtered and transformed backbuffer as a spherical environment map) as we are here.)
Cubic environment maps I think would be possible to implement thou I dont really know if there is a fixed function pipeline (because slrr uses that the most basic of ways to use d3d9) way of doing those. It would surely require to modify the vertex format which can lead to a whole lot of complications, but it would be possible .. I think dont quote me on that :/
Added 3 minutes later:
But hey 🙂 the current reflections are technically real time
I know its not much of a consolation though
Thanks again for your massive help, it is almost ready(after 3ish years lmao); /d/2-show-off-your-virtually-stanced-rides-slrr/43211
Noproblem glad it worked out, very nice map there, those precalculated shadows are really doing their thing.
This version of SLRR is significant because it has loads of mods and doean't crash, right? If so did you edit the game or the cars/mods themselves to achive this? I'm wondering because if this is the most stable version of SLRR I would clean it and mod it to my taste. Or maybe you and BB93 could make a SLRR that combines the best stuff from your's and his versions?
bb93 x amilmand fuck yesssss
