Page 1 of 1
[Request] Need a quick favor
Posted: 2007-05-21 22:28
by MichSt-Spartan
Can one of the more experienced mappers here (who can get their maps to run in-game) post a screenshot of the contents of their C:\Program Files\EA GAMES\Battlefield 2\mods\pr_edit folder? I'm still getting errors when I try to run my mod in-game, and it's really starting to piss me off. The people on the bf2editor forums are useless, they know nothing about PR (except for Rhino). Thanks in advance.
Here's what mine looks like:

Posted: 2007-05-21 22:35
by GeZe
here ya go

Posted: 2007-05-21 22:38
by Rhino
your staticobjects folder should be in your objects folder, main thing i can see wrong by your pic. Also the other thing I can see wrong is that you dont have a common_client.zip and a common_server.zip in your main directory (look at gazes pic).
My PR_EDIT is kinda messy with all the things going round, I know how it works, just ignore the menu_ and object_ zips as they are not ment to be there, thats just the defualt location BF2 pack packs them too and i aint bothrted to delete them

Posted: 2007-05-21 22:41
by MichSt-Spartan
Hmm... I have an extra folder named staticobjects, and I'm missing two seemingly custom-made files named Profile_BF2Engine_initEngine.txt and Profile_BF2Engine_initEngine.t... (something). Any chance you know what those two files are? I don't mean to be a pain, but would you mind posting the contents of your clientarchives.con and serverarchives.con too? Thanks for the help.
Here's mine:
Clientarchives.con
Code: Select all
fileManager.mountArchive Common_client.zip Common
fileManager.mountArchive objects/Objects_client.zip Objects
fileManager.mountArchive menu/Menu_client.zip Menu
fileManager.mountArchive menu/Fonts_client.zip Fonts
fileManager.mountArchive ../bf2/Objects_client.zip Objects
fileManager.mountArchive ../bf2/Common_client.zip Common
fileManager.mountArchive ../bf2/Menu_client.zip Menu
fileManager.mountArchive ../bf2/Fonts_client.zip Fonts
fileManager.mountArchive ../bf2/shaders_client.zip Shaders
Serverarchives.con
Code: Select all
fileManager.mountArchive objects/Objects_server.zip Objects
fileManager.mountArchive menu/Menu_server.zip Menu
fileManager.mountArchive Common_server.zip Common
fileManager.mountArchive ../bf2/Objects_server.zip Objects
fileManager.mountArchive ../bf2/Menu_server.zip Menu
fileManager.mountArchive ../bf2/Common_server.zip Common
Posted: 2007-05-21 22:43
by Rhino
thous profile things are saved by the BF2 editor automaticly, dont worrie about them.
Clientarchives.con wrote:fileManager.mountArchive Common_client.zip Common
fileManager.mountArchive objects/Objects_client.zip Objects
fileManager.mountArchive menu/Menu_client.zip Menu
fileManager.mountArchive menu/Fonts_client.zip Fonts
fileManager.mountArchive ../bf2/Objects_client.zip Objects
fileManager.mountArchive ../bf2/Common_client.zip Common
fileManager.mountArchive ../bf2/Menu_client.zip Menu
fileManager.mountArchive ../bf2/Fonts_client.zip Fonts
fileManager.mountArchive ../bf2/shaders_client.zip Shaders
Serverarchives.con wrote:fileManager.mountArchive objects/Objects_server.zip Objects
fileManager.mountArchive menu/Menu_server.zip Menu
fileManager.mountArchive Common_server.zip Common
fileManager.mountArchive ../bf2/Objects_server.zip Objects
fileManager.mountArchive ../bf2/Menu_server.zip Menu
fileManager.mountArchive ../bf2/Common_server.zip Common
Posted: 2007-05-21 22:47
by MichSt-Spartan
Ugh, everthing is the same! I'm totally at a loss for what my problem could be.
Once again, this is the error:

Posted: 2007-05-21 22:48
by Rhino
take a screenshot of the inside of your pr_edit/menu/ folder.
Posted: 2007-05-21 23:01
by MichSt-Spartan
'[R-DEV wrote:Rhino']take a screenshot of the inside of your pr_edit/menu/ folder.
Am i missing something in there?
Posted: 2007-05-21 23:09
by Rhino
no looks good. Can you post your init.con file for your map here plz.
Posted: 2007-05-21 23:11
by MichSt-Spartan
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\Banghazi\
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\Banghazi\
run Overgrowth/Overgrowth.con
run Overgrowth/OvergrowthCollision.con
run AmbientObjects.con
run Water.con
run TriggerableTemplates.con
endIf
rem ------------------------------- LevelSettings -------------------------------
rem -----------------------------------------------------------------------------
gameLogic.setTeamName 1 "MEC"
gameLogic.setTeamName 2 "USMC"
gameLogic.setTeamLanguage 1 "English"
gameLogic.setTeamLanguage 2 "English"
gameLogic.setTeamFlag 0 "flag_neutral"
gameLogic.setTeamFlag 1 "flag_ch"
gameLogic.setTeamFlag 2 "flag_us"
gameLogic.setKit 1 0 "" ""
gameLogic.setKit 2 0 "" ""
gameLogic.setKit 1 1 "" ""
gameLogic.setKit 2 1 "" ""
gameLogic.setKit 1 2 "" ""
gameLogic.setKit 2 2 "" ""
gameLogic.setKit 1 3 "" ""
gameLogic.setKit 2 3 "" ""
gameLogic.setKit 1 4 "" ""
gameLogic.setKit 2 4 "" ""
gameLogic.setKit 1 5 "" ""
gameLogic.setKit 2 5 "" ""
gameLogic.setKit 1 6 "" ""
gameLogic.setKit 2 6 "" ""
rem -----------------------------------------------------------------------------
gameLogic.setBeforeSpawnCamera 0/150/0 0/0/0
if v_arg1 == BF2Editor
LevelSettings.CustomTextureSuffix ""
else
texturemanager.customTextureSuffix ""
endIf
rem -----------------------------------------------------------------------------
GameLogic.MaximumLevelViewDistance 1000
rem -----------------------------------------------------------------------------
gameLogic.setDefaultNumberOfTicketsEx 16 1 50
gameLogic.setDefaultNumberOfTicketsEx 16 2 50
gameLogic.setDefaultNumberOfTicketsEx 32 1 50
gameLogic.setDefaultNumberOfTicketsEx 32 2 50
gameLogic.setDefaultNumberOfTicketsEx 64 1 50
gameLogic.setDefaultNumberOfTicketsEx 64 2 50
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
It probably doesn't help that I have no kits assigned, but I don't think that's the problem.
Posted: 2007-05-21 23:14
by Rhino
MichSt-Spartan wrote:It probably doesn't help that I have no kits assigned, but I don't think that's the problem.
nooo that is your problem
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\Banghazi\
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\Banghazi\
run Overgrowth/Overgrowth.con
run Overgrowth/OvergrowthCollision.con
run AmbientObjects.con
run Water.con
run TriggerableTemplates.con
run ../../objects/Kits/kit_spawner_defs.con
endIf
rem GB VERSUS PLA NON URBAN
rem ------------------------------- LevelSettings -------------------------------
rem -----------------------------------------------------------------------------
gameLogic.setTeamName 1 "CH"
gameLogic.setTeamName 2 "GB"
gameLogic.setTeamLanguage 1 "Chinese"
gameLogic.setTeamLanguage 2 "GBEnglish"
gameLogic.setTeamFlag 0 "flag_neutral"
gameLogic.setTeamFlag 1 "flag_ch"
gameLogic.setTeamFlag 2 "flag_gb"
gameLogic.setKit 1 0 "ch_Specops" "ch_light_soldier"
gameLogic.setKit 2 0 "gb_Specops" "gb_light_soldier"
gameLogic.setKit 1 1 "ch_Rifleman" "ch_heavy_soldier"
gameLogic.setKit 2 1 "gb_Rifleman" "gb_heavy_soldier"
gameLogic.setKit 1 2 "ch_Assault" "ch_heavy_soldier"
gameLogic.setKit 2 2 "gb_Assault" "gb_heavy_soldier"
gameLogic.setKit 1 3 "ch_RiflemanAP" "ch_heavy_soldier"
gameLogic.setKit 2 3 "gb_RiflemanAP" "gb_heavy_soldier"
gameLogic.setKit 1 4 "ch_Engineer" "ch_light_soldier"
gameLogic.setKit 2 4 "gb_Engineer" "gb_light_soldier"
gameLogic.setKit 1 5 "ch_Medic" "ch_light_soldier"
gameLogic.setKit 2 5 "gb_Medic" "gb_light_soldier"
gameLogic.setKit 1 6 "ch_RiflemanAT" "ch_heavy_soldier"
gameLogic.setKit 2 6 "gb_RiflemanAT" "gb_heavy_soldier"
rem -----------------------------------------------------------------------------
gameLogic.setBeforeSpawnCamera 0/150/0 0/0/0
if v_arg1 == BF2Editor
LevelSettings.CustomTextureSuffix ""
else
texturemanager.customTextureSuffix ""
endIf
rem -----------------------------------------------------------------------------
GameLogic.MaximumLevelViewDistance 1000
rem -----------------------------------------------------------------------------
gameLogic.setDefaultNumberOfTicketsEx 16 1 50
gameLogic.setDefaultNumberOfTicketsEx 16 2 50
gameLogic.setDefaultNumberOfTicketsEx 32 1 50
gameLogic.setDefaultNumberOfTicketsEx 32 2 50
gameLogic.setDefaultNumberOfTicketsEx 64 1 50
gameLogic.setDefaultNumberOfTicketsEx 64 2 50
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
That should work better.
Posted: 2007-05-21 23:20
by MichSt-Spartan
'[R-DEV wrote:Rhino']nooo that is your problem
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\Banghazi\
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\Banghazi\
run Overgrowth/Overgrowth.con
run Overgrowth/OvergrowthCollision.con
run AmbientObjects.con
run Water.con
run TriggerableTemplates.con
run ../../objects/Kits/kit_spawner_defs.con
endIf
rem GB VERSUS PLA NON URBAN
rem ------------------------------- LevelSettings -------------------------------
rem -----------------------------------------------------------------------------
gameLogic.setTeamName 1 "CH"
gameLogic.setTeamName 2 "GB"
gameLogic.setTeamLanguage 1 "Chinese"
gameLogic.setTeamLanguage 2 "GBEnglish"
gameLogic.setTeamFlag 0 "flag_neutral"
gameLogic.setTeamFlag 1 "flag_ch"
gameLogic.setTeamFlag 2 "flag_gb"
gameLogic.setKit 1 0 "ch_Specops" "ch_light_soldier"
gameLogic.setKit 2 0 "gb_Specops" "gb_light_soldier"
gameLogic.setKit 1 1 "ch_Rifleman" "ch_heavy_soldier"
gameLogic.setKit 2 1 "gb_Rifleman" "gb_heavy_soldier"
gameLogic.setKit 1 2 "ch_Assault" "ch_heavy_soldier"
gameLogic.setKit 2 2 "gb_Assault" "gb_heavy_soldier"
gameLogic.setKit 1 3 "ch_RiflemanAP" "ch_heavy_soldier"
gameLogic.setKit 2 3 "gb_RiflemanAP" "gb_heavy_soldier"
gameLogic.setKit 1 4 "ch_Engineer" "ch_light_soldier"
gameLogic.setKit 2 4 "gb_Engineer" "gb_light_soldier"
gameLogic.setKit 1 5 "ch_Medic" "ch_light_soldier"
gameLogic.setKit 2 5 "gb_Medic" "gb_light_soldier"
gameLogic.setKit 1 6 "ch_RiflemanAT" "ch_heavy_soldier"
gameLogic.setKit 2 6 "gb_RiflemanAT" "gb_heavy_soldier"
rem -----------------------------------------------------------------------------
gameLogic.setBeforeSpawnCamera 0/150/0 0/0/0
if v_arg1 == BF2Editor
LevelSettings.CustomTextureSuffix ""
else
texturemanager.customTextureSuffix ""
endIf
rem -----------------------------------------------------------------------------
GameLogic.MaximumLevelViewDistance 1000
rem -----------------------------------------------------------------------------
gameLogic.setDefaultNumberOfTicketsEx 16 1 50
gameLogic.setDefaultNumberOfTicketsEx 16 2 50
gameLogic.setDefaultNumberOfTicketsEx 32 1 50
gameLogic.setDefaultNumberOfTicketsEx 32 2 50
gameLogic.setDefaultNumberOfTicketsEx 64 1 50
gameLogic.setDefaultNumberOfTicketsEx 64 2 50
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
That should work better.
LMAO thanks a ton man, I'll let you know how it works out.
Posted: 2007-06-05 17:14
by MichSt-Spartan
Same problem, same map, but this time my kits ARE defined in my init.con.
Posted: 2007-06-05 19:16
by S.A.S jackwebsterdunstan
what maps this for?
have you placed spawn points in the level editor?
only other thing i an think of at the moment is unpacking the zip folders in pr_edit/menu/folder to that location.
Posted: 2007-06-05 21:30
by Desertfox
MichSt-Spartan wrote:Same problem, same map, but this time my kits ARE defined in my init.con.
Have you created your minimap?
Posted: 2007-06-05 21:44
by Rhino
MichSt-Spartan wrote:Same problem, same map, but this time my kits ARE defined in my init.con.
you only just got round to trying this fix? did you copy and paste the ENTIER init.con file which i posted above and also which version are you working with of PR?
Posted: 2007-06-05 21:47
by MichSt-Spartan
'[R-DEV wrote:Rhino']you only just got round to trying this fix? did you copy and paste the ENTIER init.con file which i posted above and also which version are you working with of PR?
No, it's been fixed before, but the error is back again but stronger (like cancer). See, I added the kits in, it worked, I celebrated, threw a party, and did some more work on the map. I had some problems with it not updating when opened in game, and then I realized that I had left an old client.zip and server.zip in the map folder. I tried running it again with those removed, and I get smacked with the exact same error, but this time my init.con DOES have the kits.
Posted: 2007-06-05 21:51
by Rhino
send me your map over PM and ill take a look when I have time (may be after .6)
thou im guessing its a good chance to be a problem with your mod that you are working on.
Posted: 2007-06-05 22:03
by MichSt-Spartan
'[R-DEV wrote:Rhino']send me your map over PM and ill take a look when I have time (may be after .6)
thou im guessing its a good chance to be a problem with your mod that you are working on.
How long will that be? And what upload site should I use? It's 333 MB.