Adding DC: makes game crash [Solved]

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
MidnightSpirit
Second Lance Corporal
Second Lance Corporal
Posts: 100
Joined: Mon Aug 15, 2011 1:29 pm
Games I'm Playing :: BF2
xbox live or psn: ApocryphicDeath

Adding DC: makes game crash [Solved]

Post by MidnightSpirit »

Okay so I reinstalled the BF2 Mod Tool and was getting ready to try out some new skins that I had made and make a new map. I went through every step as I have done over a dozen times before but the game kept crashing no matter what I did.
Upon further investigation I discovered that simply by adding dc: in the conquest script and munging the side the game would crash. I have never had a problem with just adding dc: and I'm certain this is a really simple fix and I'm going to feel dumb afterward but here it is.
Note: I didn't replace or even open any of the skins in the side folder I was working on. Yes I did try this before because I thought the editor I was using might have been causing the problem. Taking dc: out allows the game to play normally.
Last edited by MidnightSpirit on Wed Jan 01, 2014 8:56 pm, edited 1 time in total.
Noobasaurus
Droid Pilot Assassin
Droid Pilot Assassin
Posts: 2006
Joined: Tue Aug 17, 2010 5:56 pm

Re: Adding DC: makes game crash

Post by Noobasaurus »

Have you tried a clean and/or a manual clean? Sometimes things get bugged.
User avatar
Anakin
Master of the Force
Master of the Force
Posts: 4817
Joined: Sat Sep 19, 2009 11:37 am
Projects :: RC Side Mod - Remastered - SWBF3 Legacy
Location: Mos Espa (germany)

Re: Adding DC: makes game crash

Post by Anakin »

sp if you remove the dc the map loads the stock rep/imp/cis/all.lvl file and that these work without problems is not that miracle. And because you made a Side modification (if i understand it right) and nothing on the map, last of these is also stock. So there is no wonder that your map works by removing the dc.


Problmes that you could make:
typing error in lua file it need to be ReadDataFile("dc:SIDE\\rep.lvl", .
the sidenames in the lua didn't fit with your ones in the rep.req file,
or in the side.req file,
or in the side.odf,
or a weapon odf is missing
or.....


You see it's a cheerful guess. Can you post your BFcrash log??
MidnightSpirit
Second Lance Corporal
Second Lance Corporal
Posts: 100
Joined: Mon Aug 15, 2011 1:29 pm
Games I'm Playing :: BF2
xbox live or psn: ApocryphicDeath

Re: Adding DC: makes game crash

Post by MidnightSpirit »

Haha I don't know where to find the crash log you mention. Sorry...
(I also knew that the stock units running was nothing incredible but felt I should say that was working to narrow down the problem)
I'm guessing simply deleting and re-installing the mod tool isn't going to work.

Edit: Tried that and it didn't work
I also tried cleaning it and that did not work either.
User avatar
Anakin
Master of the Force
Master of the Force
Posts: 4817
Joined: Sat Sep 19, 2009 11:37 am
Projects :: RC Side Mod - Remastered - SWBF3 Legacy
Location: Mos Espa (germany)

Re: Adding DC: makes game crash

Post by Anakin »

Question #4 - I have the CD version of SWBF2 and I get a binkw32.dll error when trying to launch the BF2_modtools.exe, what's wrong?
Answer - The BF2_modtools.exe is the debug executable, copy it from C:\BF2_ModTools and paste it in the same folder as your BattlefrontII.exe, usually:
C:\Program Files\LucasArts\Star Wars Battlefront II\GameData
you can launch BF2_modtools.exe and play your map then exit or let it crash to generate a BFront2.log located in that same folder.
If you encounter a "Please insert CD 1" dialogue or have the DVD or digital download version of SWBF2 use THIS modified BF2_modtools.exe

Note to Vista users:
If you can't find your BFront2.log it may be saved to this location:
C:\Users\<username>\AppData\Local\VirtualStore\Program Files\LucasArts\Star Wars Battlefront II\GameData
or click on the Compatibility Files button in the GameData folder.
http://www.gametoast.com/forums/viewtop ... 27&t=10864

Have a look at this. you need to start BF with the modtools exe and than there is the log.
User avatar
Kingpin
Jedi
Jedi
Posts: 1096
Joined: Fri Sep 13, 2013 7:09 pm
Projects :: The Sith Wars II
Location: Denver, CO
Contact:

Re: Adding DC: makes game crash

Post by Kingpin »

Can you post your LUA?
MidnightSpirit
Second Lance Corporal
Second Lance Corporal
Posts: 100
Joined: Mon Aug 15, 2011 1:29 pm
Games I'm Playing :: BF2
xbox live or psn: ApocryphicDeath

Re: Adding DC: makes game crash

Post by MidnightSpirit »

Here is the BF2Log
Hidden/Spoiler:
Image

Image
And the edited part of the LUA
Hidden/Spoiler:
Image
Last edited by MidnightSpirit on Wed Jan 01, 2014 3:20 pm, edited 1 time in total.
User avatar
Cleb
Lieutenant General
Lieutenant General
Posts: 711
Joined: Sun Jun 17, 2012 10:12 pm
Projects :: Learning how to use 3DS Max
Games I'm Playing :: BF2 CIV4 MC
xbox live or psn: ˙. ˙. ˙. ˙. ˙. ˙
Location: Somewhere
Contact:

Re: Adding DC: makes game crash

Post by Cleb »

BF2log wrote:

Code: Select all

Message Severity:  3
.\Source\Weapon.ccp(1604)
Weapon base class "com_weap_inf_lightsaber" not found
This is most likely what is crashing your game. Make sure you have the Common side in your sides folder.
Also, a tip, instead of taking and posting a screenshot of your code/log, just copy and paste it into this format:
Hidden/Spoiler:
[code ]<your stuff here>[/code]
(without spaces) this will make it easier for people to point out mistakes or other things by way of either copying it or coloring a certain part. :wink:
MidnightSpirit
Second Lance Corporal
Second Lance Corporal
Posts: 100
Joined: Mon Aug 15, 2011 1:29 pm
Games I'm Playing :: BF2
xbox live or psn: ApocryphicDeath

Re: Adding DC: makes game crash

Post by MidnightSpirit »

First off I am an idiot for forgetting the Common folder, I guess that is what happens when you take a 3 month break.
Thank you very much for helping me with that rookie mistake.
And thank you for the tip on posting my BFlog I'm sure other people will appreciate it when I ask for help.
THEWULFMAN
Space Ranger
Posts: 5557
Joined: Tue Aug 17, 2010 3:30 pm
Projects :: Evolved 2
Location: Columbus, Ohio
Contact:

Re: Adding DC: makes game crash [Solved]

Post by THEWULFMAN »

You're not an idiot, just made an honest mistake.
Post Reply