Total War: WARHAMMER III

Total War: WARHAMMER III

Nincs elegendő értékelés
[Modding] Get Map Coordinates and Infinite Movement Range
   
Díjazás
Kedvenc
Kedvenc
Törlés
campaign
Címkék: mod
Fájlméret:
Közzétéve:
Frissítve:
388.195 KB
2023. nov. 12., 15:50
jún. 25., 15:02
5 változásjegyzék ( megnézés )

Feliratkozás a letöltéshez
[Modding] Get Map Coordinates and Infinite Movement Range

Leírás
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.
10 megjegyzés
Kerrberos júl. 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 máj. 16., 20:59 
Thanks! This is a really useful tool
Homuhomu ápr. 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  [készítő] ápr. 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 ápr. 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 ápr. 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.
Homuhomu ápr. 15., 2:49 
This mod definitely does magically work, in giving infinite movement.

However, it seems to cause battles to fail to load. Its inconsistent, but turn this on turn 1, and fight many battles, battles will eventually fail to load with this mod on, and instantly work if you turn off the mod.
Freiya  [készítő] 2023. nov. 22., 6:00 
@Kerrberos, it shows logical coordinates. If you need display coordinates, you can easily edit the .lua script of the mod, check these lines :
local position_x = context:character():logical_position_x()
local position_y = context:character():logical_position_y()

And replace them with :
local position_x = context:character():display_position_x()
local position_y = context:character():display_position_y()

It's minor but dots can't be displayed in the character name box so coordinates will have a space instead and look like "X = 111 111111111111" instead of "X = 111.111111111111" for example.
Kerrberos 2023. nov. 20., 13:26 
does it show logical coordinates or display coordinates ? >_<
AraNg 2023. nov. 13., 1:09 
thanks great mod