[Help] map shows not up at "create local"

Making or wanting help making your own asset? Check in here
Post Reply
otom24
Posts: 114
Joined: 2009-06-19 15:24

[Help] map shows not up at "create local"

Post by otom24 »

Hi mappers,

i need some advice and hope you can help me. I think its just a small problem or a misunderstood. I tried to figure it out for a week now, read the forum, EA Tutorials, ...

BF2 Editor is installed this way:
https://www.realitymod.com/forum/f189-modding-tutorials/14468-tutorial-setting-up-bf2-editor-pr-mapping-modding.html

My Problem is:
My first try is a 2km flat desert shooting range. There is a closed compound with some buildings, trees and targets in different range up to 800m. So far, so good, but when i package the level, or even when i save all with every box checked, then i cant create a local game because my map dont shows up. I start the mods/pr_edit/pr.exe file, but it even dont works when i copy the zip files and Info-Folder int my mods/pr and start it with mods/pr/pr.exe ...

There are 2 Control Points and 2 Spawn Points.

My Init.con:

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\ksk_trainingskamp\
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\ksk_trainingskamp\
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


endIf

rem ------------------------------- LevelSettings -------------------------------
rem -----------------------------------------------------------------------------

gameLogic.setTeamName 1 "MEC"
gameLogic.setTeamName 2 "USA"

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_specialist" "pr_mec_soldier1"
gameLogic.setKit 2 0 "usa_specialist" "pr_usa_soldier1"

gameLogic.setKit 1 1 "mec_riflemanab" "pr_mec_soldier2"
gameLogic.setKit 2 1 "usa_riflemanab" "pr_usa_soldier2"

gameLogic.setKit 1 2 "mec_rifleman" "pr_mec_soldier3"
gameLogic.setKit 2 2 "usa_rifleman" "pr_usa_soldier3"

gameLogic.setKit 1 3 "mec_medic" "pr_mec_soldier2"
gameLogic.setKit 2 3 "usa_medic" "pr_usa_soldier2"

gameLogic.setKit 1 4 "mec_support" "pr_mec_soldier3"
gameLogic.setKit 2 4 "usa_support" "pr_usa_soldier3"

gameLogic.setKit 1 5 "mec_officerab" "pr_mec_soldier1"
gameLogic.setKit 2 5 "usa_officerab" "pr_usa_soldier1"

gameLogic.setKit 1 6 "mec_officer" "pr_mec_soldier4"
gameLogic.setKit 2 6 "usa_officer" "pr_usa_soldier4"

rem -----------------------------------------------------------------------------

gameLogic.setBeforeSpawnCamera -61/67/718 138/18/0

if v_arg1 == BF2Editor
LevelSettings.CustomTextureSuffix ""
else
texturemanager.customTextureSuffix ""
endIf
rem -----------------------------------------------------------------------------

GameLogic.MaximumLevelViewDistance 1000

rem -----------------------------------------------------------------------------

gameLogic.setDefaultNumberOfTicketsEx 16 1 400
gameLogic.setDefaultNumberOfTicketsEx 16 2 400
gameLogic.setDefaultNumberOfTicketsEx 32 1 600
gameLogic.setDefaultNumberOfTicketsEx 32 2 600
gameLogic.setDefaultNumberOfTicketsEx 64 1 600
gameLogic.setDefaultNumberOfTicketsEx 64 2 600
gameLogic.setDefaultNumberOfTicketsEx 128 1 100
gameLogic.setDefaultNumberOfTicketsEx 128 2 100
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

I looked into or tried to copy from other Init.con files, Kashan for example.

My Info/ksk_trainingskamp.desc:

Code: Select all

<map>
	<name> ksk_trainingskamp </name>
	<briefing locid="LOADINGSCREEN_MAPDESCRIPTION_ksk_rainingskamp">map description for modders maps not localized (english only)</briefing>
	<music> common/sound/menu/music/load_MEC_music.ogg </music>
	<modes>
	</modes>
</map>
My StaticObjects.con:

Code: Select all

if v_arg1 == BF2Editor
console.allowMultipleFileLoad 0
run /objects/staticobjects/pr/military/portacabin/portacabin.con
run /objects/staticobjects/pr/military/hesco/hesco_l_50m/hesco_l_50m.con
run /objects/staticobjects/pr/military/hesco/hesco_l_corner_v2/hesco_l_corner_v2.con
run /objects/vegitation/america/xp2_deserttree_01/xp2_deserttree_01.con
run /objects/vegitation/america/xp2_deserttree_02/xp2_deserttree_02.con
run /objects/vegitation/america/xp2_deserttree_02_lod/xp2_deserttree_02_lod.con
run /objects/vegitation/america/xp2_deserttree_03/xp2_deserttree_03.con
run /objects/vegitation/america/xp2_deserttree_03_lod/xp2_deserttree_03_lod.con
run /objects/vegitation/america/xp2_deserttree_04/xp2_deserttree_04.con
run /objects/vegitation/america/xp2_deserttree_04_lod/xp2_deserttree_04_lod.con
run /objects/vegitation/america/xp2_bush_02/xp2_bush_02.con
run /objects/vegitation/america/xp2_bush_02/xp2_bush_02_lod.con
run /objects/staticobjects/pr/target/target.con
console.allowMultipleFileLoad 1
endIf

rem *** portacabin ***
Object.create portacabin
Object.absolutePosition 892.969/25.341/920.182
Object.rotation 90.1/0.0/0.0
Object.layer 1

rem *** portacabin ***
Object.create portacabin
Object.absolutePosition 879.582/25.347/929.186
Object.rotation -0.1/0.0/0.0
Object.layer 1

rem *** hesco_l_50m ***
Object.create hesco_l_50m
Object.absolutePosition 833.105/26.543/903.869
Object.rotation 90.1/0.0/0.0
Object.layer 1

rem *** hesco_l_corner_v2 ***
Object.create hesco_l_corner_v2
Object.absolutePosition 837.843/26.600/934.385
Object.rotation 90.1/0.0/0.0
Object.layer 1

rem *** hesco_l_50m ***
Object.create hesco_l_50m
Object.absolutePosition 869.064/26.600/938.600
Object.rotation 179.9/0.0/0.0
Object.layer 1

rem *** hesco_l_50m ***
Object.create hesco_l_50m
Object.absolutePosition 904.254/26.600/902.886
Object.rotation -91.0/0.0/0.0
Object.layer 1

rem *** hesco_l_corner_v2 ***
Object.create hesco_l_corner_v2
Object.absolutePosition 899.699/26.600/934.151
Object.rotation 179.9/0.0/0.0
Object.layer 1

rem *** xp2_deserttree_01 ***
Object.create xp2_deserttree_01
Object.absolutePosition 898.892/25.275/934.883
Object.rotation 90.1/0.0/0.0
Object.layer 1
Object.isOvergrowth 1

rem *** xp2_deserttree_02 ***
Object.create xp2_deserttree_02
Object.absolutePosition 898.304/25.330/926.527
Object.rotation 90.1/0.0/0.0
Object.layer 1
Object.isOvergrowth 1

rem *** xp2_deserttree_03 ***
Object.create xp2_deserttree_03
Object.absolutePosition 899.145/25.190/921.148
Object.rotation 90.1/0.0/0.0
Object.layer 1
Object.isOvergrowth 1

rem *** xp2_deserttree_04 ***
Object.create xp2_deserttree_04
Object.absolutePosition 899.406/25.091/916.153
Object.rotation 90.1/0.0/0.0
Object.layer 1
Object.isOvergrowth 1

rem *** xp2_deserttree_03 ***
Object.create xp2_deserttree_03
Object.absolutePosition 899.621/25.190/914.070
Object.rotation 90.1/0.0/0.0
Object.layer 1
Object.isOvergrowth 1

rem *** xp2_deserttree_02 ***
Object.create xp2_deserttree_02
Object.absolutePosition 899.797/25.330/909.081
Object.rotation 90.1/0.0/0.0
Object.layer 1
Object.isOvergrowth 1

rem *** xp2_bush_02 ***
Object.create xp2_bush_02
Object.absolutePosition 902.660/27.349/898.682
Object.rotation 179.5/0.1/4.1
Object.layer 1
Object.isOvergrowth 1

rem *** xp2_bush_02 ***
Object.create xp2_bush_02
Object.absolutePosition 900.833/27.710/924.134
Object.rotation 179.5/0.1/4.1
Object.layer 1
Object.isOvergrowth 1

rem *** xp2_bush_02 ***
Object.create xp2_bush_02
Object.absolutePosition 901.161/27.710/916.320
Object.rotation 179.5/0.1/4.1
Object.layer 1
Object.isOvergrowth 1

rem *** xp2_bush_02 ***
Object.create xp2_bush_02
Object.absolutePosition 902.322/27.517/883.241
Object.rotation 179.5/0.1/4.1
Object.layer 1
Object.isOvergrowth 1

rem *** xp2_bush_02 ***
Object.create xp2_bush_02
Object.absolutePosition 902.570/27.768/891.298
Object.rotation 179.5/0.1/4.1
Object.layer 1
Object.isOvergrowth 1

rem *** xp2_bush_02 ***
Object.create xp2_bush_02
Object.absolutePosition 901.968/27.539/905.768
Object.rotation 179.5/0.1/4.1
Object.layer 1
Object.isOvergrowth 1

rem *** xp2_deserttree_01 ***
Object.create xp2_deserttree_01
Object.absolutePosition 900.436/25.275/902.031
Object.rotation 90.1/0.0/0.0
Object.layer 1
Object.isOvergrowth 1

rem *** xp2_deserttree_02 ***
Object.create xp2_deserttree_02
Object.absolutePosition 899.848/25.330/893.674
Object.rotation 90.1/0.0/0.0
Object.layer 1
Object.isOvergrowth 1

rem *** xp2_deserttree_03 ***
Object.create xp2_deserttree_03
Object.absolutePosition 900.688/25.042/888.294
Object.rotation 90.1/0.0/0.0
Object.layer 1
Object.isOvergrowth 1

rem *** xp2_deserttree_04 ***
Object.create xp2_deserttree_04
Object.absolutePosition 900.949/25.091/883.297
Object.rotation 90.1/0.0/0.0
Object.layer 1
Object.isOvergrowth 1

rem *** xp2_deserttree_03 ***
Object.create xp2_deserttree_03
Object.absolutePosition 901.163/25.228/881.216
Object.rotation 90.1/0.0/0.0
Object.layer 1
Object.isOvergrowth 1

rem *** xp2_deserttree_02 ***
Object.create xp2_deserttree_02
Object.absolutePosition 901.339/25.332/876.231
Object.rotation 90.1/0.0/0.0
Object.layer 1
Object.isOvergrowth 1

rem *** xp2_bush_02 ***
Object.create xp2_bush_02
Object.absolutePosition 902.374/27.710/891.281
Object.rotation 179.5/0.1/4.1
Object.layer 1
Object.isOvergrowth 1

rem *** xp2_bush_02 ***
Object.create xp2_bush_02
Object.absolutePosition 902.704/27.710/883.467
Object.rotation 179.5/0.1/4.1
Object.layer 1
Object.isOvergrowth 1

rem *** xp2_bush_02 ***
Object.create xp2_bush_02
Object.absolutePosition 891.493/26.392/934.989
Object.rotation -90.3/-4.1/0.0
Object.layer 1
Object.isOvergrowth 1

rem *** xp2_bush_02 ***
Object.create xp2_bush_02
Object.absolutePosition 873.103/27.710/935.777
Object.rotation -90.3/-4.1/0.0
Object.layer 1
Object.isOvergrowth 1

rem *** xp2_bush_02 ***
Object.create xp2_bush_02
Object.absolutePosition 886.997/27.710/935.245
Object.rotation -90.3/-4.1/0.0
Object.layer 1
Object.isOvergrowth 1

rem *** xp2_bush_02 ***
Object.create xp2_bush_02
Object.absolutePosition 896.490/26.031/934.976
Object.rotation -90.3/-4.1/0.0
Object.layer 1
Object.isOvergrowth 1

rem *** xp2_deserttree_02 ***
Object.create xp2_deserttree_02
Object.absolutePosition 865.768/25.330/934.387
Object.rotation 180.0/-4.1/4.1
Object.layer 1
Object.isOvergrowth 1

rem *** xp2_bush_02 ***
Object.create xp2_bush_02
Object.absolutePosition 881.645/27.710/935.508
Object.rotation -90.3/-4.1/0.0
Object.layer 1
Object.isOvergrowth 1

rem *** xp2_deserttree_02 ***
Object.create xp2_deserttree_02
Object.absolutePosition 888.835/25.011/932.356
Object.rotation -178.0/-4.2/4.1
Object.layer 1
Object.isOvergrowth 1

rem *** xp2_deserttree_03 ***
Object.create xp2_deserttree_03
Object.absolutePosition 876.860/25.190/935.260
Object.rotation 179.1/-4.0/4.1
Object.layer 1
Object.isOvergrowth 1

rem *** xp2_deserttree_04 ***
Object.create xp2_deserttree_04
Object.absolutePosition 867.699/24.789/934.997
Object.rotation 179.1/-4.0/4.1
Object.layer 1
Object.isOvergrowth 1

rem *** xp2_deserttree_03 ***
Object.create xp2_deserttree_03
Object.absolutePosition 865.125/25.190/930.563
Object.rotation 179.1/-4.0/4.1
Object.layer 1
Object.isOvergrowth 1

rem *** xp2_deserttree_02 ***
Object.create xp2_deserttree_02
Object.absolutePosition 860.476/25.015/934.482
Object.rotation 179.1/-4.0/4.1
Object.layer 1
Object.isOvergrowth 1

rem *** xp2_bush_02 ***
Object.create xp2_bush_02
Object.absolutePosition 848.752/27.710/935.433
Object.rotation -91.3/-4.1/0.1
Object.layer 1
Object.isOvergrowth 1

rem *** xp2_bush_02 ***
Object.create xp2_bush_02
Object.absolutePosition 901.344/26.885/911.378
Object.rotation -88.3/-4.1/-0.1
Object.layer 1
Object.isOvergrowth 1

rem *** xp2_bush_02 ***
Object.create xp2_bush_02
Object.absolutePosition 869.021/27.710/933.869
Object.rotation -91.3/-4.1/0.1
Object.layer 1
Object.isOvergrowth 1

rem *** xp2_bush_02 ***
Object.create xp2_bush_02
Object.absolutePosition 901.624/27.042/932.315
Object.rotation -91.3/-4.1/0.1
Object.layer 1
Object.isOvergrowth 1

rem *** xp2_bush_02 ***
Object.create xp2_bush_02
Object.absolutePosition 840.848/27.710/935.572
Object.rotation -91.3/-4.1/0.1
Object.layer 1
Object.isOvergrowth 1

rem *** xp2_bush_02 ***
Object.create xp2_bush_02
Object.absolutePosition 856.912/27.710/935.419
Object.rotation -91.3/-4.1/0.1
Object.layer 1
Object.isOvergrowth 1

rem *** xp2_deserttree_01 ***
Object.create xp2_deserttree_01
Object.absolutePosition 853.277/25.157/933.703
Object.rotation 179.1/-4.0/4.1
Object.layer 1
Object.isOvergrowth 1

rem *** xp2_deserttree_02 ***
Object.create xp2_deserttree_02
Object.absolutePosition 844.703/25.099/934.152
Object.rotation 179.1/-4.0/4.1
Object.layer 1
Object.isOvergrowth 1

rem *** xp2_deserttree_03 ***
Object.create xp2_deserttree_03
Object.absolutePosition 839.206/25.139/933.192
Object.rotation 179.1/-4.0/4.1
Object.layer 1
Object.isOvergrowth 1

rem *** xp2_deserttree_04 ***
Object.create xp2_deserttree_04
Object.absolutePosition 834.256/27.401/932.993
Object.rotation 179.1/-4.0/4.1
Object.layer 1
Object.isOvergrowth 1

rem *** xp2_deserttree_03 ***
Object.create xp2_deserttree_03
Object.absolutePosition 839.097/25.190/917.856
Object.rotation 179.1/-4.0/4.1
Object.layer 1
Object.isOvergrowth 1

rem *** xp2_deserttree_02 ***
Object.create xp2_deserttree_02
Object.absolutePosition 839.488/25.330/923.591
Object.rotation 179.1/-4.0/4.1
Object.layer 1
Object.isOvergrowth 1

rem *** xp2_bush_02 ***
Object.create xp2_bush_02
Object.absolutePosition 863.284/27.710/934.646
Object.rotation -91.3/-4.1/0.1
Object.layer 1
Object.isOvergrowth 1

rem *** xp2_deserttree_01 ***
Object.create xp2_deserttree_01
Object.absolutePosition 837.400/25.275/883.139
Object.rotation -90.6/-8.2/0.1
Object.layer 1
Object.isOvergrowth 1

rem *** xp2_deserttree_03 ***
Object.create xp2_deserttree_03
Object.absolutePosition 838.053/25.320/891.913
Object.rotation -90.6/-8.2/0.1
Object.layer 1
Object.isOvergrowth 1

rem *** xp2_deserttree_04 ***
Object.create xp2_deserttree_04
Object.absolutePosition 840.839/26.030/897.165
Object.rotation -90.6/-8.2/0.1
Object.layer 1
Object.isOvergrowth 1

rem *** xp2_deserttree_03 ***
Object.create xp2_deserttree_03
Object.absolutePosition 838.454/24.908/898.999
Object.rotation -90.6/-8.2/0.1
Object.layer 1
Object.isOvergrowth 1

rem *** xp2_deserttree_02 ***
Object.create xp2_deserttree_02
Object.absolutePosition 838.231/25.023/903.989
Object.rotation -90.6/-8.2/0.1
Object.layer 1
Object.isOvergrowth 1

rem *** xp2_bush_02 ***
Object.create xp2_bush_02
Object.absolutePosition 836.354/26.793/912.267
Object.rotation -1.2/-0.1/-4.1
Object.layer 1
Object.isOvergrowth 1

rem *** xp2_bush_02 ***
Object.create xp2_bush_02
Object.absolutePosition 835.999/27.089/894.118
Object.rotation -1.2/-0.1/-4.1
Object.layer 1
Object.isOvergrowth 1

rem *** xp2_bush_02 ***
Object.create xp2_bush_02
Object.absolutePosition 835.859/27.008/899.964
Object.rotation -1.2/-0.1/-4.1
Object.layer 1
Object.isOvergrowth 1

rem *** xp2_bush_02 ***
Object.create xp2_bush_02
Object.absolutePosition 834.902/26.929/921.741
Object.rotation -1.2/-0.1/-4.1
Object.layer 1
Object.isOvergrowth 1

rem *** xp2_bush_02 ***
Object.create xp2_bush_02
Object.absolutePosition 836.221/27.710/917.070
Object.rotation -1.2/-0.1/-4.1
Object.layer 1
Object.isOvergrowth 1

rem *** xp2_bush_02 ***
Object.create xp2_bush_02
Object.absolutePosition 836.447/27.114/906.520
Object.rotation -1.2/-0.1/-4.1
Object.layer 1
Object.isOvergrowth 1

rem *** xp2_deserttree_01 ***
Object.create xp2_deserttree_01
Object.absolutePosition 837.464/24.817/911.034
Object.rotation -90.6/-8.2/0.1
Object.layer 1
Object.isOvergrowth 1

rem *** xp2_deserttree_02 ***
Object.create xp2_deserttree_02
Object.absolutePosition 837.996/25.095/919.402
Object.rotation -90.6/-8.2/0.1
Object.layer 1
Object.isOvergrowth 1

rem *** xp2_deserttree_03 ***
Object.create xp2_deserttree_03
Object.absolutePosition 837.063/25.002/924.770
Object.rotation -90.6/-8.2/0.1
Object.layer 1
Object.isOvergrowth 1

rem *** xp2_deserttree_04 ***
Object.create xp2_deserttree_04
Object.absolutePosition 836.984/26.743/929.766
Object.rotation -90.6/-8.2/0.1
Object.layer 1
Object.isOvergrowth 1

rem *** xp2_deserttree_03 ***
Object.create xp2_deserttree_03
Object.absolutePosition 836.488/24.961/931.845
Object.rotation -90.6/-8.2/0.1
Object.layer 1
Object.isOvergrowth 1

rem *** xp2_deserttree_02 ***
Object.create xp2_deserttree_02
Object.absolutePosition 848.675/25.270/932.484
Object.rotation -90.6/-8.2/0.1
Object.layer 1
Object.isOvergrowth 1

rem *** xp2_bush_02 ***
Object.create xp2_bush_02
Object.absolutePosition 837.313/26.433/929.603
Object.rotation -1.2/-0.1/-4.1
Object.layer 1
Object.isOvergrowth 1

rem *** xp2_bush_02 ***
Object.create xp2_bush_02
Object.absolutePosition 837.103/27.710/934.319
Object.rotation -1.2/-0.1/-4.1
Object.layer 1
Object.isOvergrowth 1

rem *** xp2_bush_02 ***
Object.create xp2_bush_02
Object.absolutePosition 836.888/27.710/888.130
Object.rotation 88.0/4.1/-0.2
Object.layer 1
Object.isOvergrowth 1

rem *** xp2_deserttree_03 ***
Object.create xp2_deserttree_03
Object.absolutePosition 839.103/25.517/886.854
Object.rotation -8.2/-1.2/-8.1
Object.layer 1
Object.isOvergrowth 1

rem *** xp2_deserttree_03 ***
Object.create xp2_deserttree_03
Object.absolutePosition 839.737/25.314/894.440
Object.rotation 141.3/5.2/6.4
Object.layer 1
Object.isOvergrowth 1

rem *** xp2_deserttree_02 ***
Object.create xp2_deserttree_02
Object.absolutePosition 0.000/25.330/0.000
Object.rotation 179.3/-8.2/0.1
Object.layer 1
Object.isOvergrowth 1

rem *** xp2_deserttree_02 ***
Object.create xp2_deserttree_02
Object.absolutePosition 839.717/25.056/908.101
Object.rotation -90.6/-8.2/0.1
Object.layer 1
Object.isOvergrowth 1

rem *** xp2_deserttree_02 ***
Object.create xp2_deserttree_02
Object.absolutePosition 841.254/25.286/913.393
Object.rotation 39.8/5.3/-6.3
Object.layer 1
Object.isOvergrowth 1

rem *** xp2_deserttree_02 ***
Object.create xp2_deserttree_02
Object.absolutePosition 857.243/24.708/932.372
Object.rotation -59.5/0.7/-4.2
Object.layer 1
Object.isOvergrowth 1

rem *** xp2_deserttree_01 ***
Object.create xp2_deserttree_01
Object.absolutePosition 851.773/23.175/932.931
Object.rotation 90.1/0.0/0.0
Object.layer 1
Object.isOvergrowth 1

rem *** xp2_deserttree_01 ***
Object.create xp2_deserttree_01
Object.absolutePosition 870.780/24.801/934.966
Object.rotation 5.9/0.0/0.0
Object.layer 1
Object.isOvergrowth 1

rem *** xp2_bush_02 ***
Object.create xp2_bush_02
Object.absolutePosition 834.953/27.493/903.067
Object.rotation -1.2/-0.1/-4.1
Object.layer 1
Object.isOvergrowth 1

rem *** xp2_bush_02 ***
Object.create xp2_bush_02
Object.absolutePosition 831.641/27.710/903.493
Object.rotation -1.2/-0.1/-4.1
Object.layer 1
Object.isOvergrowth 1

rem *** xp2_bush_02 ***
Object.create xp2_bush_02
Object.absolutePosition 835.705/26.856/896.933
Object.rotation -1.2/-0.1/-4.1
Object.layer 1
Object.isOvergrowth 1

rem *** xp2_bush_02 ***
Object.create xp2_bush_02
Object.absolutePosition 835.532/27.633/926.090
Object.rotation -1.2/-0.1/-4.1
Object.layer 1
Object.isOvergrowth 1

rem *** xp2_bush_02 ***
Object.create xp2_bush_02
Object.absolutePosition 844.462/27.245/936.443
Object.rotation 79.2/-0.2/4.2
Object.layer 1
Object.isOvergrowth 1

rem *** xp2_bush_02 ***
Object.create xp2_bush_02
Object.absolutePosition 901.154/27.594/912.216
Object.rotation 174.6/-4.2/-0.5
Object.layer 1
Object.isOvergrowth 1

rem *** xp2_bush_02 ***
Object.create xp2_bush_02
Object.absolutePosition 853.013/26.659/936.626
Object.rotation 79.2/-0.2/4.2
Object.layer 1
Object.isOvergrowth 1

rem *** xp2_bush_02 ***
Object.create xp2_bush_02
Object.absolutePosition 859.930/26.748/936.848
Object.rotation 79.2/-0.2/4.2
Object.layer 1
Object.isOvergrowth 1

rem *** xp2_bush_02 ***
Object.create xp2_bush_02
Object.absolutePosition 834.890/27.585/909.387
Object.rotation 79.2/-0.2/4.2
Object.layer 1
Object.isOvergrowth 1

rem *** xp2_bush_02 ***
Object.create xp2_bush_02
Object.absolutePosition 901.409/27.810/908.861
Object.rotation 174.6/-4.2/-0.5
Object.layer 1
Object.isOvergrowth 1

rem *** xp2_bush_02 ***
Object.create xp2_bush_02
Object.absolutePosition 902.341/26.620/902.238
Object.rotation 174.6/-4.2/-0.5
Object.layer 1
Object.isOvergrowth 1

rem *** xp2_bush_02 ***
Object.create xp2_bush_02
Object.absolutePosition 902.485/27.037/894.910
Object.rotation 174.6/-4.2/-0.5
Object.layer 1
Object.isOvergrowth 1

rem *** xp2_bush_02 ***
Object.create xp2_bush_02
Object.absolutePosition 902.316/27.710/886.521
Object.rotation 174.6/-4.2/-0.5
Object.layer 1
Object.isOvergrowth 1

rem *** xp2_bush_02 ***
Object.create xp2_bush_02
Object.absolutePosition 902.709/27.710/878.944
Object.rotation 174.6/-4.2/-0.5
Object.layer 1
Object.isOvergrowth 1

rem *** xp2_bush_02 ***
Object.create xp2_bush_02
Object.absolutePosition 892.364/27.339/935.649
Object.rotation -96.9/0.4/-4.2
Object.layer 1
Object.isOvergrowth 1

rem *** xp2_bush_02 ***
Object.create xp2_bush_02
Object.absolutePosition 901.237/27.710/936.291
Object.rotation -96.9/0.4/-4.2
Object.layer 1
Object.isOvergrowth 1

rem *** xp2_bush_02 ***
Object.create xp2_bush_02
Object.absolutePosition 897.530/27.710/936.271
Object.rotation -96.9/0.4/-4.2
Object.layer 1
Object.isOvergrowth 1

rem *** xp2_bush_02 ***
Object.create xp2_bush_02
Object.absolutePosition 900.936/27.710/929.291
Object.rotation -96.9/0.4/-4.2
Object.layer 1
Object.isOvergrowth 1

rem *** xp2_bush_02 ***
Object.create xp2_bush_02
Object.absolutePosition 901.592/26.818/920.500
Object.rotation 179.5/0.1/4.1
Object.layer 1
Object.isOvergrowth 1

rem *** xp2_bush_02 ***
Object.create xp2_bush_02
Object.absolutePosition 835.344/27.710/890.708
Object.rotation -1.2/-0.1/-4.1
Object.layer 1
Object.isOvergrowth 1

rem *** xp2_bush_02 ***
Object.create xp2_bush_02
Object.absolutePosition 836.344/27.710/884.569
Object.rotation -1.2/-0.1/-4.1
Object.layer 1
Object.isOvergrowth 1

rem *** xp2_bush_02 ***
Object.create xp2_bush_02
Object.absolutePosition 835.938/27.710/880.906
Object.rotation -1.2/-0.1/-4.1
Object.layer 1
Object.isOvergrowth 1

rem *** xp2_deserttree_02 ***
Object.create xp2_deserttree_02
Object.absolutePosition 901.009/24.597/904.157
Object.rotation 39.8/5.3/-6.3
Object.layer 1
Object.isOvergrowth 1

rem *** xp2_deserttree_02 ***
Object.create xp2_deserttree_02
Object.absolutePosition 899.473/24.597/898.867
Object.rotation -90.6/-8.2/0.1
Object.layer 1
Object.isOvergrowth 1

rem *** xp2_deserttree_03 ***
Object.create xp2_deserttree_03
Object.absolutePosition 898.854/24.494/908.620
Object.rotation 179.1/-4.0/4.1
Object.layer 1
Object.isOvergrowth 1

rem *** xp2_deserttree_03 ***
Object.create xp2_deserttree_03
Object.absolutePosition 898.498/25.092/886.928
Object.rotation 179.1/-4.0/4.1
Object.layer 1
Object.isOvergrowth 1

rem *** xp2_deserttree_02 ***
Object.create xp2_deserttree_02
Object.absolutePosition 900.649/25.212/882.476
Object.rotation 39.8/5.3/-6.3
Object.layer 1
Object.isOvergrowth 1

rem *** xp2_deserttree_02 ***
Object.create xp2_deserttree_02
Object.absolutePosition 899.128/25.333/877.184
Object.rotation -90.6/-8.2/0.1
Object.layer 1
Object.isOvergrowth 1

rem *** xp2_deserttree_03 ***
Object.create xp2_deserttree_03
Object.absolutePosition 841.256/25.228/930.481
Object.rotation 179.1/-4.0/4.1
Object.layer 1
Object.isOvergrowth 1

rem *** xp2_deserttree_02 ***
Object.create xp2_deserttree_02
Object.absolutePosition 843.414/25.330/926.017
Object.rotation 39.8/5.3/-6.3
Object.layer 1
Object.isOvergrowth 1

rem *** xp2_deserttree_02 ***
Object.create xp2_deserttree_02
Object.absolutePosition 841.877/25.330/920.727
Object.rotation -90.6/-8.2/0.1
Object.layer 1
Object.isOvergrowth 1

rem *** target ***
Object.create target
Object.absolutePosition 872.934/25.002/548.799
Object.layer 1
And the Editor/GamePlayObjects.con:

Code: Select all

rem ********** Object Spawner **********
if v_arg1 == host

endIf

rem ********** Spawn Points **********
rem [SpawnPointTemplate: ControlPointB_1]
ObjectTemplate.create SpawnPoint ControlPointB_1
ObjectTemplate.activeSafe SpawnPoint ControlPointB_1
ObjectTemplate.modifiedByUser "Besitzer"
ObjectTemplate.isNotSaveable 1
ObjectTemplate.setSpawnPositionOffset 0/1.25/0
ObjectTemplate.setControlPointId 2

rem [SpawnPoint: ControlPointB_1]
Object.create ControlPointB_1
Object.absolutePosition -913.726/25.000/-899.653
Object.rotation 73.313/0.000/0.000
Object.layer 1

rem [SpawnPointTemplate: ShootingRange_1]
ObjectTemplate.create SpawnPoint ShootingRange_1
ObjectTemplate.activeSafe SpawnPoint ShootingRange_1
ObjectTemplate.modifiedByUser "Besitzer"
ObjectTemplate.isNotSaveable 1
ObjectTemplate.setSpawnPositionOffset 0/1.25/0
ObjectTemplate.setControlPointId 1

rem [SpawnPoint: ShootingRange_1]
Object.create ShootingRange_1
Object.absolutePosition 871.206/25.000/906.731
Object.rotation 93.220/0.000/0.000
Object.layer 1

rem ********** Control Points **********
rem [ControlPointTemplate: ControlPointB]
ObjectTemplate.create ControlPoint ControlPointB
ObjectTemplate.activeSafe ControlPoint ControlPointB
ObjectTemplate.modifiedByUser "Besitzer"
ObjectTemplate.setNetworkableInfo ControlPointInfo
ObjectTemplate.isNotSaveable 1
ObjectTemplate.hasMobilePhysics 0
ObjectTemplate.hasCollisionPhysics 1
ObjectTemplate.physicsType Mesh
rem -------------------------------------
ObjectTemplate.addTemplate flagpole
rem -------------------------------------
ObjectTemplate.setControlPointName ControlPointB
ObjectTemplate.team 2
ObjectTemplate.controlPointId 2
ObjectTemplate.hoistMinMax 0.2/0.9

rem [ControlPointTemplate: ShootingRange]
ObjectTemplate.create ControlPoint ShootingRange
ObjectTemplate.activeSafe ControlPoint ShootingRange
ObjectTemplate.modifiedByUser "Besitzer"
ObjectTemplate.setNetworkableInfo ControlPointInfo
ObjectTemplate.isNotSaveable 1
ObjectTemplate.hasMobilePhysics 0
ObjectTemplate.setControlPointName ShootingRange
ObjectTemplate.team 1
ObjectTemplate.controlPointId 1
ObjectTemplate.hoistMinMax 0.2/0.9

if v_arg1 == host

   rem [ControlPoint: ControlPointB]
   Object.create ControlPointB
   Object.absolutePosition -910.530/23.221/-898.519
   Object.layer 1

   rem [ControlPoint: ShootingRange]
   Object.create ShootingRange
   Object.absolutePosition 874.765/23.291/906.531
   Object.layer 1

endIf

CombatAreaManager.use 0
CombatAreaManager.timeAllowedOutside 10.000000
Do i have to set up some special things (map-audit tutorial) before i can (test)play it?

Regards [KSK]otOm24
Last edited by otom24 on 2010-01-19 12:47, edited 4 times in total.
Rudd
Retired PR Developer
Posts: 21225
Joined: 2007-08-15 14:32

Re: BF2 Editor - map shows not up at "create local"

Post by Rudd »

<name> ksk_trainingskamp </name>
<briefing locid="LOADINGSCREEN_MAPDESCRIPTION_ksk_rainingskamp">map description for modders maps not localized (english only)</briefing>
<music> common/sound/menu/music/load_MEC_music.ogg </music>
<modes>
</modes>
</map>
mabe the problem is that ur .desc file doesn't have any modes in it?

Code: Select all

<map gsid="5055">
	<name> Kashan Desert </name>
	<briefing locid="MAPDESCRIPTION_kashan_desert">map description for modders maps not localized (english only)</briefing>
	<music> common/sound/menu/music/PirateX-Desert_Heat.ogg </music>
	<modes>
		<mode type="gpm_cq">
			<maptype players="16" type="headon" locid="GAMEMODE_DESCRIPTION_aasinfantry">Unlocalized test for this mode on this map</maptype>
			<maptype players="32" type="headon" locid="GAMEMODE_DESCRIPTION_aasalternative">Unlocalized test for this mode on this map</maptype>
			<maptype players="64" type="headon" locid="GAMEMODE_DESCRIPTION_aasfullassets">Unlocalized test for this mode on this map</maptype>
		</mode>
		<mode type="gpm_skirmish">
			<maptype players="16" type="skirmish" locid="GAMEMODE_DESCRIPTION_skirmish">Unlocalized test for this mode on this map</maptype>
		</mode>
		<mode type="gpm_training">
		  <maptype players="32" type="training" locid="GAMEMODE_DESCRIPTION_training">Unlocalized test for this mode on this map</maptype>
[b][u]			<maptype players="64" type="training" locid="GAMEMODE_DESCRIPTION_training">Unlocalized test for this mode on this map</maptype>[/u][/b]	
		</mode>
		<mode type="gpm_cnc">
			<maptype players="16" type="cnc" locid="GAMEMODE_DESCRIPTION_cnc">Unlocalized test for this mode on this map</maptype>
			<maptype players="64" type="cnc" locid="GAMEMODE_DESCRIPTION_cnc">Unlocalized test for this mode on this map</maptype>
		</mode>
	</modes>
</map>
also, ensure ur .desc file has the name of your map folder
Image
Amok@ndy
Retired PR Developer
Posts: 5144
Joined: 2008-11-27 22:13

Re: BF2 Editor - map shows not up at "create local"

Post by Amok@ndy »

he is only using a default layer !
that will mean that the GPO will maybe not save correctly !
Image
otom24
Posts: 114
Joined: 2009-06-19 15:24

Re: BF2 Editor - map shows not up at "create local"

Post by otom24 »

Thanks, the desc file was incorrect. Now the map shows up and all is fine, except it crashes while loading - i think it is a problem with the GameModes and will figure it out.

Do i have to go through all the steps in the map audit tutorial before i can test it local?
Last edited by otom24 on 2010-01-19 14:09, edited 2 times in total.
HangMan_
Posts: 1753
Joined: 2009-06-07 00:58

Re: BF2 Editor - map shows not up at "create local"

Post by HangMan_ »

Amok@ndy wrote:he is only using a default layer !
that will mean that the GPO will maybe not save correctly !
I use default for my gpo and have had no error to date..
Image

PR Community Faction Team - "Getting Sh*t Done..."
Sniperdog
Retired PR Developer
Posts: 1177
Joined: 2009-02-27 00:06

Re: BF2 Editor - map shows not up at "create local"

Post by Sniperdog »

otom24 wrote:Thanks, the desc file was incorrect. Now the map shows up and all is fine, except it crashes while loading - i think it is a problem with the GameModes and will figure it out.

Do i have to go through all the steps in the map audit tutorial before i can test it local?
Run the game in windowed or debug mode to figure out what is causing the crash. If you post the results here I can tell you what your problem is and how to fix it.

Both involve a custom shortcut, just copy your standard pr_edit shortcut and change it to this:

Windowed mode:

Target:
"C:\Program Files\EA GAMES\Battlefield 2\mods\pr_edit\pr.exe" +menu 1 +fullscreen 0 +szx 1920 +szy 1080

Start in:
"C:\Program Files\EA GAMES\Battlefield 2\mods"

For this hopefully you'll get a crash message if so post it here; if not use debug mode below


Debug mode:

Target:
"C:\Program Files\EA GAMES\Battlefield 2\BF2_r.exe" +modPath mods/pr_edit +restart 1 +menu 1 +fullscreen 1 +developer 1 +ignoreAsserts 1

Start in:
"C:\Program Files\EA GAMES\Battlefield 2"

For this when it crashes go to
"C :P rogram Files\EA GAMES\Battlefield 2\mods\pr_edit\Logs"

there are two files I care about
1. Debug_<random#'s>_server.log
2. Debug_<random#'s>_server_server.log

Post the last 20 or so lines from each in two code brackets and just about every time you can figure out the problem.
Image

Image

Will Stahl aka "Merlin" in the Squad community
otom24
Posts: 114
Joined: 2009-06-19 15:24

Re: BF2 Editor - map shows not up at "create local"

Post by otom24 »

Thanks for your advice.

I dont know how, but it seems like the editor was not set up correctly. I tried a lot and re-loaded PR_EDIT.rar at least - after a reboot the .desc file was generated by itself without editing the GameModes in it, the map shows up and there is a GameModes folder now. Maybe caused by a broken download or extraction - what ever, it works.

And those crashes when the map loads, ... i knew about the windowed and debug mode but the hint with that logfile is very useful.
For this when it crashes go to
"C :P rogram Files\EA GAMES\Battlefield 2\mods\pr_edit\Logs\"

there are two files I care about
1. Debug_<random#'s>_server.log
2. Debug_<random#'s>_server_server.log
Regards [KSK]otOm24
Sniperdog
Retired PR Developer
Posts: 1177
Joined: 2009-02-27 00:06

Re: BF2 Editor - map shows not up at "create local"

Post by Sniperdog »

Glad to help :P
Image

Image

Will Stahl aka "Merlin" in the Squad community
Post Reply

Return to “PR:BF2 Community Modding”