Better Tactical AI Addon

A place to post your add ons and ideas for them

Moderator: Moderator

Message
Author
darkgod
Master of Eyal
Posts: 10750
Joined: Wed Jul 24, 2002 9:26 pm
Location: Angolwen
Contact:

Re: Better Tactical AI Addon

#16 Post by darkgod »

Your short_name on the site doesnt match your short_name in init.lua, that's why it's not validating.

Could you make that into a patch and send it over please ?
Patch against the current GIT head
[tome] joylove: You can't just release an expansion like one would release a Kraken XD
--
[tome] phantomfrettchen: your ability not to tease anyone is simply stunning ;)

jenx
Sher'Tul Godslayer
Posts: 2263
Joined: Mon Feb 14, 2011 11:16 pm

Re: Better Tactical AI Addon

#17 Post by jenx »

darkgod wrote:Your short_name on the site doesnt match your short_name in init.lua, that's why it's not validating.

Could you make that into a patch and send it over please ?
Patch against the current GIT head
I'll try and fix the name thing.

I've got no idea about patches and GIT heads. Sorry :(

Are you able simply look at the teaa code and cut and paste as you wish?
MADNESS rocks

jenx
Sher'Tul Godslayer
Posts: 2263
Joined: Mon Feb 14, 2011 11:16 pm

Re: Better Tactical AI Addon

#18 Post by jenx »

ok - I've updated site, so I hope it works now.

Can someone confirm?
MADNESS rocks

darkgod
Master of Eyal
Posts: 10750
Joined: Wed Jul 24, 2002 9:26 pm
Location: Angolwen
Contact:

Re: Better Tactical AI Addon

#19 Post by darkgod »

Yes but it's annoying and long ;)
THere are many simple tutorials for git :)
[tome] joylove: You can't just release an expansion like one would release a Kraken XD
--
[tome] phantomfrettchen: your ability not to tease anyone is simply stunning ;)

darkgod
Master of Eyal
Posts: 10750
Joined: Wed Jul 24, 2002 9:26 pm
Location: Angolwen
Contact:

Re: Better Tactical AI Addon

#20 Post by darkgod »

You probably nee ot reupload too
[tome] joylove: You can't just release an expansion like one would release a Kraken XD
--
[tome] phantomfrettchen: your ability not to tease anyone is simply stunning ;)

jenx
Sher'Tul Godslayer
Posts: 2263
Joined: Mon Feb 14, 2011 11:16 pm

Re: Better Tactical AI Addon

#21 Post by jenx »

darkgod wrote:Yes but it's annoying and long ;)
THere are many simple tutorials for git :)
I'd be very happy for hachem or lukep or anyone really to do this for the game. I've looked at a git tutorial but I don't have the headspace atm to work it out.
MADNESS rocks

jenx
Sher'Tul Godslayer
Posts: 2263
Joined: Mon Feb 14, 2011 11:16 pm

Re: Better Tactical AI Addon

#22 Post by jenx »

darkgod wrote:You probably nee ot reupload too
done
MADNESS rocks

Hachem_Muche
Uruivellas
Posts: 744
Joined: Thu Nov 18, 2010 6:42 pm

Re: Better Tactical AI Addon

#23 Post by Hachem_Muche »

jenx wrote:I'd be very happy for hachem or lukep or anyone really to do this for the game. I've looked at a git tutorial but I don't have the headspace atm to work it out.
I'd be happy to help with converting this to a patch, but it would be easier for someone more familiar with the code to do so. Also, I'm no git expert, and after a few months of learning, Tortoise Git for windows and I still do not see eye-to-eye about how the world is. :evil:

With a local Git repository, the steps (which should be easy, at least in theory) are:

Make a new branch in your repository and check out/switch to it.
Copy and paste your changes into the new branch and commit them.
With your new branch checked out, test the changes. (Make sure you're not overwriting them by loading your addon! :oops: )
Once you're satisfied, create a diff (patch) file between your your master branch and the new branch.
Author of the Infinite 500 and PlenumTooltip addons, and the joys of Scaling in ToME.

jenx
Sher'Tul Godslayer
Posts: 2263
Joined: Mon Feb 14, 2011 11:16 pm

Re: Better Tactical AI Addon

#24 Post by jenx »

Hachem_Muche wrote:
jenx wrote:I'd be very happy for hachem or lukep or anyone really to do this for the game. I've looked at a git tutorial but I don't have the headspace atm to work it out.
I'd be happy to help with converting this to a patch, but it would be easier for someone more familiar with the code to do so. Also, I'm no git expert, and after a few months of learning, Tortoise Git for windows and I still do not see eye-to-eye about how the world is. :evil:

With a local Git repository, the steps (which should be easy, at least in theory) are:

Make a new branch in your repository and check out/switch to it.
Copy and paste your changes into the new branch and commit them.
With your new branch checked out, test the changes. (Make sure you're not overwriting them by loading your addon! :oops: )
Once you're satisfied, create a diff (patch) file between your your master branch and the new branch.
how do you create a local git repository?
MADNESS rocks

Hachem_Muche
Uruivellas
Posts: 744
Joined: Thu Nov 18, 2010 6:42 pm

Re: Better Tactical AI Addon

#25 Post by Hachem_Muche »

Author of the Infinite 500 and PlenumTooltip addons, and the joys of Scaling in ToME.

jenx
Sher'Tul Godslayer
Posts: 2263
Joined: Mon Feb 14, 2011 11:16 pm

Re: Better Tactical AI Addon

#26 Post by jenx »

Hachem_Muche wrote:Start with http://te4.org/wiki/Source_Setup
ok - I"m making progress. I finally managed to get the repository to my windows pc.

Next I'm going to make a branch, make my changes and try to create a patch to send dg.
MADNESS rocks

jenx
Sher'Tul Godslayer
Posts: 2263
Joined: Mon Feb 14, 2011 11:16 pm

Re: Better Tactical AI Addon

#27 Post by jenx »

ok - I think I created a patch for the dumb ai addon.

I've attached it here, but had to add .txt to do so.

Now I want to create a patch for tactical ai addon.

Do I create a new branch off the head for each patch?
Attachments
0001-updated-dumb-ai-to-improve-its-healing-and-use-of-ta.patch.txt
patch for dumb ai
(3.89 KiB) Downloaded 279 times
MADNESS rocks

jenx
Sher'Tul Godslayer
Posts: 2263
Joined: Mon Feb 14, 2011 11:16 pm

Re: Better Tactical AI Addon

#28 Post by jenx »

For the tactical ai patch, I've got a problem. lukep created a new file, newai.lua, and then used a load.lua file under the folder \hooks to load it:

Code: Select all

local class = require"engine.class"
local ActorTalents = require "engine.interface.ActorTalents"

class:bindHook("ToME:load", function(self, data)
    ActorTalents:loadDefinition("/data-better-tactical-ai/newai.lua")
end)
I've got no idea how to insert this into the git thing.
MADNESS rocks

lukep
Sher'Tul Godslayer
Posts: 1712
Joined: Mon Mar 14, 2011 10:32 am
Location: Canada

Re: Better Tactical AI Addon

#29 Post by lukep »

I'm not sure if it can be done easily. Each of the lines would need to be moved to the appropriate file (eg. the line for STUNNING_BLOW would need to be moved to two-handed.lua, and FLARE to archery.lua, and so on for each one).
Some of my tools for helping make talents:
Melee Talent Creator
Annotated Talent Code (incomplete)

jenx
Sher'Tul Godslayer
Posts: 2263
Joined: Mon Feb 14, 2011 11:16 pm

Re: Better Tactical AI Addon

#30 Post by jenx »

lukep wrote:I'm not sure if it can be done easily. Each of the lines would need to be moved to the appropriate file (eg. the line for STUNNING_BLOW would need to be moved to two-handed.lua, and FLARE to archery.lua, and so on for each one).
dg - is there a simpler way?
MADNESS rocks

Post Reply