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

Full Version: ERA III
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Thanks Berserker and Night. I have heard from daemon about his experience communicating with bara, was a very tough experience according to him. Rolleyes
Night, Бара мне уже много лет не отвечает на письма на этот ящик.
There is function to remove a neutral stack when the amount is exactly 4095, right click on a 4095 stack and we got this.
Image: AxmNyOl.jpg
Is this hard-coded? It seems to be a little bit old-fashionable - is this function still needed?
Archer30, seems like some mod feature. Try without mods.
Tried )
Archer30, new game? checked your "wog/data/s" folder?
daemon, I don't even have a "s" folder from mods\wog\data. Neither it shouldn't be just me having this dialog, set a stack with quantity equal to 4095 and check for yourself )
backdoor :mon_demon:
Archer30, there is real issue with such stacks. Many functions, calculating Fight Value or other value multiply monster quantity by big number. Such number must not exceed 2 147 483 647. Of course, simple binary patch is able to suppress the above mentioned message. We need to find out Azure Dragon fight value and calculate possible new limit.
Berserker,

Azure Dragon
AI Value - 78845
Fight Value - 56315
Berserker, daemon_n, , I do not agree to put a limit equal to or below Azure Dragon to the values of the creatures, in my mod I have creatures more powerful than Azure Dragon and therefore the AI value will be higher, look at this case.
Image: Screenshot-1.png
Посмотрел я код WoG. Максимальное число монстров в виде отряда на карте — 4095 или 12 бит. Больше просто физически не хранится. Кто-нибудь, проведите эксперимент. Установить число 4095 и дождитесь прироста населения. Если число монстров не увеличится на 10%, то проверку можно убрать. Важно, чтобы ЕРМ скрипты и моды учитывали это ограничение на !!MO:G.
Berserker, не знаю, насколько соответствует моя проверка твоей задаче, но я как только увидел сообщение Archer30, где предлагают убрать юнит с карты, сразу захотел у себя такое же посмотреть и поставил в редакторе 4000 существ (больше не дало) гидр Т8, включил мод на увеличение нейтральных стаков на 10% в неделю и пропускал - не увеличились сверх этого лимита.
Эту проверил опцию (Click to View)
Другие не проверял, но там вроде, как опция в правилах игры, где по 4% в день армии увеличивает, она так делает, но у меня дальше другие дела появились, подзабилбыл дальше глянуть.
Night, больше невозможно физически, но есть риск, что дальше начинает портиться поле «агрессия»:

unsigned Number :12; 12 бит
unsigned Agression : 5; 5 бит
Через ЕРМ физически больше не поставишь, уйдёт дальше в значение немногим > 0, то есть произойдёт переполнение.
Далее ждём понедельника.
Latest finding about Revealing the whole XXL map = crash upon loading

Basically, there are 5 ways in total to reveal the whole XXL map, they are
1. Heroes' vision (by walking through the whole map)
2. Skyship (The wonder of Tower)
3. Cheat code
4. Erm
5. Cartographer

I wasn't able to test the 1st as obviously it's too time consuming. But for the rest of them, an interesting finding is that the 5th, cartographer (with all 3 types) can safely reveal the whole map without a crash upon loading.

Download for examples: XXL Map+savegame revealed the whole map without crash

At this point, the way of revealing a map can be distributed into ethical and unethical ways. The ethical way provide a safe way of revealing the map, while the unethical way is dealing with the devil.
Ethical: Cartographer
Unethical: Skyship, cheat code and erm
not sure: Heros' vision

Another interesting finding is that if a map has been already revealed by Cartographer fully, it does not matter if it's revealed by unethical ways followed by, the savegame will still be safely loaded.

Now return to fixing the crash of XXL by revealing the map. A possible approach to solve this issue is comparing the difference between Cartographer and other ways. The might be enough to tell the answer.
Alternatively, assuming that revealing the map with heros' vision is an ehical way (very likely), the only thing needs to be fixed is Skyship in normal gameplay without cheating. A simple patch changing the effect of Skyship (for example, reveal only a fixed range) could resolve the crash problem.

____________________

Edit:A more interesting fact is that even with an unethical way for revealing, pass a turn and then save/load will also become safe.
This might be the best way to avoid crash before a real solution comes out.
Reference URL's