Total War: WARHAMMER III
Недостатньо оцінок
[Modding] Get Map Coordinates and Infinite Movement Range
   
Нагородити
До улюбленого
В улюблених
Прибрати
campaign
Позначки: mod
Розмір файлу
Додано
Оновлено
388.240 KB
12 листоп. 2023 о 15:50
31 жовт. о 15:35

Підпишіться, аби завантажити
[Modding] Get Map Coordinates and Infinite Movement Range

Опис
This is mostly a tool to help modders who need an easy way to get map logical coordinates and also infinite movement range to move any character anywhere in the world without wasting time ending turns.

I mostly needed this for my Chaos Treasures mod to quickly get logical coordinates where to place event markers in the world, and also to test those events. With new campaign maps like Immortal Empires Expanded, I guess it could be useful for other people too.


Regarding the coordinates, they are displayed at the bottom of the screen where the name of the selected character is usually shown (see the attached screenshot). The coordinates are updated as soon as a character finishes moving on the map. So if you need the logical coordinates of a specific spot of the map just move a character there to get them.

Note that since the characters are renamed, the coordinates will also be displayed in the floating text above characters but this text is only refreshed when the whole screen/HUD is updated so it's less reliable.


For the infinite movement range, there are 2 changes :
- The default movement range of lords has been significantly increased. In theory, it can be increased even more but it seems to be source of performance issues, probably because of the game trying to draw the green overlay on the map. For some reason, the movement range boost doesn't affect agents at all so avoid embedding them in an army if you want to keep the max range.
- As soon as the movement points of a character have been exhausted, they are automatically replenished. This is what makes it possible to have infinite movement range and move characters (even agents) anywhere in the world without ending the turn.



This mod can be activated/deactivated at any time during a campaign but note that if activating it mid-campaign you will need to pass a turn to make the movement range boost apply.
Коментарів: 14
Freiya  [автор] 5 листоп. о 9:04 
@Mórgan, For now you can open the mod with the software called RPFM. In the lua file of the mod, just add -- in front of the following line to prevent the renaming :
cm:change_character_custom_name(context:character(), "X=" .. position_x, " Y=" .. position_y, "", "")
Mórgan 5 листоп. о 3:39 
Whenever I move my characters their name disappears and is replaced with their current coordinates, how can I fix that?
Zugs 6 жовт. о 13:29 
Any way we can use this to find buried treasure for Vampire Coast?
Some_One_Else 20 серп. о 15:31 
This was quite useful!. Though I still haven't quite figured out a bit of the actual scripting, now I know where I'm sending things! :lunar2019grinningpig:
Kerrberos 20 лип. о 6:16 
updating list of what in game things use log or dis coordinate types:

This Mod shows log coordinates:

char lookup str uses dis
cm:teleport_to uses log
cm:kill uses dis
portals use log
battle sites use dis
cm:create_force_with_general use log
add_agent_experience use dis
force_rebellion uses log
add_interactable_campaign_marker uses log
Lohit 16 трав. о 20:59 
Thanks! This is a really useful tool
Homuhomu 16 квіт. о 3:24 
I've tried with Belakor, there are some mods active (Chaos treasures, chaos confederation, defeated lords, and level 70).

In any case, the issue seems to have resolved on turn 2, the bug no longer appears on my side.
I suspect two possibilities:
1. The issue is turn 1 specific (Although that doesn't explain why battles suddenly work just fine when turning off the mod)
2. I included agents in my army on turn 2, its possible the reduced max movement range removed any crash triggering factors.

Thanks for the super fast response, didn't expect anything, just logging my thoughts down that's all. Love your mods, chaos treasures is a must!
Freiya  [автор] 15 квіт. о 8:55 
@Kerrberos, Thanks for the info.
@Homuhomu, I can't reproduce the issue on my side (at least on turn 1), do you have other mods active ? With which faction/lord do you have the issue ?
Homuhomu 15 квіт. о 3:39 
Okay, to clarify, the crashes occur no matter what you do, as long you as you try to transition away from the campaign map, that includes trying to quit the game... So you just have to force quit.
Homuhomu 15 квіт. о 3:12 
There's an easy workaround though. Just get to the battle, quicksave, then quit and turn off the mod. Fight the battle manually, win, then save and quit, and turn the mod back on. You can continue the infinite movement this way.

Alternatively just autoresolve, everything works as long as you don't manually battle.