Create Local Server fails

If you find a bug within PR:BF2 (including PRSP), please report it here.
Post Reply
whattheh3ll
Posts: 19
Joined: 2010-02-26 23:29

Create Local Server fails

Post by whattheh3ll »

Description:
attempting to create local server and throws error:

Version: 1.7.4.2

Module: GameServer

File:c:\dice\Projects\BF2Branches\Patch_1_50\Code\BF2\Game\GameServer\GameServer.cpp

Line:3822

Text: failed to initialize gamemode

Current confile:
Arab
PR:BF2 Developer
Posts: 2898
Joined: 2012-05-18 03:37

Re: Create Local Server fails

Post by Arab »

In the pr folder, inside python/game, __init__.py is messed up probably, can happen if you reset your PC when running the game which corrupts it.

Open the file into Notepad, copy and paste into it the following and save:

Code: Select all

# ------------------------------------------------------------------
#
# PROJECT REALITY SERVER INIT
#
# This file can be edited by any server (public or private).
#
import realityinit

realityinit.init(False)  # Switch to True if using debugger executables (PRLauncher.exe will automatically modify this value accordingly)

# ------------------------------------------------------------------
# Add your custom script's initilization below
Image
whattheh3ll
Posts: 19
Joined: 2010-02-26 23:29

Re: Create Local Server fails

Post by whattheh3ll »

hey that worked, awesome, thanks. close it out
Post Reply

Return to “PR:BF2 Bugs”