request: allow my mod to decrease TerrainDistance

Discuss coding questions, pull requests, and implementation details.
User avatar
Nystul
Posts: 873
Joined: Mon Mar 23, 2015 8:31 am

request: allow my mod to decrease TerrainDistance

Postby Nystul » Fri Apr 14, 2017 9:56 am

hi interkarma!
would it be possible to allow my DistantTerrain mod to decrease StreamingWorld's TerrainDistance parameter on its startup.
I am pretty far with converting my mod.
when it is no longer part of the daggerfall-unity repository there is no longer the special handling you put in in case the checkbox for the mod is checked (since there will no longer be that checkbox and associated dependent code).

So either we request the users of the mod to decrease it manually (since the default of 3 is too much for most systems with the distant terrain present) or we allow the mod to decrease it by 1.

So if you agree to allow the mod to decrease it, there would be the need for a function/property to be called from my mod.

what do you think?
User avatar
Interkarma
Posts: 1979
Joined: Sun Mar 22, 2015 1:51 am

Re: request: allow my mod to decrease TerrainDistance

Postby Interkarma » Sat Apr 15, 2017 2:42 am

That's all good mate!

Don't forget we do something along these lines already in StartGameBehaviour.ApplyStartSettings(). The StreamingWorld.TerrainDistance property is reduced by 1 (down to a minimum of 1) when increased terrain distance addon is active. This can be removed once your mod is finalised.

From the mod, you should be able to do something very similar to ApplyStartSettings(). Let me know if any help needed. :)
User avatar
Nystul
Posts: 873
Joined: Mon Mar 23, 2015 8:31 am

Re: request: allow my mod to decrease TerrainDistance

Postby Nystul » Sun Apr 16, 2017 6:56 pm

implemented it as it was done before, thx for pointing that out to me ;)

Return to “Developer Discussion”

Who is online

Users browsing this forum: No registered users and 1 guest