Game crashes because of custom "rep"-side

In this forum you will find and post information regarding the modding of Star Wars Battlefront 2. DO NOT POST MOD IDEAS/REQUESTS.

Moderator: Moderators

Post Reply
Flinti
Private Recruit
Posts: 24
Joined: Sun Mar 23, 2008 10:13 am

Game crashes because of custom "rep"-side

Post by Flinti »

I always get a crash when I copy the "rep" folder of the original assets to my custom "side" folder and Load it (for example) with:

Code: Select all

ReadDataFile("dc:SIDE\\rep.lvl", "rep_inf_ep3_trooper")
What do I do wrong? (The same thing occures when I do this with the "cis" folder)
woner11
Sith
Sith
Posts: 1361
Joined: Tue Sep 18, 2007 10:17 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: The lost world of pickels
Contact:

Re: Game crashes because of custom "rep"-side

Post by woner11 »

Flinti wrote:ReadDataFile("dc:SIDE\\rep.lvl", "rep_inf_ep3_trooper")
I'm not sure if this helps, but you've got an extra space in there.
Try this:

Code: Select all

ReadDataFile("dc:SIDE\\rep.lvl","rep_inf_ep3_trooper")
Also post the rest of your lua, because it might be something else. Have you tampered with the original assests?
User avatar
Teancum
Jedi Admin
Jedi Admin
Posts: 11080
Joined: Wed Sep 07, 2005 11:42 pm
Projects :: No Mod project currently.
Games I'm Playing :: Destiny
xbox live or psn: No gamertag set
Location: Indiana

Re: Game crashes because of custom "rep"-side

Post by Teancum »

And get the in-game log (Bfront2.log) as that'll tell us what we need to know.
woner11
Sith
Sith
Posts: 1361
Joined: Tue Sep 18, 2007 10:17 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: The lost world of pickels
Contact:

Re: Game crashes because of custom "rep"-side

Post by woner11 »

It does work with any type of map. You just place it in the dedicated server's addon folder (if you don't have one create it) then cite the mode and map in the bat file.
Flinti
Private Recruit
Posts: 24
Joined: Sun Mar 23, 2008 10:13 am

Re: Game crashes because of custom "rep"-side

Post by Flinti »

My map is "[Serverdir]\addon\AGE\data\_LVL_PC\AGE\geo1.lvl". So, what have I to do to open this map with the Didicated server?

Code: Select all

BattlefrontII.exe /gamename "Testing Map" /win /norender /resolution 200 200 /autonet dedicated /playercount 1 /bots 15 geo1c_con 400 400
Is calling the original Level, and :

Code: Select all

BattlefrontII.exe /gamename "Testing Map" /win /norender /resolution 200 200 /autonet dedicated /playercount 1 /bots 15 dc:geo1c_con 400 400
and

Code: Select all

BattlefrontII.exe /gamename "Testing Map" /win /norender /resolution 200 200 /autonet dedicated /playercount 1 /bots 15 addon\geo1c_con 400 400
doesn't function :(
Flinti
Private Recruit
Posts: 24
Joined: Sun Mar 23, 2008 10:13 am

Re: Game crashes because of custom "rep"-side

Post by Flinti »

Now I put all files of the 'Common' sides folder of the original assets in my custom rep folder, and it functions.

But why is the size of my rep.lvl different to the rep.lvl in the 'GameData\data' folder? (the same with repshell)
Post Reply