Current time: 04.10.2022, 16:05 Hello There, Guest! (LoginRegister)
Language: english | russian  

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

Posts: 16056
Post: #4606

Quote:!!IF:L^Повторить %Y1 раз^; сообщить о числе повторов
!!VRy1:+1; увеличить счётчик
Эти две строки нужно местами поменять, если нужно сообщение не с 0-й нумерацией.


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

Posts: 5404
Post: #4607

ты прав, тогда просто инициализировать переменную с 1.
06.06.2020 04:07
Visit this user's website Find all posts by this user Quote this message in a reply
Bes Offline

Posts: 5404
Post: #4608

Berserker, меня в справке по !!QU смущает одитнаковость простого и продвинутого+ синтаксиса.. они идентичны, судя по схеме, не может там быть ошибки?
из справки по !!QU Wrote:M#/$
Установить/получить текст сообщения в строковую переменную.
Расширенный синтакс:
M#/0
Удалить сообщение.
Расширенный синтакс (для опытных пользователей):
M#/$
Установить текст по указателю $ как текст сообщения или получить указатель на текст сообщения.
Комментарии:
Объект должен иметь задание (проверяется с помощью QU:Q), иначе эта команда вызовет ошибку ERM.
06.06.2020 04:22
Visit this user's website Find all posts by this user Quote this message in a reply
Berserker Offline
Administrators

Posts: 16056
Post: #4609

Bes, с нуля нумерация чаще всего в программировании использьзуется, просто нужно !!VRy2:Sy1+1 тогда уж. Если с единицы, то условие прыжка нужно менять на <=граница

gamecreator тут было появился на секунду, чтобы сообщить, что не хочет появляться. Вот только у него и можно спросить. Он написал отличные плагины с документацией, но мог где-то ошибиться.


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

Posts: 3923
Post: #4610

Berserker, и сейчас никто не мешает у него спросить. Почту, как выяснилось, он читает 118


BattleHeroes Rus/Eng | ERA scripts (+ReMagic) Rus/Eng
06.06.2020 22:09
Visit this user's website Find all posts by this user Quote this message in a reply
Berserker Offline
Administrators

Posts: 16056
Post: #4611

Algor, на твоём письмо он как-то агрессивно отреагировал, кто же рискнёт писать второе? 148


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

Posts: 3923
Post: #4612

Berserker, это было что угодно, но точно не агрессия.
Просто "бывших наркоманов не бывает", отсюда и реакция.


BattleHeroes Rus/Eng | ERA scripts (+ReMagic) Rus/Eng
07.06.2020 00:37
Visit this user's website Find all posts by this user Quote this message in a reply
Bes Offline

Posts: 5404
Post: #4613

07.06.2020 03:35
Visit this user's website Find all posts by this user Quote this message in a reply
Valery Offline

Posts: 2132
Post: #4614

pasting this from mapsforheroes

"Installing HOMM III for TEW III 2.3 - The Empire of the World III v2.3
I took HOMM III Complete from GOG.com and installed it.
Then I installed in the game folder:
- ERA 2.7.4;
- WoG Scripts;
- HD mod (HoMM3 HD Latest).
The game does not start. An error appears when the game starts:
&quot;failed to load and compile lua script cannot open data scripts core sys lua&quot;;
&quot;game crashed all debug information is inside debug era subfolder&quot;.

Era 2.9.13 does not produce such an error, but the map does not play correctly with it - heroes with special ability to upgrade units turn those units into pikemen.

Tell me how you installed the game if you play this map?"


I have no idea what to answer to this guy. And this is the 50th time people message me for similar things.


Era mods and utilities
13.06.2020 10:18
Find all posts by this user Quote this message in a reply
Archer30 Offline
Moderators

Posts: 844
Post: #4615

Berserker, I‘ve recently become the admin of the Chinese WoG Forum, working with yunings to build up a better community. We also have the issue Valery's saying that new ERA has poor compatibility with old assets. The latest report was WoG campaigns not playable since all maps are now forced WoGified upon starting. My best suggestion was "Go back to good old ERA 2.46". But is there a better solution to this, like another version I should be looking at? Thanks Sm


Latest ERA mods and scripts in development - My GitHub
(This post was last modified: 13.06.2020 12:23 by Archer30.)
13.06.2020 11:03
Find all posts by this user Quote this message in a reply
Valery Offline

Posts: 2132
Post: #4616

The problem mods and scripts is that "poor compatibility" concept does not exist. Either it works 100% or not. A simple error means 0% compatibility, mod will not work and map can't be completed..


Era mods and utilities
13.06.2020 11:23
Find all posts by this user Quote this message in a reply
Archer30 Offline
Moderators

Posts: 844
Post: #4617

Well, some mods work pretty well on new ERA, some are not. As an erm dummy I have huge difficulties in fixing compatibility of old mods (the original authors are gone for long). Even just testing the compatibility is unimaginable time-consuming. I guess the best option would be announcing a stable ERA 2 version for playing with most of the ERA 2 mods.


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

Posts: 16056
Post: #4618

Valery, why Era 2.7.4?
Let him delete Mods\WoG\Data\Scripts directory, because Win 10 compatibility was reached only in 2.8.X branch, when the whole virtual file system was rewritten. And it took quite a lot time to catch all its issues. Particularly this question was answered dozens of times on HC Ab

Archer30, glad to see you and yunings here.

Quote:The latest report was WoG campaigns not playable since all maps are now forced WoGified upon starting.
!#UN:P5/0 in WoG campaign fixes it. No global scripts loading. In my WoG Campaigns release I extracted all scripts, fixed bugs in few of them and added !#UN:P905/0 in each scenario.

ERM/Lua is scripting engine. If you run something in it, scripts must be loaded. If map author wants to disable all global ERM scripts by any reason (because of old-style variables clashing), why not to do it using !#UN:P5/0?

Quote:The problem mods and scripts is that "poor compatibility" concept does not exist. Either it works 100% or not. A simple error means 0% compatibility, mod will not work and map can't be completed..
So WoG 3.51 scripts are fully compatible with WoG 3.59 TE? Even written with hacks, even relying on not documented features and bugs like preserving garbage x-vars,y- values between triggers?
I've already recommended to use the version you developped mods on. Era 2.8.4 would probably fit community needs. Yep, it has many not fixed and ignored old ERM issues and 10x times slower, but still, is playable, like WoG 3.58.

Old WoG !?MP/!!MP implementation, for instance, leaded to constant crashes in multi-core execution mode. It was not thread-safe. Updated implementation, on which I tested a bit Atlantis, has 1 small issue, but game does not crash anymore.

Era 2.46 had not ERM tracking support. On 2.6+ (iirc) you can press F11 or get a crash and open Debug\Era\erm tracking.erm to see 10000 of latest executed receivers and triggers in valid order and with all information about files, lines and positions.

Quote:Even just testing the compatibility is unimaginable time-consuming.
Perhaps, some issues can be fixed automatically via script in php/python/what so ever. But it's easy to use Era 2.46 for really old and poorly written mods.

Many scripts are just easier to rewrite in Lua or at least ERM 2, because tons of code in WoG 3.58 scripts. for instance, are functions callings functions for loop implementation and duplicates conditions like &v1=7/y5=-1/y65=3, &v1=7/y5=-1/y65=3, &v1=7/y5=-1/y65=3...

I could write

Era 3 was written to maintain 99% compatibility with modern mods or mods without dirty hacks. Any bugs, which are really new bugs, will be fixed if reported.
!!HE:X short syntax will be fixed in the next release and probably backported to 2.9.14.

Normal code should almost have no issues. Using y- variables was almost a bad idea, using UN:C hacks everywhere + TL timers like Jim Vogan liked was always a hardly porbable solution.
After upgrading Era many ERM errors, that were silently ignored in WoG 3.58f scripts, became reported by engine.
!!IF&v1000000=7:M^Possible crash, but did you know that old ERM engine never checked indexes in conditions?^;

-------------------------------

I suggest 2.46 for really old mods, 2.8.4 for most of Valeries mods, 2.9.13/Era 3 for modern mods.
Will try to fix reported bugs, introduced by Era.


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

Posts: 844
Post: #4619

Berserker, thank you so much for the answer. I understand the advantage of erm 2.0 fully and I am very excited to write my first scripts for ERA 3. Sm

An embarrassing fact is that the majority of the Chinese community are still in the dark age of ERA 2.46. In the Chinese forum, less than 5% of the scripts required the latest ERA to work (And they only come from XEricSin). I think I will keep maintaining an ERA 2.46 assembly for our players so that they could stop complaining...


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

Posts: 16056
Post: #4620

Archer30, it would be very nice if you share most common issues like "wog campaigns are always wogified" or "cannot load _core_.sys.lua", so I could probably give an advice how to handle a few of them or ask you to upload a mod to look at.

2.46 assembly is nice idea for old scripted maps.
2.8.4 should also be fine, but needs checking.

Era 2.8+ versions support translation in json-files. So Chinese community can start making really translatable mods and provide all texts in json files with keys like (gtm = greetings mod):
Code:
{
  "gtm": {
     "greetings": "問候"
  }
}

Era 2.46 had no such possibility, so nobody can use Chinese mods.
---------------------------------------------------------------
I think, 95% of Valery's mods are portable or fixable, like I did with Atlantis. I even wrote online service for automatical fixing and tested Atlantis a bit.
https://tools.hmm35.ru/erm-enhancer/
https://tools.hmm35.ru/scripts-extractor/


Скачать Герои 3 Эра и всё, что с ней связано / ERA 2.46f для старых модов
Поддержать проект
13.06.2020 15:52
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-2022 MyBB Group