project reality header
Go Back   Project Reality Forums > PR:BF2 Mod Forums > PR:BF2 Community Modding > PR Community Modding Archives
PR Time:
Register Forum RulesDeveloper Blogs Project Reality Members List Search Today's Posts Mark Forums Read

Contact Support Team Frequently Asked Questions Register today!

 
 
LinkBack Thread Tools Display Modes
Old 02-15-2010, 07:06 AM   #1
space
Banned
Default [Help] 0.9 init problem

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
space is offline
Old 02-15-2010, 07:14 AM   #2
[R-DEV]AfterDune
PR Developer
Supporting Member
PR Server License Administrator

[R-DEV]AfterDune's Avatar
Default Re: [Help] 0.9 init problem

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.
[R-DEV]AfterDune is offline
Old 02-15-2010, 07:17 AM   #3
space
Banned
Default Re: [Help] 0.9 init problem

Hehe - looks like thats the problem - thanks
space is offline
Old 02-22-2010, 02:47 AM   #4
[R-DEV]Sniperdog
PR Coder Team
Supporting Member

[R-DEV]Sniperdog's Avatar
Default Re: [Help] 0.9 init problem

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.

[R-DEV]Sniperdog is offline
Old 02-22-2010, 03:25 AM   #5
[R-COM]HangMan
NZDF Faction Lead

[R-COM]HangMan's Avatar
Default Re: [Help] 0.9 init problem

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..."
[R-COM]HangMan is offline
Old 02-22-2010, 08:21 AM   #6
[R-DEV]Amok@ndy
PR:BF2 Developer
PR Server License Moderator

[R-DEV]Amok@ndy's Avatar
Default Re: [Help] 0.9 init problem

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.

[R-DEV]Amok@ndy is offline
Old 02-24-2010, 03:52 PM   #7
[R-DEV]billoute
PR:BF2 Developer

[R-DEV]billoute's Avatar
Default Re: [Help] 0.9 init problem

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 strange

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 ......
[R-DEV]billoute is offline
Old 02-25-2010, 11:43 AM   #8
[R-DEV]Amok@ndy
PR:BF2 Developer
PR Server License Moderator

[R-DEV]Amok@ndy's Avatar
Default Re: [Help] 0.9 init problem

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.

[R-DEV]Amok@ndy is offline
Old 02-25-2010, 03:52 PM   #9
[R-DEV]billoute
PR:BF2 Developer

[R-DEV]billoute's Avatar
Default Re: [Help] 0.9 init problem

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 ......
[R-DEV]billoute is offline
Old 02-25-2010, 04:03 PM   #10
[R-DEV]Amok@ndy
PR:BF2 Developer
PR Server License Moderator

[R-DEV]Amok@ndy's Avatar
Default Re: [Help] 0.9 init problem

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.

[R-DEV]Amok@ndy is offline
 


Tags
init, problem
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -4. The time now is 07:23 PM.


Powered by: vBulletin. ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO.
All Content Copyright ©2004 - 2012, Project Reality.