TA: Kingdoms Forums
Would you like to react to this message? Create an account in a few clicks or log in to continue.


Welcome to TA: Kingdoms
 
HomePortalGallerySearchLatest imagesRegisterLog in

 

 TAK Pathfinding Fix for plain TAK (not The Iron Plague).

Go down 
+2
DeeKay
hippox89
6 posters
AuthorMessage
hippox89




Posts : 11
Reputation : 0
Join date : 2014-10-21

TAK Pathfinding Fix for plain TAK (not The Iron Plague). Empty
PostSubject: TAK Pathfinding Fix for plain TAK (not The Iron Plague).   TAK Pathfinding Fix for plain TAK (not The Iron Plague). EmptyTue Oct 21, 2014 8:39 pm

Hi. I use the TAK release by gog.com. I don't like feel of the new race from The Iron Plague, so I have chosen not to install it. However, I saw this patch and thought it sounded promising. I simply want to know if I can apply the same tweak for 'Kingdoms.exe' instead of 'pgtak.exe'. The old pathfinding value listed in the readme says that it should read as '00000535', but reading this offset in 'Kingdoms.exe' list it as '006700FF'.

So in conclusion, is the ''TAK Pathfinding Fix' compatible with the plain game, or does it just change the wrong offset?

Okay, so I just installed TAK + Iron Plague, and there's not even an executable called 'pgtak.exe'. The old offset value still reads as '006700FF' and not '00000535' like the readme says it should. Which version of TAK are you guys even using, I don't understand.

I forgot to say that it's again the gog version that I'm taking about. I don't understand why there isn't a pathfinding fix that's actually compatible with the release that most people probably have (gog). I'm quite sure this patcher reads the wrong offset in the 'kingdoms.exe', if so, it's not going to work for the gog release.
Back to top Go down
DeeKay
Administrator
DeeKay


Posts : 531
Reputation : 26
Join date : 2011-03-19
Age : 25
Location : Brazil - SP

TAK Pathfinding Fix for plain TAK (not The Iron Plague). Empty
PostSubject: Re: TAK Pathfinding Fix for plain TAK (not The Iron Plague).   TAK Pathfinding Fix for plain TAK (not The Iron Plague). EmptyFri Oct 24, 2014 5:19 am

Hey, I think you would like to check this out: Download TA:K PathFinding
Back to top Go down
http://alltakdownloads.6te.net/
hippox89




Posts : 11
Reputation : 0
Join date : 2014-10-21

TAK Pathfinding Fix for plain TAK (not The Iron Plague). Empty
PostSubject: Re: TAK Pathfinding Fix for plain TAK (not The Iron Plague).   TAK Pathfinding Fix for plain TAK (not The Iron Plague). EmptyFri Oct 24, 2014 6:59 am

Hey. Yes, I applied the fix to 'kingdoms.exe'. As said, what is confusing is how the 'readme' talks about the default value being '00000535' in hex and '1333' in decimal, but when the program itself reads the default value it reads as '006700FF' in hex which is '6750463' in decimal. It does this both for 'kingdoms.exe' and 'pgtak.exe'. This number is actually a lot higher than the new value of the fix, and this is confusing in itself. I don't know if I'm missing something obviously, but however the case, the program probably works correctly, at least I just assume it does. I mean, I'm sure you guys would have realised if the fix didn't work.

Maybe I'm hard to follow/understand. albino But I think it's all good. Smile
Back to top Go down
DeeKay
Administrator
DeeKay


Posts : 531
Reputation : 26
Join date : 2011-03-19
Age : 25
Location : Brazil - SP

TAK Pathfinding Fix for plain TAK (not The Iron Plague). Empty
PostSubject: Re: TAK Pathfinding Fix for plain TAK (not The Iron Plague).   TAK Pathfinding Fix for plain TAK (not The Iron Plague). EmptyFri Oct 24, 2014 8:06 am

I guess he (the writer of readme) is talking about the pgtak.exe, pgtak.exe is a PocketGeek TA:K version, which had many versions hacking TA:K to not use cd, use mods, etc. So, I guess the version he was talking about had 00000535 value, and he would change to 0001045A to get better performance. Original Kingdoms.exe has 006700FF value, made by Cavedog. We can't say that TA:K PathFinding fix would work for original .exe (maybe yes, need testing).

So, that's it, we can't guess many things, as it weren't us that created that TA:K Pathfinding fix.

ps.: don't double post, or triple post in the case lol.
Back to top Go down
http://alltakdownloads.6te.net/
hippox89




Posts : 11
Reputation : 0
Join date : 2014-10-21

TAK Pathfinding Fix for plain TAK (not The Iron Plague). Empty
PostSubject: Re: TAK Pathfinding Fix for plain TAK (not The Iron Plague).   TAK Pathfinding Fix for plain TAK (not The Iron Plague). EmptyFri Oct 24, 2014 9:23 am

Okay, I see. Maybe the fix isn't even needed when the original CPU cycles value for pathfinding is higher, anyhow.

About posting, sorry but I see no edit button, and so I have to post new replies. How can I edit a post?
Back to top Go down
DeeKay
Administrator
DeeKay


Posts : 531
Reputation : 26
Join date : 2011-03-19
Age : 25
Location : Brazil - SP

TAK Pathfinding Fix for plain TAK (not The Iron Plague). Empty
PostSubject: Re: TAK Pathfinding Fix for plain TAK (not The Iron Plague).   TAK Pathfinding Fix for plain TAK (not The Iron Plague). EmptyFri Oct 24, 2014 9:30 am

Ye.

Can't you edit your own posts? Try now.

It should look like that: TAK Pathfinding Fix for plain TAK (not The Iron Plague). QtVnKx5
Back to top Go down
http://alltakdownloads.6te.net/
hippox89




Posts : 11
Reputation : 0
Join date : 2014-10-21

TAK Pathfinding Fix for plain TAK (not The Iron Plague). Empty
PostSubject: Re: TAK Pathfinding Fix for plain TAK (not The Iron Plague).   TAK Pathfinding Fix for plain TAK (not The Iron Plague). EmptyFri Oct 24, 2014 10:20 am

Yes, now I can. Thanks.

Btw, I did a little test by comparing the default CPU cycle value vs. the new cycle value. Watch and judge for yourself. Video is a full game speed and accelerated by 150% for fast viewing. Smile



Note! The video will come online in about 60 minutes because my slow upload. elephant
Back to top Go down
DeeKay
Administrator
DeeKay


Posts : 531
Reputation : 26
Join date : 2011-03-19
Age : 25
Location : Brazil - SP

TAK Pathfinding Fix for plain TAK (not The Iron Plague). Empty
PostSubject: Re: TAK Pathfinding Fix for plain TAK (not The Iron Plague).   TAK Pathfinding Fix for plain TAK (not The Iron Plague). EmptySat Oct 25, 2014 7:29 am

Good Job! I don't know what to say about the video, lol, but I guess in the original value the units seem to not even know that there is a road in their side to pass, the ones that passed, just got stucked, walked, got stucked, walked, then found the place, and in the new value I guess units saw 'better' that there was a road there, but they got stuck in each order.

Original value (is there a road here? barbarians stucked like what the \"****\' I am doing):

TAK Pathfinding Fix for plain TAK (not The Iron Plague). QdQrZxA


New value (oh there is a road on our side let's go there (barbarians) but later then they got stucked each other :p):

TAK Pathfinding Fix for plain TAK (not The Iron Plague). UVDSpeA

Lol, at least it was what I saw.
Back to top Go down
http://alltakdownloads.6te.net/
hippox89




Posts : 11
Reputation : 0
Join date : 2014-10-21

TAK Pathfinding Fix for plain TAK (not The Iron Plague). Empty
PostSubject: Re: TAK Pathfinding Fix for plain TAK (not The Iron Plague).   TAK Pathfinding Fix for plain TAK (not The Iron Plague). EmptySat Oct 25, 2014 1:21 pm

Hehe, thanks. Well, it was only a single sample test, so I think it's hard to judge based on that fact alone, however, eventually all units will move down to the spot that I clicked on with both of the values. I might test it out more if I get bored. albino
Back to top Go down
$ MalinOMW

$ MalinOMW


Posts : 577
Reputation : 9
Join date : 2011-07-22
Age : 31
Location : Poland

TAK Pathfinding Fix for plain TAK (not The Iron Plague). Empty
PostSubject: Re: TAK Pathfinding Fix for plain TAK (not The Iron Plague).   TAK Pathfinding Fix for plain TAK (not The Iron Plague). EmptySun Oct 26, 2014 10:14 am

anyway, the worse map is angvirs maze, for that path problems
but on this game they can stuck even on flat maps :S
btw with what program, you record game?
Back to top Go down
hippox89




Posts : 11
Reputation : 0
Join date : 2014-10-21

TAK Pathfinding Fix for plain TAK (not The Iron Plague). Empty
PostSubject: Re: TAK Pathfinding Fix for plain TAK (not The Iron Plague).   TAK Pathfinding Fix for plain TAK (not The Iron Plague). EmptySun Oct 26, 2014 1:55 pm

I use OBS. It's the best and open source.
Back to top Go down
WorMartiN




Posts : 4
Reputation : 0
Join date : 2015-12-12

TAK Pathfinding Fix for plain TAK (not The Iron Plague). Empty
PostSubject: Re: TAK Pathfinding Fix for plain TAK (not The Iron Plague).   TAK Pathfinding Fix for plain TAK (not The Iron Plague). EmptyMon Dec 14, 2015 12:10 pm

I have the same issue. I got the GOG version, which worked fine except for the terrible pathfinding. I updated it to 4.1BB only to find out that it suddenly needs a CD for whatever reason. So I've tried the switcher and pgtak.exe works fine, except there's just a black screen instead of movies.
Anyway, both kingdoms.exe and pgtak.exe have 006700FF value at the 0000DED6 offset so I'm pretty sure the offset's wrong. Is there anyone who can confirm it actually works on any version? Because I've compared pathfinding.cfg for TA:K and TA and they use the same offset, even the readme has only the name of the game changed.
Back to top Go down
DeeKay
Administrator
DeeKay


Posts : 531
Reputation : 26
Join date : 2011-03-19
Age : 25
Location : Brazil - SP

TAK Pathfinding Fix for plain TAK (not The Iron Plague). Empty
PostSubject: Re: TAK Pathfinding Fix for plain TAK (not The Iron Plague).   TAK Pathfinding Fix for plain TAK (not The Iron Plague). EmptyMon Dec 14, 2015 12:42 pm

Hey WorMartiN. The black screen is because your renderer is set to Direct3D. Change it to Software MMX going to C:\Cavedog\Kingdoms (or wherever you installed your game) and opening ChooseRenderer.exe. It's going to fix the black screen.

I don't think so neither that the offset is the same for TA:K and TA. If you change it to 1, the units shouldn't get an updated path, but they did in my test. So, it doesn't work for TA:K. I've tried to search the TA:K pathfinding offset but couldn't.

It would be way easier if we had developer mode (like TA with +now film chris reload assert or something like that) and used +search command. =/
Back to top Go down
http://alltakdownloads.6te.net/
WorMartiN




Posts : 4
Reputation : 0
Join date : 2015-12-12

TAK Pathfinding Fix for plain TAK (not The Iron Plague). Empty
PostSubject: Re: TAK Pathfinding Fix for plain TAK (not The Iron Plague).   TAK Pathfinding Fix for plain TAK (not The Iron Plague). EmptyMon Dec 14, 2015 1:04 pm

I get it, somebody just took the TA pathfinding fix and thought it's gonna work for TA:K. Really smart...
Thanks for the renderer advice though.
Back to top Go down
DeeKay
Administrator
DeeKay


Posts : 531
Reputation : 26
Join date : 2011-03-19
Age : 25
Location : Brazil - SP

TAK Pathfinding Fix for plain TAK (not The Iron Plague). Empty
PostSubject: Re: TAK Pathfinding Fix for plain TAK (not The Iron Plague).   TAK Pathfinding Fix for plain TAK (not The Iron Plague). EmptyMon Dec 14, 2015 1:29 pm

Yeah... That's what I thought when I just realized it didn't work for TA:K , lol. But we really need it, I'm getting bored of making 5000 units and not being able to move them through the map efficiently. =(
I've tried to look it up in the .icd (the real .exe) though didn't find anything. :S I should learn a bit of assembly and those things in order to get something for us... That's not gonna be that fast maybe. Mad
Back to top Go down
http://alltakdownloads.6te.net/
Vhaerun

Vhaerun


Posts : 118
Reputation : 12
Join date : 2014-01-12
Age : 44
Location : VA, USA

TAK Pathfinding Fix for plain TAK (not The Iron Plague). Empty
PostSubject: Re: TAK Pathfinding Fix for plain TAK (not The Iron Plague).   TAK Pathfinding Fix for plain TAK (not The Iron Plague). EmptyTue Dec 15, 2015 6:47 pm

Lol, it was a shot in the dark and was hoping the fix would work. However, the things that may work are a faster computer to handle the processes and possibly a change to the maneuverleashlength.  As I watched a lot of units try to untangle themselves or walk around obstacles, they can only go so far before their leash reels them back in and they have to try again. Most of the the units have a leash length of 500 and that could be too short a distance. But, make the leash too long and it might not work either so we have to find that right number. 
Back to top Go down
DeeKay
Administrator
DeeKay


Posts : 531
Reputation : 26
Join date : 2011-03-19
Age : 25
Location : Brazil - SP

TAK Pathfinding Fix for plain TAK (not The Iron Plague). Empty
PostSubject: Re: TAK Pathfinding Fix for plain TAK (not The Iron Plague).   TAK Pathfinding Fix for plain TAK (not The Iron Plague). EmptyTue Dec 15, 2015 7:05 pm

Yeah Vhaerun, though I don't think changing maneuverleashlength is going to help that much:

TAK Pathfinding Fix for plain TAK (not The Iron Plague). 0VYCbFd

It just says how much the unit will go far from their course to attack a ranged enemy that attacked it. For example, if you have maneuverleashlength = 0 on swordsmans, and a ranged unit (kirenna) attack it while they are patrolling, they are not going to move outside of their route to attack her, they will just keep walking. (tested in game)

Source: http://units.tauniverse.com/tutorials/tadesign/tadesign/fbidesc.htm


Last edited by DeeKay on Tue Dec 15, 2015 7:22 pm; edited 2 times in total
Back to top Go down
http://alltakdownloads.6te.net/
WorMartiN




Posts : 4
Reputation : 0
Join date : 2015-12-12

TAK Pathfinding Fix for plain TAK (not The Iron Plague). Empty
PostSubject: Re: TAK Pathfinding Fix for plain TAK (not The Iron Plague).   TAK Pathfinding Fix for plain TAK (not The Iron Plague). EmptyTue Dec 15, 2015 7:18 pm

Faster computer isn't gonna help. The engine is almost 20 years old. TA has a working fix and my computer handles the pathfinding for thousands of units just fine and so can any other current computer.
Back to top Go down
Sage
Lead Designer of The New Era Expansion Project
Sage


Posts : 1224
Reputation : 8
Join date : 2008-08-02
Age : 37
Location : West Haven

TAK Pathfinding Fix for plain TAK (not The Iron Plague). Empty
PostSubject: Re: TAK Pathfinding Fix for plain TAK (not The Iron Plague).   TAK Pathfinding Fix for plain TAK (not The Iron Plague). EmptyThu Jul 07, 2016 9:54 pm

WorMartin,

Do you know if the TA fix also works in tak?
Back to top Go down
https://takuniverse.webs.com/
WorMartiN




Posts : 4
Reputation : 0
Join date : 2015-12-12

TAK Pathfinding Fix for plain TAK (not The Iron Plague). Empty
PostSubject: Re: TAK Pathfinding Fix for plain TAK (not The Iron Plague).   TAK Pathfinding Fix for plain TAK (not The Iron Plague). EmptyFri Jul 08, 2016 5:17 am

Have you read any of the previous posts? It doesn't,
Back to top Go down
Vhaerun

Vhaerun


Posts : 118
Reputation : 12
Join date : 2014-01-12
Age : 44
Location : VA, USA

TAK Pathfinding Fix for plain TAK (not The Iron Plague). Empty
PostSubject: Re: TAK Pathfinding Fix for plain TAK (not The Iron Plague).   TAK Pathfinding Fix for plain TAK (not The Iron Plague). EmptyFri Jul 08, 2016 10:51 pm

Now the original pathfinding in this topic did not work...I assumed it would due to the two games similarities which was not the case; it does not mean I gave up on it, however in a new topic I posted, there appears to be promise as I do not give up so easy. Doing lots of research with different programs, I spent way too much time comparing the sections of code with the TA.exe, trying to find similarities. As I posted in my new topic, the AIsearch section to a point in both the icd and the TA.exe are almost similar. There was only one address(016626, hex C7 46 48) in the whole icd file that appears like in the TA.exe; it was not in the AISearch section and no calls to that address from the AISearch section. It just did not make sense due to the offset. So I found a new address within the AISearch section, hexed that, tested it on a few games and the fix looks promising. Therefore, I need some testers to test it and give some feedback.
Now if PocketGeek or Cheetah were still active here or at least lurking, there could be more promise.

Consequently, I am no programmer...just a modder who has been playing this game for awhile and loves to tinker with it.


Last edited by Vhaerun on Sat Jul 09, 2016 12:04 am; edited 1 time in total (Reason for editing : Grammar)
Back to top Go down
Sponsored content





TAK Pathfinding Fix for plain TAK (not The Iron Plague). Empty
PostSubject: Re: TAK Pathfinding Fix for plain TAK (not The Iron Plague).   TAK Pathfinding Fix for plain TAK (not The Iron Plague). Empty

Back to top Go down
 
TAK Pathfinding Fix for plain TAK (not The Iron Plague).
Back to top 
Page 1 of 1
 Similar topics
-
» Iron Plague
» Iron Plague Manual (?!)
» Question about Iron Plague
» Iron Plague - Mission 10 : WAR TOYS
» Recently installed TA:K and Iron Plague - please help :)

Permissions in this forum:You cannot reply to topics in this forum
TA: Kingdoms Forums :: GENERAL :: Questions & Help Requests-
Jump to: