|
PR Time:
|
||||||
| Register | Forum Rules | Developer Blogs | Project Reality | Members List | Search | Today's Posts | Mark Forums Read |
|
|
LinkBack | Thread Tools | Display Modes |
|
|
#1 |
|
Banned
![]() |
I'm having a few problems converting a map to 0.9. The map init.con has been changed in 0.9 so that it calls the faction info from the PR/inits folder. When I try doing this for my map, I get the following crash and error just as the map finishes loading:
menu/nametag//minimap_cp It appears that the PR/inits factions code isn't being read, so an error is thrown up due to there seeming to be no faction being set. To get around this, I've attempted to rewrite the map init, so that it contains all the info contained in the PR/inits files, and this kind of worked and allowed the map to open. The problem is that the mouse is then frozen in the middle of the screen and cant be used. Strangely the mouse wheel still works which allows me to zoom in on the minimap. Is there something i'm missing here, and has anyone else managed to get their custom maps working with 0.9? Here the version maps init, that should work : Code:
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\monchegorsk\ run Overgrowth/Overgrowth.con Overgrowth.editorEnable 1 run AmbientObjects.con BF2Editor run Water.con run TriggerableTemplates.con else run Heightdata.con run Terrain.con v_arg2 run Sky.con v_arg2 run CompiledRoads.con run Sounds.con run SoundDistances.con run tmp.con v_arg1 Undergrowth.load Levels\monchegorsk\ run Overgrowth/Overgrowth.con run Overgrowth/OvergrowthCollision.con run AmbientObjects.con run Water.con run TriggerableTemplates.con rem ------------------------------- LevelSettings ------------------------------- rem ----------------------------------------------------------------------------- run ../../factions_usa/usa.con run ../../factions_ru/ru_team1.con rem ----------------------------------------------------------------------------- gameLogic.setBeforeSpawnCamera -1283/83/951 176/4/0 if v_arg1 == BF2Editor LevelSettings.CustomTextureSuffix "Woodland" else texturemanager.customTextureSuffix "Woodland" endIf rem ----------------------------------------------------------------------------- GameLogic.MaximumLevelViewDistance 1000 rem ----------------------------------------------------------------------------- gameLogic.setDefaultNumberOfTicketsEx 16 1 350 gameLogic.setDefaultNumberOfTicketsEx 16 2 350 gameLogic.setDefaultNumberOfTicketsEx 32 1 450 gameLogic.setDefaultNumberOfTicketsEx 32 2 450 gameLogic.setDefaultNumberOfTicketsEx 64 1 450 gameLogic.setDefaultNumberOfTicketsEx 64 2 450 gameLogic.setDefaultNumberOfTicketsEx 128 1 50 gameLogic.setDefaultNumberOfTicketsEx 128 2 50 gameLogic.setDefaultTimeToNextAIWave 8 gameLogic.setTicketLossAtEndPerMin 1000 gameLogic.setTicketLossPerMin 1 10 gameLogic.setTicketLossPerMin 2 10 |
|
|
|
|
#2 |
|
PR Developer
![]() |
Check a v0.9 map's serverarchives.con.
From Al Basrah's ServerArchives.con: Code:
fileManager.mountArchive inits/factions_common.zip factions_common fileManager.mountArchive inits/factions_gb.zip factions_gb fileManager.mountArchive inits/factions_meinsurgent.zip factions_meinsurgent |
|
To view links or images in signatures your post count must be 1 or greater. You currently have 0 posts. To view links or images in signatures your post count must be 1 or greater. You currently have 0 posts. To view links or images in signatures your post count must be 1 or greater. You currently have 0 posts. |
|
|
|
|
|
#3 |
|
Banned
![]() |
Hehe - looks like thats the problem - thanks
|
|
|
|
|
#4 |
|
PR Coder Team
![]() |
When in doubt look at the pr files
|
|
To view links or images in signatures your post count must be 1 or greater. You currently have 0 posts. To view links or images in signatures your post count must be 1 or greater. You currently have 0 posts. I will never forget that I am an American, fighting for freedom, responsible for my actions, and dedicated to the principles which made my country free. |
|
|
|
|
|
#5 |
|
NZDF Faction Lead
![]() Join Date: Jun 2009
Location: Auckland
Posts: 1,712
|
Just thought i'd add in here, in some peoples pr_edit, the inits don't point to the right menu folder or something. To solve the inits and minimap_cp error you need to have code similar to the following in your levels serverarchive.con
Code:
fileManager.mountArchive ../pr/inits/factions_common.zip factions_common fileManager.mountArchive ../pr/inits/factions_gb.zip factions_gb fileManager.mountArchive ../pr/inits/factions_meinsurgent.zip factions_meinsurgent |
|
To view links or images in signatures your post count must be 1 or greater. You currently have 0 posts. PR Community Faction Team - "Getting Sh*t Done..." |
|
|
|
|
|
|
|
|
|
|
|
#6 |
|
PR:BF2 Developer
![]() |
easiest way is to just have a look for a map that is using the same factions and copy and paste the files
|
|
To view links or images in signatures your post count must be 1 or greater. You currently have 0 posts. |
|
|
|
|
|
#7 |
|
PR:BF2 Developer
![]() Join Date: Apr 2009
Location: Lyon/France
Posts: 241
|
i have another problem with 0.9 init , i try to play with the new factions (IDF in this exemple )to my custom map ,i paste the init.con of Gaza and create the new folder serverarchive.con(same Gaza) and the map crash at the end of loading
If i do the same with Muttrah folders , it runs else, i don't find this new factions on the bf editor --> does exist an udape(0.9) of the folder "LevelEditor" ? (.../Battelfield2/bf2editor/mods/pr_edit/LevelEditor) |
|
To view links or images in signatures your post count must be 1 or greater. You currently have 0 posts. La faim justifie les moyens ......
|
|
|
|
|
|
#8 |
|
PR:BF2 Developer
![]() |
against which faction did you run the IDF ?
make clear that it are Blufor vs. Opfor or Blufor vs. Blufor_team1 |
|
To view links or images in signatures your post count must be 1 or greater. You currently have 0 posts. |
|
|
|
|
|
#9 |
|
PR:BF2 Developer
![]() Join Date: Apr 2009
Location: Lyon/France
Posts: 241
|
in fact, i try to run with IDF(team 1) versus US(team2) for my exemple , i change code line in the init.con and archiveserver.con ( IDF instead of MEC ) but the map failed, it run with MEC versus US !
Else what about new factions weapon to put in the game, how we do that ? |
|
To view links or images in signatures your post count must be 1 or greater. You currently have 0 posts. La faim justifie les moyens ......
|
|
|
|
|
|
#10 |
|
PR:BF2 Developer
![]() |
create a new .con in the inits folder
and you cant create a blufor vs. blufor map because it will only load the weapons for one team ! have a look at silent_eagle there you see that there is US vs. Rus_team1 (Russian Opfor) |
|
To view links or images in signatures your post count must be 1 or greater. You currently have 0 posts. |
|
|
|
|
|
|
|
|
|
| Tags |
| init, problem |
| Thread Tools | |
| Display Modes | |
|
|