project reality header
Go Back   Project Reality Forums > PR:BF2 Mod Forums > PR:BF2 Community Modding
04 Oct 2022, 00:00:00 (PRT)
Register Developer Blogs Project Reality Members List Search Today's Posts Mark Forums Read
PR:BF2 Community Modding Making or wanting help making your own asset? Check in here

Thread Tools Display Modes
Old 2013-08-14, 22:34   #1
[R-DEV]​M42 Zwilling
PR:BF2 Developer

M42 Zwilling's Avatar
Post [Info] Running the Debugger in PR:BF2 v1.X

The BF2/PR debugger is extremely helpful in tracking down bugs that don't give error messages, but it does require a bit of knowledge on how to read the log messages.

Here's what you'll need to do to set it up:

1.Download Debugger files and menu files modified to work with the debugger (they are quite outdated compared to the release version but it doesn't really matter).
2.Extract Debugger files into your root Project Reality folder (i.e. C:\Program Files (x86)\Project Reality\Project Reality BF2\) and modified menu files into mods/pr_edit/content (do it AFTER you have completed step 4 from the editor setup tutorial).
3.Then run the normal PR launcher. Right-click on "PLAY", and click "Launch Debugger". Next you'll need to make a profile that will function properly in the debugger. Go to "Manage Profiles" and create a new offline profile.
4.Select it from the profiles list after creating it and hit "Convert Profile" to convert to a debugger profile.
5.Depending on what you want to do, you may want to go back to the Options menu through the launcher, select debugger profile in order to lower resolution and disable fullscreen. That's because fullscreen only produces logs while windowed mode also shows error windows for more important errors.
6.Go back to the debugger screen(right click PLAY and select "launch Debugger"), select your new profile, log in, and have fun debugging.

When you're running the debugger in windowed mode, you'll get error messages popping up all the time when loading. Generally, these are messages about texture coordinates, which can be ignored. Simply press Continue through them all.

Log messages are output to mods/pr/logs. You'll get 2 log messages, a BFLog and a Debug log. The Debug log is lots of stuff about what it's currently doing, and the BFLog is more similar to the standard error messages that pop up, and is more about errors rather than notifications.

Generally, any errors and crashes will be the last thing in the log, but not all the time. We have found that errors relating to collisionmeshes won't be the last error, and sometimes some other things. So, go back through the Debug log looking for "Error" or "Warning" messages (you'll notice things start with Debug, Warning, Error, Assert, etc), and see if it's anything about something you've just modified. That'll generally be the problem there Good luck and if something doesn't work out then come to the community modding forums and make a thread about your issue.

Updated for

"How many posts have there been about how much better PR was back in 0.X? The fact is that if we played the older versions we would start to remember the shortcomings, but we tend to hold onto the good memories tighter than the bad ones." - Murphy
M42 Zwilling is offline
Last edited by Suchar; 2022-07-02 at 23:55..
Reply With Quote
Old 2020-10-25, 17:57   #2
PR:BF2 Contributor

LangMaster's Avatar
Default Re: [Info] Running the Debugger in PR:BF2 v1.X

Hello there, i don't seem to be able to load any lrg 128 map only 64 and less.
upon selection to 128 lrg map it gives me std on loading.
LangMaster is offline Reply With Quote
Old 2020-10-26, 11:03   #3
PR:BF2 Lead Developer
Supporting Member
PR Server License Administrator

Mats391's Avatar
Default Re: [Info] Running the Debugger in PR:BF2 v1.X

Yes the debugger only supports the default bf2 layers. It also only support 64 players and 6 men squads. We will probably not change this as its too much work and we do not need it ourselves.

Mineral: TIL that Wire-guided missiles actually use wire
Mats391 is offline Reply With Quote
Old 2021-01-05, 23:31   #4
Default Re: [Info] Running the Debugger in PR:BF2 v1.X

if I extract to \Program Files (x86)\Project Reality\Project Reality BF2\ it asks if I want to replace files... Is this ok? or do I skip?
Talon-OneOne is offline Reply With Quote
Old 2022-07-03, 00:04   #5
PR:BF2 Developer
Project Reality Beta Tester
Default Re: [Info] Running the Debugger in PR:BF2 v1.X

Thread cleaned and updated for v1.7.1.1 with additional information and a menu fix to make the debugger usable again.

Secret link last updated: 30th August 2022
Suchar is offline Reply With Quote

debugger, fixed, info, prbf2, running, updated, v15, v1x
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

All times are GMT. The time now is 01:23.