Jump to content

LordAioria

Members
  • Posts

    17
  • Joined

  • Last visited

Posts posted by LordAioria

  1. Hi Airei, one doubt... i am using a client that works 2015-11-04aRagexe ( i can enter into my game and play without problems)

    Now i delete "Restore Login Window" patch, i have downloaded the rocred binary.

    I have modified the rocred.ini with this:

     

    ExeName=2015-11-04aRagexe_patched.exe
    ExeType=1rag1
    HashMD5=0

    MiscInfo=1

    Now when i put the user and password in rocred window .. i was debugging the code with visual studio and i see this:

    int login_mmo_auth(struct login_session_data* sd, bool isServer) {

    +        userid    0x0157c9c1 "²XêȳÁ©”‹‡R£ßÖóªÅP$Tú£y"    char[24]
    +        passwd    0x0157c9d9 "87fc94d13ddb2dda476dbdc1b4859f91"    char[33]
     

    It seems encrypted .. .isn't it? maybe i lost some step or modifying the source code .... could you help me please?

    Thanks in advance

     

  2. Hello.

    I'm using rathena, with latest version.

     

    The problem that i saw is that i lost some character properties after logout like :

     

    Hp,Sp,Stats,Pets,Homunculus

     

    And if you are using a hat after relogin , nobody see the hat , but if you go to equip window ...you are wearing it .

     

    Please how can i solve this situation???

     

  3. My server is a clean rathena version.
    Compile without errors , and i have installed gdb and use debug version to use gdb...
     
    Login/Char/Map without errors ... now i use my client....  i login ....  i choose the character and i see my character in prontera but at map console i see this error : 
     
    Server received crash signal! Attempting to save all online characters
     
    After using RDB  i have obtained this information: 
     
     
    
    [Debug]: Unsupported langtype '2'.
    
    Program received signal SIGSEGV, Segmentation fault.
    0x000000000060ce97 in status_base_pc_maxhp.isra.36.21326 (sd=0x6c0d890)
        at status.c:2257
    2257            uint32 val = job_info[pc_class2idx(sd->status.class_)].hp_table[sd->status.base_level-1];
    (gdb)
    (gdb) screen ls
    Undefined command: "screen".  Try "help".
    (gdb) bt full
    #0  0x000000000060ce97 in status_base_pc_maxhp.isra.36.21326 (sd=0x6c0d890)
        at status.c:2257
            val = 167837696
    #1  0x000000000050a0c0 in status_calc_pc_ (sd=0x6c0d890, first=1 '\001')
        at status.c:2736
            calculating = 1
            status = 0x6c0db40
            b_skill = {{id = 0, lv = 0 '\000',
                flag = 0 '\000'} <repeats 3100 times>}
            b_weight = 0
            b_max_weight = 0
            b_cart_weight_max = 0
            i = 1
            index = 1
            skill = 0
            refinedef = 0
            i64 = 0
            calculating = 1
    #2  0x0000000000504ea2 in status_calc_bl_ (bl=0x6c0d890, flag=SCB_ALL,
        first=1 '\001') at status.c:4078
            b_status = {hp = 0, sp = 0, max_hp = 0, max_sp = 0, str = 0, agi = 0,
              vit = 0, int_ = 0, dex = 0, luk = 0, batk = 0, watk = 0, watk2 = 0,
              eatk = 0, matk_min = 0, matk_max = 0, speed = 150, amotion = 0,
    ---Type <return> to continue, or q <return> to quit---
              adelay = 0, dmotion = 0, mode = 0, hit = 0, flee = 0, cri = 0,
              flee2 = 0, def2 = 0, mdef2 = 0, aspd_rate2 = 0, aspd_rate = 0,
              def = 0, mdef = 0, def_ele = 0 '\000', ele_lv = 0 '\000',
              size = 0 '\000', race = 0 '\000', rhw = {atk = 0, atk2 = 0,
                range = 0, ele = 0 '\000', matk = 0, wlv = 0 '\000'}, lhw = {
                atk = 0, atk2 = 0, range = 0, ele = 0 '\000', matk = 0,
                wlv = 0 '\000'}}
            status = 0x6c0dba4
    #3  0x000000000042708b in pc_reg_received (sd=0x6c0d890) at pc.c:1297
            i = 0
            j = 0
    #4  intif_parse_Registers (fd=10) at intif.c:1009
            j = 0
            p = 13
            len = 1
            max = 16
            flag = 1
            sd = 0x6c0d890
            reg = 0x6c30b14
            qty = 0x6c30b10
            account_id = 2100000
            char_id = 210000
            node = 0x6cd0c98
    ---Type <return> to continue, or q <return> to quit---
    #5  0x0000000000421292 in intif_parse (fd=10) at intif.c:2233
            packet_len = 13
            cmd = 14340
    #6  0x00000000005f964c in chrif_parse.part.11 (fd=10) at chrif.c:1416
            r = 1
            packet_len = 1
            cmd = 14340
    #7  chrif_parse (fd=10) at chrif.c:1388
    No locals.
    #8  0x00000000005d3f6e in do_sockets (next=50) at socket.c:856
            rfd = {__fds_bits = {1024, 0 <repeats 15 times>}}
            timeout = {tv_sec = 0, tv_usec = 49626}
            ret = 0
            i = 10
    #9  main (argc=1, argv=0x7fffffffe6b8) at core.c:368
            next = 50
    (gdb)
    (gdb)
    (gdb) exit
    

     

     
     
     
    Any idea about what happends or how can i solve this ?
     
    BR


    Please any idea ?



    Please any idea about how to solve it ?



    Please close it . I have solved by myself.

  4. Hi all,

    i see that i can created signed items linked to a char_id (existing character)....

    but how can i created for example:

    Homer's knife

    Blanch's knife

    without creating any character called Homer or Blanch?

    other point, is how can i ask for this specific item with this specific name at script?

    Like :

    do you have Homer's knife? Ok, let's continue.....

    Thanks in advance

  5. Hello, i am using this code :

    return (struct house_storage*)idb_get(special_storage_db,special_id);

    This is house_storage struct:

    struct house_storage {
    int dirty;
    int special_id;
    short storage_status;
    int storage_amount;
    struct item items[MAX_HOUSE_STORAGE];
    };
    

    and debugging this code, i see that at that moment special_id = 132 ...

    and it returns a struct with all fields ok, and all items that are at special_storage_db with special_id=132

    .... BUT with special_id = 0 instead of 132....

    the question is why????

    Please any idea about how to solve it?

  6. Hi all,

    I have installed visual c++ 2010express with sp1 totally updated.

    The process that i follow is:

    1. Clean project

    2. Rebuild project

    This is the output:

    ========== Rebuild All: 4 succeeded, 0 failed, 0 skipped ==========

    Now, i choose Debug menu option -> Options and Settings , at option window , i see Debugging->Symbols and i have checked the option "Microsoft Symbol Servers".

    Then i select login-server_sql "subproject", Debug->Start new instance and i see msdos window a few seconds .... after that msdos windows ends and this is the output:

    'login-server_sql.exe': Loaded 'C:\RoeR\HD_TRABAJO\trunk\login-server_sql.exe', Symbols loaded.
    'login-server_sql.exe': Loaded 'C:\Windows\SysWOW64\ntdll.dll', Symbols loaded (source information stripped).
    'login-server_sql.exe': Loaded 'C:\Windows\SysWOW64\kernel32.dll', Symbols loaded (source information stripped).
    'login-server_sql.exe': Loaded 'C:\Windows\SysWOW64\KernelBase.dll', Symbols loaded (source information stripped).
    'login-server_sql.exe': Loaded 'C:\Windows\SysWOW64\ws2_32.dll', Symbols loaded (source information stripped).
    'login-server_sql.exe': Loaded 'C:\Windows\SysWOW64\msvcrt.dll', Symbols loaded (source information stripped).
    'login-server_sql.exe': Loaded 'C:\Windows\SysWOW64\rpcrt4.dll', Symbols loaded (source information stripped).
    'login-server_sql.exe': Loaded 'C:\Windows\SysWOW64\sspicli.dll', Symbols loaded (source information stripped).
    'login-server_sql.exe': Loaded 'C:\Windows\SysWOW64\cryptbase.dll', Symbols loaded (source information stripped).
    'login-server_sql.exe': Loaded 'C:\Windows\SysWOW64\sechost.dll', Symbols loaded (source information stripped).
    'login-server_sql.exe': Loaded 'C:\Windows\SysWOW64\nsi.dll', Symbols loaded (source information stripped).
    'login-server_sql.exe': Loaded 'C:\RoeR\HD_TRABAJO\trunk\libmysql.dll', Binary was not built with debug information.
    'login-server_sql.exe': Loaded 'C:\Windows\SysWOW64\wsock32.dll', Symbols loaded (source information stripped).
    'login-server_sql.exe': Loaded 'C:\Windows\SysWOW64\advapi32.dll', Symbols loaded (source information stripped).
    'login-server_sql.exe': Loaded 'C:\Windows\SysWOW64\cryptsp.dll', Symbols loaded (source information stripped).
    'login-server_sql.exe': Loaded 'C:\Windows\SysWOW64\rsaenh.dll', Symbols loaded (source information stripped).
    'login-server_sql.exe': Loaded 'C:\Windows\SysWOW64\nlaapi.dll', Symbols loaded (source information stripped).
    'login-server_sql.exe': Loaded 'C:\Windows\SysWOW64\NapiNSP.dll', Symbols loaded (source information stripped).
    'login-server_sql.exe': Loaded 'C:\Windows\SysWOW64\pnrpnsp.dll', Symbols loaded (source information stripped).
    'login-server_sql.exe': Loaded 'C:\Windows\SysWOW64\mswsock.dll', Symbols loaded (source information stripped).
    'login-server_sql.exe': Loaded 'C:\Windows\SysWOW64\user32.dll', Symbols loaded (source information stripped).
    'login-server_sql.exe': Loaded 'C:\Windows\SysWOW64\gdi32.dll', Symbols loaded (source information stripped).
    'login-server_sql.exe': Loaded 'C:\Windows\SysWOW64\lpk.dll', Symbols loaded (source information stripped).
    'login-server_sql.exe': Loaded 'C:\Windows\SysWOW64\usp10.dll', Symbols loaded (source information stripped).
    'login-server_sql.exe': Loaded 'C:\Windows\SysWOW64\imm32.dll', Symbols loaded (source information stripped).
    'login-server_sql.exe': Loaded 'C:\Windows\SysWOW64\msctf.dll', Symbols loaded (source information stripped).
    'login-server_sql.exe': Loaded 'C:\Windows\SysWOW64\dnsapi.dll', Symbols loaded (source information stripped).
    'login-server_sql.exe': Loaded 'C:\Windows\SysWOW64\winrnr.dll', Symbols loaded (source information stripped).
    'login-server_sql.exe': Loaded 'C:\Program Files (x86)\Common Files\microsoft shared\Windows Live\WLIDNSP.DLL', Cannot find or open the PDB file
    'login-server_sql.exe': Loaded 'C:\Windows\SysWOW64\psapi.dll', Symbols loaded (source information stripped).
    'login-server_sql.exe': Loaded 'C:\Windows\SysWOW64\shlwapi.dll', Symbols loaded (source information stripped).
    'login-server_sql.exe': Loaded 'C:\Windows\SysWOW64\IPHLPAPI.DLL', Symbols loaded (source information stripped).
    'login-server_sql.exe': Loaded 'C:\Windows\SysWOW64\winnsi.dll', Symbols loaded (source information stripped).
    'login-server_sql.exe': Loaded 'C:\Windows\SysWOW64\FWPUCLNT.DLL', Symbols loaded (source information stripped).
    'login-server_sql.exe': Loaded 'C:\Windows\SysWOW64\rasadhlp.dll', Symbols loaded (source information stripped).
    'login-server_sql.exe': Loaded 'C:\Windows\SysWOW64\WSHTCPIP.DLL', Symbols loaded (source information stripped).
    The thread 'Win32 Thread' (0xca8) has exited with code 1 (0x1).
    The thread 'Win32 Thread' (0x111c) has exited with code 1 (0x1).
    The program '[3668] login-server_sql.exe: Native' has exited with code 1 (0x1)
    

    I have tried :

    • Download last rathena trunk version and redo all this process ----> Doesn't work
    • Download and install Visual Studio 2012 Premium and redo all this process ----> Doesn't work

    Any other idea, please???? Could you help me??

    Thanks in advance

  7. Hi thanks for all your help , but i think that maybe i don't explain well the question .....

    I'm working on language system ... the thing is that i'm using a clif_disp_onlyself(tsd,atcmd_output,strlen(atcmd_output));

    to send to each character that is near to the speaker different messages ..... and example :

    You talk : Da

    I don't speak russian : I listen : You are ugly!!!

    any that speaks russian listen : Da

    :) .... the code is working fine and this behaviour is working .. the only thing is that when i'm using this clif_disp_onlyself it always write the text in green .. instead of white... i don't know why ......

    Any idea about how can i modify this function or create a new one to solve it?

    Thanks in advance!!!

  8. Hi

    I'm using a clif_disp_onlyself command when someone talks. This means that i control if one character belongs to a specific race.

    The thing is that it works perfect... the unique problem that i have is that the text is in green color ....

    I was thinking that maybe the color was a client problem .... but when i am using ShinsDiffPatcher tool i don't see old xray options that i have used to change alliance text colors , guild text colors etc....

    sprintf(atcmd_output, msg_txt(799), emisor, message); // %s: %s

    clif_disp_onlyself(tsd,atcmd_output,strlen(atcmd_output));

    Any idea about how can i solve it ?

    This is the normal code at clif_parse_GlobalMessage :

    WFIFOHEAD(fd, 8 + textlen);

    WFIFOW(fd,0) = 0x8d;

    WFIFOW(fd,2) = 8 + textlen;

    WFIFOL(fd,4) = sd->bl.id;

    safestrncpy((char*)WFIFOP(fd,8), is_fake ? fakename : text, textlen);

    //FIXME: chat has range of 9 only

    clif_send(WFIFOP(fd,0), WFIFOW(fd,2), &sd->bl, sd->chatID ? CHAT_WOS : AREA_CHAT_WOC);

    The thing is that instead of this .. i'm using a map_foreachinarea .....

    and then using this clif_disp_onlyself ....

    Could you help me ?

    THanks in advance

  9. I have updated to create a new custom storage:

    int storage_storageopen(struct map_session_data *sd)
    {
    struct special_storage_data *spStorage;
    
    nullpo_ret(sd);
    ShowError("storage_storageopen %d\n",sd->state.storage_flag);
    if(sd->state.storage_flag)
    {
     return 1; //Already open?
    }
    
    if( !pc_can_give_items(sd) )
      { //check is this GM level is allowed to put items to storage
     clif_displaymessage(sd->fd, msg_txt(246));
     return 1;
    }
    // Test IF is a special storage.
    if (sd->specialStorage != 0)
    {
     spStorage = special2SpecialStorage(sd->specialStorage, sd->typeStorage);
     spStorage->storage_status = 1;
     sd->state.storage_flag = 1;
     chrif_save(sd, 0);
     storage_sortitem(spStorage->items, ARRAYLENGTH(spStorage->items));
     clif_storagelist(sd, spStorage->items, ARRAYLENGTH(spStorage->items));
     clif_updatestorageamount(sd, spStorage->storage_amount, MAX_STORAGE); 
    }
    else
    {
     sd->state.storage_flag = 1;
     storage_sortitem(sd->status.storage.items, ARRAYLENGTH(sd->status.storage.items));
     clif_storagelist(sd, sd->status.storage.items, ARRAYLENGTH(sd->status.storage.items));
     clif_updatestorageamount(sd, sd->status.storage.storage_amount, MAX_STORAGE);
    }
    return 0;
    }
    

    The thing is that i can see that the storage is opened and it shows the items that i have in spStorage->items ... but there are some problems :

    * I cannot close the storage

    * If user 1 opens this special storage , and another char tries to open this storage at the same time .... is allowed ... i don't understand why ....

    My objective is to have a custom storage in another table ... for example custom_storage ....

    Could you help me please?

×
×
  • Create New...