(02.06.2021 23:17)Berserker Wrote: [ -> ]разве это не HD-мода фишка для предотвращения вылетов? Проверка наличия реального кадра в дефе? Проверь без HD-мода тоже.
Без HD-мода тоже самое. Скорее всего это функционал самого спрайтового движка игры. При чём кадры "пляшут" именно у стартовых армиях. Почему-то именно им нужны все кадры из дефа, иначе они начинают "отсчёт" нужного кадра с 0 после последнего физического

XEPOMAHT, возможно, это функционал элементов формы, всяких DlgDefItem. Элемент формы грузит def, проверяет номер кадра с максимальным числом кадров и меняет номер кадра. Вспомнил, там операция остатка от деления на число кадров в дефе. Так что да, придётся болванку сделать. Продублировать один прозрачный кадр, например.
Valery, either change ZVSE to ZVSE2 to enable ERM 2.0 features like constants (UNC_INT) is constant, not a function name or try:
Hmm, here is the issue:
First script you gave, I add ZVSE2 in header, right?
I load game, press F12, bunch of errors (unknown constant global
Second script
If I load save game before the battle I did before testing, then F12, no clone
If I load previous Battle save (igrik plugin) then F12, clone come first round ( so ok).
If I attack a creature bank with Kyrie (has tactics) after F12, battle ok
If I attack same creature bank with another hero (no tactics) after F12, crash every time
It worked only when I loaded Battle.gm1,

Tested script v2 without issues on new game several times. Checked in debugger: the code is really changed/restored.
Try load single game, F12, save, restart game process.
Ok, I added more infos in previous post, tested more on why one hero crashed and not the other. Will do now.
Edit: saving the restarting the game did it, vodooo
Thanks a lot
Hey, I don't agree it was buggy. It did exactly what it said, clones second round. When you have tactics and the other hero not, you get 1 extra round where you can move your units (limited range but still). For me it made sense.
So will change plugin name to some decent one

Plugin didn't work. Placed it in my mod global plugin, should it go in afterwog maybe?
Changing the plugin name has some negative effect?
Argh, sorry, patch will not, it's executed before Era's patch.
Quote:Edit: saving the restarting the game did it, vodooo
Better use ERM code in this case.
Quote:Hey, I don't agree it was buggy. It did exactly what it said, clones second round. When you have tactics and the other hero not, you get 1 extra round where you can move your units (limited range but still). For me it made sense.
It's a technical bug, because for gamer round 1 and round 2 have definite meaning in all TBS battles. Duplicating round 0 is a bug of messy internal implementation, nobody should be aware of. Imagine game combo arts applying spells would depend on tactics phase. Like Armory of the Damned.
Quote:you get 1 extra round where yo
Nope, tactics rounds are limitless and have negative values. The bug was with duplicating round 0 in a dark phase before tactics phase due to a code mess, when even no battlefield was drawn.
Ok, keep that last script then. Thanks

Well, I started working on in 2009 then non stop. 11 years later I need some rest, I just want playing. And here comes win 10.
After using Trainer mod, I get clipping graphics then all game is infected with parts of graphics appearing here and then. Restarting game doesn't help, I have to disable Trainer then F12 to get rid of. Any idea of what could cause such things?
I didn't even use its features, just opened the main dialog, then after closing all started. Conflict with native dialogs or something else?