Help with a small editing of scripts

Post » Wed Dec 14, 2011 5:20 pm

Hello
Some time ago I came across a wonderful little mod called "Oblivion Cities/ Towns FPS Optimiser" by NMC, this helped me alot with the low fps in the cities. Since then I have bought a better PC and would like to adjust/edit the scripts in this mod (for personal use only!).

I have the latest OBSE 0.20 along with my patched Oblivion+SI, I start up the Construstion set+OBSE and try to edit the script that changes Oblivion.ini settings depending on which town your entering or leaving.
The scripts work ingame and do what they should, but I only think they have to low values on some ini-parameters that I want to raise a little now with my new PC.

The script look like this:

-----------------------------------------------------------------
scriptname ImperialCityHiSet


float fQuestDelayTime
Begin GameMode
set fQuestDelayTime to ( 0.01 )

if ( player.GetInWorldspace ICArboretumDistrict == 1)
; ###############################
; ## EXPLORING ICArboretumDistrict ##
; ###############################
con_SetINISetting "fSpecularLOD2:Display" 300.0000
con_SetINISetting "fSpecularLOD1:Display" 0.0000
con_SetINISetting "iActorShadowCountInt:Display" 4
con_SetINISetting "iActorShadowCountExt:Display" 1
con_SetINISetting "fLODFadeOutMultActors:LOD" 3.6000
con_SetINISetting "fLODFadeOutMultItems:LOD" 2.0000
con_SetINISetting "fLODFadeOutMultObjects:LOD" 3.5000
con_SetClipDist 18500 ; distance at which clipping starts
; ###############################
endif

elseif ( player.GetInWorldspace ICArenaDistrict == 1)
; ###############################
; ## EXPLORING ICArenaDistrict ##
; ###############################
con_SetINISetting "fSpecularLOD2:Display" 300.0000
con_SetINISetting "fSpecularLOD1:Display" 0.0000
con_SetINISetting "iActorShadowCountInt:Display" 4
con_SetINISetting "iActorShadowCountExt:Display" 1
con_SetINISetting "fLODFadeOutMultActors:LOD" 3.6000
con_SetINISetting "fLODFadeOutMultItems:LOD" 2.0000
con_SetINISetting "fLODFadeOutMultObjects:LOD" 3.5000
con_SetClipDist 18500 ; distance at which clipping starts
; ###############################
endif

elseIf (player.GetInWorldspace ICElvenGardensDistrict == 1)
; ###################################
; ## EXPLORING ICElvenGardensDistrict ##
; ###################################
con_SetINISetting "fSpecularLOD2:Display" 300.0000
con_SetINISetting "fSpecularLOD1:Display" 0.0000
con_SetINISetting "iActorShadowCountInt:Display" 4
con_SetINISetting "iActorShadowCountExt:Display" 1
con_SetINISetting "fLODFadeOutMultActors:LOD" 3.6000
con_SetINISetting "fLODFadeOutMultItems:LOD" 2.0000
con_SetINISetting "fLODFadeOutMultObjects:LOD" 3.5000
con_SetClipDist 18500 ; distance at which clipping starts
; ###############################
endif

elseIf (player.GetInWorldspace ICImperialPrisonDistrict == 1)
; ###################################
; ## EXPLORING ICImperialPrisonDistrict ##
; ##################################
con_SetINISetting "fSpecularLOD2:Display" 300.0000
con_SetINISetting "fSpecularLOD1:Display" 0.0000
con_SetINISetting "iActorShadowCountInt:Display" 4
con_SetINISetting "iActorShadowCountExt:Display" 1
con_SetINISetting "fLODFadeOutMultActors:LOD" 3.6000
con_SetINISetting "fLODFadeOutMultItems:LOD" 2.0000
con_SetINISetting "fLODFadeOutMultObjects:LOD" 3.5000
con_SetClipDist 18500 ; distance at which clipping starts
; ###############################
endif

elseIf (player.GetInWorldspace ICMarketDistrict == 1)
; ###############################
; ## EXPLORING ICMarketDistrict ##
; ###############################
con_SetINISetting "fSpecularLOD2:Display" 300.0000
con_SetINISetting "fSpecularLOD1:Display" 0.0000
con_SetINISetting "iActorShadowCountInt:Display" 4
con_SetINISetting "iActorShadowCountExt:Display" 1
con_SetINISetting "fLODFadeOutMultActors:LOD" 3.6000
con_SetINISetting "fLODFadeOutMultItems:LOD" 2.0000
con_SetINISetting "fLODFadeOutMultObjects:LOD" 3.5000
con_SetClipDist 18500 ; distance at which clipping starts
; ###############################
endif

elseIf (player.GetInWorldspace ICTalosPlazaDistrict == 1)

; #################################
; ## EXPLORING ICTalosPlazaDistrict ##
; ################################
con_SetINISetting "fSpecularLOD2:Display" 300.0000
con_SetINISetting "fSpecularLOD1:Display" 0.0000
con_SetINISetting "iActorShadowCountInt:Display" 4
con_SetINISetting "iActorShadowCountExt:Display" 1
con_SetINISetting "fLODFadeOutMultActors:LOD" 3.6000
con_SetINISetting "fLODFadeOutMultItems:LOD" 2.0000
con_SetINISetting "fLODFadeOutMultObjects:LOD" 3.5000
con_SetClipDist 18500 ; distance at which clipping starts
; ###############################
endif

elseIf (player.GetInWorldspace ICImperialPalace == 1)

; ###############################
; ## EXPLORING ICImperialPalace ##
; ###############################
con_SetINISetting "fSpecularLOD2:Display" 300.0000
con_SetINISetting "fSpecularLOD1:Display" 0.0000
con_SetINISetting "iActorShadowCountInt:Display" 4
con_SetINISetting "iActorShadowCountExt:Display" 1
con_SetINISetting "fLODFadeOutMultActors:LOD" 3.6000
con_SetINISetting "fLODFadeOutMultItems:LOD" 2.0000
con_SetINISetting "fLODFadeOutMultObjects:LOD" 3.5000
con_SetClipDist 18500 ; distance at which clipping starts
; ###############################
endif

elseIf (player.GetInWorldspace ICImperialPalaceMQ16 == 1)

; ###################################
; ## EXPLORING ICImperialPalaceMQ16 ##
; ##################################
con_SetINISetting "fSpecularLOD2:Display" 300.0000
con_SetINISetting "fSpecularLOD1:Display" 0.0000
con_SetINISetting "iActorShadowCountInt:Display" 4
con_SetINISetting "iActorShadowCountExt:Display" 1
con_SetINISetting "fLODFadeOutMultActors:LOD" 3.6000
con_SetINISetting "fLODFadeOutMultItems:LOD" 2.0000
con_SetINISetting "fLODFadeOutMultObjects:LOD" 3.5000
con_SetClipDist 18500 ; distance at which clipping starts
; ###############################
endif

elseIf (player.GetInWorldspace ICTheArcaneUniversity == 1)
; ########################################
; ## EXPLORING ICTheArcaneUniversity ##
; ########################################
con_SetINISetting "fSpecularLOD2:Display" 300.0000
con_SetINISetting "fSpecularLOD1:Display" 0.0000
con_SetINISetting "iActorShadowCountInt:Display" 4
con_SetINISetting "iActorShadowCountExt:Display" 1
con_SetINISetting "fLODFadeOutMultActors:LOD" 3.6000
con_SetINISetting "fLODFadeOutMultItems:LOD" 2.0000
con_SetINISetting "fLODFadeOutMultObjects:LOD" 3.5000
con_SetClipDist 18500 ; distance at which clipping starts
; ###############################

endif
endif
endif
endif
endif
endif
endif
endif
endif
end GameMode

-----------------------------------------------------------------------------

Every time I try to save I get a error msg saying: OBSE "Invalid Begin/End block structure on line 23" (?)
This happens when I only want to change for example:
con_SetINISetting "iActorShadowCountExt:Display" 1.....to.....con_SetINISetting "iActorShadowCountExt:Display" 3

I have tried to edit the script using only CS (not CS+OBSE), but CS doesn't know the variable "SetClipDist" (?)
Can someone please help me with this problem?

/Alldes
User avatar
Anthony Rand
 
Posts: 3439
Joined: Wed May 09, 2007 5:02 am

Post » Wed Dec 14, 2011 3:04 am

There shouldn't be all those endif's at the end, cut it down to only one there.
User avatar
Tamika Jett
 
Posts: 3301
Joined: Wed Jun 06, 2007 3:44 am

Post » Wed Dec 14, 2011 8:27 am

There shouldn't be all those endif's at the end, cut it down to only one there.


Sorry, but it didin't help?!
The script is working flawless ingame, but the editor (+OBSE) wont let me change a single value, without the samme error-msgs.
User avatar
Lillian Cawfield
 
Posts: 3387
Joined: Thu Nov 30, 2006 6:22 pm

Post » Wed Dec 14, 2011 12:51 pm

Oh, whoops... there's also an endif after each block! Those also have to go. There should only be one endif in the entire script, right before the end.
User avatar
Nathan Hunter
 
Posts: 3464
Joined: Sun Apr 29, 2007 9:58 am

Post » Wed Dec 14, 2011 7:02 am

Oh, whoops... there's also an endif after each block! Those also have to go. There should only be one endif in the entire script, right before the end.


Thank you so much! :smile:
User avatar
Jimmie Allen
 
Posts: 3358
Joined: Sun Oct 14, 2007 6:39 am


Return to IV - Oblivion