Archer30 
 
 
		
		
		
			
			
 
 
			
 
 
			
Posts: 1192 
	
		
	 | 
	
		
 | 
	| 04.12.2023 14:08 | 
	
		
	 | 
	
		
		Guru105 
 
 
		
		
		
			
			
			 
			
Posts: 835 
	
		
	 | 
	
		
			
			 
			
				Герой не должен стоять на красной клетке, по идее. 
Я думаю, скорее всего это вина забагованного скрипта, который его туда поставил, надо править сам скрипт. 
Остальное следствия этого.
			 
			
			
			
				
(This post was last modified: 04.12.2023 22:09 by Guru105.)
 
			 
		 |  
	 
 | 
	| 04.12.2023 21:49 | 
	
		
	 | 
	
		
		Berserker 
 
 
		
		
		
			
			
 
 
			
 
 
			
Posts: 16788 
	
		
	 | 
	
		
 | 
	| 04.12.2023 23:19 | 
	
		
	 | 
	
		
		Berserker 
 
 
		
		
		
			
			
 
 
			
 
 
			
Posts: 16788 
	
		
	 | 
	
		
 | 
	| 05.12.2023 04:16 | 
	
		
	 | 
	
		
		XEPOMAHT 
 
 
		
		
		
			
			
 
 
			
 
 
			
Posts: 2481 
	
		
	 | 
	
		
			
			 
			
				 (05.12.2023 03:37)Archer30 Wrote:  thanks. Could you tell me what UN:C should be used to obtain the real town number? We don't have access to the Russian Erm help. 
На Си - одна строчка кода:
 
Code: 
 GetTownsCount() {return ((_int_)((*(_dword_*)(((_ptr_)this) + 0x21618) - *(_dword_*)(((_ptr_)this) + 0x21614)) / 360));}
  
На вого-ассемблерной вставке так:
 
Code: 
 int GetCastleMapCount(void) 
{ 
    STARTNA(__LINE__, 0) 
    _CastleSetup_ *strt,*end; 
    __asm{ 
        mov  eax,BASE 
        mov  ecx,[eax] 
        add  ecx,0x21614 
        mov  eax,[ecx] 
        mov  strt,eax 
        mov  eax,[ecx+4] 
        mov  end,eax 
    } 
    RETURN((end-strt)/360) 
}
  
На ERM2 это как-то тоже можно написать...
			  
			
			
			
		 |  
	 
 | 
	| 05.12.2023 08:39 | 
	
		
	 | 
	
		
		daemon_n 
 
 
		
		
		
			
			
 
 
			
 
 
			
Posts: 4366 
	
		
	 | 
	
		
 | 
	| 05.12.2023 17:31 | 
	
		
	 | 
	
		
		Archer30 
 
 
		
		
		
			
			
 
 
			
 
 
			
Posts: 1192 
	
		
	 | 
	
		
 | 
	| 05.12.2023 18:03 | 
	
		
	 | 
	
		
		Archer30 
 
 
		
		
		
			
			
 
 
			
 
 
			
Posts: 1192 
	
		
	 | 
	
		
			
			 
			
				Hi Berserker, there is a weird bug report from the community. The log is a bit confusing. 
Quote:Failed to write data at F8558D0E. 
EIP: Era.50076 (AdvErm.GetSlot + 98 in AdvErm.pas on line 1220 offset 2). Code: C0000005 
 
> Registers 
EAX: 00000001 (int: 1) 
ECX: 0000000A (int: 10) 
EDX: 00000009 (int: 9) 
EBX: H3era hd.00A5A008 (int: 10854408, pint: 0x00000000) 
ESP: 02D359E8 (int: 47405544, pint: 0x02D3617C = 47407484) 
EBP: 02D35C00 (int: 47406080, pint: 0x02D36168 = 47407464) 
ESI: 00000001 (int: 1) 
EDI: 02D35A00 (int: 47405568, pint: 0x02D36001 = 47407105) 
 
> Callstack 
H3era hd.007493CC 
Era.64AD8 (Erm.ProcessErm + 2456 in Erm.pas on line 5802 offset 11) 
Should that be an erm issue?
 Download Debug here
According to my test, it has 95% chance to be related to Remagic (Era Scripts option)   
			 
			
			
  
Latest ERA mods and scripts in development -  My GitHub
			
		 |  
	 
 | 
	| 16.12.2023 17:30 | 
	
		
	 | 
	
		
		Berserker 
 
 
		
		
		
			
			
 
 
			
 
 
			
Posts: 16788 
	
		
	 | 
	
		
 | 
	| 16.12.2023 17:43 | 
	
		
	 | 
	
		
		Archer30 
 
 
		
		
		
			
			
 
 
			
 
 
			
Posts: 1192 
	
		
	 | 
	
		
 | 
	| 16.12.2023 21:57 | 
	
		
	 | 
	
		
		Berserker 
 
 
		
		
		
			
			
 
 
			
 
 
			
Posts: 16788 
	
		
	 | 
	
		
 | 
	| 16.12.2023 22:58 | 
	
		
	 | 
	
		
		daemon_n 
 
 
		
		
		
			
			
 
 
			
 
 
			
Posts: 4366 
	
		
	 | 
	
		
 | 
	| 17.12.2023 00:01 | 
	
		
	 |