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
amilmand
(@amilmand_18634)
Reputable Member
Joined: 11 years ago
Posts: 259
Topic starter  

Yeah it's quite pretty, the garage is coming along very nicely!
Has the reshade texture corruption been resolved by the last fix?



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

Havent checked yet, i should've uploaded the map for you to check it too but i was trying to make these particles as nice as possible and so far i havent managed to get 100% the result i wished yet.

Will definitely send you soon(and try the update too)



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

Alright no rush just asking



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

I updated the file under the SlrrExhaustive patch it now includes the "new" selfreflection avoidance,
also somehow the physics mesh of the front right window of the HellcatCharger I really have no clue how but broke the game in a very peculiar way...
on the car.wakeUp() the car would disappear leaving the driver floating in the air, also before the wakeUp() there would be no shadows rendered for the whole hierarchy (the car)...
Nervertheless I fixed it now that window uses the others physics mesh...
This is very strange as it isn't caused by the reashade or the exe manipulation but it worked flawlessly before and I have not changed any of the files related since a long time and I cant really see anything bad with that particular mesh even compared to the left one which the game can handle (they are practically the same...)
I dont know.
(I tried all the other cars and there was no other example of this behaviour)

(SlrrExhaustive Patch Link)



   
ReplyQuote
sans-sns
(@sans-sns_2922)
New Member
Joined: 14 years ago
Posts: 3
 

When dynamic reflection is on my game work's kinda slow. Is there any tweaks that i can do to make it run better?



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

You want to set the DynamicReflection_DownsampleFactor to 1
the other one that can have an effect is the DynamicReflection_HaltAfterFirstReflectingSurface
(this does not do what the name indicates it copies a buffer the size of your resolution when the game signals reshade that it is done drawing the map buut this can actually happen multiple times a frame which will result in more than one copy that can also slow it down a bit but with no filtering it should not be that significant)



   
ReplyQuote
sans-sns
(@sans-sns_2922)
New Member
Joined: 14 years ago
Posts: 3
 

Thank's a lot, DynamicReflection_DownsampleFactor solve my problem. Great mod=)



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

Is there a way to force the game to perform a garbage collect through Java? I have found that basically 100% of my crashes these days happen in the rims section of the catalog. I am working on lowering the memory ceiling for meshes and textures back to where it's just short of crashing (I previously increased it significantly), but it would be good to be able to have the game do some preventative work as well.



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

Yes there is (kind of.. this also has its limitations but: )
If you set the cfg_mem_texture_max and the cfg_mem_vertex_max to 0 (the essential meshes and textures wont get unloaded but what is not needed will immediately be unloaded (in one frame so this will cause a short freeze when called)) after one or two seconds (or on exiting the catalogue in your case) you should set it back to the original value though.
You can set these through the RawEdit.class from the SlrrExhasutiveBits (you will need the patched exe).
(If you have reshade you can set these in the reflectionsettings to try out the effect it has on memory)

There is one other interesting setting the cfg_mem_instance_max this is the "max" number of script instances to keep although this does not get cleared in one frame but will instead trickle down at a lower speed (100-200 in a second).

You have mentioned that you have a lot of rims in the catalogue this raises another problem which is if you load a script in game (a class file) by instantiating a class which is defined in said file the memory reserved for the class definition can not be cleaned up. This can be a problem as when you open a rim page all of the rims on that page (by page here I mean the size category (by default)) get loaded.

As I'm already at it (this isn't directly connected to your question but it's new knowledge for me perhaps somebody else will also find it useful as it is related to the "how to not crash slrr" topic);
Unkown(not present on the given address) rpk references in scripts or in the external references header in a rpk file will reserve a slot from the 255 max rpkslots in slrr.
This means if you have a car mod that tries to make the car compatible with a lot of engines by referencing the engines rpks, will always reserve an index for each rpk referenced regardless of the given engine-rpk being installed or not.
255 rpks seems a lot but if you consider that even if a script mentions an rpk with a reference in a function that never get run will still count towards the max this runs out sooner than expected.



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

Also with reshade you can call two functions from anywhere that doesn't need to do anything (reshade monitors script calls) that do this cleanup.
engine_help_ForceMinAllMemLimits() this forces the vertex and texture mems to 0
engine_help_UnForceMinAllMemLimits() this unforces them.

But I think your problem will be the overwhelming amount of scripts (for that in SlrrExhaustive I have a big class with all the relevant properties of the wheels (renderRefID, price, description, width...) hardcoded so the game does not have to load the class just for browsing(of course this needed addition work in the catalog.class), only if you actually get the rim which is alright during casual play noone will click down the needed amount of rims to actually make a difference in memory usage)



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

Thanks for the help.

# amilmand :
This means if you have a car mod that tries to make the car compatible with a lot of engines by referencing the engines rpks, will always reserve an index for each rpk referenced regardless of the given engine-rpk being installed or not.

Does this mean it's actually better to do the engines the way Bigg Boss93 has been doing them lately, where each engine just has a "compatible" line with all of the base engines?

Also, I can tell that the problem was definitely the meshes and textures, because lowering the memory ceilings made the problem go away completely. Another thing that helped was waiting between pages rather than clicking through rapidly, presumably so that the engine had some time to throw out old files.



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

"compatible" line with all of the base engines

Yes it is preferable to only reference stock rpks if at all possible.

RedCarDriver wrote

time to throw out old files

You could set the limit to 0 when in the catalogue it would force the cleaning of meshes. (have you tried? it didnt have any adverse effects on my end but I may have been lucky)



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

# RedCarDriver :
Does this mean it's actually better to do the engines the way Bigg Boss93 has been doing them lately, where each engine just has a "compatible" line with all of the base engines?

# amilmand :
Yes it is preferable to only reference stock rpks if at all possible.

Spoiler:

HA, BITCH PLEASE!




   
ReplyQuote
gorgoil
(@gorgoil_3248)
Member Moderator
Joined: 14 years ago
Posts: 219
 

Hey Amilmand, I got a huge question, I've created a particle to be placed in car, but when the the activator of the particle activates it, it leaves a trace of the particle which means the particle is always creating where the car passed by and not only where the car is! I've done it on animate section to get the coordinates in constant update. I've tried too to set the parent of particle to player but when I did it the particle doesn't shows up!



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

Yes the parent of the particle source should be the map (which is in turn the parent of any car visible on the map so you should be able to get the map reference from the cars code with a getParent call).
You should only create the particle source once and keep a reference to it in the cars code, the car is notified of the map change through a setParent() call
you should override this function and recreate the particle system, and the particle effect if the car is put to another map.
On the animate block or whatever other thread you can update the previously created particle effect by its name if you have created it with a call

particleRef.setSource("particle1", new Vector3(0,1.0,0), 0.01, 0.3, new Vector3(0,4.0,0), 0.0, 1.5, 1000.0, null);

subsequent calls with that name (particle1) will not create a new source but will update the properties of the already present one.

If you'd like (or you think you are stuck on something) post the vehicle code or what you created and I'm sure we can figure it out.



   
ReplyQuote
Page 10 / 36
Share: