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

Post Reply 
Threaded Mode | Linear Mode
ERA II
» WoG Era 2: Русская и Английская версии
Author Message
Berserker Offline
Administrators

Posts: 16449
Post: #4741

wessonsm, будем, как Microsoft, выдавливать их! 148


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

Posts: 1098
Post: #4742

Hi Berserker, these might have already been reported but just to make sure,

1. WoG Campaigns with leaving troops on the maps don't work, which is including the first scenarion of Wake of Gods, and first scenario of Samaritan.
2. Selection of WoGifications doesn't work (Top left of the first page of WoG Options). So all maps are now forced wogified (except having lines preventing so). This is ok to me, but maybe those option not working should just be removed?


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

Posts: 16449
Post: #4743

Archer30, for each campaign map Maps\Resources\zcN\Data\s\(script with instructions).erm file must specify the following lines:

!#UN:J3/^:clear:^; reset all wog options to off
!#UN:P2/1; enable leaving creatures on the map, if it's necessary, hardcoded option #2

Only single script from all map scripts should contain such lines.


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

Posts: 5422
Post: #4744

(05.09.2016 14:44)gamecreator Wrote:  Ok, I found the problem. There is a fatal flaw in the hint system, making so that no hint can be set twice. I can imagine how ZVS / sergroj / whoever else made WoG T1 managed to compile this incorrect code. A good example of why one shouldn't use outdated compilers they don't understand.
Anyhow, here is the fix (hopefully without errors, because I didn't test it):
Code:
72982C FC
729835 FC
72983B FC
729843 FC
729859 FC
72987B FC
72988F FC

Berserker, этот фикс попал в ERA ? А то я помню что Algor в этом году получал вылет из-за попытки назначить новую подсказку в диалоге, когда изначально в текстовике её не было
28.07.2020 20:21
Visit this user's website Find all posts by this user Quote this message in a reply
Berserker Offline
Administrators

Posts: 16449
Post: #4745

Bes, не попал. Но включу. Жаль, игродел не указал, где и в чём ошибка в исходниках.


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

Posts: 1098
Post: #4746

Hi Berserker, sorry for having no time to test and respond to your help about my question

So I just tried your solution to my question about not able to leave creatures in campaign, it has unfortunately failed. I was not able to pop up the leaving creature dialog from adv map screen.
Image: GglrYCZ.jpg
(Place I insert the lines for the first scenario of In the Wake of Gods campaign)

I also try those lines in normal scenarios, no luck still. All options are disabled correctly, but just no pop-up for the dialog upon right clicking.

Could you inform a bit about what was wrong? Thanks Sm


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

Posts: 16449
Post: #4747

I'm sorry, for really strange reason Slava made some options 1 = off, 0 = on.
Replace the first 3 lines after ZVSE with one:
!#UN:J3/^:clear:^ P2/0;


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

Posts: 1098
Post: #4748

Thanks Berserker, quite a bit a surprise to me, never thought this could be the reason...it works now.

A few more things I would like to report (test was done with daemon's assembly based on ERA 2):

1. Werewolves don't bersker on full moon.
So these creatures are supposed to have Bersker casted on them on every full moon (day 14-16, a.k.a. w2d7-w3d2). Although for some reason this doesn't work as intended. I also wonder if they really receive 2x lycanthropy chance on a full moon (but it's hard to test).

2. Wrong description of Storm Elemental
So it's well-known that the description of these creatures was wrong, they receive no melee penalty reduction in the game. I'm ok with that.
It's another problem - they are supposed to receive 2x damage from Amadeus (firestorm) like their lower form Air Elemental, but for some reason it has no effect.
Btw, their counter part Earth Elemental and Magma Elemental are both immune to Amadeus, which again inform that Storm Elemental didn't work as intended.

This is probably a problem from vanilla H3. But as ERA 3 has the goal of "H3 but better", it's worth to sort out some old issues, I think.


Latest ERA mods and scripts in development - My GitHub
(This post was last modified: 31.07.2020 15:20 by Archer30.)
31.07.2020 11:33
Find all posts by this user Quote this message in a reply
Bes Offline

Posts: 5422
Post: #4749

Berserker, можно ли получить порядковый номер определённого символа в текстовой переменной?
Я хочу вклиниваться в предложение неизвестного заранее по содержанию туда, где появится определённый символ.
Известные мне команды над текстом базируются на том, что пользователь знает номер символа в строке.

Вариант поиском циклами через посимвольное сравнение каждой позиции строки с искомым символом - это на крайний случай. Я надюсь, что есть более простой способ, неизвестный мне Unsure
02.08.2020 01:32
Visit this user's website Find all posts by this user Quote this message in a reply
Berserker Offline
Administrators

Posts: 16449
Post: #4750

Bes, есть, именно через поиск символа в цикле. Можно вынести в функции вида FindChar.
Archer30, sorry, I didn't change anything in werewolves mechanics. You're right about storm elementals description, but is ability not implemented or wrong description left? I didn't ask H3 developpers on that )


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

Posts: 5422
Post: #4751

Berserker, а так надеялся что в era.dll есть встроенная ф-ция, наподобие таких вариантов 4
ладно, буду писать свои первые циклы через !!re Beee
Ab это я сам себе тут работу поддаю, опять из-за стремления к прекрасному

P.S. а что делает FireEvent, в двух словах буквально?
02.08.2020 02:58
Visit this user's website Find all posts by this user Quote this message in a reply
Berserker Offline
Administrators

Posts: 16449
Post: #4752

Генерирует новое событие, на которое может подписаться любой плагин или сама Эра. По сути там имя события + указатель на произвольную структуру данных.
Успехов тебе с функцией. Напиши, если возникнут трудности.


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

Posts: 5422
Post: #4753

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

А вот с моей затеей облом.
Я хотел искать символ ;
Так вот, ERA2.9.14, запустил чистую era в полноэкранке, словил пару странных фишек и один вылет из-за этого:
  • через диалог ввода пишу
    Code:
    VRz1:S^1;2^;IF:M1/1
    естественно, ругнулся движок, что неправильная команда, а следом и ругнулся ExecErmCmd и предложил дамп записать. Диалог вызываемый мной игра показала пустой, в лог игры сообщение не прошло (я так понял тож пустоту послало)
  • иду дальше, пишу
    Code:
    VRz2:S^1;2^;IF:M1/1
    опять ругнулись, НО в диалоге моём весь введённый код показало, вместе с двумя символами ;. В лог игры так же всё целиком прошло, без проблем
  • дай думаю извращусь... пишу
    Code:
    VRz2:S^1;2^;IF:M^%Z1^
    Ругается только ExecErmCmd и всё, дальше появляется мой диалог с рекурсией текста из z1 (естественно), но обрывается текстом "2^;IF:M^(null)1^^^^^" и это же попадает в лог игры.
    Хотя если ту же рекурсию провернуть, но без ; в строке, то обрыва такого нет, просто весь диалог забит повторением текста, ошибок нет, и та же каша в лог идёт.
  • Ок. думаю я, дай-ка через ассоциативную память зайду...
    Code:
    SN:W^test^/^;^;IF:M^%S(test)^
    Вылет игры, причём окошко было в винде, так что не сразу понял почему всё не работает а окна вылета игры нет
    архив
Короче, я собственно чего так завёлся - почему-то эта злополучная ; таки может отображаться в диалогах, а проблема в ограничениях самого интерполятора.
Berserker, могу я как-то таки без ошибок в процессе ЕРМ-циклов сделать поиск символа ;, и уже перед выводом в окно удалять его?
или мне тупо забить с моей глумной затеей? (Click to View)
02.08.2020 04:48
Visit this user's website Find all posts by this user Quote this message in a reply
Berserker Offline
Administrators

Posts: 16449
Post: #4754

Bes, просто не используй ";" при передаче в ExecErmCmd. Эта функция разбивает изначально текст на команды по ";" без анализа содержимого. Может быть, исправлю в следующих версиях.


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

Posts: 5422
Post: #4755

Berserker, а как я пойму о начале другой команды, кроме как используя ; Unsure у меня больше нет вариантов
03.08.2020 00:33
Visit this user's website 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