Abilities mod

How do you mod abilities?

I am having no luck modding the Torchbearers abilities. I have tried modding the C:\Program Files (x86)\Stardock Games\Demigod\bindata\mods\torchbearer_rules\hooks\units\heroes\HEMA01\HEMA01_Abilities.lua
But it still wont work. Help?

2,812 views 18 replies
Reply #1 Top

first thing: is your computer connected to the power supply? if not, plug the cable in!

ok really... i have no idea how we shall help you without any further information to what your actual problem is so i suggest you go and search for the many tutorials out there which explain a lot. there is even a sticky with an overview of all the useful threads.

Reply #2 Top

I have searched the post with tutorials and none seemed to help me. My problem is that whenever I mod any abilities in the mod dircetory and then load the mod in the game, the abilities still are excactly the same. No matter what i change, range, damage, duration, nothing changes. I have it connected, but whats the difference?

Reply #3 Top

Upload you mod so we can determine the problem. And look at the Blackulus Mod for help.

Reply #5 Top

To edit items in abilities you have overwrite the original with your moddified version.

 

Example:

BuffBlueprint {
    Name = 'HEMA01FireAbilityDisable',
    DisplayName = 'Fire Abilities Disabled',
    BuffType = 'HEMA01FIREABILITYDISABLE',
    Debuff = false,
    Stacks = 'REPLACE',
    Duration = -1,
    AbilityCategory = 'HEMA01FIRE',
    Affects = {
        AbilityEnable = {Bool = true,},
    },
}

 

To change the values of this ability you would hook a file with the following:

BuffBlueprints['HEMA01FireAbilityDisable'] =  {

#mod values as desired
    Name = 'HEMA01FireAbilityDisable',
    DisplayName = 'Fire Abilities Disabled',
    BuffType = 'HEMA01FIREABILITYDISABLE',
    Debuff = false,
    Stacks = 'REPLACE',
    Duration = -1,
    AbilityCategory = 'HEMA01FIRE',
    Affects = {
        AbilityEnable = {Bool = true,},
    },
}

 

If you check your demigod log you should see it saying it hooked your file, tried to load your ability blueprints, but failed due to duplicate blueprints.    You might check my mod a few post below this to look at setting values in some of the character character files.

Reply #6 Top

C:\Program Files (x86)\Stardock Games\Demigod\bindata\mods\torchbearer_rules\HOOK\units\heroes\HEMA01\HEMA01_Abilities.lua

not

C:\Program Files (x86)\Stardock Games\Demigod\bindata\mods\torchbearer_rules\HOOKS\units\heroes\HEMA01\HEMA01_Abilities.lua

Reply #9 Top

 

Now that you have the folders named correctly you still have to do what i said to change/overwrite blueprint values. 

 

You can check your log file to verify all your files are being hooked, search for 'hooked'.

 

 

Reply #10 Top

 

"ui_only = false" should be in your mod info file  if you want all the Lua files to load.

then you should deleted your conquestGlobals.lua file as it cause a the game not to start.

Then you should check your files for syntax errors cause there are more errors in your script. 

I would return to http://www.mediafire.com/?wmititgamtz version if I were you. And add in the files one at a time to determine where the error is

 

 

 

 

Reply #11 Top

Quoting Peppe, reply 9
 

Now that you have the folders named correctly you still have to do what i said to change/overwrite blueprint values. 

 

You can check your log file to verify all your files are being hooked, search for 'hooked'.

 

 

I cannot find the log file anywhere

And if you check the updated version, you will se that i have created ability blueprints.

Reply #12 Top

med correctly you still have to do what i said to change/overwrite blueprint values.
Quoting mrappard, reply 10
 

"ui_only = false" should be in your mod info file  if you want all the Lua files to load.

then you should deleted your conquestGlobals.lua file as it cause a the game not to start.

Then you should check your files for syntax errors cause there are more errors in your script. 

I would return to http://www.mediafire.com/?wmititgamtz version if I were you. And add in the files one at a time to determine where the error is

 

 

 

 

Well, the problems is that that vesion did not work either.

Reply #13 Top

 

The demigod log file is in my documents -> my games -> gas powered games -> Demigod -> Demigodlog.txt

There should be plenty of errors in there for you to address.

Reply #14 Top

http://67.55.41.251/Demigod/torchbearer_rules.zip

THERE. Changed the folder name to hook. Set the UI only flag in the info file to false. And put the files in one by one until it started working (Actually I used the debugger, but it would crash the demigod cause you fucked up your syntax on ConquestGlobals.lua) Worked on mine. 

And it's based on your ORIGINAL UPLOAD as there are less syntax errors in that one.

Reply #15 Top

debugger? did i read debugger? which debugger?

Reply #16 Top

Quoting Peppe, reply 13
 

The demigod log file is in my documents -> my games -> gas powered games -> Demigod -> Demigodlog.txt

There should be plenty of errors in there for you to address.

 

What do you know? It worked. The edition you made that is. I didnt need to remove a singel file.

How did you do that? Im planning to mod the Rooks abilities too, but my wau wont work it seems

 

Reply #17 Top

perhaps you should begin with something easy. like hello world? seriously. if you cant get such easy things to work with all the help in this forum how will you be able to go on? do you have programming experience?

Reply #18 Top

Quoting Uphax, reply 17
perhaps you should begin with something easy. like hello world? seriously. if you cant get such easy things to work with all the help in this forum how will you be able to go on? do you have programming experience?

Well, I do only have web-programming experience....