Jump to content

avertuss

Inactive Member
  • Posts

    480
  • Joined

  • Last visited

  • Feedback

    0%

Posts posted by avertuss

  1. Hi. I needed format my pc. I installed vs2019 to compile my binary and i have errors:

    16>   Creating library D:\Metin\src\bin\binary\Metin2Release.lib and object D:\Metin\src\bin\binary\Metin2Release.exp
    16>Generating code
    16>LINK : fatal error C1001: An internal error has occurred in the compiler.
    16>(compiler file 'd:\agent\_work\6\s\src\vctools\Compiler\Utc\src\p2\main.c', line 166)
    16> To work around this problem, try simplifying or changing the program near the locations listed above.
    16>Please choose the Technical Support command on the Visual C++
    16> Help menu, or open the Technical Support help file for more information
    16>  link!InvokeCompilerPass()+0x2e4f2
    16>  link!InvokeCompilerPass()+0x21ee0
    16>  link!InvokeCompilerPass()+0x21e01
    16>  link!InvokeCompilerPass()+0x2d584
    16>
    16>LINK : fatal error C1001: An internal error has occurred in the compiler.
    16>(compiler file 'd:\agent\_work\6\s\src\vctools\Compiler\Utc\src\p2\main.c', line 166)
    16> To work around this problem, try simplifying or changing the program near the locations listed above.
    16>Please choose the Technical Support command on the Visual C++
    16> Help menu, or open the Technical Support help file for more information
    16>  link!InvokeCompilerPass()+0x2e4f2
    16>  link!InvokeCompilerPass()+0x21ee0
    16>  link!InvokeCompilerPass()+0x21e01
    16>  link!InvokeCompilerPass()+0x2d584
    16>
    16>
    16>LINK : fatal error LNK1000: Internal error during IMAGE::BuildImage
    16>
    16>  Version 14.24.28314.0
    16>
    16>  ExceptionCode            = C0000005
    16>  ExceptionFlags           = 00000000
    16>  ExceptionAddress         = 5CBE3EAE (5C720000) "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Tools\MSVC\14.24.28314\bin\HostX86\x86\c2.dll"
    16>  NumberParameters         = 00000002
    16>  ExceptionInformation[ 0] = 00000000
    16>  ExceptionInformation[ 1] = 19AEA5C1
    16>
    16>CONTEXT:
    16>  Eax    = 00000000  Esp    = 012FE8C8
    16>  Ebx    = 19AEA5C1  Ebp    = 012FE8D8
    16>  Ecx    = 00001505  Esi    = 00000000
    16>  Edx    = 00000000  Edi    = 00000000
    16>  Eip    = 5CBE3EAE  EFlags = 00010246
    16>  SegCs  = 00000023  SegDs  = 0000002B
    16>  SegSs  = 0000002B  SegEs  = 0000002B
    16>  SegFs  = 00000053  SegGs  = 0000002B
    16>  Dr0    = 00000000  Dr3    = 00000000
    16>  Dr1    = 00000000  Dr6    = 00000000
    16>  Dr2    = 00000000  Dr7    = 00000000
    16>Done building project "UserInterface.vcxproj" -- FAILED.
    ========== Rebuild All: 15 succeeded, 1 failed, 0 skipped ==========

    Any ideas? Maybe i didn't installed all features that i need to compile bin? If i remember always in vs default features was clicked now i had to choose manually them all. 

  2. On 2/26/2020 at 1:49 AM, Heathcliff™ said:

    That's not bad, but let's walk closer to your target, and use the skill. You will notice, it's triggering twice. Or this was happening only for me?

    That's right. 

  3. Hi. I tried 

    but i have problem with uiscript

     

    0318 15:06:00344 :: Failed to load script file : UIScript/PopupDialog.py
    0318 15:06:00344 :: error  : [Errno 2] No such file or directory: 'UIScript/PopupDialog.py'
    0318 15:06:00344 :: 
    ui.py(line:3403) ui.PythonScriptLoader.LoadScriptFile (ui.c:80931)
    system.py(line:204) system.execfile (system.c:4646)
    system.py(line:187) system.__LoadTextFile__ (system.c:4286)
    system.py(line:91) system.open (system.c:2884)
    
    LoadScriptFile1 - <type 'exceptions.IOError'>:[Errno 2] No such file or directory: 'UIScript/PopupDialog.py'

    I tried popupdialog.py PopupDialog.py etc and nothing change. Root works normal. 

    • Confused 1
  4. Hi. I found error. I want to add description to horse riding skill depended on skill level so i tried like that

    elif player.SKILL_INDEX_RIDING == skillIndex:
    	slotIndex = player.GetSkillSlotIndex(skillIndex)
    	skillLevel = player.GetSkillLevel(slotIndex)
    
    	self.AppendDefaultData(skillIndex)
    	if skillLevel == 1:
    		self.AppendSpace(5)
    		self.AppendTextLine("Test1", self.NORMAL_COLOR)
    	elif skillLevel == 20:
    		self.AppendSpace(5)
    		self.AppendTextLine("Test20", self.NORMAL_COLOR)

    It work's in 50%. I mean if i have 1 level it shows Test1 but when i have 20 level of that skill it also shows Test1. Any ideas?

  5. 1 hour ago, DrTurk said:

     

    You are missing a return true --->

     

    
    bool CHARACTER::DragonSoul_ActivateDeck(int deck_idx)
    {
    	if (deck_idx < DRAGON_SOUL_DECK_0 || deck_idx >= DRAGON_SOUL_DECK_MAX_NUM)
    	{
    		return false;
    	}
    	
    	if (DragonSoul_GetActiveDeck() == deck_idx)
    		return true;
    
    	DragonSoul_DeactivateAll();
    
    	if (!DragonSoul_IsQualified())
    	{
    		ChatPacket(CHAT_TYPE_INFO, LC_TEXT("żëČĄĽ® »óŔÚ°ˇ Č°ĽşČ­µÇÁö ľĘľŇ˝Ŕ´Ď´Ů."));
    		return false;
    	}
    
    	AddAffect(AFFECT_DRAGON_SOUL_DECK_0 + deck_idx, APPLY_NONE, 0, 0, INFINITE_AFFECT_DURATION, 0, false);
    
    	m_pointsInstant.iDragonSoulActiveDeck = deck_idx;
    
    	for (int i = DRAGON_SOUL_EQUIP_SLOT_START + DS_SLOT_MAX * deck_idx; 
    		i < DRAGON_SOUL_EQUIP_SLOT_START + DS_SLOT_MAX * (deck_idx + 1); i++)
    	{
    		LPITEM pItem = GetInventoryItem(i);
    		if (NULL != pItem)
    			DSManager::instance().ActivateDragonSoul(pItem);
    	}
     	return true;
    }

    Dont do the thing that WeedHex said

    Thanks a lot, it works. 

  6. 1 hour ago, DrTurk said:

    please post your function --> bool CHARACTER::DragonSoul_ActivateDeck(int deck_idx) (char_dragonsoul.cpp)

    bool CHARACTER::DragonSoul_ActivateDeck(int deck_idx)
    {
    	if (deck_idx < DRAGON_SOUL_DECK_0 || deck_idx >= DRAGON_SOUL_DECK_MAX_NUM)
    	{
    		return false;
    	}
    	
    	if (DragonSoul_GetActiveDeck() == deck_idx)
    		return true;
    
    	DragonSoul_DeactivateAll();
    
    	if (!DragonSoul_IsQualified())
    	{
    		ChatPacket(CHAT_TYPE_INFO, LC_TEXT("żëČĄĽ® »óŔÚ°ˇ Č°ĽşČ­µÇÁö ľĘľŇ˝Ŕ´Ď´Ů."));
    		return false;
    	}
    
    	AddAffect(AFFECT_DRAGON_SOUL_DECK_0 + deck_idx, APPLY_NONE, 0, 0, INFINITE_AFFECT_DURATION, 0, false);
    
    	m_pointsInstant.iDragonSoulActiveDeck = deck_idx;
    
    	for (int i = DRAGON_SOUL_EQUIP_SLOT_START + DS_SLOT_MAX * deck_idx; 
    		i < DRAGON_SOUL_EQUIP_SLOT_START + DS_SLOT_MAX * (deck_idx + 1); i++)
    	{
    		LPITEM pItem = GetInventoryItem(i);
    		if (NULL != pItem)
    			DSManager::instance().ActivateDragonSoul(pItem);
    	}
    }

    i changed nothing its clean function. 

  7. Hi. When i want to activate dragon soul alchemy i got crash core.

    Syserr:

    checkpointing: CHECKPOINT shutdown: tics did not updated.

    gdb

    #0  0x28dc4f73 in thr_kill () from /lib/libc.so.7
    No symbol table info available.
    #1  0x28dc31b1 in raise () from /lib/libc.so.7
    No symbol table info available.
    #2  0x28d36353 in abort () from /lib/libc.so.7
    No symbol table info available.
    #3  0x082482b0 in checkpointing (sig=<optimized out>) at signal.c:29
    No locals.
    #4  0x28c36408 in ?? () from /lib/libthr.so.3
    No symbol table info available.
    #5  0x28c3583b in ?? () from /lib/libthr.so.3
    No symbol table info available.
    #6  <signal handler called>
    No symbol table info available.
    #7  0x080a8847 in CHARACTER::GetInventoryItem (this=0x3666f800, wCell=930)
        at char_item.cpp:262
    No locals.
    #8  0x081f23eb in CHARACTER::DragonSoul_ActivateDeck (this=0x3666f800,
        deck_idx=0) at char_dragonsoul.cpp:86
            pItem = <optimized out>
            i = 1753023394
    #9  0x080eb0bc in do_dragon_soul (ch=0x3666f800,
        argument=0xffbfac05 " activate 0", cmd=231, subcmd=0) at cmd_gm.cpp:4459

    Any ideas? 

  8. 22 minutes ago, IceShiva said:

    Which gcc version did you use on working core

    btw

    You can of course replace keyworks like EXE to ELF DLL to shared object regardless

    Additionally you dont have correctly setuped flags for producting debug builds in you makefile.

    GCC 4.8.3. I'm using GetMoveMotionSpeed in that function

    bool CHARACTER::SetSyncPosition(long x, long y)
    {
    	long mx = GetX();
    	long my = GetY();
    
    	float fDist = DISTANCE_SQRT(mx - x, my - y);
    	float motionSpeed = GetMoveMotionSpeed();
    	DWORD mduration = CalculateDuration(GetLimitPoint(POINT_MOV_SPEED), (int)((fDist / motionSpeed) * 1000.0f));
    	DWORD mstart = get_dword_time();
    
    	sync_hack = mstart + mduration;
    }

    Maybe there is something wrong?

  9. 37 minutes ago, WeedHex said:

    this=0x0 

    rip XD

     

    Btw seem you made a wrong gdb with a newer file.

    I know that there is nullptr but why if i didn't change that function. Btw I updated gdb and nothing change so

    Reading symbols from game...
    [New LWP 101185]
    [New LWP 100449]
    [New LWP 100457]
    [New LWP 100471]
    Core was generated by `./ch11'.
    Program terminated with signal SIGSEGV, Segmentation fault.
    #0  CHARACTER::IsPolymorphed (this=0x3a) at ./char.h:810
    810     ./char.h: No such file or directory.
    [Current thread is 1 (LWP 101185)]
    (gdb) bt full
    #0  CHARACTER::IsPolymorphed (this=0x3a) at ./char.h:810
    No locals.
    #1  CHARACTER::GetMotionMode (this=0x3a) at char.cpp:2773
            dwMode = <error reading variable dwMode (Cannot access memory at address 0x0)>
            pkItem = <optimized out>
    #2  CHARACTER::GetMoveMotionSpeed (this=0x3a) at char.cpp:2812
            dwMode = <optimized out>
            pkMotion = <optimized out>
    #3  0x000000a0 in ?? ()
    No symbol table info available.
    #4  0x0000003a in ?? ()
    No symbol table info available.
    #5  0x0000002b in ?? ()
    No symbol table info available.
    #6  0x429066f8 in ?? ()
    No symbol table info available.
    #7  0x43e0fff9 in ?? ()
    No symbol table info available.
    #8  0x127f1e7f in ?? ()
    No symbol table info available.
    #9  0x00000000 in ?? ()
    No symbol table info available.
    (gdb)

     

  10. Hi, I encountered a strange problem today. I can't put the metin strone in anything.

    syserr clean

    syslog

    Jan 12 11:40:32 :: Packet Analyze [Header 60][bufferLeft 17] 
    Jan 12 11:40:32 :: CInputMain::Analyze() ==> Header [60] 
    Jan 12 11:40:32 :: Test: USE_ITEM Kamień Duszy Magii+7 (inven 1, cell: 75)
    Jan 12 11:40:32 :: USE_ITEM Kamień Duszy Magii+7, Inven 1, Cell 80, ItemType 10, SubType 0
    Jan 12 11:40:32 :: Packet Analyze [Header 3][bufferLeft 9] 
    Jan 12 11:40:32 :: CInputMain::Analyze() ==> Header [3] 
    Jan 12 11:40:32 :: ELO

    syserr client clean

    debug

     

    << SendItemUseToItemPacket(src=1, dst=20225)

    i added chat in uiattachmetin to check if button works well, he shows up.

    def Accept(self):
    		net.SendItemUseToItemPacket(self.metinItemPos, self.targetItemPos)
    		net.SendChatPacket("ELO")
    		snd.PlaySound("sound/ui/metinstone_insert.wav")
    		self.Close()

    Item proto

    28700	28700	ITEM_METIN	METIN_NORMAL	1	NONE	NONE	WEAR_WEAPON	NONE	80000	2000000	0	0	0	LIMIT_NONE	0	LIMIT_NONE	0	APPLY_PENETRATE_PCT	25	APPLY_NONE	0	APPLY_NONE	0	0	0	0	0	0	17	0	0	0
    
    
    149	149	ITEM_WEAPON	WEAPON_SWORD	2	ANTI_MUDANG	ITEM_TUNABLE	WEAR_WEAPON	NONE	360000	2770000	13300	20	15	LEVEL	85	LIMIT_NONE	0	APPLY_ATT_SPEED	15	APPLY_NONE	0	APPLY_NONE	0	0	18	40	100	140	137	100	3	0

     

×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.