Page 1 of 1
Adding DC: makes game crash [Solved]
Posted: Tue Dec 31, 2013 12:26 am
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.
Re: Adding DC: makes game crash
Posted: Tue Dec 31, 2013 4:53 am
by Noobasaurus
Have you tried a clean and/or a manual clean? Sometimes things get bugged.
Re: Adding DC: makes game crash
Posted: Tue Dec 31, 2013 6:04 am
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??
Re: Adding DC: makes game crash
Posted: Tue Dec 31, 2013 2:59 pm
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.
Re: Adding DC: makes game crash
Posted: Wed Jan 01, 2014 1:13 pm
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.
Re: Adding DC: makes game crash
Posted: Wed Jan 01, 2014 2:15 pm
by Kingpin
Can you post your LUA?
Re: Adding DC: makes game crash
Posted: Wed Jan 01, 2014 3:15 pm
by MidnightSpirit
Here is the BF2Log
And the edited part of the LUA
Re: Adding DC: makes game crash
Posted: Wed Jan 01, 2014 3:35 pm
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:
(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.

Re: Adding DC: makes game crash
Posted: Wed Jan 01, 2014 8:56 pm
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.
Re: Adding DC: makes game crash [Solved]
Posted: Wed Jan 01, 2014 11:48 pm
by THEWULFMAN
You're not an idiot, just made an honest mistake.