Wake of Gods Forum | Форум Во Имя Богов
mapview stretch/ZOOM - Printable Version

+- Wake of Gods Forum | Форум Во Имя Богов (http://wforum.heroes35.net)
+-- Forum: Герои Меча и Магии 3.5 WoG/ERA (/forumdisplay.php?fid=99)
+--- Forum: Моды (/forumdisplay.php?fid=104)
+---- Forum: Теория, идеи, обсуждение (/forumdisplay.php?fid=184)
+---- Thread: mapview stretch/ZOOM (/showthread.php?tid=6451)


mapview stretch/ZOOM - imswear - 26.12.2021 09:49

I'm here again
I'm trying to modify hard coded data to stretch MapView,
To make it fit my screen better
As shown in the figure:
Change the scale, not the size.
I Know HD mod can change the resolution.
But I just want to zoom MapView.
I've tried some modifications, but they didn't work.
Can someone tell me the method or code area?
This may not be the direction everyone likes
But I think you have a way
Thank you.




RE: mapview stretch/ZOOM - Berserker - 26.12.2021 15:04

I see no easy way to do it, sorry.


RE: mapview stretch/ZOOM - imswear - 26.12.2021 15:51

The news is heartbreaking

Theoretically, it obtains different stretching scale parameters with different HD resolution.
I want MapView to use the stretch scale of lower resolution (such as 1180x664) at high resolution (such as 2126x1196).
This is very important to me.

Sad. thank


RE: mapview stretch/ZOOM - imswear - 26.12.2021 15:58

Another question,
can you tell me the calling code of the battlefield background picture,
or the coordinates address in the EXE code?
I want to change its coordinates.
thx


RE: mapview stretch/ZOOM - daemon_n - 26.12.2021 16:05

imswear, 004635D0 Battle_PrepareBattlefield

004642B0 char *__thiscall Battle_GetBackgroundPcxName(_BattleMgr_ *this)


RE: mapview stretch/ZOOM - imswear - 26.12.2021 17:32

(26.12.2021 16:05)daemon_n Wrote:  imswear, 004635D0 Battle_PrepareBattlefield

004642B0 char *__thiscall Battle_GetBackgroundPcxName(_BattleMgr_ *this)

Thank you,daemon_n。
It's a little different from what I thought.
How to modify the coordinates and dimensions.
I've changed most of the other UI. Only the position / size of the battlefield background map seems to be nailed.



RE: mapview stretch/ZOOM - daemon_n - 26.12.2021 18:34

sorry, my asm level is 0, and the same is about reverse


RE: mapview stretch/ZOOM - imswear - 26.12.2021 20:05

(26.12.2021 18:34)daemon_n Wrote:  sorry, my asm level is 0, and the same is about reverse

Still thank you.

Hello, Berserker
I have some questions about WOG:
I use the [Object TXT file editor] to modify the object file
1. Why split into three files: zaobjts txt、zeobjts. txt、zobjcts. txt。 What role do the three play?

2. zaobjts.txt and zobjcts.txt contains a lot of duplicate content. Can they be combined into one file? It seems to double my workload.

3. As shown in the figure, when I modify the floor area of the castle, it seems that it can't be too large, otherwise some bugs will be generated when I enter the game. Is there a solution?



RE: mapview stretch/ZOOM - XEPOMAHT - 26.12.2021 20:31

(26.12.2021 20:05)imswear Wrote:  1. Why split into three files: zaobjts txt、zeobjts. txt、zobjcts. txt。 What role do the three play?

В оригинале должно быть 2 штуки - для рандома и установки объектов на карту. В WoG для редактора карт добавили третий текстовик, неизвестно зачем (та же непонятная история как с добавлением msg только для редактора карт).

(26.12.2021 20:05)imswear Wrote:  2. zaobjts.txt and zobjcts.txt contains a lot of duplicate content. Can they be combined into one file? It seems to double my workload.

Можно, но некоторые объекты не должны генерироваться на карте, поэтому было разделение на 2 тестовика (на самом деле их больше, просто в ВоГ они не изменяются).

(26.12.2021 20:05)imswear Wrote:  3. As shown in the figure, when I modify the floor area of the castle, it seems that it can't be too large, otherwise some bugs will be generated when I enter the game. Is there a solution?

Скриптёры никогда не проверяют объекты на количество входов. Естественно, никто не ожидает, что у города их будет 2. 148 Да сам ERM рассчитан на объекты с 1 входом. Поэтому ERM-скрипты всегда будут глючить на подобных нестандартных объектах.


RE: mapview stretch/ZOOM - daemon_n - 26.12.2021 20:41

imswear, 2 - map editor/ random map generator/ game manager (order is mexed up)

3. any complex object with 2 entrance is bad for erm, game.
Castle in structure has exact coordinates, so you try to cheat the logic. Don't do that)


RE: mapview stretch/ZOOM - imswear - 26.12.2021 20:43

got it. The problem is two entrances. So two town icons appear (actually the same city).
That's good, thank you.


RE: mapview stretch/ZOOM - Raistlin - 26.12.2021 22:01

(26.12.2021 17:32)imswear Wrote:  
(26.12.2021 16:05)daemon_n Wrote:  imswear, 004635D0 Battle_PrepareBattlefield

004642B0 char *__thiscall Battle_GetBackgroundPcxName(_BattleMgr_ *this)

Thank you,daemon_n。
It's a little different from what I thought.
How to modify the coordinates and dimensions.
I've changed most of the other UI. Only the position / size of the battlefield background map seems to be nailed.



RE: mapview stretch/ZOOM - imswear - 27.12.2021 10:33

(26.12.2021 22:01)Raistlin Wrote:  

Raistlin,thank you. You saved me。2020


RE: mapview stretch/ZOOM - igrik - 27.12.2021 11:56

Кстати, вот так выглядит полностью разобранная функция: (Click to View)



RE: [help] UI modification - imswear - 28.12.2021 16:31

sorry
I have another problem
ERM works only after entering the game map
I now need to remove the shadow from the game start interface
So I changed the assembly code directly
But it didn't work.
What's the problem?



RE: mapview stretch/ZOOM - imswear - 28.12.2021 16:34

(27.12.2021 11:56)igrik Wrote:  
Кстати, вот так выглядит полностью разобранная функция: (Click to View)

thank you.

Now, I have modified most UI boxes
But the coordinates of the battlefield background picture are still not foundSorrySorry


RE: [help] UI modification - daemon_n - 28.12.2021 16:44

imswear, use bin patch https://tools.hmm35.ru/unc-to-bin/index.html


RE: [help] UI modification - imswear - 28.12.2021 17:17

(28.12.2021 16:44)daemon_n Wrote:  imswear, use bin patch https://tools.hmm35.ru/unc-to-bin/index.html


good
It worked
Get a new tool. A new world.
thank!9696969696969696969696


--------------------------------------
Looks like I made a mistake

My test is wrong
After entering the game map and returning to the main menu, it works.
This is still the effect of ERM.
When you first open the game, it is invalid.

I have only recently modified the game and have 10000 questions.
There may always be some stupid questions. Thank you for your patience.

--------------------------------------
Update again: done!

The previous mistake is that I put The bin file is in the wrong folder.
Thank you, daemon_ n


RE: mapview stretch/ZOOM - igrik - 28.12.2021 19:16

(28.12.2021 16:34)imswear Wrote:  But the coordinates of the battlefield background picture are still not foundSorrySorry
0x55D133


RE: mapview stretch/ZOOM - imswear - 29.12.2021 11:23

(28.12.2021 19:16)igrik Wrote:  
(28.12.2021 16:34)imswear Wrote:  But the coordinates of the battlefield background picture are still not foundSorrySorry
0x55D133

Although I haven't finished it all. But it does work. thank you


RE: mapview stretch/ZOOM - imswear - 29.12.2021 13:03

Such as this post
Battlefield image

(21.05.2020 00:32)XEPOMAHT Wrote:  Если кто-то сможет перерисовать абсолютно все спрайты в игре, увеличив их размер в 1,5 раза по сравнению с текущими, тогда и окно боевого режима игры можно увеличить в 1,5 раза (по коду с этим проблем никаких нет, проблема - это отсутствие самой графики).

I just found out that I was doing something similar: trying to zoom in on the battlefield
But at present, it may be a huge project. Obviously, it is far beyond my ability
I wonder if there are any similar mod achievements or tutorials?
Is there anyone interested in it?


RE: mapview stretch/ZOOM - Raistlin - 29.12.2021 22:05

igrik, спасибо! Я из открытой базы этот код копировал, в закрытой у меня эта функция тоже есть.