Page 1 of 1

Solved The Units Stuck Problem

Posted: 2009-02-21 09:56:12
by Phoenix711
At last, I've managed to solve the units being stuck in one objective problem.

The trick is this, as I told before in the theater tools thr creator post....

use your THR map (Relief Map) to draw the links between objects. If by any means, two objects are not connected via roads, or there is a broken road between those two objects, delete the link between them, or your unit will be stuck at each objective, if it needs to continue its way going over the other obj.

Very clear now, and tested, this is the way units go, using links, but controlling the road network at each objective point to the other linked point, before departing that obj.. If no road, or road is broken halfway those two obj, unit is stuck and cannot move further.

I've managed this way, a unit to go the whole map.

Re: Solved The Units Stuck Problem

Posted: 2009-02-21 10:55:07
by ccc
hmm.. yes, i think connecting two objectives, there must be a road between them.. which means you also got to check/edit road tiles betwen objectives.. so 2d obj-linking fits 3d road network.

Re: Solved The Units Stuck Problem

Posted: 2009-02-21 17:25:45
by Sherlock
ccc wrote:hmm.. yes, i think connecting two objectives, there must be a road between them.. which means you also got to check/edit road tiles betwen objectives.. so 2d obj-linking fits 3d road network.
And, of course, the proper road / bridge path data has to be in the texture.bin, right?

Re: Solved The Units Stuck Problem

Posted: 2009-02-21 23:01:59
by Snake Man
Phoenix711 wrote:If by any means, two objects are not connected via roads, or there is a broken road between those two objects, delete the link between them, or your unit will be stuck at each objective, if it needs to continue its way going over the other obj.
Would you have couple of screenshots to demonstrate this sort of bottle necks in the THR / linking?

Re: Solved The Units Stuck Problem

Posted: 2009-02-22 02:35:15
by Polak
It is not me to intelligently participate in discussion, but using Pathmaker I have noticed that each new tile needs roads and areas marked on them. I assume also that this vector paths and areas should more or less correspond with pixel view and configuration of the roads. The units traveling ( if they travel) along those paths would otherwise in the game deviate from the roads .

This is my assumption that this is how it works, and I find little "disturbing" the fact that ends of the roads are not always registered in the same place. Moreover I see that some of the "ends" do not even go fully to the edge of the tile , where I would again assume, they would meet the "start" of the other adjacent tile.

Either this is inconsequential, or that might also contribute to the problems.

Image

Re: Solved The Units Stuck Problem

Posted: 2009-02-22 16:25:13
by Phoenix711
Here is the picture of the real situation I've solved the problem.

The trick is: If two objects are not connected via the road network (THR that is, not MAP view. You should use Relief MAP here), they should not be linked to each other.

Image Image Image

We start at 0, we want to go to 2

Falcon draws the path like 0 - 1 - 3 - 2 (Because of the links between objects + calculated cost by tile type + slopes. Since, this thr is created using the Plains only option by THR Creator, route is only calculated via slope information + links.)

Since, the road network (THR) is broken between 1 and 3, when an unit reaches 1 and needs to move to 3, it can't.

There are two options to solve the problem...

1. If, you remove the link between 1 and 3, Falcon will create the path like "0 - 1 - 2" or "0 - Bridge - 3 - 2" depends on cost.
and since the road network is not broken from 1 to 2, your unit will leave 1 and move to 2 succesfully.

2. If you fix the road network between 1 and 3 using TerrainView, and the create the THR again, Falcon will draw the path as 0 - 1 - 3 - 2 again (because of the links), but this time, you unit will be able to leave 1 and go to 3, then 2.

Turns etc are not important. The units can cross bridges, make 120 degree turns on the roads no problem. It's all about links, cost and road network.

IMPORTANT NOTE:

I've not tested in any way, if path information affects road networking calculations. I saw most of the path info, is given like - values, so the path is going into the opther tile. I don't know why. Looks like someone make something sure.

And, Pathmaker never shows me any path / area lines, nor it can create my THR file correctly. I think it works with the standart texture bin... I'm not sure. Or maybe I'm using the wrong version.

Re: Solved The Units Stuck Problem

Posted: 2009-02-22 18:35:11
by Sherlock
Great post Phoenix. Picture says a thousand words!

Cheers!

Re: Solved The Units Stuck Problem

Posted: 2009-02-22 21:01:17
by Phoenix711
Can be used in Wiki or anywhere else if needed.

Re: Solved The Units Stuck Problem

Posted: 2009-02-23 01:25:55
by ccc
ya the post shows how and where to fix the broken road/obj linkage. that's about the same thing i learned.. new theater mods need such check, at least along the main combat routes.

also it shows there're TWO extra bridges.. got to remove them.

Re: Solved The Units Stuck Problem

Posted: 2009-02-27 11:26:54
by Snake Man
Thanks for the images and explanation. Images added to PMC Editing Wiki: Falcon 4 Campaign Links page.

Re: Solved The Units Stuck Problem

Posted: 2009-03-12 13:37:20
by molnibalage
I don't understand. In the first pic. you can see that 0-1-2-3 is not working. The last shows that is working.

:?:

Re: Solved The Units Stuck Problem

Posted: 2009-03-13 14:46:57
by Phoenix711
In the last picture, the road link between them is corrected (via terrainview). and THR is recalculated.

Re: Solved The Units Stuck Problem

Posted: 2009-03-13 19:13:01
by molnibalage
Does it require the full campaign file?

This corrected "THR" map can be imported to campaigns?

Re: Solved The Units Stuck Problem

Posted: 2009-03-14 08:32:32
by Phoenix711
Just replace the new corrected file with the one in the theaters Campaign folder.

Re: Solved The Units Stuck Problem

Posted: 2009-03-14 09:30:27
by molnibalage
Ok, but I'm not ablt to do this. Are you working on this? I wil be very grateful if you give me this present. I can use it for better korean campaign.

Re: Solved The Units Stuck Problem

Posted: 2009-03-14 20:15:24
by Phoenix711
Unfortunately I'm working on another theater (Aegean) now.

But there's nothing you need, except the tools and info you can find here at PMC.

PathMaker to see the road/river/area info included into tiles, and add as needed
TerrainView to correct the terrain errors (like broken roads)
TACEdit, to see the relief map and objects, and links between objects etc,
To compile the edited terrain, seasonswitcher and SPTInstall.

The experts here at PMC have a lot of knowledge and are willing to help too. And I'll try to help you too.

If you work for FreeFalcon, then I'm not sure if all the tools support FF. Snakeman can answer this I guess.

Re: Solved The Units Stuck Problem

Posted: 2009-03-14 21:22:30
by molnibalage
But there's nothing you need, except the tools and info you can find here at PMC.

PathMaker to see the road/river/area info included into tiles, and add as needed
TerrainView to correct the terrain errors (like broken roads)
TACEdit, to see the relief map and objects, and links between objects etc,
To compile the edited terrain, seasonswitcher and SPTInstall.

The experts here at PMC have a lot of knowledge and are willing to help too. And I'll try to help you too.

If you work for FreeFalcon, then I'm not sure if all the tools support FF. Snakeman can answer this I guess.
Unfortunatly I have so few free time that I'm not able to do things that I CAN do.

I know the name of tools that you listed but using them is a different thing. Currently the FF5.0 DB is locked. I'm waiting the time when DB more or less will be completed and will be open again. That time I can start modifying one of excisting campaign two very different and strongly upgraded campaign. These will be required a fixed THR map.

I will accept any help.

Currenty I'm working on training video for FF5.0 but this speed I need at least 1 month to make them. I have to make tham also in hungarian. I have an unfinished hungarian manual.

Also for FF team I have unfinished projects...

Time, time, time. I don't have enough.. :(

Re: Solved The Units Stuck Problem

Posted: 2009-03-15 12:23:13
by Phoenix711
I see. Time is everyones problem. If I had time, I would be happy to help you about this. Maybe somebody likes to get the job and check THR against TACEdit object placements/links.