Wake of Gods Forum | Форум Во Имя Богов
Heroes Interface - Printable Version

+- Wake of Gods Forum | Форум Во Имя Богов (http://wforum.heroes35.net)
+-- Forum: Герои Меча и Магии 3.5 WoG/ERA (/forumdisplay.php?fid=99)
+--- Forum: Обсуждение WoG (/forumdisplay.php?fid=69)
+---- Forum: English subforum (/forumdisplay.php?fid=64)
+---- Thread: Heroes Interface (/showthread.php?tid=4393)


Heroes Interface - Valery - 25.12.2013 10:31

HmS, Heroes meeting Screen improved interface.

DOWNLOAD (1Mo)



RE: Heroes Interface - Berserker - 25.12.2013 19:35

Quote:1) When combos equipped, all the slots except one return -1, so it is impossible with erm to get if a slot is empty or part of combo on. For now, my script will exit if a combo is found but will exchange all the other artifacts until that.
Solvable, but requires a bit of coding. What's the problem with empty slots?

Quote:2) Moving artifacts by erm does not trigger AE1/0 so we need UN:C to trigger them (example, move magic tomes by erm leaves the spells in book, need to delete, or moving same tome does not give the spells automatically). (see*)
If Solitaires code works, it's ok.

Quote:3) when moving backpack artifacts, there is no redraw (oh well...)
Even with MoP's code?

Quote:4) When tested in HD, SN: D does not redraw troops.
Try MoP's code, maybe it redraws the whole screen.


RE: Heroes Interface - Valery - 25.12.2013 19:50

Will try MoP, until now isn't working. The problem with empty slots is that one artifact will move in a combo place, because it reads -1.

Let's say you have admiral hat, so head slot returns combo on, but neck returns -1 (empty). So if other hero has something on neck and you press to give artifacts, his artifact will install on your neck, but you keep admiral hat too.

You can see that when you hover mouse over combos. Except one slot, mouse says "empty" on all locked slots.

Solitaire code: no idea how to use it. Jim uses it for active hero without specify ID, but in transfer artifacts, there are two heros active. Not working.

@Edit: backpack redraw solved with MoP code.


RE: Heroes Interface - Berserker - 25.12.2013 21:52

Should I write function to check for really free slots on hero doll?


RE: Heroes Interface - igrik - 25.12.2013 22:27

Valery, пожалуйста проводите проверку на AI and TCP/IP для сокращения ошибок и недочетов при сетевой игре
Please perform the test on AI and TCP / IP in order to reduce errors and defects in multiplayer
Например "Swap troops"
P.S. sorry for my bad english 147


RE: Heroes Interface - Valery - 26.12.2013 02:07

Igrik, I know almost nothing about multiplayer, if you want to finalize you are welcome. I can't even play online. If you can test it, modify what you need then paste here so I can update, ok?

Reworked a bit the thing and uploaded here:

Improved_backpack

Changes:

*updated with igrik last backpack bag
*added mop code
*optimized switch artifacts

The problems remaining (in single player at least) are related to switch artifacts. The biggest problem I faced is due to the fact that, when you erm-remove one equipped artifact, you must remove ALL that artifacts ID the hero owns, with A-$. If you don't do so, the stats bonuses do not change.
The second problem are the combos, the combo ID location returns fine, but the locked slots return -1, as it was empty. So far, I am unable to exchange properly combos, without having their locked slots get other artifacts in.

The third problem are the misc.slots 1-5, I don't know how to do them properly. Again, we must remove all artifacts on switching, so if one hero has for example 5 purses of gold in slots 9-12/18, when you process 9, it will delete all purses and give back 4 in backpack. So the script will not find anymore purses in slot 10-12/18. You will not have error in artifacts counter, but the ones you had equipped will be now in backpack, so have to equip again manually, annoying. I disabled misc slots from script, waiting for someone to have a genius idea.

One solution would be to store ALL artifacts one hero has equipped in global vars but we would need 28 then and I want to avoid that, to keep compatibility with everything. But still with that, the combos thing will not be solved.

Here is the code for exchanging artifacts, if someone wants to finalize, would be great.




RE: Heroes Interface - Valery - 26.12.2013 09:18

Updated to same link. Made buttons for backpack switch, redid all the codes for artifacts transfer. The problems remaining I can not solve so I am over.

Remaining:

1) Combos are skipped, because ghost locked slots. If you delete the two lines preventing the combos, you will see what I mean.
2) If hero has >3 equipped artifacts of same type (ie: purse of gold), only 3 of them will be switched/given, the others will remain equipped. This is because at each switch we have to delete all artifacts, re-equip the extra so other slots are used. Not perfect but that's it.

Code for switch:



RE: Heroes Interface - igrik - 26.12.2013 12:39

update script for multiplayer.


RE: Heroes Interface - Valery - 26.12.2013 14:49

Thanks, Download.

Updated link. I changed flag 116 to SN:W vars as there are many mods using low flags.


Just one question, why the Multiplayer fix? So far AI never uses click so never gonna happen, do I miss something?

PS: in the version you have, I forgot a test line in switch artifacts:
Delete it.


RE: Heroes Interface - Valery - 26.12.2013 15:48

(25.12.2013 21:52)Berserker Wrote:  Should I write function to check for really free slots on hero doll?


Would be very useful for this mod, yes. 118


RE: Heroes Interface - igrik - 26.12.2013 15:57

Not to allow a player to take a human troops and artifacts from AI. Human in original can not pick the same troops and artifacts from AI

(26.12.2013 14:49)Valery Wrote:  
Delete it.
Thanks.


RE: Heroes Interface - Valery - 26.12.2013 15:59

Ah right, I forgot that, my bad.


RE: Heroes Interface - igrik - 26.12.2013 16:05

Valery, there were still checks in these places !?CM3

upd: already saw. my mistake


RE: Heroes Interface - Valery - 26.12.2013 16:11

I changed everywhere (I hope!) 115


RE: Heroes Interface - Valery - 28.12.2013 10:16

DOWNLOAD HsM

New link and name. Solved all issues, thank Bersy.

Remaining (visual only) problem: when HD mod and move/switch armies, screen quickly flashes for half second when using MoP redraw. In regular definition all ok.


RE: Heroes Interface - igrik - 29.12.2013 00:25

Valery, again you have not installed check for network play when exchanging armies and artifacts :D
Do check in only one place:



RE: Heroes Interface - Valery - 29.12.2013 00:34

True, script was redone from scratch and I forgot the MP check. I will add tomorrow, thanks.

Edit: done and tested in hotseat. Same link. Fixed a bug but discovered another one: when move left/right combos, they will change ALL hero slots to locked. When switch, all ok. Will ask Bersy about before probably changing script for move l-r/r-l to match switch code which is safe.


RE: Heroes Interface - Valery - 29.12.2013 17:33

Ok, I think I solved the issue. Same link but I will wait for more test before advertising. Combos should be tested, both move and switch.

Bersy, please I need to know how to move scrolls, they vanish. I don't know how to handle with the art subtype you write (-1) and your function does not even delete them.


RE: Heroes Interface - WWWoWaNuS - 29.12.2013 19:33

(28.12.2013 10:16)Valery Wrote:  DOWNLOAD HsM
Should it work on Era 2.46?
(Ybackpack works ok, but all features of HmS_Improved_Interface exept Ybackpack's don't work.. Bad )


RE: Heroes Interface - Valery - 29.12.2013 19:47

You need 2.46 yes.


RE: Heroes Interface - WWWoWaNuS - 29.12.2013 20:19

(29.12.2013 19:47)Valery Wrote:  You need 2.46 yes.
Ok, are there any suggestions or restricions to other mods or plugins?

Era.dll's size is 211,968 bytes,
it's datestamp is "Thursday, ‎January ‎24, ‎2013, ‏‎2:19:56 AM"

All of buttons are there, but only igrik's button works.

Well, it didn't work when I turned 'em off to:
105

List of WoG plugins (Click to View)

P.S. base is SoD RuS, but no other mods' troubles happen..


RE: Heroes Interface - Valery - 29.12.2013 20:58

Era 2.46 was released in july 2013. If you era.dll says january 2013, it clearly is an old version.

And is compatible with all mods.


RE: Heroes Interface - WWWoWaNuS - 29.12.2013 21:06

(29.12.2013 20:58)Valery Wrote:  Era 2.46 was released in july 2013. If you era.dll says january 2013, it clearly is an old version.
Oh, thx. Sorry then.
Upd.: thx one more time, works great!


RE: Heroes Interface - Valery - 29.12.2013 21:08

I got mine HERE, try it.


RE: Heroes Interface - Berserker - 30.12.2013 00:59

Valery, art subtype for scroll is spell ID.
Sorry, quite busy these days.


RE: Heroes Interface - Valery - 30.12.2013 09:02

Doesn't work, they are neither deleted or moved.


RE: Heroes Interface - Bes - 30.12.2013 19:05

Valery, Ybackpack.btn have little hint-bug...
Quote:Heroes;YBackpack8;SwAML.def;426;335;52;36; Give artifacts left-right.;Exchange artifacts between heroes;
Heroes;YBackpack9;hd_xchng.def;376;335;52;36; Switch Artifacts.;Exchange artifacts between heroes;
Heroes;YBackpack10;SwAMR.def;326;335;52;36; Give artifacts right-left.;Exchange artifacts between heroes;



RE: Heroes Interface - Bes - 31.12.2013 01:48

буду признателен , если кто-то глянет на корректность работы руссифицированного мода... (у меня ERA упала до выяснения...)
https://app.box.com/s/6imoi8iig27ejzmw3tyk


RE: Heroes Interface - igrik - 31.12.2013 02:50

Проверил - все отлично работает, кроме одной фишки: кнопки рюкзака не спроста были сделаны ненажимаемыми. Из-за этого перестает работать подбирание (взятие "в руки") артефакта из окна рюкзака.
И вот один недочет в TCP/IP
Image: 1bmp_1203466_10281186.jpg[/URL]
И раз уж пошла такая пьянка, то думаю стоит добавить в этот мод WTшный скрипт по быстому управлению армий. Там в архиве видюха с багом, который мне увы так и не удалось решить.


RE: Heroes Interface - Bes - 31.12.2013 03:01

igrik, хм... и никак это не победили?


RE: Heroes Interface - igrik - 31.12.2013 03:06

хотя есть идейка...


RE: Heroes Interface - Bes - 31.12.2013 03:11

касаемо кнопки Получить от созника - сместить ту кнопку бинарником и делов...
а как в HD-моде это дело обстоит?


RE: Heroes Interface - igrik - 31.12.2013 03:20

на кройняк можно скриптом через формулу.
!!UN:C4199496/2/?y2; получить разрешение по Х
!!UN:C4199503/2/?y3; по Y


RE: Heroes Interface - Bes - 31.12.2013 03:38

igrik, что касается вашего шаманства с намеренной блокировкой нажатия Рюкзака...

а вы пробовали так:
1) в диалоге рюкзака берётся арт
2) в адрес 6916824 забиваем номер арта
!!UN:C6916824/4/<art #>; вид курсора
если свиток, то !!UN:C6916824/4/-1 C6916828/4/<закл свитка>;
3) диалог закрывается, а курсор у нас ввиде арта который типа "взяли"
4) клацаем в новое место на кукле - арт туда помещается...
5) сбросить адреса курсора 6916824 и 6916828 на пустоту (-1 и 0 соответственно)
6) обновить окно


RE: Heroes Interface - igrik - 31.12.2013 04:19

Bes, ini файл в *.pac'e не переведен.
через !!UN:C6916824/4/-1 C6916828/4/<закл свитка>; проблема в том, что невозможно подсветить желтой рамкой место куда ставится атефакт.


RE: Heroes Interface - Valery - 31.12.2013 05:27

Thanks Bes, I will fix the hint once I can script also the scrolls.

Igrik, I don't understand the problem. I tested in hotseat with computer ally and we can't use buttons, so ok. Maybe Bersy can translate better what you said, as google gives nothing good. If it is about the short flash when moving armies, I detailed it here, and is related to MoP redraw code:

Post 15


Split MoD:
I would need an english read me.txt about the split mod, what it does and how to use it, please. The bug you have is because when you split creatures, you click and highlight a stack, then the script deletes the stack but is still active.

In TEW4 I create split options by right-click+Ctrl on stack (so it does not highlights) then pop dialog when it asks: enter the number to split by.


Personally I prefer this way, and here is why: with Era we can bind all actions to hotkeys therefore modders will create mods with their own custom keys, as Phoenix. So when you release an universal mod as "split armies", is better IMO to not use any hotkey which could create incompatibilities.


RE: Heroes Interface - Valery - 31.12.2013 09:57

(31.12.2013 01:48)Bes Wrote:  буду признателен , если кто-то глянет на корректность работы руссифицированного мода... (у меня ERA упала до выяснения...)
https://app.box.com/s/6imoi8iig27ejzmw3tyk

You only translated Backpack bag part, then you let english comments for all other buttons. In erm file I mean. But is very short to translate, only 3-4 lines.


RE: Heroes Interface - Bes - 31.12.2013 16:41

(31.12.2013 04:19)igrik Wrote:  Bes, ini файл в *.pac'e не переведен.
знаю, не стал уже ради слова "Exit" и "Рюкзак" этим заниматься... переживут.

(31.12.2013 09:57)Valery Wrote:  
(31.12.2013 01:48)Bes Wrote:  буду признателен , если кто-то глянет на корректность работы руссифицированного мода... (у меня ERA упала до выяснения...)
https://app.box.com/s/6imoi8iig27ejzmw3tyk

You only translated Backpack bag part, then you let english comments for all other buttons. In erm file I mean. But is very short to translate, only 3-4 lines.
not found this erm-line ( show me that miss place


RE: Heroes Interface - Valery - 31.12.2013 17:12

Search for M^ and you will find, there are 4 of them, really short.


RE: Heroes Interface - Bes - 31.12.2013 17:21

Valery, thx, translate that line

по хорошему, там ert-файл нужен... но я уже не стал этим заниматься


RE: Heroes Interface - Berserker - 31.12.2013 22:07




RE: Heroes Interface - Valery - 31.12.2013 22:29

Thank you very much 119

Mod is ready now, same link.

Aha, you set scroll number to 1. The thing which confused me is that when you check a scroll ID it never returns 1, but 1xxx. While Erm says 1.


RE: Heroes Interface - Berserker - 31.12.2013 22:56

Welcome and happy New Year Sm
It's written in ERM that comamnds return 1001 + spell number. Slava had to encode two values (art type and subtype = spell for scrolls) into single value.


RE: Heroes Interface - Valery - 31.12.2013 22:59

I was quite proud with my SN:W^Left%X16^/ instead of v9770-v9997, I see you found better.


RE: Heroes Interface - Berserker - 31.12.2013 23:43

Easier a bit, but your solution is ok too except of cleaning vars after usings (settings them to 0, ^^).


RE: Heroes Interface - Valery - 01.01.2014 00:11

Hmm, no need to clean, they are recalculated at each CM3 switch. Even if slot is empty, they get a new value of -1. I missed something?


RE: Heroes Interface - Valery - 01.01.2014 12:19

Phew, the chinese were fast, today release:




RE: Heroes Interface - Berserker - 01.01.2014 19:51

Very fast indeed!


RE: Heroes Interface - GrayFace - 02.01.2014 04:03

Looks cluttered. Back in 3.57 I did a script that moves units by Ctrl+Click (same as those small arrows), which I think is a better way. These arrows are too small to be comfortable.


RE: Heroes Interface - Valery - 02.01.2014 05:43

For me is very comfortable, but I never play in HD (where indeed it looks small), as it changes the proportions and distance between clicks therefore my game play is much slower. For vanilla resolution is exactly what I needed since long time.

Of course Baratorch sizes and interface redesign for HD allows bigger arrows but he did not want to adapt it for era, then most people are already complaining about clumsy ctrl+click scripts they are forced to memorize for a lot of actions. Also not everyone plays with a keyboard near.


RE: Heroes Interface - gamecreator - 02.01.2014 15:41

I find HD buttons comfortable. Arrows on chinese screen look lame.


RE: Heroes Interface - Algor - 06.10.2014 04:03

Можно обновить ссылку в первом сообщении (мертвая)?
И добавить туда же русифицированную версию.


RE: Heroes Interface - Valery - 06.10.2014 04:16

HMSI-EN

HMSI-RUS

Just tested the russian version, is buggy and not up to date, don't know what is going on. English ok.


RE: Heroes Interface - Algor - 06.10.2014 13:21

Спасибо, гляну вечером.