TA: Kingdoms Community Forum
 
HomePortalCalendarGalleryFAQSearchMemberlistUsergroupsRegisterLog in

Share | 
 

 Pathfind Fix.

View previous topic View next topic Go down 
AuthorMessage
Vhaerun

avatar

Posts : 110
Reputation : 12
Join date : 2014-01-12
Age : 37
Location : VA, USA

PostSubject: Pathfind Fix.   Mon Jun 27, 2016 9:09 pm

Hello all,

Ok, here is the pathfind fix for those that want it. Read the readme.
The link is here:
Pathfind Fix

_________________
" Just a man,
With a man's courage,
You know it.
He's nothing but a man
And he can never fail.
No one but the pure at heart
May find the Golden Grail
...Oh..Oh........Oh..Oh.... "

-- Guess this quote!

-- Vaerun


Last edited by Vhaerun on Wed Mar 08, 2017 6:43 pm; edited 1 time in total (Reason for editing : Pathfind Fix is fixed.)
Back to top Go down
View user profile
DeeKay
Administrator
avatar

Posts : 516
Reputation : 28
Join date : 2011-03-19
Age : 18
Location : Brazil - SP

PostSubject: Re: Pathfind Fix.   Mon Jun 27, 2016 11:33 pm

Idk, I saw no changes, actually. To test it, just keep in mind that if you set it to 1, the unit will just walk into the wall and stop there.

"At 1 cycle ("+search 1") it resulted in basically no pathfinding. It would just walk straight into the wreck and then not get an updated path. This means that both problems #1 and #2 are in full force - the unit is not getting a good path nor is it getting an updated path in good time.
   At 25 cycles, the unit would walk into the wreck and then wait many seconds before getting an updated path. So issue #2 has improved but not #1.
   At 50 cycles, the unit still walks into the wreck but quickly resets its path around it. Issue #2 has improved a lot.
   At 100 cycles, it only walks into the wreck sometimes and still quickly resets its path. Now issue #1 is improving.
   At 200 cycles, the unit no longer bumps into the wreck at all, meaning it is getting a high quality path from the get-go. At this point it will not bump into anything except for obstacles that weren't present when the path was created." - TA PathFinding Research.

Nice try tho, keep going! This might help you: http://www.tauniverse.com/forum/showthread.php?t=42529

I'll see if I can do something. If we just... enabled the developer mode, it would be waayy easier, try to see if you can get something following the path of the +search command, or something related to it. When you type +profile it'll show some Search status.

_________________


Nick: DeeKay
GameRanger Account ID: 1184157
E-mail (Skype, Outlook and Facebook): Henrique-MS@Outlook.com
All TA:K Downloads Youtube Channel: http://www.youtube.com/AllTAKDownloads
All TA:K Downloads Facebook Page: https://www.facebook.com/AllTAKDownloads

Back to top Go down
View user profile http://alltakdownloads.6te.net/ Online
Vhaerun

avatar

Posts : 110
Reputation : 12
Join date : 2014-01-12
Age : 37
Location : VA, USA

PostSubject: Re: Pathfind Fix.   Tue Jun 28, 2016 1:52 pm

You could be right Deekay, I really did not see any changes. I am no programmer and have not an  idea what I am doing: Using Ida Pro Free and Hex-edit, I have been comparing the kingdoms.icd file with a Total annihilation.exe and the code is very similar if looked at with IDA Pro free. Seeing that at offset 40EAD6 esi-48 with TA shows where their path-find cycles are, but the same location in the kingdoms icd file shows offset 416626 esi-48 but not the path-find cycles. And if I modify that part(icd) of the hex, the game crashes. However, looking at the addresses in the kingdoms icd file in the AISearch section of code, only one dword ptr shows, which does not make sense due to the hex being FFFFFFF0. So any help will be much appreciated!

Adding some pics: first is the TAK.icd, second is TA.exe.




_________________
" Just a man,
With a man's courage,
You know it.
He's nothing but a man
And he can never fail.
No one but the pure at heart
May find the Golden Grail
...Oh..Oh........Oh..Oh.... "

-- Guess this quote!

-- Vaerun


Last edited by Vhaerun on Fri Jul 08, 2016 11:04 pm; edited 1 time in total (Reason for editing : More Updates)
Back to top Go down
View user profile
Sage
Lead Designer of Ta Kingdoms: The New Era
avatar

Posts : 1034
Reputation : 3
Join date : 2008-08-02
Age : 30
Location : West Haven

PostSubject: Re: Pathfind Fix.   Thu Jul 07, 2016 10:18 pm

Wow, it's great to see that you guys are still giving this a shot. Keep up the good work! Let me know if you need anything.

_________________
http://takuniverse.webs.com/ - TAK downloads
www.cristian-fuentealba.com - Graphic Design
GameRanger ID: 4138935
Back to top Go down
View user profile http://cristian-fuentealba.com
Vhaerun

avatar

Posts : 110
Reputation : 12
Join date : 2014-01-12
Age : 37
Location : VA, USA

PostSubject: Re: Pathfind Fix.   Thu Jul 07, 2016 11:17 pm

Let's see if this works: New Pathfind Fix

Ok, played with the pathfind fix on Angmir's maze against three Ais at 1000 units and played without the pathfind fix, same variables. Appears with the fix: the units were not getting stuck; I noticed without the fix, they became stuck quite a few times especially at that one bridge. However, I would like more feedback to see if other peeps notice the same thing.

Note: Deekay, tried that dev mode, but it seems we are missing one word and that is Chris. While browsing the icd file and the TA.exe I noticed that the Icd has bluefire, joy, fire and a few other strings in the place where Chris is at in the TA.exe. So maybe one of those words might be the trigger for +now Film Chris Include Reload Assert.

_________________
" Just a man,
With a man's courage,
You know it.
He's nothing but a man
And he can never fail.
No one but the pure at heart
May find the Golden Grail
...Oh..Oh........Oh..Oh.... "

-- Guess this quote!

-- Vaerun


Last edited by Vhaerun on Fri Jul 08, 2016 11:00 pm; edited 1 time in total (Reason for editing : Update)
Back to top Go down
View user profile
$ MalinOMW

avatar

Posts : 576
Reputation : 10
Join date : 2011-07-22
Age : 24
Location : Poland

PostSubject: Re: Pathfind Fix.   Sat Jul 09, 2016 10:51 am

yep ppl
please test this pathfinding
in my feel it work a bit*

*1 test on angvir maze
but this map is very horrible for walking, and some units had problem with moving from one corner to another BUT they weren't stuck, they were moving and looking for path (usually) and i hadn't stuck units near enclave, as in this movie https://www.youtube.com/watch?v=QQ8ui1y1skY

_________________
https://www.youtube.com/user/OfficialAkcent
Back to top Go down
View user profile
Sage
Lead Designer of Ta Kingdoms: The New Era
avatar

Posts : 1034
Reputation : 3
Join date : 2008-08-02
Age : 30
Location : West Haven

PostSubject: Re: Pathfind Fix.   Sat Jul 09, 2016 10:36 pm

Vhaerun,

The readme doc states: "the new default is "0002045A"; however, RH says that the new value is: "0001045A". Is this a misspelling from your part?

Also, do I place the three cfg files in the Kingdoms folder? Do I leave RH open when the game starts?

Thanks,
Sage

_________________
http://takuniverse.webs.com/ - TAK downloads
www.cristian-fuentealba.com - Graphic Design
GameRanger ID: 4138935
Back to top Go down
View user profile http://cristian-fuentealba.com
Vhaerun

avatar

Posts : 110
Reputation : 12
Join date : 2014-01-12
Age : 37
Location : VA, USA

PostSubject: Re: Pathfind Fix.   Sun Jul 10, 2016 2:19 am

My bad, I forgot to update the read-me. However, here is what it is supposed to say:

Vaerun wrote:
-- TAK Pathfinding Fix --
-- Always make a backup of your original file: pgtak.icd or kingdoms.icd or kingnocd.icd file you are using.--
-- Use at your own risk. I or the maker of this program assume no liability. --

RomHaxxor application with pathfinding config, for adjusting pathfinding cycles in Total Annihilation: Kingdoms.

Applying this fix with default value will significantly increase pathfinding performance and remove degradation of pathfinding when there are large amounts of units in-game.
In other words, units will not stall or get stuck as much when trying to find its way to a point the user had defined.
However, this fix might cause lag if your computer is ancient.

1. Unpack RomHaxxor and pgtak.cfg or kingdoms.cfg or kingnocd.cfg somewhere.

2. Launch RomHaxxor.

3. Click on "open config" and select pgtak.cfg or kingdoms.cfg or kingnocd.cfg you are using.

4. By default, C:\CAVEDOG\KINGDOMS\pgtak.icd or kingdoms.icd or kingnocd.icd is used depending on which of the three *.cfg file(s) will be selected. To change to a different *.icd, click on "select file" and choose a different *.icd file.

5. The old and new values are shown in hexidecimal. The original default is "00002EE0" which equals 12000 and the new default is "0001045A" which equals 66650. Therefore, to change the new value, double-click the pathfinding entry and adjust the "new value" field.

6. You will want to back up your *.icd file first. When you are ready, press the "update file" button (the green play button) to make the changes.

And you can place those files in a folder anywhere, but very likely outside your Kingdoms folder.
RH does not need to be running once the *.icd file has been modified.

_________________
" Just a man,
With a man's courage,
You know it.
He's nothing but a man
And he can never fail.
No one but the pure at heart
May find the Golden Grail
...Oh..Oh........Oh..Oh.... "

-- Guess this quote!

-- Vaerun
Back to top Go down
View user profile
Sponsored content




PostSubject: Re: Pathfind Fix.   

Back to top Go down
 
Pathfind Fix.
View previous topic View next topic Back to top 
Page 1 of 1

Permissions in this forum:You cannot reply to topics in this forum
TA: Kingdoms Community Forum :: MODS & 3RD PARTY :: Downloads-
Jump to: