Faulty detpack [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
User avatar
wishihadaname
Captain
Captain
Posts: 493
Joined: Fri Dec 28, 2007 2:10 pm
Projects :: The Corellian Resistance
Games I'm Playing :: Halo Reach and LOTRO
Location: Look to your left.... no, your other left....

Faulty detpack [Solved]

Post by wishihadaname »

this is really wierd i am for some reason having problems with the detpacks, i changed soem of the values of the detpacks to make them more anti-vehicle and less anti-unit but once i munge and try to play it crashes and gives me this error
Message Severity: 3
.\Source\Explosion.cpp(171)
Explosion base class "com_weap_inf_detpack_dispenser_exp" not found

its normally a really easy fix just find the file and fix/rename it but that file doesn't exist! not in common folder of my map, not in the assets and not in any of the other maps i've made and there i never had that problem. is there some workarround or am i missing something obvius? plz help
User avatar
Maveritchell
Jedi Admin
Jedi Admin
Posts: 7366
Joined: Mon Aug 21, 2006 11:03 pm

Re: faulty detpack

Post by Maveritchell »

That's because you renamed something and got yourself confused. There are four basic files for a detpack (a dispenser-type weapon): The base .odf (which is the dispenser), the _ord.odf (which is the actual detpack), the _exp.odf (which is the explosion for when the detpack just gets too old), and the _destroyed_exp.odf (which is the explosion when you detonate the detpack). It looks like you renamed the exp it tried to call for from com_weap_inf_detpack_destroyed_exp to com_weap_inf_detpack_dispenser_exp.

Note: Don't rename things arbitrarily unless you're going to remember what they're for.
User avatar
wishihadaname
Captain
Captain
Posts: 493
Joined: Fri Dec 28, 2007 2:10 pm
Projects :: The Corellian Resistance
Games I'm Playing :: Halo Reach and LOTRO
Location: Look to your left.... no, your other left....

Re: faulty detpack

Post by wishihadaname »

ok thanks i looked through and found that i had given then a "rep_weap_inf_detpack_despenser" instead of a "rep_weap_inf_detpack" once i changed that it worked fine i forgot you didn't use the despenser version thanks for your help
Post Reply