[HELP!] Map Not Showing Up In PR

Making or wanting help making your own asset? Check in here
Post Reply
milla da killa
Posts: 47
Joined: 2010-07-19 01:48

[HELP!] Map Not Showing Up In PR

Post by milla da killa »

So, I added control points, spawn points, all that jazz. However, when I boot up PR and go to create a local game, the map does not show up under any of the gametypes? Do I need to change something to make it fit in a certain gametype or something?
Image
Rudd
Retired PR Developer
Posts: 21225
Joined: 2007-08-15 14:32

Re: [HELP!] Map Not Showing Up In PR

Post by Rudd »

https://www.realitymod.com/forum/f388-p ... -list.html

search first, ask second

usually you need to sort out your info folder, refer to how its setup on other PR maps to understand what to put in it, just remember to name your desc folder after your map folder
Image
milla da killa
Posts: 47
Joined: 2010-07-19 01:48

Re: [HELP!] Map Not Showing Up In PR

Post by milla da killa »

I had searched before, but must have missed that post. The others I saw didn't help. Anyways, checked the info and changed it around a bit, so now it shows up. Thanks.

Now I just need to figure out why it crashes on startup. Making me remember why I gave up modding and mapping.
Image
AFsoccer
Retired PR Developer
Posts: 4289
Joined: 2007-09-04 07:32

Re: [HELP!] Map Not Showing Up In PR

Post by AFsoccer »

Run pr_edit in window mode. When it crashes, it should give you an error message why. Then do a search for that error. Most people have the same handful of errors, so it should be easy to find a post about it. Good luck... and if you get stuck just let us know.
milla da killa
Posts: 47
Joined: 2010-07-19 01:48

Re: [HELP!] Map Not Showing Up In PR

Post by milla da killa »

Did the search, but can't find anything clearcut on what the problem is or how to fix it. Getting the error where it says it can't find "usmc/minimap_cp". After searching, it says check the flag names and teams, which I've done, so it doesn't make any sense. I even wound up going back and changing the flag names to something more simple, but still to no avail.

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\camp_blanding\
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\camp_blanding\
run Overgrowth/Overgrowth.con
run Overgrowth/OvergrowthCollision.con
run AmbientObjects.con
run Water.con
run TriggerableTemplates.con

endIf

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

gameLogic.setTeamName 1 "USA"
gameLogic.setTeamName 2 "TALIBAN"

gameLogic.setTeamLanguage 1 "English"
gameLogic.setTeamLanguage 2 "English"

gameLogic.setTeamFlag 0 "neutral"
gameLogic.setTeamFlag 1 "main"
gameLogic.setTeamFlag 2 "taliban"

gameLogic.setKit 1 0 "taliban_officer" "pr_taliban_soldier1"
gameLogic.setKit 2 0 "usa_officer_ziptie" "pr_usa_soldier4"

gameLogic.setKit 1 1 "taliban_insurgent1" "pr_taliban_soldier1"
gameLogic.setKit 2 1 "usa_riflemanab_ziptie" "pr_usa_soldier2"

gameLogic.setKit 1 2 "taliban_insurgent2" "pr_taliban_soldier2"
gameLogic.setKit 2 2 "usa_rifleman_ziptie" "pr_usa_soldier3"

gameLogic.setKit 1 3 "taliban_scout" "pr_taliban_soldier4"
gameLogic.setKit 2 3 "usa_specialist_ziptie" "pr_usa_soldier1"

gameLogic.setKit 1 4 "taliban_medic" "pr_taliban_soldier4"
gameLogic.setKit 2 4 "usa_medic_ziptie" "pr_usa_soldier2"

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 850

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 0
gameLogic.setTicketLossPerMin 2 0

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

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

renderer.globalStaticMeshLodDistanceScale 1
renderer.globalBundleMeshLodDistanceScale 1
renderer.globalSkinnedMeshLodDistanceScale 1
Any suggestions on what might be the problem exactly?

EDIT: Oh, and I realize the kits are backwards, I have copied it from somewhere else in an attempt to figure out the problem.
Last edited by milla da killa on 2010-07-21 16:45, edited 1 time in total.
Image
Rudd
Retired PR Developer
Posts: 21225
Joined: 2007-08-15 14:32

Re: [HELP!] Map Not Showing Up In PR

Post by Rudd »

gameLogic.setTeamName 1 "USA"
gameLogic.setTeamName 2 "TALIBAN"

gameLogic.setTeamLanguage 1 "English"
gameLogic.setTeamLanguage 2 "English"

gameLogic.setTeamFlag 0 "neutral"
gameLogic.setTeamFlag 1 "main"
gameLogic.setTeamFlag 2 "taliban"

gameLogic.setKit 1 0 "taliban_officer" "pr_taliban_soldier1"
gameLogic.setKit 2 0 "usa_officer_ziptie" "pr_usa_soldier4"

gameLogic.setKit 1 1 "taliban_insurgent1" "pr_taliban_soldier1"
gameLogic.setKit 2 1 "usa_riflemanab_ziptie" "pr_usa_soldier2"

gameLogic.setKit 1 2 "taliban_insurgent2" "pr_taliban_soldier2"
gameLogic.setKit 2 2 "usa_rifleman_ziptie" "pr_usa_soldier3"

gameLogic.setKit 1 3 "taliban_scout" "pr_taliban_soldier4"
gameLogic.setKit 2 3 "usa_specialist_ziptie" "pr_usa_soldier1"

gameLogic.setKit 1 4 "taliban_medic" "pr_taliban_soldier4"
gameLogic.setKit 2 4 "usa_medic_ziptie" "pr_usa_soldier2"

gameLogic.setKit 1 5 "" ""
gameLogic.setKit 2 5 "" ""

gameLogic.setKit 1 6 "" ""
gameLogic.setKit 2 6 "" ""
PR doesn't use this system anymore

refernce other maps to see how its done :)

korengal below.
endIf

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

run ../../factions_usa/usa.con
run ../../factions_taliban/taliban.con

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

gameLogic.setBeforeSpawnCamera 121/112/149 -155/21/0

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

GameLogic.MaximumLevelViewDistance 700

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

gameLogic.setDefaultNumberOfTicketsEx 16 1 400
gameLogic.setDefaultNumberOfTicketsEx 16 2 250
gameLogic.setDefaultNumberOfTicketsEx 32 1 400
gameLogic.setDefaultNumberOfTicketsEx 32 2 250
gameLogic.setDefaultNumberOfTicketsEx 64 1 400
gameLogic.setDefaultNumberOfTicketsEx 64 2 250
gameLogic.setDefaultNumberOfTicketsEx 128 1 400
gameLogic.setDefaultNumberOfTicketsEx 128 2 100
gameLogic.setDefaultTimeToNextAIWave 8
gameLogic.setTicketLossAtEndPerMin 1000
gameLogic.setTicketLossPerMin 1 5
gameLogic.setTicketLossPerMin 2 5
Image
milla da killa
Posts: 47
Joined: 2010-07-19 01:48

Re: [HELP!] Map Not Showing Up In PR

Post by milla da killa »

Now I get "/nametag//minimap_cp" instead of "/nametag/usmc/minimap_cp". :confused:
Image
Rudd
Retired PR Developer
Posts: 21225
Joined: 2007-08-15 14:32

Re: [HELP!] Map Not Showing Up In PR

Post by Rudd »

ah, I suppose your running it in pr_edit?

run it in PR instead, I can't remember the code you need to add

run ../../factions_usa/usa.con
run ../../factions_taliban/taliban.con

you gotta add something somewhere here
Image
AFsoccer
Retired PR Developer
Posts: 4289
Joined: 2007-09-04 07:32

Re: [HELP!] Map Not Showing Up In PR

Post by AFsoccer »

Running it in pr_edit shouldn't make a difference because you copied everything over. I personally think it's safer to use pr_edit for mapping because then you don't mess around with your root PR folder.

But the errors you're getting are some of the common ones and are due to the way PR changed the kit system. See this sticky thread:
https://www.realitymod.com/forum/f388-pr-bf2-community-modding/76031-help-0-9-init-problem.html
milla da killa
Posts: 47
Joined: 2010-07-19 01:48

Re: [HELP!] Map Not Showing Up In PR

Post by milla da killa »

Changed the init, realized I didn't have a serverarchive and added that, so now it finally loads to the squad assignment. But now when I click it it CTD's without an error. I made sure everything was packaged, checked the objects to make sure there wasn't any kind of funky ones in there, and tried loading in different resolutions/details. So again, I'm stumped, and left feeling like a froob.
Image
AFsoccer
Retired PR Developer
Posts: 4289
Joined: 2007-09-04 07:32

Re: [HELP!] Map Not Showing Up In PR

Post by AFsoccer »

These are the hardest errors to decrypt. I would recommend opening the folder of another map and extracting the contents so you can see all of the files. Then compare your folder to that one to see if there's anything missing. The Editor can sometimes make errors when creating the map or there is something you haven't done yet (like overgrowth or whatever) and thus the file was never created.

For example, when I CTD'ed after the map loaded it was because I was missing a file called "simpleshadowmap.raw". By copying that file from another map I was able to get mine to run.

Good luck.
Rudd
Retired PR Developer
Posts: 21225
Joined: 2007-08-15 14:32

Re: [HELP!] Map Not Showing Up In PR

Post by Rudd »

^ if that doesn't work, go to your init.con and delete thing to load one at a time, load the map each time, if it doesn't crash after one of the things is removed, then you've located at least one of the problems :)
Image
milla da killa
Posts: 47
Joined: 2010-07-19 01:48

Re: [HELP!] Map Not Showing Up In PR

Post by milla da killa »

Alright, thanks for the help so far by the way. I'm going to go start going through everything now, which may take a while (darned distractions!).

EDIT: The sense this makes is none. I went through and compared every file to both Al Basrah and Korengal, and everything is in it's right place and set up correctly now. Anything else it could be?
Last edited by milla da killa on 2010-07-22 02:12, edited 1 time in total.
Image
AFsoccer
Retired PR Developer
Posts: 4289
Joined: 2007-09-04 07:32

Re: [HELP!] Map Not Showing Up In PR

Post by AFsoccer »

Have you tried searching the forum at bfeditor.org? I've seen quite a few posts about CTD'ing when joining the map.
milla da killa
Posts: 47
Joined: 2010-07-19 01:48

Re: [HELP!] Map Not Showing Up In PR

Post by milla da killa »

Yea, but none of them had a clear answer, and the ones that seemed to be the same issue I tried. Oh well, this is the point you admit defeat and move on. Thanks for the help, but apparently mapping is not for me.
Image
Post Reply

Return to “PR:BF2 Community Modding”