Jump to content

Samurai Core V1.3


asterix2

Recommended Posts

1 hour ago, asterix2 said:

Update:

- Python update correcty.

Open: vs/source/scriptlib/pythonutils.cpp

search:

#include "PythonUtils.h"

Add under this:

#define PyLong_AsLong PyLong_AsLongLong
#define PyLong_AsUnsignedLong PyLong_AsUnsignedLongLong

I did everything , now it works. 
The problem is that it gets stuck "on the login is in progress".
Link to comment
Share on other sites

28 minutes ago, asterix2 said:

I know. I upload bad source. * sorry*

I now upload correct source. ( 10kb/s)

player.item_proto right click -> desing table -> add this: vnum_range   int 11  0   0   0   0   0   0   0   0                   0   0

I use item_proto.txt, how do I put this new column?

And above all, what is it?

Link to comment
Share on other sites

put new column in the sql and export txt

Ehhh i forgeted.

db/clientmanager.cpp

Search this:

        peer->Encode(&it->first, sizeof(short));
        peer->Encode(&it->second, sizeof(BYTE));

Change with:

        peer->Encode(&it->first, sizeof(int));
        peer->Encode(&it->second, sizeof(BYTE));


10 minute and finish upload. :D

  • Love 1
Link to comment
Share on other sites

15 minutes ago, asterix2 said:

put new column in the sql and export txt

Ehhh i forgeted.

db/clientmanager.cpp

Search this:

        peer->Encode(&it->first, sizeof(short));
        peer->Encode(&it->second, sizeof(BYTE));

Change with:

        peer->Encode(&it->first, sizeof(int));
        peer->Encode(&it->second, sizeof(BYTE));

This fix the problem with the login? :)

Link to comment
Share on other sites

5 hours ago, asterix2 said:

Open char_change_empire.cpp


Search:

    DWORD dwAID;

Add under:

    DWORD dwPID[4];

 

 

new problem.

Spoiler

 

char_change_empire.cpp: In member function 'int CHARACTER::ChangeEmpire(BYTE)':
char_change_empire.cpp:41: error: 'dwAID' was not declared in this scope
gmake: *** [OBJDIR/char_change_empire.o] Error 1
 

        str_to_number(dwAID, row[0]);
        str_to_number(dwPID[0], row[1]);
        str_to_number(dwPID[1], row[2]);
        str_to_number(dwPID[2], row[3]);
        str_to_number(dwPID[3], row[4]);

 

Spoiler

 

I change:

 

        str_to_number(dwPID[0], row[1]);
        str_to_number(dwPID[1], row[2]);
        str_to_number(dwPID[2], row[3]);
        str_to_number(dwPID[3], row[4]);

 

 

Perhaps I estimated the problem well while I was getting compile

Update Photo: 

Spoiler


694ae1a643cc373b01174619b43d65b1.png

 

 

Edited by Metin2 Dev
Core X - External 2 Internal
Link to comment
Share on other sites

2 hours ago, asterix2 said:

oho i forgeted.

search:    const int loop = 5;

change:    const int loop = 4;

search:        DWORD dwGuildID[5];
        CGuild * pGuild[5];

Change:
        DWORD dwGuildID[4];
        CGuild * pGuild[4];

Ok, work!

But in char_change_empire.cpp need to cancel 

 str_to_number(dwAID, row[0]); .

Link to comment
Share on other sites

  • 2 weeks later...

Announcements



×
×
  • 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.