news from taw
now we have a quad_tree exporter for startpos
https://github.com/taw/etwng/
Quad trees represent how much a particular unit/settlement/faction/whatever sees or has seen this turn.
This allows us to take a big step in our research. Now we should be close to 65%. Quad_tree was one of the largest and hardest part of startpos.
News also from trade_routes.esf. Now there's a new xml format that separates trade nodes from the other nodes. New comments about trade also in startpos. News from trade sector in the next future.
I uploaded the wrong thing for the third part. Here's the correct entry with the new parts in bold. Their position is based on where the Warpath entries are located.
I don't think the problem is due to an entry not being in another esf file because I can use the Warpath's pathfinding.esf with any problems.Code:<rec type="grid_cells"> <bin6>57 ff 57 57 6e 57 57 57</bin6> <ary type="boundaries"> <rec type="boundaries"> <u>4246799376</u> <u>96539527</u> </rec> <rec type="boundaries"> <u>2</u> <u>4290843533</u> </rec> <rec type="boundaries"> <u>1627459719</u> <u>96539532</u> </rec> </ary> </rec> <rec type="grid_cells"> <bin6>57 57 57 57 57 57 57 57</bin6> <ary type="boundaries"> <rec type="boundaries"> <u>3054510400</u> <u>96539537</u> </rec> <rec type="boundaries"> <u>2249216256</u> <u>96539543</u> </rec> <rec type="boundaries"> <u>757223462</u> <u>96539547</u> </rec> <rec type="boundaries"> <u>1627463696</u> <u>96539561</u> </rec> </ary> </rec>
Also congrats on your and taw's quad_tree and trade_routes findings.
Morning Sun (adds Korea and China to the Shogun 2 map)
http://www.twcenter.net/forums/forum...28-Morning-Sun
Expanded Japan mod (97 new regions and 101 new factions)
http://www.twcenter.net/forums/showt...ew-factions%29
How to split a region in TWS2
http://www.twcenter.net/forums/showt...split-a-region
Eras Total Conquest 2.3 (12 campaigns from 970-1547)
Morning Sun (adds Korea and China to the Shogun 2 map)
http://www.twcenter.net/forums/forum...28-Morning-Sun
Expanded Japan mod (97 new regions and 101 new factions)
http://www.twcenter.net/forums/showt...ew-factions%29
How to split a region in TWS2
http://www.twcenter.net/forums/showt...split-a-region
Eras Total Conquest 2.3 (12 campaigns from 970-1547)
I´m wound up to a high pitch for news about campaign map research.
Perhaps PietroMicca, uanime5, Taw and their supporters are up to something.
taw is working on quad_tree in startpos
if successful we will have a tool that will allow us to edit/remove fog of war around an army,a navy, an agent, a building, a route or an entire faction
Now my work is concentrated on startpos in general
character, trade management and something else
and if you are interested, there's a new script that draws all trade routes in a map
That's all for now
So we can make new trade routes now ?
It depends of what do you mean. Maybe there's a misunderstanding. I have said draw routes, not define routes.
All combinations of ports and settlements are already present in the game. If you want a new trade route is possible, but I can't imagine where. If you want activate a trade between 2 nations, it's not possible yet even if it's under research.
Ah alright.
To try to get my new resource to work I decided to try doing a bunch of different things to the grid_data's grid_cells that have 2 <u> entries. Below are the results. All my testing was done in the Americas theatre.
First I tested what happens when you change one of the upper <u> numbers in a rec entry.
- Changed upper <u> number 2249200134 to 2249200135 = loads, no problems.
- Changed upper <u> number 4248904720 to 4248904736 = loads, no problems.
- Changed upper <u> number 4248904720 to 4248904731 (not an ETW number) = loads, no problems.
So you can do pretty much anything to the upper <u> entries and ETW won't crash.
Next I tried editing the lower <u> entry. 96539576 and 96539568 are from two different boundaries in the same cell.
- Changed lower <u> number 96539568 to 96539564 = loads, locks up when you click on modified cell.
- Changed lower <u> number 96539576 to 96539586 = loads, crashes when you click on modified cell.
- Switched lower <u> number 96539576 and 96539568 around = loads, no problems.
To test whether ETW calculates which lower <u> entries belong to which grid_cell I moved a boundary entry from once grid_cell to a neighbouring grid_cell. ETW loaded with a problem and didn't crash.
So ETW somehow calculates which lower <u> entries the grid_data has to contain, but the cell that they're in and the numerical order of these entries is not important. The pathfinding_areas in the pathfinding.esf may be determine what the lower <u> entries the grid_data needs to contain.
Finally I tried to add this new boundary but ETW kept crashing without loading.
However when I changed the <u>63623</u> at the top of the grid_data to <u>63624</u> ETW loaded but crashed when I tried to click on anything in the Americas theatre. So the <u>63623</u> is number of boundaries in the theatre and needs to be updated if you add or remove boundaries.Code:<rec type="boundaries"> <u>2952799271</u> <u>96539564</u> </rec>
When I changed the lower <u> entry to 96531346 or 96539715 ETW still kept crashing, changing the upper <u> entry to 2952799272 (not used by any other entry) also didn't fix this problem. I tried adding the location for the new resource to the pathfinding_areas but this also didn't stop ETW crashing.
In summary <u>63623</u> is the number of boundaries in the Americas theatre and I don't know how to add more boundaries without making ETW crash.
Last edited by uanime5; March 08, 2012 at 05:56 PM.
Morning Sun (adds Korea and China to the Shogun 2 map)
http://www.twcenter.net/forums/forum...28-Morning-Sun
Expanded Japan mod (97 new regions and 101 new factions)
http://www.twcenter.net/forums/showt...ew-factions%29
How to split a region in TWS2
http://www.twcenter.net/forums/showt...split-a-region
Eras Total Conquest 2.3 (12 campaigns from 970-1547)
It's normal. The upper <u> defines just type of trait. If you change this number, that trait won't change position in pathfinding. So if you don't move or remove nothing, nothing should change. It makes sense.
This is partially an unexpected reaction. As I have always thought, traits with similar lower <u> are part of the same path. But order is not important. The exact number is important. So we have to draw some formula.
<u>63623</u> is probably related to number of boundaries, but it isn't the exact number. Number of boundaries is 35449 and number of traits is 24121.
It is very gratifying to see that the number of views of this thread is rising rapidly and will very soon reach 80000 ?
The interest in matters regarding campaign map alterations is without doubt a indisputable reality.
alhoon is not a member of the infamous Hoons: a (fictional) nazi-sympathizer KKK clan. Of course, no Hoon would openly admit affiliation to the uninitiated.
"Angry Uncle Gordon" describes me well.
_______________________________________________________
Beta-tester for Darthmod Empire, the default modification for Empire Total War that does not ask for your money behind patreon.
Developer of Causa Belli submod for Darthmod, headed by Hammeredalways and a ton of other people.
Developer of LtC: Random maps submod for Lands to Conquer (that brings a multitude of random maps and other features).
+ rep
alhoon is not a member of the infamous Hoons: a (fictional) nazi-sympathizer KKK clan. Of course, no Hoon would openly admit affiliation to the uninitiated.
"Angry Uncle Gordon" describes me well.
_______________________________________________________
Beta-tester for Darthmod Empire, the default modification for Empire Total War that does not ask for your money behind patreon.
Developer of Causa Belli submod for Darthmod, headed by Hammeredalways and a ton of other people.
Developer of LtC: Random maps submod for Lands to Conquer (that brings a multitude of random maps and other features).
And now there's also quad tree importer made by taw obviously
so now fog of war is fully editable
alhoon is not a member of the infamous Hoons: a (fictional) nazi-sympathizer KKK clan. Of course, no Hoon would openly admit affiliation to the uninitiated.
"Angry Uncle Gordon" describes me well.
_______________________________________________________
Beta-tester for Darthmod Empire, the default modification for Empire Total War that does not ask for your money behind patreon.
Developer of Causa Belli submod for Darthmod, headed by Hammeredalways and a ton of other people.
Developer of LtC: Random maps submod for Lands to Conquer (that brings a multitude of random maps and other features).
Easy is nothing in this game.
I'll try to explain better what you can do.
First of all, taw made a quad_tree importer.
In converted startpos there's a quad_tree folder containing all this. This folder is full of xml file. Xmls can be converted in PGM images (qt_export script). Each image has a particular structure. An upper half completely white and a lower of the same dimension of global map. In black you can see the line of sight of a unit/settlement/faction/whatever. You can edit this black area using any image editor. After this you can convert back modified PGM in xml using qt_import script.Originally Posted by taw
You can delete fog of war in each moment, even in startpos. So you can delete fog of war for a unit/settlement/faction/whatever from the beginning.
PS: maybe you have to edit also LINE OF SIGHT upper and lower bounds. qt_import never used yet.
Notice: qt_export and qt_import work only in Empire and Napoleon
Splendid development if I´m not very much mistaken!