Jump to content


platinumshadow

Member Since 05 Jun 2011
Offline Last Active May 06 2014 10:37 PM

Topics I've Started

adding spell book power to CAH debugging

24 April 2014 - 10:45 PM

so my game won't crash on startup with this code, and i can select the power in character creation
but when i summon the CAH into the game, the game crashes. please help me fix this. ty
 
i used these 2 tutorials. 
 
adding spellbook power to a hero
 
adding a hero ability to CAH
http://www.the3rdage...item-15?addview adding a hero ability to CAH
 
//createaheroupgrades.inc - from scratch
Upgrade Upgrade_CaHSunFlare
Type = OBJECT
End
 
//createaheropowers.inc -first block from scratch using template of other powers
//the first block of code was enough to make the game not crash at startup
//middle block from system.ini
//the third block i copied most of it from the earthshaker power. i added it hoping that it wouldn't crash at all :(
//still crashes after i summon the CAH :(
Behavior = UnpauseSpecialPowerUpgrade ModuleTag_CAHSunFlareEnabler
SpecialPowerTemplate = SpecialAbilityCAHSunFlare
TriggeredBy = Upgrade_CaHSunFlare
End


Behavior = OCLSpecialPower ModuleTag_CAHSunFlare
SpecialPowerTemplate  = SpecialAbilityCAHSunFlare
OCL                   = OCL_SpecialPowerSunflare
CreateLocation        = CREATE_AT_LOCATION
AvailableAtStart   = Yes
AttributeModifierAffects = ANY +INFANTRY +CAVALRY +MONSTER -HERO ENEMIES
ReEnableAntiCategory = Yes
AttributeModifierWeatherBased = Yes 
WeatherDuration = SPELL_SUNFLARE_DURATION
ChangeWeather = SUNNY
End


Behavior = WeaponFireSpecialAbilityUpdate ModuleTag_CAHSunFlareEnablerUpdate
SpecialPowerTemplate    = SpecialAbilityCAHSunFlare
SpecialWeapon = SunflareWeapon
WhichSpecialWeapon = 3 ; Corresponds to SPECIAL_WEAPON_THREE
StartAbilityRange = 1.0
SkipContinue = Yes
UnpackTime = 2000 ; Trigger on frame 60 (of 100)
PackTime = 1333 ; Remaining 40 frames (of 100)
MustFinishAbility = Yes
End
 
//commandbutton.ini from commandbutton.ini
CommandButton Command_CAHSunFlare
Command = SPECIAL_POWER
    SpecialPower = SpecialAbilityCAHBookSunFlare
Options = NEED_TARGET_POS 
TextLabel = CONTROLBAR:Sunflare
    ButtonImage = SBGood_Sunflare
ButtonBorderType = ACTION
DescriptLabel = CONTROLBAR:TooltipSunflare
    RadiusCursorType = SunflareRadiusCursor
    CursorName = AttackObj
  InPalantir   = Yes


CreateAHeroUIAllowableUpgrades   = Upgrade_CreateAHero_ClassIstariWizard
CreateAHeroUIMinimumLevel   = 8
CreateAHeroUIPrerequisiteButtonName = None
CreateAHeroUICostIfSelected   = 1000


End
 
//createaherospecialpowers.ini from specialpower.ini (i removed two lines of code from original per tutorial instructions)
SpecialPower SpecialAbilityCAHSunFlare
Enum = SPECIAL_SPELL_BOOK_SUNFLARE
RadiusCursorRadius = SPELL_SUNFLARE_EFFECT_RADIUS
ReloadTime = 180000 ;SPELL_RECHARGE_TIME_TIER_4 ;// in milliseconds
ViewObjectDuration = SPELL_SUNFLARE_VIEW_OBJECT_DURATION
ViewObjectRange = SPELL_SUNFLARE_VIEW_OBJECT_RANGE
InitiateAtLocationSound = SpellSunflareMS
End

deleted lines from specialpower.ini

Flags = WATER_OK RESPECT_RECHARGE_TIME_DISCOUNT
RequiredSciences = SCIENCE_Sunflare

i'm 80% sure that the game is crashing because the code in createaheropowers.inc is incomplete/incorrect


how to find models

23 April 2014 - 06:38 PM

I installed renx, gmax, and i have the w3d importer. i extracted the w3d.ini file and i can access them through the importer.

 

i want to add a forged blades glow to the female elf CAH. i found this tutorial http://www.the3rdage...?apage=394#page but i have no idea which names of models contain what kind of stuff lol. is there an easy way of going about this?


animations for the wizard

19 September 2013 - 02:18 AM

hi, i'm wondering how i can change the CAH wizard animations for certain spells. specifically i want to change the lightblast and wizardblast cast animations to the fireball cast animation. how would i do this? i can't find animation coding regarding CAH. thx in advance

 

edit: btw, i'm only looking for code in ini.big, maybe there are other files that i should look into?

 

edit2: i found where the animations are, but i have no idea what to do with them to get my desired effect :(