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.
Ещё как в ехе. Всё это меню опций устарело, но до нового пока у нас с игриком руки не дошли:
Code:
// !!!!!!!!! Зависимость кнопок
void CheckDepend(int Flag)
{
  #include "templ.h"
// 3.58 Dependance
  if(PStates[0][2][2]==0) PStates[0][2][3]=2; else PStates[0][2][3]&=1;
//  if(PStates[0][3][2]==0) PStates[0][3][3]=2; else PStates[0][3][3]&=1;
  if(PStates[0][2][4]==0){
    PStates[0][2][5]=2;
    PStates[2][0][3]=2;
    PStates[2][0][4]=2;
    PStates[3][2][0]=2;
    PStates[3][2][1]=2;
    PStates[3][3][9]=2;
  }else{
    PStates[0][2][5]&=1;
    PStates[2][0][3]&=1;
    PStates[2][0][4]&=1;
    PStates[3][2][0]&=1;
    PStates[3][2][1]&=1;
    PStates[3][3][9]&=1;
  }
//  if(PStates[0][3][4]==0) PStates[0][3][5]=2; else PStates[0][3][5]&=1;
  if(PStates[0][2][10]==0){
    PStates[0][3][0]=3; // set as default
    PStates[0][3][1]=2;
    PStates[0][3][2]=2;
    PStates[0][3][3]=2;
    PStates[0][3][4]=2;
    PStates[0][3][5]=2;
    PStates[0][3][6]=2;
    PStates[0][3][7]=2;
  }else{
    PStates[0][3][0]&=1;
    PStates[0][3][1]&=1;
    PStates[0][3][2]&=1;
    PStates[0][3][3]&=1;
    PStates[0][3][4]&=1;
    PStates[0][3][5]&=1;
    PStates[0][3][6]&=1;
    PStates[0][3][7]&=1;
  }
  if(PStates[1][0][0]==0) PStates[1][0][1]=2; else PStates[1][0][1]&=1;
  if(PStates[1][1][0]==0){
    PStates[1][1][1]=2;
    PStates[1][1][2]=2;
    PStates[1][1][3]=2;
    PStates[1][1][4]=2;
  }else{
    PStates[1][1][1]&=1;
    PStates[1][1][2]&=1;
Ну значит я забыл уже. Видимо не пришло в голову как в текстовике это настроить. Хотя странно.
Berserker, в последней версии ERA 3 Update лежит довольно старый 9999 era - consts.erm, который не подходит даже для 3.3.7
daemon_n, кхм, он уже в курсе, я думал это уже давно исправлено, можешь из моей сборки дернуть, или могу тебе отдельным архивом запаковать и скинуть, надо? Rolleyes
Berserker, вспоминая про не рабочий патч в Эре "inferno gates teleports to any town.bin", в ДС один из моддеров нашёл решение, возможно это поможет исправить и наш патч:

   -----------
    CASTLE GATE
    -----------

    The Inferno Castle Gate is problematic since it requires you to possess at least two
    Inferno towns in order to be of any use whatsoever. However, we can allow it to warp us
    to any other town we own (a one-way trip, mind, unless it's to another Inferno with a
    Castle Gate) with a short edit to HD_SOD.dll: go to 03AD36 and change 75 5D to EB 34.

    (Again, we are editing HD_SOD.dll here, NOT the regular executable!)

Rolleyes
And then people judge me for having an edited HD_wog.dll for the sake of my mod.
Rolleyes
Я и не предлагаю ничего патчить, я лишь скопировал сообщение моддера, решившего эту проблему, и возможно это поможет Берсеркеру в исправлении нашей проблемы в патче. Stop
I have a problem in Era 3 with randomizer. There is a script removing objects then replacing them randomly. But now they are placed same way, no matter how many times we reload autosave to get a better result.
In Era 2 I got different results every time on reload, what can I do now to have same?


This is the concerned area :
Same in battles where you get resources reward:
!!VRy1:S0 T5;
gives me same value if I do same action. However it will suddenly change if some additional event, as hero level up occurs.
Valery, as far as I remember, you should get random results each time, because I don't save PRNG state in a saved game. But I'll recheck it.
Could you try also the following Era 2.46 dll on Windows 10?
https://dropmefiles.com/gGanP
Ok, looked throught the code and tested. Generator state is not saved. The result is random, unless you initialize random generator seed manually via VR:R#/newSeed. Use F11 to detect the issue.

I get a dos box saying 2.46, cannot open mod/list/txt

But no longer the crash message
Valery,
    Это должно сработать:
!!VRy1:S1 T20; => !!VRy1:R1/1/20;
!!VRy1:S0 T5; => !!VRy1:R0/1/5;
helgtla, должно работать и без VR:T.

Valery, seems like really bad installer, I was able to install only by manual unpacking. Looks if Mods\list.txt exists and not empty and try reinstalling first. If you fail, I'll upload the whole game directory

Full game directory with 2.46:
https://dropmefiles.com/YYi2F
Ok, I tried


!?CM0;
!!VRy1:S0T5;

And I get correct random results.

But in long scripts the randomizer doesn't work, I get same result again and again


I cannot figure whats wrong, replaced y1 by any v var, same

Downloading the package. However so far Era 3 works great, I only have two issues, the randomizer and the size of message boxes, in 800x600 rez they need scrolling in Era3, while in Era 2 it fit in the box.
Package doesn't work, same crash message, tried both dll 105
Reference URL's