Page 1 of 1
[?] how to increase view distance?
Posted: 2007-11-15 00:42
by zangoo
how do i increase the view distance on kashan? i have tried changing it in the init file, but it had no effect in game. so i would like to know how to increase the view distance to way above 1000m. i have also tried using the editor but it will not allow me to increase above 1000m.
Posted: 2007-11-15 20:46
by Shiftys1023
I think that you need to change Sky.con
(it's located in same folder as Init)
Posted: 2007-11-16 02:22
by zangoo
yep that did it thanks, and wow kashan looks so nice witha 4000m view distance.
Posted: 2007-11-16 03:20
by Pumkindrvr1
Sounds cool. May I ask, exactly what did you have to change in the sky.con?
Posted: 2007-11-16 03:30
by zangoo
just the bold, i just increased it and done. i didnt notice any change in fps but it could make some people lag.
Code: Select all
Lightmanager.init
Lightmanager.skycolor 0.819608/0.819608/0.819608
Lightmanager.ambientcolor 0.768627/0.74902/0.686275
Lightmanager.sunColor 0.776471/0.729412/0.643137
Lightmanager.sunSpecColor 0.623529/0.623529/0.623529
if v_arg1 == BF2Editor
LightSettings.TerrainSunColor 0.71/0.60/0.51
LightSettings.TerrainSkyColor 0.93/0.92/0.91
LightmapSettings.waterSunIntensity 0.8
else
terrain.sunColor 0.71/0.60/0.51
terrain.GIColor 0.93/0.92/0.91
terrain.waterSunIntensity 0.8
endIf
Lightmanager.staticSunColor 0.37/0.35/0.27
Lightmanager.staticSpecularColor 0.40/0.40/0.25
Lightmanager.staticSkyColor 0.87/0.85/0.82
Lightmanager.singlePointColor 1.00/1.00/1.00
Lightmanager.sunDirection 0.39996/-0.909909/-0.109989
Lightmanager.enableSun 1
Lightmanager.effectSunColor 1.00/1.00/1.00
Lightmanager.effectShadowColor 1.00/1.00/1.00
Lightmanager.defaultEffectLightAffectionFactor 1
Lightmanager.hemilerpbias 1
hemiMapManager.setBaseHemiMap Levels/kashan_desert/groundhemi 0.000000/0.000000/0.000000 2048.000000 500.000000
Lightmanager.treeAmbientColor 0.91/0.89/0.79
Lightmanager.treeSunColor 0.71/0.64/0.49
Lightmanager.treeSkyColor 1.00/1.00/1.00
if v_arg1 == BF2Editor
else
run /Common/Sky/SkyDome/skydome.con
run /Common/Sky/Flare/flaresprite.con
endIf
Skydome.skyTemplate skydome
Skydome.cloudTemplate cloudlayer
Skydome.hasCloudLayer 1
Skydome.hasCloudLayer2 0
Skydome.scrolldirection 0.008/0.004
Skydome.scrolldirection2 0/0
Skydome.cloudTexture common\textures\cloud\cloud04
Skydome.cloudTexture2
Skydome.skyTexture common\textures\sky\kashan_sky01
Skydome.domeRotation 0
Skydome.fadeCloudsDistances 1000/1100
Skydome.cloudLerpFactors 0.5/0.5
Skydome.flareTexture common\textures\sunflare\kubra_sunglow1
Skydome.flareDirection 0.40/-0.91/-0.11
Renderer.fogColor 190.00/171.00/123.00
Renderer.fogStartEndAndBase 700.00/[b]4000.00[/b]/1.00/0.50
Posted: 2007-11-16 05:54
by Pumkindrvr1
Thanks for the reply. It did not work for me. I still only get about 360m view distance on foot soldiers. Could the ingame video settings be the problem? I have everything set to low(due to lag) except distance is at 100%.
Posted: 2007-11-16 13:49
by zangoo
you also have to change the init.con file.
Code: Select all
rem *** Generated by BF2Editor ***
if v_arg1 == BF2Editor
run Heightdata.con
LevelSettings.InitWorld
run Terrain.con BF2Editor
run StaticObjects.con BF2Editor
run Sounds.con
run Sky.con BF2Editor
run Editor/GamePlayObjects.con host
UndergrowthEditable.create
Undergrowth.load Levels\kashan_desert\
run Overgrowth/Overgrowth.con
Overgrowth.editorEnable 1
run AmbientObjects.con BF2Editor
run Water.con
run TriggerableTemplates.con BF2Editor
else
run Heightdata.con
run Terrain.con v_arg2
run Sky.con v_arg2
run CompiledRoads.con
run Sounds.con
run tmp.con v_arg1
Undergrowth.load Levels\kashan_desert\
run Overgrowth/Overgrowth.con
run Overgrowth/OvergrowthCollision.con
run AmbientObjects.con
run Water.con
run TriggerableTemplates.con
run ../../objects/common/spawners/spawners_common.con
run ../../objects/common/spawners/spawners_us.con
run ../../objects/common/spawners/spawners_mec.con
physics.airdensityzeroatheight 5000
endIf
rem ------------------------------- LevelSettings -------------------------------
rem -----------------------------------------------------------------------------
gameLogic.setTeamName 1 "MEC"
gameLogic.setTeamName 2 "US"
gameLogic.setTeamLanguage 1 "MEC"
gameLogic.setTeamLanguage 2 "English"
gameLogic.setTeamFlag 0 "flag_neutral"
gameLogic.setTeamFlag 1 "flag_mec"
gameLogic.setTeamFlag 2 "flag_us"
gameLogic.setKit 1 0 "mec_Specops" "mec_light_soldier"
gameLogic.setKit 2 0 "us_Specops" "us_light_soldier"
gameLogic.setKit 1 1 "mec_Rifleman" "mec_heavy_soldier"
gameLogic.setKit 2 1 "us_Rifleman" "us_heavy_soldier"
gameLogic.setKit 1 2 "mec_Engineer" "mec_heavy_soldier"
gameLogic.setKit 2 2 "us_Engineer" "us_heavywhite_soldier"
gameLogic.setKit 1 3 "mec_Medic" "mec_light_soldier"
gameLogic.setKit 2 3 "us_Medic" "us_light_soldier"
rem -----------------------------------------------------------------------------
gameLogic.setBeforeSpawnCamera -61/67/718 138/18/0
if v_arg1 == BF2Editor
LevelSettings.CustomTextureSuffix ""
else
texturemanager.customTextureSuffix ""
endIf
rem -----------------------------------------------------------------------------
GameLogic.MaximumLevelViewDistance [b]4000[/b]
rem -----------------------------------------------------------------------------
gameLogic.setDefaultNumberOfTicketsEx 16 1 100
gameLogic.setDefaultNumberOfTicketsEx 16 2 100
gameLogic.setDefaultNumberOfTicketsEx 32 1 600
gameLogic.setDefaultNumberOfTicketsEx 32 2 600
gameLogic.setDefaultNumberOfTicketsEx 64 1 600
gameLogic.setDefaultNumberOfTicketsEx 64 2 600
gameLogic.setDefaultNumberOfTicketsEx 128 1 50
gameLogic.setDefaultNumberOfTicketsEx 128 2 50
gameLogic.setDefaultTimeToNextAIWave 8
gameLogic.setTicketLossAtEndPerMin 1000
gameLogic.setTicketLossPerMin 1 10
gameLogic.setTicketLossPerMin 2 10
rem -----------------------------------------------------------------------------
rem -----------------------------------------------------------------------------
renderer.globalStaticMeshLodDistanceScale 1
renderer.globalBundleMeshLodDistanceScale 1
renderer.globalSkinnedMeshLodDistanceScale 1
gameLogic.setTeamDropVehicle 1 "jep_vodnik"
gameLogic.setTeamDropVehicle 2 "usjep_hmmwv"
Posted: 2007-11-16 15:55
by Pumkindrvr1
That did it. Really cool to be able to snipe at 1000 meters. Of course, just my luck it lages real bad at 4000. 1500 is just playable. And I thought I had a decent system, 2.8g/256video/2gbmem.
Thanks for your help!
Posted: 2007-11-16 16:50
by Masaq
2Gb of RAM is about the minimum reccomended for PR, to be honest- though I doubt even 4Gb would help with 4km view distances - there'd just be too much for most systems to do.
Posted: 2007-11-16 16:53
by supahpingi
Plz dude take some screens and make us all happy

Posted: 2007-11-16 17:37
by Pumkindrvr1
Posted: 2007-11-16 20:32
by zangoo
what are your settings at? i cant play at high if i am hosting the server as a lan game, run out of ram. but i dont lag at all and i have 2gb ram. my freind says his runs fine, and i would rather have a 4000m view distance then all my settings on high. but me and him were making shots at 1600m, we could have gone longer but the bullet only last for 2 sec and it seemed that it would not make it past 1650m.
here are the screen shots.
http://s205.photobucket.com/albums/bb58/zangoo/
Posted: 2007-11-16 22:23
by supahpingi
Can somebody tell me how to do this?
Im in my BF2 folder and then?
Posted: 2007-11-16 22:59
by zangoo
note that this will not let you play on line untill you set it back.
go to C:\Program Files\EA GAMES\Battlefield 2\mods\pr\levels\kashan_desert\server
in the server.zip there should be a file called init.con, open it.
channge this line
GameLogic.MaximumLevelViewDistance 1000
to this
GameLogic.MaximumLevelViewDistance 4000
save, if it says that it cant save then save it some where and drag it into the server.zip, it should ask to replace it, say yes.
now go into the server.zip and there should be a file called sky.con
there is a line that looks like this
Renderer.fogStartEndAndBase 700.00/980.00/1.00/0.50
change it to this
Renderer.fogStartEndAndBase 700.00/4000.00/1.00/0.50
now you can not play on line if you do this.
hope that helps.
Posted: 2007-11-17 02:02
by zangoo
also if you are on kashan and want to use a 50 cal on a tank to kill some one then you will haev to increase the bullet like time, cus the bullets right now cant go longer then 1600m, also if you increase the zoom on a sniper to 0.01 then 1600m shots can be done but are kinda hard, and you could never hit a moving target at that range. it takes like 2 sec for the bullet to go the far.
Posted: 2007-11-17 09:23
by Pride
If your gonna be editing the map files, which is fine for offline use, i'd recommend making a duplicate of your bf2/mods/pr folder and calling it pr_edit or something.
That way, you can save the normal one for playing online, and mess around making changes with the _edit one, and you wont get kicked if you forget to change something back.

Posted: 2007-11-17 14:55
by zangoo
well after me and my freind have been playing around with the changes we have made online feels unrealistic, well the jets and stuff.
Posted: 2007-11-17 16:10
by supahpingi
Is there a way to make it server sided or something?
Posted: 2007-11-17 16:22
by zangoo
well you would just have to edit the files for the server, but an easy way is to just host a lan game. but you have to move all of you md5 files to the readme in the pr folder, so that people can connect.