Better Tactical AI Addon
Moderator: Moderator
Re: Better Tactical AI Addon
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
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
--
[tome] phantomfrettchen: your ability not to tease anyone is simply stunning

Re: Better Tactical AI Addon
I'll try and fix the name thing.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'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
Re: Better Tactical AI Addon
ok - I've updated site, so I hope it works now.
Can someone confirm?
Can someone confirm?
MADNESS rocks
Re: Better Tactical AI Addon
Yes but it's annoying and long 
THere are many simple tutorials for git

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
--
[tome] phantomfrettchen: your ability not to tease anyone is simply stunning

Re: Better Tactical AI Addon
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
--
[tome] phantomfrettchen: your ability not to tease anyone is simply stunning

Re: Better Tactical AI Addon
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.darkgod wrote:Yes but it's annoying and long
THere are many simple tutorials for git
MADNESS rocks
-
- Uruivellas
- Posts: 744
- Joined: Thu Nov 18, 2010 6:42 pm
Re: Better Tactical AI Addon
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.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.

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!

Once you're satisfied, create a diff (patch) file between your your master branch and the new branch.
Re: Better Tactical AI Addon
how do you create a local git repository?Hachem_Muche wrote: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.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.
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!)
Once you're satisfied, create a diff (patch) file between your your master branch and the new branch.
MADNESS rocks
-
- Uruivellas
- Posts: 744
- Joined: Thu Nov 18, 2010 6:42 pm
Re: Better Tactical AI Addon
ok - I"m making progress. I finally managed to get the repository to my windows pc.Hachem_Muche wrote:Start with http://te4.org/wiki/Source_Setup
Next I'm going to make a branch, make my changes and try to create a patch to send dg.
MADNESS rocks
Re: Better Tactical AI Addon
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?
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
Re: Better Tactical AI Addon
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:
I've got no idea how to insert this into the git thing.
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)
MADNESS rocks
Re: Better Tactical AI Addon
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).
Re: Better Tactical AI Addon
dg - is there a simpler way?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).
MADNESS rocks