Jump to content


Photo

New CAH class and powers crashing


  • Please log in to reply
6 replies to this topic

#1 acidRain

acidRain

    insane programmer

  • Members
  • 79 posts
  • Location:the place that never but always was
  • Projects:personal mods
  •  coder, occasional skinner, and all-around game-breaker

Posted 24 June 2013 - 07:49 PM

Hi all-

 

I'm very familiar with modding, so you don't have to hand-hold me. Promise. I created a new CaH class (full class, with 3 sub-classes - for now I'm just borrowing the Istari animations/models) and its own set of class-specific powers. However, whenever I finish on the customization screen (for name and appearance), and then click next to the power screen, the game crashes with no error message besides the "runtime failure" message. Ordinarily I would see this as a problem with the powers - something went wrong with loading them and therefore the game failed. However - earlier I had booted up the game to test this mod, and I'd found that the model animations were wonky. Since that's and easy fix, I went on to the powers screen to test the powers, and they'd been working. It's got me stumped. Any suggestions?


WWJBD - What Would Jack Bauer Do?

#2 Ridder Geel

Ridder Geel

    Master Yelloh

  • T3A Staff
  • 10,852 posts
  • Location:The Netherlands (AKA: Holland)
  • Projects:RC Mod + SEE + RTS Engine
  •  The Dangerous T3A Team Chamber Member
  • Division:BFME
  • Job:T3A Staff

Posted 25 June 2013 - 09:26 AM

Well you may have some wrong link somewhere in one of the powers or a link to a specialpower that does not exist... What exactly did you change?


Ridder Geel

#3 acidRain

acidRain

    insane programmer

  • Members
  • 79 posts
  • Location:the place that never but always was
  • Projects:personal mods
  •  coder, occasional skinner, and all-around game-breaker

Posted 25 June 2013 - 03:17 PM

The only thing I changed was the information for the model in createaheromodelconditionupgrades.inc. I did some testing and figured out that when I switch to a different AddConditionFlags like so...

AddConditionFlags = CREATE_A_HERO_04

to 

AddConditionFlags = CREATE_A_HERO_34

it screws up the model, but lets me back into the powers screen. So now I'm trying to figure out how to switch around the models without screwing them up.


WWJBD - What Would Jack Bauer Do?

#4 Ridder Geel

Ridder Geel

    Master Yelloh

  • T3A Staff
  • 10,852 posts
  • Location:The Netherlands (AKA: Holland)
  • Projects:RC Mod + SEE + RTS Engine
  •  The Dangerous T3A Team Chamber Member
  • Division:BFME
  • Job:T3A Staff

Posted 27 June 2013 - 02:48 PM

I believe on the3rdage.net there is a tutorial on doing this, so take a look there, and try following it, perhaps you missed a small thing :p


Ridder Geel

#5 acidRain

acidRain

    insane programmer

  • Members
  • 79 posts
  • Location:the place that never but always was
  • Projects:personal mods
  •  coder, occasional skinner, and all-around game-breaker

Posted 27 June 2013 - 10:29 PM

I actually found that and went over it several times. As far as I can tell, I haven't missed anything. That's what has me so confused.


WWJBD - What Would Jack Bauer Do?

#6 Ridder Geel

Ridder Geel

    Master Yelloh

  • T3A Staff
  • 10,852 posts
  • Location:The Netherlands (AKA: Holland)
  • Projects:RC Mod + SEE + RTS Engine
  •  The Dangerous T3A Team Chamber Member
  • Division:BFME
  • Job:T3A Staff

Posted 01 July 2013 - 03:25 PM

Well you did give your class powers did you not?

Otherwise it might be because your class has no powers :p

Are there any incomplete parts in your CAH class?


Ridder Geel

#7 acidRain

acidRain

    insane programmer

  • Members
  • 79 posts
  • Location:the place that never but always was
  • Projects:personal mods
  •  coder, occasional skinner, and all-around game-breaker

Posted 01 July 2013 - 04:58 PM

I managed to find the problem, actually - it wasn't reading my armorset correctly, so it couldn't multiply attributes and resolve the armor data. That's what was making it crash. Thanks anyway!


WWJBD - What Would Jack Bauer Do?




2 user(s) are reading this topic

0 members, 2 guests, 0 anonymous users