Making a spell icon..

Mods and development for mods. Including WoG & Equilibris (RU) subforums.
Lurtzer
Leprechaun
Leprechaun
Posts: 3
Joined: 09 Jul 2006

Making a spell icon..

Unread postby Lurtzer » 09 Jul 2006, 01:52

Hello there, this is my first post here ^^

I am working on a little mod that gives the Titan Lightning Bolt and Chain Lightning spells. I have added the spells and fixed animation and all that.. The only problem left is the Call Lightning spell icon - its the same as Lightning Bolt. I have made a new icon for the spell and converted it to .dds from .JPG using DDS Converter 2 (but for some reason the color of the pic changed after I had converted it...but thats not the biggest problem atm) and I have tried making new files (similar to the Lightning Bolt files only with the new icon) and replacing the Lightning Bolt icon with the new icon - but so far no luck..

So therefore I turn to this community for help, surely there must be someone here who knows how to do this (I hope) ;)

Anyways thanks in advance

Lurtzer
Leprechaun
Leprechaun
Posts: 3
Joined: 09 Jul 2006

Unread postby Lurtzer » 09 Jul 2006, 15:59

This is the problem:

Here is the relevant extraction of the Call Lightning file (data.pak\GameMechanics\Spell\Creature_Abilities\Academy\CallLightning.xdb):

Code: Select all

href="/Text/Game/Spells/Creature_Abilities/Academy/CallLightning_name.txt"/>
	<ThisIsANameFileRef href="/"/>
	<LongDescriptionFileRef href="/"/>
	<Texture href="/Textures/SpellBook______2618/Spells/Spell_LightningBolt.xdb#xpointer(/Texture)"/>
And I have made a succesfull spell description by making the right files and adding:

Code: Select all

href="/Text/Game/Spells/Combat/Call_Lightning/Long_Description.txt"/>
Its obvious that the "Textures/SpellBook______2618/Spells/Spell_LightningBolt.xdb" file needs to be changed so I extracted it and then renamed and edited it to be "Spell_CallLightning.xdb" and adding this line to the Call Lightning file:

Code: Select all

href="/Textures/SpellBook______2618/Spells/Spell_CallLightning.xdb#xpointer(/Texture)"/>
And thats not all...in the "Textures/SpellBook______2618/Spells/Spell_CallLightning.xdb" there is also things that need to be changed:

Code: Select all

<Texture ObjectRecordID="2564">
	<SrcName href="/UI/Icons/Spells/LightningBolt.tga"/>
	<DestName href="/Spell_LightningBolt.dds"/>
I have no idea where I can find LightningBolt.tga?? And the path doesnt exist (UI/Icon/Spells) so I guess thats why I cant get the icon to work..
And probably the ObjectRecord needs to be correct.. Changing it to like 9999 doesnt work because it seems like the number needs to be in a file somewhere else? (I dont know)..

So please if anyone would know how to fix this I would be very happy.

Lurtzer
Leprechaun
Leprechaun
Posts: 3
Joined: 09 Jul 2006

Unread postby Lurtzer » 09 Jul 2006, 23:10

Hihi just realised the reason for it not to work - I had a typo in the name of one file :-D

Anyways thats fixed now ;)


Return to “Modcrafting Guild”

Who is online

Users browsing this forum: No registered users and 3 guests