[HELP] Loading problem

Making or wanting help making your own asset? Check in here
Post Reply
jello999
Posts: 50
Joined: 2009-12-02 17:08

[HELP] Loading problem

Post by jello999 »

Hi,

I'm actually working on a D-Day style map,but when I was about to release a Beta into my clan,I found a problem.

I'm not,and nobody can,pass the loading complete stage.Each time it's CTD with no error message.Even with the debug .exe I still get only a CTD with no message.

I'm using,what I think,is the 0.9 way(found on this topic: https://www.realitymod.com/forum/f388-pr-bf2-community-modding/76031-help-0-9-init-problem.html)but each time I get the CTD.
It does'nt CTD if I use this way to write the Ini files.
Kit Request Spawner Set-up

You will need to add a 3 line of code into the init.con file. Without them your map will crash on load, and you will not be able to request kits etc if it did load.

add this line of code:
Code:

run ../../objects/common/spawners/spawners_common.con

under the "run TriggerableTemplates.con" bit in your init.con file. Then under that you will need to then include the spawner file specific for the map factions:
Code:

run ../../objects/common/spawners/spawners_usa.con
run ../../objects/common/spawners/spawners_us.con
run ../../objects/common/spawners/spawners_mec.con
run ../../objects/common/spawners/spawners_gb.con
run ../../objects/common/spawners/spawners_ch.con
run ../../objects/common/spawners/spawners_ru.con
run ../../objects/common/spawners/spawners_meinsurgent.con
run ../../objects/common/spawners/spawners_chinsurgent.con
run ../../objects/common/spawners/spawners_taliban.con

Example:

Quote:
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\Daqing_oilfields\
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\Daqing_oilfields\
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_ch.con

endIf
Quote from Fuzzhead post.

I'm confused about this problem.If anybody can help me.If nessacerary I can post what's write in my files.

Thanks for help,

Jello
Amok@ndy
Retired PR Developer
Posts: 5144
Joined: 2008-11-27 22:13

Re: [HELP]Loading problem

Post by Amok@ndy »

what teams are you using ?

you can only play Opfor vs. Blufor
Image
jello999
Posts: 50
Joined: 2009-12-02 17:08

Re: [HELP]Loading problem

Post by jello999 »

run ../../factions_ru/ru_team1.con
run ../../factions_usa/usa_para.con
Amok@ndy
Retired PR Developer
Posts: 5144
Joined: 2008-11-27 22:13

Re: [HELP]Loading problem

Post by Amok@ndy »

do you have included the serverarchives.con file ?
Image
jello999
Posts: 50
Joined: 2009-12-02 17:08

Re: [HELP]Loading problem

Post by jello999 »

Yes,it's include...
fileManager.mountArchive pr/inits/factions_common.zip factions_common
fileManager.mountArchive pr/inits/factions_ru.zip factions_ru
fileManager.mountArchive pr/inits/factions_usa.zip factions_usa
Amok@ndy
Retired PR Developer
Posts: 5144
Joined: 2008-11-27 22:13

Re: [HELP]Loading problem

Post by Amok@ndy »

and your map works fine with other teams ?
Image
jello999
Posts: 50
Joined: 2009-12-02 17:08

Re: [HELP]Loading problem

Post by jello999 »

Only if I use the other way(Quoted from fuzzhead),and I get kits bug....

Like gun not showing up,CTD when placing FOB,and many others....
Amok@ndy
Retired PR Developer
Posts: 5144
Joined: 2008-11-27 22:13

Re: [HELP]Loading problem

Post by Amok@ndy »

if other teams arent workin also you may do sth wrong
can you post your init.con
Image
jello999
Posts: 50
Joined: 2009-12-02 17:08

Re: [HELP]Loading problem

Post by jello999 »

There it is...
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\d_day\
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\d_day\
run Overgrowth/Overgrowth.con
run Overgrowth/OvergrowthCollision.con
run AmbientObjects.con
run Water.con
run TriggerableTemplates.con
run ServerArchives.con

endIf

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

run ../../factions_ru/ru_team1.con
run ../../factions_usa/usa_para.con

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

gameLogic.setBeforeSpawnCamera 120/46/59 135/-4/0

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

GameLogic.MaximumLevelViewDistance 350

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

gameLogic.setDefaultNumberOfTicketsEx 16 1 50
gameLogic.setDefaultNumberOfTicketsEx 16 2 50
gameLogic.setDefaultNumberOfTicketsEx 32 1 50
Amok@ndy
Retired PR Developer
Posts: 5144
Joined: 2008-11-27 22:13

Re: [HELP]Loading problem

Post by Amok@ndy »

hmm should be fine

and your GPO ?
Image
AncientMan
Retired PR Developer
Posts: 5111
Joined: 2007-05-22 07:42

Re: [HELP]Loading problem

Post by AncientMan »

ServerArchives.con needs to be:

Code: Select all

fileManager.mountArchive inits/factions_common.zip factions_common
fileManager.mountArchive inits/factions_ru.zip factions_ru
fileManager.mountArchive inits/factions_usa.zip factions_usa
So ditch the "pr/" bit.

You sure that's the entire init.con?

You're missing a bunch of "gameLogic" lines at the bottom.

Also missing the

Code: Select all

rem *** Generated by BF2Editor ***
if v_arg1 == BF2Editor

run Heightdata.con
LevelSettings.InitWorld
stuff that should be at the top.

Lose the "run ServerArchives.con" line in the init.con, it's autoloaded, doesn't need to be in there.
Image
jello999
Posts: 50
Joined: 2009-12-02 17:08

Re: [HELP]Loading problem

Post by jello999 »

Ok,Iwill add those thing and tell you if it work...

Edit:Yes actually it doesn't paste entirely on the post,my bad

Hre it is...
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\d_day\
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\d_day\
run Overgrowth/Overgrowth.con
run Overgrowth/OvergrowthCollision.con
run AmbientObjects.con
run Water.con
run TriggerableTemplates.con

endIf

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

run ../../factions_ru/ru_team1.con
run ../../factions_usa/usa_para.con

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

gameLogic.setBeforeSpawnCamera 120/46/59 135/-4/0

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

GameLogic.MaximumLevelViewDistance 350

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
Last edited by jello999 on 2010-06-20 15:41, edited 2 times in total.
jello999
Posts: 50
Joined: 2009-12-02 17:08

Re: [HELP]Loading problem

Post by jello999 »

Ok,it seems to work... Don't know why but lol it works !

Thank for your help all of you ^^
Post Reply

Return to “PR:BF2 Community Modding”