<< Back to Map Development Forum   Search

Posts 1 - 15 of 15   
Get map connections: 2023-01-31 19:13:45

Albion
Level 47
Report
Hi. I am new to these parts.

I have a math assignment and maybe I can get to do it with Warzone!

What data do I need for my assignment?
1 - List of territories and their connections for a map.
2 - (optional) Territory cost.

The info I got so far is that I cannot view or get the data of other people's maps. Is that correct for all cases?
Get map connections: 2023-01-31 19:17:11


JK_3 
Level 63
Report
You can get the connection info from the Query Game API (https://www.warzone.com/wiki/Query_game_API).

However, that does require a paid membership, but if you have a few maps I and maybe some other members can get that data for you.

I'm not sure what you mean by territory cost, could you perhaps elaborate on that?

Example of API:
Game: https://www.warzone.com/MultiPlayer?GameID=31271766
API url: https://www.warzone.com/API/GameFeed?GameID=31271766&GetHistory=true&GetSettings=true
Returned data from API: https://pastebin.com/SBzzBL16
Get map connections: 2023-01-31 19:48:36


Bring * back! ⌛sucks! 
Level 62
Report
Let me give you data for my favourite map.

List of territories:
->Pirate
->Ninja

Connections:
->Pirate & Ninja

Territory costs:
->Pirate (1)
->Ninja (0)

Edited 1/31/2023 19:48:47
Get map connections: 2023-01-31 20:04:08

Albion
Level 47
Report
Yes, that is the data I need, thank you very much!

"name" : "Sitace",
"id" : "2",
"connectedTo" : [ 240, 280, 273, 3, 6 ]
},

"terrID" : 139,
"ownedBy" : "Neutral",
"armies" : "2",

That is enough to try to do it in warzone. Thank you!

About territory cost, I was referring to the "armies" : "2" property. It is not a big deal in classic (I did not play classic in such a long time I did not considered you could interpret it in any other way except idle, sorry) because in most maps (not all) every territory costs 2 armies. In Idle that varies between 2 and Trillions.

As I said the data you kindly provided is already enough to work. If I could abuse your kindness, is it possible to get that data from idle (to get the number of armies within the territories)? I would love to have the data for a medium map and a large one, like "Breaking Green" and "Europe Huge".
Get map connections: 2023-02-01 00:51:52


JK_3 
Level 63
Report
Getting data from idle is not supported by the API, and therefore theoretically forbidden.

In practice you can probably open up an idle level in a browser and sneak around in the memory to get, but thats too much effort for me 😅
Get map connections: 2023-02-01 00:54:07

Albion
Level 47
Report
No problem. You have already helped a lot and made it possible to happen!

Thank you very much.
Get map connections: 2023-02-01 00:57:54


JK_3 
Level 63
Report
You're welcome!

What's your math assignment about?
Get map connections: 2023-02-01 02:58:05

Albion
Level 47
Report
I have to chose a task we learned this year and apply it to a real world problem. I will try to find the cheapest path between two points in a multiple path network. I will fill armies randomly to the territories to add a "price" between each node.
Get map connections: 2023-02-01 17:05:35


JK_3 
Level 63
Report
ah, you could just look at something like a local distribution game then, that should have plenty of armies at random places all over the board (usually in the most efficient paths as well)
Get map connections: 2023-02-01 20:34:25


Bring * back! ⌛sucks! 
Level 62
Report
DFS or BFS?
Get map connections: 2023-02-01 21:13:52


(deleted) 
Level 60
Report


Edited 2/4/2023 17:30:45
Get map connections: 2023-02-01 21:15:26


Bring * back! ⌛sucks! 
Level 62
Report
All maps are nodes/ network.

Edited 2/1/2023 21:15:38
Get map connections: 2023-02-01 21:57:35


(deleted) 
Level 60
Report
Indeed they are good sir knight. My thanks. *tips hat* :)
Get map connections: 2023-02-02 10:35:57

Albion
Level 47
Report
@ καλλιστηι

My teacher did not gave us names, but judging by what I looked after you said it, the method we learned looks like BFS.
Get map connections: 2023-02-02 10:54:11

deleted 
Level 62
Report
If you could make that work on Idle, you would be the instant hero of the year.

Take HEX Earth map.
Retrieve all weights (aka neutral armies) from the (fogged) territories.
Add (additional) negative weights to territories like army caches and merc camps.
Retrieve all connections (which should be straight forward with the hexagonal structure).
Get the shortest path from the starting territory to Snow Merc camp.

Prove that there is a way which only needs 2 IMs.
Posts 1 - 15 of 15