Current time: 13.04.2024, 03:12 Hello There, Guest! (LoginRegister)
Language: english | russian  

Post Reply 
Threaded Mode | Linear Mode
ERA III
Author Message
Berserker Offline
Administrators

Posts: 16470
Post: #1036

В программировании код x := 100 - x (присвоить переменной X значение выражения 100 - x) чаще всего вычисляется так:
1) Идёт вычисление правой части выражения и сохранение значения во временной переменной
t = 100 - x
2) Идёт присвоение вычисленного выражения переменной x

В ЕРМ нет выражений и приоритетов. Здесь просто линейная последовательность команд/покдоманд.


Скачать Герои 3 Эра и всё, что с ней связано / ERA 2.46f для старых модов
Поддержать проект
11.03.2021 14:55
Find all posts by this user Quote this message in a reply
daemon_n Offline
Administrators

Posts: 4338
Post: #1037

Berserker, понял - спасибо.

Хотя странно, что сделано не "как чаще".

Даже и не знаю теперь, что считать удобнее 102


Image: widget.png?style=banner2

Новейший Heroes 3 Launcher
11.03.2021 17:04
Visit this user's website Find all posts by this user Quote this message in a reply
Bes Offline

Posts: 5422
Post: #1038

Berserker, спасибо, что стал описывать историю обновлений на двух языках 132
11.03.2021 19:00
Visit this user's website Find all posts by this user Quote this message in a reply
Berserker Offline
Administrators

Posts: 16470
Post: #1039

Yandex Translate-у спасибо )


Скачать Герои 3 Эра и всё, что с ней связано / ERA 2.46f для старых модов
Поддержать проект
11.03.2021 19:25
Find all posts by this user Quote this message in a reply
daemon_n Offline
Administrators

Posts: 4338
Post: #1040

(04.02.2021 01:11)Berserker Wrote:  Обновление до версии 3.3.4
Скачать

[+] Добавлена поддержка фоновых цветов для текстовых элементов в 32-битных режимах HD-мода.
[-] Исправления найденных артефактов рендеринга текстов и картинок.

Berserker, с hd mod 32-bit теперь меню "создатели" (credits) имеет чёрный фон вместо прозрачного. Начиная с 3.3.4 и до сих пор.


Image: widget.png?style=banner2

Новейший Heroes 3 Launcher
11.03.2021 21:45
Visit this user's website Find all posts by this user Quote this message in a reply
Berserker Offline
Administrators

Posts: 16470
Post: #1041

Понял, спасибо.


Скачать Герои 3 Эра и всё, что с ней связано / ERA 2.46f для старых модов
Поддержать проект
11.03.2021 22:05
Find all posts by this user Quote this message in a reply
Archer30 Offline
Moderators

Posts: 1104
Post: #1042

Looks like SN:F trick no longer works for user32.dll - GetKeyState.

Code:


Latest ERA mods and scripts in development - My GitHub
(This post was last modified: 16.03.2021 20:06 by Archer30.)
16.03.2021 09:06
Find all posts by this user Quote this message in a reply
Berserker Offline
Administrators

Posts: 16470
Post: #1043

Argh, half an hour of debugging...
!!SN:F^GetKeyState^/1/17; is WRONG!!!
SN:F always use CDECL_OR_STDCALL convention. You don't need the first argument.
!!SN:F^GetKeyState^/(KEY_CONTROL);

Try the following code:


Скачать Герои 3 Эра и всё, что с ней связано / ERA 2.46f для старых модов
Поддержать проект
16.03.2021 16:12
Find all posts by this user Quote this message in a reply
Archer30 Offline
Moderators

Posts: 1104
Post: #1044

Hah! You can't blame me! That was exactly the same code from your modification to my henchman mod 96-copy Yay now it works


Latest ERA mods and scripts in development - My GitHub
16.03.2021 20:18
Find all posts by this user Quote this message in a reply
Berserker Offline
Administrators

Posts: 16470
Post: #1045

Sorry, I didn't check it Sorry
Anyway, with new Era Framework we don't need such hacky things.


Скачать Герои 3 Эра и всё, что с ней связано / ERA 2.46f для старых модов
Поддержать проект
16.03.2021 21:04
Find all posts by this user Quote this message in a reply
Archer30 Offline
Moderators

Posts: 1104
Post: #1046

Hah, no worries.

New question about IF dialogues in PVP:

Do you think it possible in ERA to have IF dialogues pop up for both clients before a PVP combat? Let me explain this scenario.
With the henchman script enabled, you will have this dialogue appeared before battle if you don't have a henchman yet:
Also this if clicked yes
But, these dialogues don't appear for the defending player with the latest script we have. Is enabling both dialogues for both players in PVP possible? Also, does ERA has the mechanism to prevent both players from entering the battlefield if any of the players in on IF dialogues (which would result in de-sync if false)?


Latest ERA mods and scripts in development - My GitHub
(This post was last modified: 17.03.2021 15:00 by Archer30.)
17.03.2021 14:15
Find all posts by this user Quote this message in a reply
Berserker Offline
Administrators

Posts: 16470
Post: #1047

Archer30, no. Just don't allow henchman selection in multiplayer battle.


Скачать Герои 3 Эра и всё, что с ней связано / ERA 2.46f для старых модов
Поддержать проект
17.03.2021 15:26
Find all posts by this user Quote this message in a reply
Archer30 Offline
Moderators

Posts: 1104
Post: #1048

Well, looks like it's ok as long as the dialogue before battle enables only for the attacking player. The defending player will wait until IF dialogue selection is done to initialize battlefield


Latest ERA mods and scripts in development - My GitHub
17.03.2021 17:36
Find all posts by this user Quote this message in a reply
SergOz Offline

Posts: 1287
Post: #1049

Как, всё-таки, было бы классно, если бы и таймера были именованные... 119


Карта-мод "Война на Холсте"
26.03.2021 21:30
Find all posts by this user Quote this message in a reply
Berserker Offline
Administrators

Posts: 16470
Post: #1050

SergOz, это как?


Скачать Герои 3 Эра и всё, что с ней связано / ERA 2.46f для старых модов
Поддержать проект
26.03.2021 21:59
Find all posts by this user Quote this message in a reply
« Next Oldest | Next Newest »
Post Reply 


Forum Jump:

Powered by MyBB Copyright © 2002-2024 MyBB Group