Author Topic: [Code]The World Map to show the exact realm of factions  (Read 17035 times)

0 Members and 1 Guest are viewing this topic.

dunde

  • Count
  • *
  • Curious Coder of The Vision
    • View Profile
  • Faction: Swadian
  • WB
Re: [Code]The World Map to show the exact realm of factions
« Reply #30 on: July 13, 2013, 01:52:31 AM »
I'm sorry for this necro. But I got the idea from this thread, so I think I should post mine here.
I played around with rubik method, but instead of saving the terrrain types, I save the position z values. And the result is here :
(click to show/hide)

The map is not too eye catching, but the data array used to draw it may serve us at different use. I imagine a set of battle scenes that selected according the data. We can use it to select a grassy flat scene with mountain at fear east and little elevated ground at north using the data.

AlmightyPush

  • Recruit
  • *
    • View Profile
  • Faction: Sarranid
Re: [Code]The World Map to show the exact realm of factions
« Reply #31 on: February 24, 2014, 10:17:06 PM »
So does this script automatically set the black borderlines, or do you have to draw the lines yourself?  8-)

aliemre461

  • Knight
  • *
  • Permanently Banned
    • View Profile
  • Faction: Nord
Re: [Code]The World Map to show the exact realm of factions
« Reply #32 on: December 21, 2014, 05:19:02 PM »
Awesome very good man


Somebody

  • Code Pope
  • Baron
  • *
    • View Profile
  • Faction: Bandit
  • WBWF&S
Re: [Code]The World Map to show the exact realm of factions
« Reply #33 on: March 10, 2015, 03:28:47 AM »
Check header_terrain_types to see what terrain the water actually is, and replace it accordingly in the code.

kalarhan

  • Python Saint
  • Count
  • *
  • Use Q&A thread, not a PM :)
    • View Profile
  • Faction: Neutral
  • WBNWVCWF&S
Re: [Code]The World Map to show the exact realm of factions
« Reply #34 on: March 10, 2015, 03:48:09 AM »
Check header_terrain_types to see what terrain the water actually is, and replace it accordingly in the code.

Thanks!

I was thinking the same thing, but as I dont have the header_terrain_types I added a display_log to print all terrains codes to my rgl_log.txt. From there I will try to filter the correct codes.

I dont have the modules source, as VC has yet to release it for us. So its hard work on .txt files  :mrgreen:

New result  :party: :


« Last Edit: March 10, 2015, 04:29:24 AM by kalarhan »

wrwlf

  • Sergeant
  • *
  • Verification Engineer
    • Steam - wrwlf
    • View Profile
  • Faction: Neutral
Re: [Code]The World Map to show the exact realm of factions
« Reply #35 on: August 13, 2015, 03:39:51 AM »
Can I adjust the scaling (dimension*1000) for the map size?
My map is 240x240, but putting that for the sizes in the script results in the displayed map being too big and covering the legend.

Khabal

  • Recruit
  • *
    • View Profile
  • Faction: Rhodok
Re: [Code]The World Map to show the exact realm of factions
« Reply #36 on: December 15, 2016, 05:20:06 PM »
...


I'd really love to use something like this, but I'm unable to find module_presentations.py.

I've looked into every folder in Warband and Modules :(

Namakan

  • Sergeant Knight
  • *
  • How did I get here?
    • Steam - NamakanZ
    • View Profile
  • Faction: Bandit
  • MP nick: Krex, Tenebrae
  • WF&SNWWBVC
Re: [Code]The World Map to show the exact realm of factions
« Reply #37 on: December 15, 2016, 05:37:00 PM »
Module System. Not text files. Read the guides.
Playing for DoF

kalarhan

  • Python Saint
  • Count
  • *
  • Use Q&A thread, not a PM :)
    • View Profile
  • Faction: Neutral
  • WBNWVCWF&S
Re: [Code]The World Map to show the exact realm of factions
« Reply #38 on: December 15, 2016, 06:02:53 PM »
I've looked into every folder in Warband and Modules :(

read this https://forums.taleworlds.com/index.php/topic,240255.0.html



New result  :party: :


damn I worked on this presentation with .txt files. I was kind of crazy back them lol. In case anyone reads this thread: VC modsys is now available (being for months), so it is cake easy to add this add-on to the DLC, no need to suffer doing it
« Last Edit: December 15, 2016, 06:05:50 PM by kalarhan »

Khabal

  • Recruit
  • *
    • View Profile
  • Faction: Rhodok
Re: [Code]The World Map to show the exact realm of factions
« Reply #39 on: December 15, 2016, 06:54:52 PM »
Thank you both.

AimedCanada

  • Recruit
  • *
    • View Profile
  • Faction: Neutral
Can't get to work
« Reply #40 on: November 12, 2019, 10:21:41 PM »
I can't get it to work it always get a AGGREGATOR error  :(.
here is the error code :
MODULE game_menus AGGREGATOR ERROR:
failed to compile code for menu item action_view_world_map in menu reports (#4)
  command [900, 1, 'prsnt_world_map'] compilation fails in mnu.reports(#4).mno_action_view_world_map.choice on line 1
    failed to parse operand 'prsnt_world_map' for operation start_presentation in mnu.reports(#4).mno_action_view_world_map.choice on line 1
      illegal reference `prsnt.world_map`

Dj_FRedy

  • Count
  • *
  • "game_start"
    • View Profile
  • Faction: Swadian
  • M&BWBNWVCWF&S
Re: [Code]The World Map to show the exact realm of factions
« Reply #41 on: November 12, 2019, 11:18:10 PM »
In which file are you trying to add the code?
"Lately I have had little time to play. That is the downside of modding. And once you get behind the scenes (no pun intended) some of the magic disappears. You start contemplating ways to change the game instead of just playing and having fun. Suddenly it is more fun modding than actually playing".
Adorno

AimedCanada

  • Recruit
  • *
    • View Profile
  • Faction: Neutral
Re: [Code]The World Map to show the exact realm of factions
« Reply #42 on: November 13, 2019, 03:56:39 PM »
In module_game_menus.py, everything works if i don't put the code indicated in the tutorial (all other code in the tutorial works).

Dj_FRedy

  • Count
  • *
  • "game_start"
    • View Profile
  • Faction: Swadian
  • M&BWBNWVCWF&S
Re: [Code]The World Map to show the exact realm of factions
« Reply #43 on: November 13, 2019, 05:34:27 PM »
Actually there are two files to modify.

1.- In 'module_presentations.py':
(click to show/hide)

2.- In 'module_game_menus.py':
(click to show/hide)
"Lately I have had little time to play. That is the downside of modding. And once you get behind the scenes (no pun intended) some of the magic disappears. You start contemplating ways to change the game instead of just playing and having fun. Suddenly it is more fun modding than actually playing".
Adorno