@ all mappers: FAQ/Tutorials -1 reply

Please wait...

[BFE]Actionman

FH FAN!

50 XP

1st March 2004

0 Uploads

85 Posts

0 Threads

#431 15 years ago

I have reached a problem: my map won't load. The only thing I changed was the Init.con. Can anyone find something wrong with this init.con file? ShaderManager.setTextureParam envmap bf1942\levels\target_belgiumTextures\ENVMAP_G_.rcm renderer.vertexFogEnable 1 renderer.fogColorVec 0.819608/0.815686/0.803922 renderer.globalLodPercent 1 renderer.globalAmbientColor 0.100000/0.100000/0.100000 renderer.ambientColor 0.150000/0.150000/0.180000 renderer.diffuseColor 0.300000/0.300000/0.300000 renderer.specularColor 0.300000/0.300000/0.300000 renderer.animatedMeshAmbientColor 0.25 shadow.shadowColor 0.400000 textureManager.alternativePath Texture/ENVIROMENT_WINTER textureManager.alternativePath Texture/GENERAL_GER_WINTER_1943 textureManager.alternativePath Texture/GENERAL_US_WINTER textureManager.alternativePath bf1942/levels/target_Belgium/Texture Game.setViewDistance 200 Game.spawnPlayers 1 rem renderer.fogstart -100 rem renderer.fogend 200 rem rem *** Define flags *** rem ObjectTemplate.create Flag BlueFlag ObjectTemplate.team 1 ObjectTemplate.networkableInfo FlagBodyInfo ObjectTemplate.radius 5 ObjectTemplate.TimeToReSpawn 10 ObjectTemplate.addTemplate AnimatedGeFlag ObjectTemplate.create Flag RedFlag ObjectTemplate.team 2 ObjectTemplate.networkableInfo FlagBodyInfo ObjectTemplate.radius 5 ObjectTemplate.TimeToReSpawn 10 ObjectTemplate.addTemplate AnimatedUsFlag game.setTeamSkin 1 GermanSoldier game.setKit 1 0 1German_CloseQuartersMp40 game.setKit 1 1 2German_AssaultK98 game.setKit 1 2 3German_ATPanzerfaust30 game.setKit 1 3 4German_SupportMg42 game.setKit 1 4 5German_EngineerK98 game.setTeamSkin 2 USSoldier game.setKit 2 0 1Us_ClosequartersThompson game.setKit 2 1 2Us_AssaultGarand game.setKit 2 2 3Us_ATBazooka game.setKit 2 3 4US_SupportBar game.setKit 2 4 5US_EngineerM1Carabine rem rem *** Shader Default Color *** rem shaderManager.setDefaultShaderSolidColor 0.2/0.2/0.2 run Init/SkyAndSun run Init/Terrain water.specularEnable 1 water.texLayer1 texture/water07 water.texLayer2 texture/water08 water.normalMap texture/normalMap02 water.scrollDirectionNormalmap 1.000000/1.000000 water.scrollDirection1 1.000000/0.000000 water.scrollDirection2 0.000000/1.000000 water.specularColor 0.700000/0.700000/0.700000 water.scrollLayer1 0.030000 water.scrollLayer2 0.030000 water.scrollNormalmap 0.010000 water.specularStreakFactor 0.001000 water.tileLayer1 0.500000 water.tileLayer2 0.500000 water.tileNormalmap 0.500000 water.lightDirection -0.300000/0.500000/-0.650000 water.color 0.650000/0.600000/0.570000 water.waterAlphaDepth 0.000000 water.waterShallowAlpha 1.000000 water.deepColor 0.300000/0.300000/0.300000 run Sounds/Environment run Sounds/river run objects/objects rem *** Set team 1 *** game.setBeforeSpawnCameraPosition 1 645.400024/75.233002/797.544983 rem *** Set team 2 *** game.setBeforeSpawnCameraPosition 2 645.400024/75.233002/797.544983 game.setLevelCheck 2838733115 Thanks. :)




Englishboy

The Internet ends at GF

50 XP

9th October 2003

0 Uploads

122 Posts

0 Threads

#432 15 years ago

is the "t" in target supposed to be lower case or upper case textureManager.alternativePath bf1942/levels/target_Belgium/Texture




Admiral Donutz Advanced Member

Wanna go Double Dutch?

735,271 XP

9th December 2003

0 Uploads

71,460 Posts

0 Threads

#433 15 years ago

I think that it is caused by a wring texture referance: textureManager.alternativePath bf1942/levels/target_Belgium/Texture

should be:

textureManager.alternativePath ../../bf1942/levels/target_Belgium/Texture

Also try to add sa whit eline where it is by default (paragraphs).

this is how my init.con looks (use it as an example):

ShaderManager.setTextureParam envmap bf1942\levels\Battle_of_Arnhem\Textures\ENVMAP_G_.rcm rem renderer.globalLodPercent 1 rem renderer.globalAmbientColor .1/.1/.12 rem renderer.ambientColor .12/.12/.12 rem renderer.diffuseColor .3/.28/.25 rem renderer.specularColor .3/.3/.3 rem renderer.vertexFogEnable 1 rem renderer.fogColorVec 0.50/0.48/0.52 rem renderer.animatedMeshAmbientColor 0.2

renderer.globalAmbientColor 0.098039/0.098039/0.117647 renderer.ambientColor 0.117647/0.117647/0.117647 renderer.diffuseColor 0.270588/0.270588/0.270588 renderer.specularColor 0.298039/0.298039/0.298039 renderer.vertexFogEnable 1 renderer.fogColorVec 0.486275/0.482353/0.513726 renderer.animatedMeshAmbientColor 0.2

textureManager.alternativePath ../../bf1942/levels/Battle_of_Arnhem/CustomTextures textureManager.alternativePath Texture/SPECIAL_GER_EUROPE_1944_FALL textureManager.alternativePath Texture/GENERAL_BRIT_EUROPE textureManager.alternativePath Texture/ENVIROMENT_BUILDINGS_ALTERNATIVE

shadow.shadowColor 0.550000

Game.setViewDistance 400 Game.spawnPlayers 1 renderer.fogstart 0 renderer.fogend 380

ObjectTemplate.create Flag BlueFlag ObjectTemplate.team 1 ObjectTemplate.networkableInfo FlagBodyInfo ObjectTemplate.radius 5 ObjectTemplate.TimeToReSpawn 10 ObjectTemplate.addTemplate AnimatedGeFlag

ObjectTemplate.create Flag RedFlag ObjectTemplate.team 2 ObjectTemplate.networkableInfo FlagBodyInfo ObjectTemplate.radius 5 ObjectTemplate.TimeToReSpawn 10 ObjectTemplate.addTemplate AnimatedUkFlag

game.setTeamSkin 1 GermanSoldier game.setKit 1 0 1German_CloseQuartersMp40 game.setKit 1 1 2German_AssaultK98 game.setKit 1 2 3German_ATPanzerfaust100 game.setKit 1 3 4German_OfficerMp40 game.setKit 1 4 5German_EngineerK98

game.setTeamSkin 2 BritishSoldier game.setKit 2 0 1GB_CloseQuartersStenMk5 game.setKit 2 1 2GB_AssaultNo4 game.setKit 2 2 3GB_ATPiat game.setKit 2 3 4GB_SupportBren game.setKit 2 4 5GB_EngineerNo4

game.setLevelCheck 2242588848 game.setActiveCombatArea 0 0 2048 2048

shaderManager.setDefaultShaderSolidColor 0.2/0.2/0.2

run Init/SkyAndSun run Init/Terrain

game.assaultTeam 2

water.specularEnable 1 water.texLayer1 texture/water07 water.texLayer2 texture/water08 water.normalMap texture/normalMap02 water.scrollDirectionNormalmap 1/1 water.scrollDirection1 1/0 water.scrollDirection2 0/1 water.specularColor 0.75/0.7/0.65 water.scrollLayer1 0.03 water.scrollLayer2 0.03 water.scrollNormalmap 0.01 water.specularStreakFactor 0.001 water.tileLayer1 0.5 water.tileLayer2 0.5 water.tileNormalmap 0.5 water.lightDirection -0.3/0.5/-0.65 water.color 0.6/0.6/0.63 water.deepColor 0.6/0.6/0.63 water.waterAlphaDepth 0 water.waterShallowAlpha 1

run objects/objects




southy

The Internet ends at GF

50 XP

30th July 2004

0 Uploads

126 Posts

0 Threads

#434 15 years ago

Can you add objects in Ed42 or should you add them with BC and then just edit textures in ed since i cant seem to figure out how or from where to add them, and ive been meddling for the past 4 hours.




Kingrudolf

Fan FH Mapper

50 XP

9th October 2003

0 Uploads

1,345 Posts

0 Threads

#435 15 years ago

I don't think you need to change the texture manager line. I think it's the "run sounds/river" that's bugging the map. Try deleting the line and try loading again.




Admiral Donutz Advanced Member

Wanna go Double Dutch?

735,271 XP

9th December 2003

0 Uploads

71,460 Posts

0 Threads

#436 15 years ago

adding object in ed42 is simple, go to the little icon shaped as a box on the centre bootom of ed42 (i'm doing this from memory so i could be wrong). A window should appear that would allow you to search for object, turn the "use list"option off to see FH objects aswell (if you extracted them that is) and place them on your map. BC's object placement is better though.




[BFE]Actionman

FH FAN!

50 XP

1st March 2004

0 Uploads

85 Posts

0 Threads

#437 15 years ago

Actually I think I just noticed what went worng.... ShaderManager.setTextureParam envmap bf1942\levels\target_belgiumTextures\ENVMAP_G_.rcm Notice that there is no "\" between belgium and textures I'll still try that river thing... And thanks for the help. :D ---------------- edit: AGH! I don't get it... it didn't work... I got rid of the river and the enviroment an fixed that thing with the "belgium\textues" and it still didn't work.... and here is the new init.con ShaderManager.setTextureParam envmap bf1942\levels\target_belgium\Textures\ENVMAP_G_.rcm renderer.vertexFogEnable 1 renderer.fogColorVec 0.819608/0.815686/0.803922 renderer.globalLodPercent 1 renderer.globalAmbientColor 0.100000/0.100000/0.100000 renderer.ambientColor 0.150000/0.150000/0.180000 renderer.diffuseColor 0.300000/0.300000/0.300000 renderer.specularColor 0.300000/0.300000/0.300000 renderer.animatedMeshAmbientColor 0.25 shadow.shadowColor 0.400000 textureManager.alternativePath Texture/ENVIROMENT_WINTER textureManager.alternativePath Texture/GENERAL_GER_WINTER_1943 textureManager.alternativePath Texture/GENERAL_US_WINTER textureManager.alternativePath ../../bf1942/levels/target_Belgium/Texture Game.setViewDistance 200 Game.spawnPlayers 1 rem renderer.fogstart -100 rem renderer.fogend 200 rem rem *** Define flags *** rem ObjectTemplate.create Flag BlueFlag ObjectTemplate.team 1 ObjectTemplate.networkableInfo FlagBodyInfo ObjectTemplate.radius 5 ObjectTemplate.TimeToReSpawn 10 ObjectTemplate.addTemplate AnimatedGeFlag ObjectTemplate.create Flag RedFlag ObjectTemplate.team 2 ObjectTemplate.networkableInfo FlagBodyInfo ObjectTemplate.radius 5 ObjectTemplate.TimeToReSpawn 10 ObjectTemplate.addTemplate AnimatedUsFlag game.setTeamSkin 1 GermanSoldier game.setKit 1 0 1German_CloseQuartersMp40 game.setKit 1 1 2German_AssaultK98 game.setKit 1 2 3German_ATPanzerfaust30 game.setKit 1 3 4German_SupportMg42 game.setKit 1 4 5German_EngineerK98 game.setTeamSkin 2 USSoldier game.setKit 2 0 1Us_ClosequartersThompson game.setKit 2 1 2Us_AssaultGarand game.setKit 2 2 3Us_ATBazooka game.setKit 2 3 4US_SupportBar game.setKit 2 4 5US_EngineerM1Carabine rem rem *** Shader Default Color *** rem shaderManager.setDefaultShaderSolidColor 0.2/0.2/0.2 run Init/SkyAndSun run Init/Terrain water.specularEnable 1 water.texLayer1 texture/water07 water.texLayer2 texture/water08 water.normalMap texture/normalMap02 water.scrollDirectionNormalmap 1.000000/1.000000 water.scrollDirection1 1.000000/0.000000 water.scrollDirection2 0.000000/1.000000 water.specularColor 0.700000/0.700000/0.700000 water.scrollLayer1 0.030000 water.scrollLayer2 0.030000 water.scrollNormalmap 0.010000 water.specularStreakFactor 0.001000 water.tileLayer1 0.500000 water.tileLayer2 0.500000 water.tileNormalmap 0.500000 water.lightDirection -0.300000/0.500000/-0.650000 water.color 0.650000/0.600000/0.570000 water.waterAlphaDepth 0.000000 water.waterShallowAlpha 1.000000 water.deepColor 0.300000/0.300000/0.300000 run objects/objects




Kingrudolf

Fan FH Mapper

50 XP

9th October 2003

0 Uploads

1,345 Posts

0 Threads

#438 15 years ago

You should get the bf debug, it can trace errors in your map.




Admiral Donutz Advanced Member

Wanna go Double Dutch?

735,271 XP

9th December 2003

0 Uploads

71,460 Posts

0 Threads

#439 15 years ago

Remove the run object/object if you dont have a object dir in your map with a file in it called object.con :p its for when you add custom object on your map. Try the bf debug thing (search for it on planetbattlefield.com, bf42.com and the official ea/bf site.




[BFE]Actionman

FH FAN!

50 XP

1st March 2004

0 Uploads

85 Posts

0 Threads

#440 15 years ago

can someone give me a link? i can't seem to find it... :)