Wake of Gods Forum | Форум Во Имя Богов

Full Version: ERA II
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
wessonsm, будем, как Microsoft, выдавливать их! 148
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?
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.
(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 в этом году получал вылет из-за попытки назначить новую подсказку в диалоге, когда изначально в текстовике её не было
Bes, не попал. Но включу. Жаль, игродел не указал, где и в чём ошибка в исходниках.
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
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;
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.
Berserker, можно ли получить порядковый номер определённого символа в текстовой переменной?
Я хочу вклиниваться в предложение неизвестного заранее по содержанию туда, где появится определённый символ.
Известные мне команды над текстом базируются на том, что пользователь знает номер символа в строке.

Вариант поиском циклами через посимвольное сравнение каждой позиции строки с искомым символом - это на крайний случай. Я надюсь, что есть более простой способ, неизвестный мне Unsure
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 )
Berserker, а так надеялся что в era.dll есть встроенная ф-ция, наподобие таких вариантов 4
ладно, буду писать свои первые циклы через !!re Beee
Ab это я сам себе тут работу поддаю, опять из-за стремления к прекрасному

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

А вот с моей затеей облом.
Я хотел искать символ ;
Так вот, 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)
Bes, просто не используй ";" при передаче в ExecErmCmd. Эта функция разбивает изначально текст на команды по ";" без анализа содержимого. Может быть, исправлю в следующих версиях.
Berserker, а как я пойму о начале другой команды, кроме как используя ; Unsure у меня больше нет вариантов
Reference URL's