Jump to content

Recommended Posts

  • 2 months later...
Posted (edited)

HELP ME PLEASE...

add achievement.

INSERT INTO `explore_achievement` (`achievement_id`,`map1`,`map2`,`map3`,`map4`,`map5`) VALUES (1,'morroc','','','','')

server console:

[Debug]: mapindex_name2id: Map "" not found in index list!
[Debug]: mapindex_name2id: Map "" not found in index list!
[Debug]: mapindex_name2id: Map "" not found in index list!
[Debug]: mapindex_name2id: Map "" not found in index list!

When visiting morocc, achievement not to be.

@achieve 1 nick - WORK!

Edited by nndsl
  • 2 weeks later...
  • 3 weeks later...
Posted

I have manually patched everything but when I go to compile I get these errors
 

1>..\src\map\atcommand.c(9121): error C2065: 'atcommand_reloadachievements' : undeclared identifier
1>..\src\map\atcommand.c(9121): warning C4047: 'initializing' : 'AtCommandFunc' differs in levels of indirection from 'int'
1>..\src\map\atcommand.c(9122): error C2065: 'atcommand_achievem' : undeclared identifier
1>..\src\map\atcommand.c(9122): warning C4047: 'initializing' : 'AtCommandFunc' differs in levels of indirection from 'int'

And these are what my 9121-9122 lines look like

		ACMD_DEF(reloadachievements),
		ACMD_DEF(achievem),

Anyone have any idea how to fix this?

  • 3 months later...
  • 3 weeks later...
Posted

Why its not working?? I cant achieve any achievements i put in db. like for just killing 1 poring. it does not finished the achievement and the cutin is not showing.

  • 3 weeks later...
  • 3 weeks later...
Posted

Hey,

I've a problem.

At my last server work the achievement perfectly, but in the latest rAthena revesion

get this error:

 



In file included from pc.h:22,
                 from map.c:25:
achievement.h:53: error: redeclaration of enumerator âAI_MAXâ
map.h:317: note: previous definition of âAI_MAXâ was here

 

I don't know what is wrong.

In map.h gives AI_MAX.

 

Posted

Many thanks for your help nndsl.

But now I've a new error. T_T

 



achievement.c:127:34: error: macro "msg_txt" requires 2 arguments, but only 1 given
achievement.c: In function âachievement_achieveâ:
achievement.c:127: error: âmsg_txtâ undeclared (first use in this function)
achievement.c:127: error: (Each undeclared identifier is reported only once
achievement.c:127: error: for each function it appears in.)
achievement.c: In function âachievement_update_mobâ:
achievement.c:621: warning: passing argument 2 of âachievementDB->foreachâ from incompatible pointer type
achievement.c:621: note: expected âDBApplyâ but argument is of type âint (*)(union DBKey,  void *, struct __va_list_tag *)â
achievement.c: In function âachievement_update_mob_subâ:
achievement.c:639: warning: passing argument 2 of âachievementDB->foreachâ from incompatible pointer type
achievement.c:639: note: expected âDBApplyâ but argument is of type âint (*)(union DBKey,  void *, struct __va_list_tag *)â
achievement.c: In function âachievement_update_itemfindâ:
achievement.c:652: warning: passing argument 2 of âachievementDB->foreachâ from incompatible pointer type
achievement.c:652: note: expected âDBApplyâ but argument is of type âint (*)(union DBKey,  void *, struct __va_list_tag *)â
achievement.c: In function âachievement_update_itemuseâ:
achievement.c:663: warning: passing argument 2 of âachievementDB->foreachâ from incompatible pointer type
achievement.c:663: note: expected âDBApplyâ but argument is of type âint (*)(union DBKey,  void *, struct __va_list_tag *)â
achievement.c: In function âachievement_update_exploreâ:
achievement.c:674: warning: passing argument 2 of âachievementDB->foreachâ from incompatible pointer type
achievement.c:674: note: expected âDBApplyâ but argument is of type âint (*)(union DBKey,  void *, struct __va_list_tag *)â
achievement.c: In function âachievement_update_questâ:
achievement.c:685: warning: passing argument 2 of âachievementDB->foreachâ from incompatible pointer type
achievement.c:685: note: expected âDBApplyâ but argument is of type âint (*)(union DBKey,  void *, struct __va_list_tag *)â
achievement.c: In function âachievement_loadDBâ:
achievement.c:1328: warning: passing argument 2 of âachievementDB->foreachâ from incompatible pointer type
achievement.c:1328: note: expected âDBApplyâ but argument is of type âint (*)(union DBKey,  void *, struct __va_list_tag *)â
make[1]: *** [obj_sql/achievement.o] Error 1

 

 



Ok, all solved.~ Works now ^^

Posted (edited)

im really disappointed with this system, because both client side / server side are working properly for me

but the problem is when i try the achievement system

"it always keep getting the same achievement again and again" nonstop everytime

the onloginevent or onpckillevent triggers... how can i fix this? anyone?

Edited by joelolopez
  • 2 months later...
  • 5 months later...
  • 2 months later...
Posted (edited)
Hi i got error when player disconnect or logout
im using latest svn
heres the debug
 

--- file : chkstk.asm
 
        page    ,132
        title   chkstk - C stack checking routine
;***
;chkstk.asm - C stack checking routine
;
;       Copyright © Microsoft Corporation. All rights reserved.
;
;Purpose:
;       Provides support for automatic stack checking in C procedures
;       when stack checking is enabled.
;
;*******************************************************************************
 
.xlist
        include cruntime.inc
.list
 
; size of a page of memory
 
_PAGESIZE_      equ     1000h
 
 
        CODESEG
 
page
;***
;_chkstk - check stack upon procedure entry
;
;Purpose:
;       Provide stack checking on procedure entry. Method is to simply probe
;       each page of memory required for the stack in descending order. This
;       causes the necessary pages of memory to be allocated via the guard
;       page scheme, if possible. In the event of failure, the OS raises the
;       _XCPT_UNABLE_TO_GROW_STACK exception.
;
;       NOTE:  Currently, the (EAX < _PAGESIZE_) code path falls through
;       to the "lastpage" label of the (EAX >= _PAGESIZE_) code path.  This
;       is small; a minor speed optimization would be to special case
;       this up top.  This would avoid the painful save/restore of
;       ecx and would shorten the code path by 4-6 instructions.
;
;Entry:
;       EAX = size of local frame
;
;Exit:
;       ESP = new stackframe, if successful
;
;Uses:
;       EAX
;
;Exceptions:
;       _XCPT_GUARD_PAGE_VIOLATION - May be raised on a page probe. NEVER TRAP
;                                    THIS!!!! It is used by the OS to grow the
;                                    stack on demand.
;       _XCPT_UNABLE_TO_GROW_STACK - The stack cannot be grown. More precisely,
;                                    the attempt by the OS memory manager to
;                                    allocate another guard page in response
;                                    to a _XCPT_GUARD_PAGE_VIOLATION has
;                                    failed.
;
;*******************************************************************************
 
public  _alloca_probe
 
_chkstk proc
 
_alloca_probe    =  _chkstk
 
        push    ecx
 
; Calculate new TOS.
 
        lea     ecx, [esp] + 8 - 4      ; TOS before entering function + size for ret value
        sub     ecx, eax                ; new TOS
 
; Handle allocation size that results in wraparound.
; Wraparound will result in StackOverflow exception.
 
        sbb     eax, eax                ; 0 if CF==0, ~0 if CF==1
        not     eax                     ; ~0 if TOS did not wrapped around, 0 otherwise
        and     ecx, eax                ; set to 0 if wraparound
 
        mov     eax, esp                ; current TOS
        and     eax, not ( _PAGESIZE_ - 1) ; Round down to current page boundary
 
cs10:
        cmp     ecx, eax                ; Is new TOS
        jb      short cs20              ; in probed page?
        mov     eax, ecx                ; yes.
        pop     ecx
        xchg    esp, eax                ; update esp
        mov     eax, dword ptr [eax]    ; get return address
        mov     dword ptr [esp], eax    ; and put it at new TOS
        ret
 
; Find next lower page and probe
cs20:
        sub     eax, _PAGESIZE_         ; decrease by PAGESIZE
->        test    dword ptr [eax],eax     ; probe page.
        jmp     short cs10
 
_chkstk endp
 
        end
 
the red one is target error i think? help me please
 

'map-server_sql.exe': Loaded 'D:\HakuRO Server - Copy\map-server_sql.exe', Symbols loaded.
'map-server_sql.exe': Loaded 'C:\Windows\System32\ntdll.dll', Cannot find or open the PDB file
'map-server_sql.exe': Loaded 'C:\Windows\System32\kernel32.dll', Cannot find or open the PDB file
'map-server_sql.exe': Loaded 'C:\Windows\System32\KernelBase.dll', Cannot find or open the PDB file
'map-server_sql.exe': Loaded 'C:\Windows\System32\ws2_32.dll', Cannot find or open the PDB file
'map-server_sql.exe': Loaded 'C:\Windows\System32\msvcrt.dll', Cannot find or open the PDB file
'map-server_sql.exe': Loaded 'C:\Windows\System32\rpcrt4.dll', Cannot find or open the PDB file
'map-server_sql.exe': Loaded 'C:\Windows\System32\nsi.dll', Cannot find or open the PDB file
'map-server_sql.exe': Loaded 'D:\HakuRO Server - Copy\libmysql.dll', Binary was not built with debug information.
'map-server_sql.exe': Loaded 'C:\Windows\System32\wsock32.dll', Cannot find or open the PDB file
'map-server_sql.exe': Loaded 'C:\Windows\System32\advapi32.dll', Cannot find or open the PDB file
'map-server_sql.exe': Loaded 'C:\Windows\System32\sechost.dll', Cannot find or open the PDB file
'map-server_sql.exe': Loaded 'D:\HakuRO Server - Copy\zlib1.dll', Binary was not built with debug information.
'map-server_sql.exe': Loaded 'D:\HakuRO Server - Copy\pcre3.dll', Binary was not built with debug information.
'map-server_sql.exe': Loaded 'C:\Windows\System32\cryptsp.dll', Cannot find or open the PDB file
'map-server_sql.exe': Loaded 'C:\Windows\System32\rsaenh.dll', Cannot find or open the PDB file
'map-server_sql.exe': Loaded 'C:\Windows\System32\cryptbase.dll', Cannot find or open the PDB file
'map-server_sql.exe': Loaded 'C:\Windows\System32\nlaapi.dll', Cannot find or open the PDB file
'map-server_sql.exe': Loaded 'C:\Windows\System32\NapiNSP.dll', Cannot find or open the PDB file
'map-server_sql.exe': Loaded 'C:\Windows\System32\pnrpnsp.dll', Cannot find or open the PDB file
'map-server_sql.exe': Loaded 'C:\Windows\System32\mswsock.dll', Cannot find or open the PDB file
'map-server_sql.exe': Loaded 'C:\Windows\System32\user32.dll', Cannot find or open the PDB file
'map-server_sql.exe': Loaded 'C:\Windows\System32\gdi32.dll', Cannot find or open the PDB file
'map-server_sql.exe': Loaded 'C:\Windows\System32\lpk.dll', Cannot find or open the PDB file
'map-server_sql.exe': Loaded 'C:\Windows\System32\usp10.dll', Cannot find or open the PDB file
'map-server_sql.exe': Loaded 'C:\Windows\System32\imm32.dll', Cannot find or open the PDB file
'map-server_sql.exe': Loaded 'C:\Windows\System32\msctf.dll', Cannot find or open the PDB file
'map-server_sql.exe': Loaded 'C:\Windows\System32\nvinit.dll', Binary was not built with debug information.
'map-server_sql.exe': Loaded 'C:\Windows\System32\dnsapi.dll', Cannot find or open the PDB file
'map-server_sql.exe': Loaded 'C:\Windows\System32\winrnr.dll', Cannot find or open the PDB file
'map-server_sql.exe': Loaded 'C:\Windows\System32\wshbth.dll', Cannot find or open the PDB file
'map-server_sql.exe': Loaded 'C:\Program Files\Bonjour\mdnsNSP.dll', Cannot find or open the PDB file
'map-server_sql.exe': Loaded 'C:\Windows\System32\IPHLPAPI.DLL', Cannot find or open the PDB file
'map-server_sql.exe': Loaded 'C:\Windows\System32\winnsi.dll', Cannot find or open the PDB file
'map-server_sql.exe': Loaded 'C:\Windows\System32\FWPUCLNT.DLL', Cannot find or open the PDB file
'map-server_sql.exe': Loaded 'C:\Windows\System32\rasadhlp.dll', Cannot find or open the PDB file
'map-server_sql.exe': Loaded 'C:\Windows\System32\WSHTCPIP.DLL', Cannot find or open the PDB file
The thread 'Win32 Thread' (0x3ac) has exited with code 0 (0x0).
Unhandled exception at 0x007fd587 in map-server_sql.exe: 0xC00000FD: Stack overflow.
First-chance exception at 0x007fd587 in map-server_sql.exe: 0xC0000005: Access violation reading location 0x00030000.
Unhandled exception at 0x007fd587 in map-server_sql.exe: 0xC0000005: Access violation reading location 0x00030000.
 

 

this is on the debug output

Edited by hakuren
  • 2 months later...
Posted

After a lot of work I managed to get the system to work on the newest rAthena, but for some reason it doesn't give me the achievement when I fulfill the conditions, only if I add it manually using the @command. Does anyone know a way around this? I appreciate the help.

  • 2 years later...
  • 4 weeks later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...