Page 1 of 1

Game crashes because of custom "rep"-side

Posted: Wed Mar 26, 2008 2:48 pm
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)

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

Posted: Wed Mar 26, 2008 3:17 pm
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?

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

Posted: Wed Mar 26, 2008 3:36 pm
by Teancum
And get the in-game log (Bfront2.log) as that'll tell us what we need to know.

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

Posted: Wed Mar 26, 2008 4:31 pm
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.

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

Posted: Wed Mar 26, 2008 4:39 pm
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 :(

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

Posted: Sat Mar 29, 2008 1:10 pm
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)