Jump to content

Metin2 - 4 Inventory Page


Recommended Posts

 

 

 

 

 

 

Vanilla make some stupid human .. This game have complete bug 3/4 inventory.. :D :D

So which game version do you guys recommend?

 

 

Indeed, it's from core, doesn't happen with me.

 

Made your own core :)

 

I dont know how to program in C++ >< i only know pascal ahah and when i'm compiling the source i get too many warnings, but 0 errors xD

 

 

C++ knowledge is'nt needed if you applied some tutorial, therefore, warnings can be ignored, and easily fixable. ^^

 

So the warnings do no problem to the core? xD

 

 

No, all about the time is about a weird syntax (parethese aorund && without || for exemple) or some int compared with unsigned etc...

 

You can ignore it, and fix-it later :)

 

 

Ohh okay, thank you then ^^ i'll try to compile my own core. But in this post, the tutorial dont have the bug that i talked right?

I can use this tutorial and it wont be bugged?

Link to comment
Share on other sites

  • Premium

 

 

 

 

 

 

 

Vanilla make some stupid human .. This game have complete bug 3/4 inventory.. :D :D

So which game version do you guys recommend?

 

 

Indeed, it's from core, doesn't happen with me.

 

Made your own core :)

 

I dont know how to program in C++ >< i only know pascal ahah and when i'm compiling the source i get too many warnings, but 0 errors xD

 

 

C++ knowledge is'nt needed if you applied some tutorial, therefore, warnings can be ignored, and easily fixable. ^^

 

So the warnings do no problem to the core? xD

 

 

No, all about the time is about a weird syntax (parethese aorund && without || for exemple) or some int compared with unsigned etc...

 

You can ignore it, and fix-it later :)

 

 

Ohh okay, thank you then ^^ i'll try to compile my own core. But in this post, the tutorial dont have the bug that i talked right?

I can use this tutorial and it wont be bugged?

 

Your welcome. :)

 

I try this tutorial, and some fix, and I doesn't have this bug, only two :

 

-Can't view the effet (circle who's turn, don't know how to explain, like when you activate a Sura protec' skill) of auto-pot in inventory.

-Can't swap my stuff when it's in the 2-3-4 pages and size of item is superior of "2" (This tutorial won't affect, that's my fault, I guess).

  • Love 1
Link to comment
Share on other sites

 

 

 

 

 

 

 

 

Vanilla make some stupid human .. This game have complete bug 3/4 inventory.. :D :D

So which game version do you guys recommend?

 

 

Indeed, it's from core, doesn't happen with me.

 

Made your own core :)

 

I dont know how to program in C++ >< i only know pascal ahah and when i'm compiling the source i get too many warnings, but 0 errors xD

 

 

C++ knowledge is'nt needed if you applied some tutorial, therefore, warnings can be ignored, and easily fixable. ^^

 

So the warnings do no problem to the core? xD

 

 

No, all about the time is about a weird syntax (parethese aorund && without || for exemple) or some int compared with unsigned etc...

 

You can ignore it, and fix-it later :)

 

 

Ohh okay, thank you then ^^ i'll try to compile my own core. But in this post, the tutorial dont have the bug that i talked right?

I can use this tutorial and it wont be bugged?

 

Your welcome. :)

 

I try this tutorial, and some fix, and I doesn't have this bug, only two :

 

-Can't view the effet (circle who's turn, don't know how to explain, like when you activate a Sura protec' skill) of auto-pot in inventory.

-Can't swap my stuff when it's in the 2-3-4 pages and size of item is superior of "2" (This tutorial won't affect, that's my fault, I guess).

 

Okay then, i'll try it out, thank you ^^

  • Love 1
Link to comment
Share on other sites

  • Premium

 

 

 

 

 

 

 

 

 

Vanilla make some stupid human .. This game have complete bug 3/4 inventory.. :D :D

So which game version do you guys recommend?

 

 

Indeed, it's from core, doesn't happen with me.

 

Made your own core :)

 

I dont know how to program in C++ >< i only know pascal ahah and when i'm compiling the source i get too many warnings, but 0 errors xD

 

 

C++ knowledge is'nt needed if you applied some tutorial, therefore, warnings can be ignored, and easily fixable. ^^

 

So the warnings do no problem to the core? xD

 

 

No, all about the time is about a weird syntax (parethese aorund && without || for exemple) or some int compared with unsigned etc...

 

You can ignore it, and fix-it later :)

 

 

Ohh okay, thank you then ^^ i'll try to compile my own core. But in this post, the tutorial dont have the bug that i talked right?

I can use this tutorial and it wont be bugged?

 

Your welcome. :)

 

I try this tutorial, and some fix, and I doesn't have this bug, only two :

 

-Can't view the effet (circle who's turn, don't know how to explain, like when you activate a Sura protec' skill) of auto-pot in inventory.

-Can't swap my stuff when it's in the 2-3-4 pages and size of item is superior of "2" (This tutorial won't affect, that's my fault, I guess).

 

Okay then, i'll try it out, thank you ^^

 

Your welcome :)

 

Flood : We have a lot of quoted messages xD

 

Link to comment
Share on other sites

 

 

 

 

 

 

 

 

 

 

Vanilla make some stupid human .. This game have complete bug 3/4 inventory.. :D :D

So which game version do you guys recommend?

 

 

Indeed, it's from core, doesn't happen with me.

 

Made your own core :)

 

I dont know how to program in C++ >< i only know pascal ahah and when i'm compiling the source i get too many warnings, but 0 errors xD

 

 

C++ knowledge is'nt needed if you applied some tutorial, therefore, warnings can be ignored, and easily fixable. ^^

 

So the warnings do no problem to the core? xD

 

 

No, all about the time is about a weird syntax (parethese aorund && without || for exemple) or some int compared with unsigned etc...

 

You can ignore it, and fix-it later :)

 

 

Ohh okay, thank you then ^^ i'll try to compile my own core. But in this post, the tutorial dont have the bug that i talked right?

I can use this tutorial and it wont be bugged?

 

Your welcome. :)

 

I try this tutorial, and some fix, and I doesn't have this bug, only two :

 

-Can't view the effet (circle who's turn, don't know how to explain, like when you activate a Sura protec' skill) of auto-pot in inventory.

-Can't swap my stuff when it's in the 2-3-4 pages and size of item is superior of "2" (This tutorial won't affect, that's my fault, I guess).

 

Okay then, i'll try it out, thank you ^^

 

Your welcome :)

 

Flood : We have a lot of quoted messages xD

 

 

Ik right? xD

 

Btw, where do i see the log of the machine? i tried to compile it but it gave me some errors and i want to see the log of this to see where the errors are >< do you know where is the log?

Link to comment
Share on other sites

  • Premium

 

 

 

 

 

 

 

 

 

 

 

Vanilla make some stupid human .. This game have complete bug 3/4 inventory.. :D :D

So which game version do you guys recommend?

 

 

Indeed, it's from core, doesn't happen with me.

 

Made your own core :)

 

I dont know how to program in C++ >< i only know pascal ahah and when i'm compiling the source i get too many warnings, but 0 errors xD

 

 

C++ knowledge is'nt needed if you applied some tutorial, therefore, warnings can be ignored, and easily fixable. ^^

 

So the warnings do no problem to the core? xD

 

 

No, all about the time is about a weird syntax (parethese aorund && without || for exemple) or some int compared with unsigned etc...

 

You can ignore it, and fix-it later :)

 

 

Ohh okay, thank you then ^^ i'll try to compile my own core. But in this post, the tutorial dont have the bug that i talked right?

I can use this tutorial and it wont be bugged?

 

Your welcome. :)

 

I try this tutorial, and some fix, and I doesn't have this bug, only two :

 

-Can't view the effet (circle who's turn, don't know how to explain, like when you activate a Sura protec' skill) of auto-pot in inventory.

-Can't swap my stuff when it's in the 2-3-4 pages and size of item is superior of "2" (This tutorial won't affect, that's my fault, I guess).

 

Okay then, i'll try it out, thank you ^^

 

Your welcome :)

 

Flood : We have a lot of quoted messages xD

 

 

Ik right? xD

 

Btw, where do i see the log of the machine? i tried to compile it but it gave me some errors and i want to see the log of this to see where the errors are >< do you know where is the log?

 

 

You can add log from Makefile I think, but you can use flags like W-error or W-fatal-error I think.

 

Link to comment
Share on other sites

 

 

 

 

 

 

 

 

 

 

 

 

Vanilla make some stupid human .. This game have complete bug 3/4 inventory.. :D :D

So which game version do you guys recommend?

 

 

Indeed, it's from core, doesn't happen with me.

 

Made your own core :)

 

I dont know how to program in C++ >< i only know pascal ahah and when i'm compiling the source i get too many warnings, but 0 errors xD

 

 

C++ knowledge is'nt needed if you applied some tutorial, therefore, warnings can be ignored, and easily fixable. ^^

 

So the warnings do no problem to the core? xD

 

 

No, all about the time is about a weird syntax (parethese aorund && without || for exemple) or some int compared with unsigned etc...

 

You can ignore it, and fix-it later :)

 

 

Ohh okay, thank you then ^^ i'll try to compile my own core. But in this post, the tutorial dont have the bug that i talked right?

I can use this tutorial and it wont be bugged?

 

Your welcome. :)

 

I try this tutorial, and some fix, and I doesn't have this bug, only two :

 

-Can't view the effet (circle who's turn, don't know how to explain, like when you activate a Sura protec' skill) of auto-pot in inventory.

-Can't swap my stuff when it's in the 2-3-4 pages and size of item is superior of "2" (This tutorial won't affect, that's my fault, I guess).

 

Okay then, i'll try it out, thank you ^^

 

Your welcome :)

 

Flood : We have a lot of quoted messages xD

 

 

Ik right? xD

 

Btw, where do i see the log of the machine? i tried to compile it but it gave me some errors and i want to see the log of this to see where the errors are >< do you know where is the log?

 

 

You can add log from Makefile I think, but you can use flags like W-error or W-fatal-error I think.

 

 

I compile the source with the FreeBSD 9.2 compileable that is able to download here in the Metin2Dev, i want to know where is the log of the things that appears in the virtual machine, like these people who get this:

 

Example

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
compile Config.cpp
compile NetBase.cpp
compile Peer.cpp
compile PeerBase.cpp
compile Main.cpp
compile Lock.cpp
compile DBManager.cpp
compile Cache.cpp
compile LoginData.cpp
compile ClientManager.cpp
compile ClientManagerPlayer.cpp
compile ClientManagerLogin.cpp
compile ClientManagerBoot.cpp
compile ClientManagerParty.cpp
compile ClientManagerGuild.cpp
compile GuildManager.cpp
compile HB.cpp
In file included from ClientManager.cpp:6:
../../common/VnumHelper.h:59:32: warning: no newline at end of file
compile MoneyLog.cpp
compile ItemAwardManager.cpp
compile PrivManager.cpp
In file included from ClientManagerBoot.cpp:8:
ProtoReader.h:36:7: warning: no newline at end of file
Cache.cpp:365:7: warning: no newline at end of file
ItemAwardManager.cpp:129:2: warning: no newline at end of file
compile ClientManagerEventFlag.cpp
compile Marriage.cpp
compile Monarch.cpp
compile BlockCountry.cpp
compile ItemIDRangeManager.cpp
compile ClientManagerHorseName.cpp
g++: directory": No such file or directory
<command-line>: warning: missing terminating " character
version.cpp:11: error: missing terminating " character
version.cpp: In function 'void WriteVersion()':
version.cpp:11: error: expected primary-expression before ')' token
gmake: *** [.obj/version.o] Error 1
gmake: *** Waiting for unfinished jobs....
ClientManagerBoot.cpp:20: error: expected initializer before 'if'
gmake: *** [.obj/ClientManagerBoot.o] Error 1
ClientManagerPlayer.cpp: In member function 'char* CClientManager::GetCommand(char*)':
ClientManagerPlayer.cpp:433: warning: address of local variable 'command' returned

 

Is that a log file or did he just copy the things that appeared in the virtualbox by hand? If it is a log file, where is this file? Do you know? xD I didn't understand nothing of what you said before about the W-error or the W-fatal-error or the makefile, that's why i'm asking for this log file ><

 

#Edit-----------------------------------------

 

Forget that, i did it xD Im going to post my log, the problem is not with the 4 inv page, the errors are in the char_item.cpp, i edited something but i commited a error, it looks like, i'll post the log now, if you can see it, please ^^

 

Thank you once again :)

Link to comment
Share on other sites

  • Premium

After All i must correct this modification because exchange didn't work well (3&4 page didn't work, like doesn't exist)

 

You cant use it like this:

for (i = 0; i < INVENTORY_MAX_NUM / 4; ++i)
    {
        if (!(item = victim->GetInventoryItem(i)))
            continue;

        s_grid1.Put(i, 1, item->GetSize());
    }
    for (i = INVENTORY_MAX_NUM / 4; i < INVENTORY_MAX_NUM; ++i)
    {
        if (!(item = victim->GetInventoryItem(i)))
            continue;

        s_grid2.Put(i - INVENTORY_MAX_NUM / 4, 1, item->GetSize());
    }

    for (i = INVENTORY_MAX_NUM / 4; i < INVENTORY_MAX_NUM; ++i)
    {
        if (!(item = victim->GetInventoryItem(i)))
            continue;

        s_grid3.Put(i - INVENTORY_MAX_NUM / 4, 1, item->GetSize());
    }
    for (i = INVENTORY_MAX_NUM / 4; i < INVENTORY_MAX_NUM; ++i)
    {
        if (!(item = victim->GetInventoryItem(i)))
            continue;

        s_grid4.Put(i - INVENTORY_MAX_NUM / 4, 1, item->GetSize());
    }

And little explanaton.

If someone read this topic before i said you must set right grid size (5x9). anyway look at this - if we have 4 inventory cards we set (INVENTORY_MAX_NUM(180) /5 /4 = 9) so we have 45 slots.

static CGrid s_grid1(5, INVENTORY_MAX_NUM/5 / 4); // inven page 1

But if you want to trade works well with entire inventory you must change something more.

look at code i posted up.

for example: cgrid4 uses slots from 45-180 but it's only 45 slot grid so after value pass 45 everything is set to null, and item cant locate at this grid. we must set it to right inventory value and set right slots to this card. good value is between 135 - 180. How we can do that - we must modify function.

for (i = (INVENTORY_MAX_NUM / 4) *3; i < (INVENTORY_MAX_NUM /4 ) * 4; ++i)
    {
        if (!(item = victim->GetInventoryItem(i)))
            continue;
        s_grid4.Put(i - (INVENTORY_MAX_NUM / 4) * 3, 1, item->GetSize());
    }

Now function checks slots from 135 ((INVENTORY_MAX_NUM / 4) * 3 = 180 / 4 * 3 = 135) to 180 (INVENTORY_MAX_NUM) and set item to right pos because we set correctly i (for example if we have full first, second and third inventory and someone trade with us red potion, item bind to first slot in fourth inventory (135) (why? i - INVENTORY_MAX_NUM / 4 =  (INVENTORY_MAX_NUM / 4) *3 - (INVENTORY_MAX_NUM/4) *3 = 0 and this is first place in fourth inventory)

 

 

finally, that's valid code if you use 5 inventory window.

int i;

for (i = 0; i < INVENTORY_MAX_NUM / 5; ++i)
{
  if (!(item = victim->GetInventoryItem(i)))
   continue;

  s_grid1.Put(i, 1, item->GetSize());
}
for (i = INVENTORY_MAX_NUM / 5; i < (INVENTORY_MAX_NUM / 5) * 2; ++i)
{
  if (!(item = victim->GetInventoryItem(i)))
   continue;

  s_grid2.Put(i - INVENTORY_MAX_NUM / 5, 1, item->GetSize());
}
for (i = (INVENTORY_MAX_NUM / 5) * 2; i < (INVENTORY_MAX_NUM / 5) * 3; ++i)
{
  if (!(item = victim->GetInventoryItem(i)))
   continue;

  s_grid3.Put(i - (INVENTORY_MAX_NUM / 5) * 2, 1, item->GetSize());
}
for (i = (INVENTORY_MAX_NUM / 5) * 3; i < (INVENTORY_MAX_NUM / 5) * 4; ++i)
{
  if (!(item = victim->GetInventoryItem(i)))
   continue;

  s_grid4.Put(i -(INVENTORY_MAX_NUM / 5) * 3, 1, item->GetSize());
}
for (i = (INVENTORY_MAX_NUM / 5) * 4; i < (INVENTORY_MAX_NUM / 5) * 5; ++i)
{
  if (!(item = victim->GetInventoryItem(i)))
   continue;

  s_grid5.Put(i - (INVENTORY_MAX_NUM / 5) * 4, 1, item->GetSize());
}

i'm really sorry if you don't understand me but i tried to explain it as easy as i can :D

if you don't understand my explanation look into code and analize it.

 

 

moreover aveline forgot about something.

find

int iPos = s_grid1.FindBlank(1, item->GetSize());
   if (iPos >= 0)
   {
    s_grid1.Put(iPos, 1, item->GetSize());
   }
   else
   {
    iPos = s_grid2.FindBlank(1, item->GetSize());
    if (iPos >= 0)
    {
     s_grid2.Put(iPos, 1, item->GetSize());
    }
    else
    {
      return false;
    }

and replace to:

int iPos = s_grid1.FindBlank(1, item->GetSize());
   if (iPos >= 0)
   {
    s_grid1.Put(iPos, 1, item->GetSize());
   }
   else
   {
    iPos = s_grid2.FindBlank(1, item->GetSize());
    if (iPos >= 0)
    {
     s_grid2.Put(iPos, 1, item->GetSize());
    }
    else
    {
     iPos = s_grid3.FindBlank(1, item->GetSize());
     if (iPos >= 0)
     {
      s_grid3.Put(iPos, 1, item->GetSize());
     }
     else
     {
      iPos = s_grid4.FindBlank(1, item->GetSize());
      if (iPos >= 0)
      {
       s_grid4.Put(iPos, 1, item->GetSize());
      }
      else
      {
       iPos = s_grid5.FindBlank(1, item->GetSize());
       if (iPos >= 0)
       {
        s_grid5.Put(iPos, 1, item->GetSize());
       }
       else
       {
        return false;
       }
      }
     }
    }
   }

adapt it for yourself if you're using 4 inventory window.

  • Love 7
Link to comment
Share on other sites

  • 4 weeks later...

Yes but how??

 

I will add this now

				{
					"name" : "Inventory_Tab_03",
					"type" : "radio_button",

					"x" : 10,
					"y" : 33 + 191,

					"default_image" : "d:/ymir work/ui/game/windows/tab_button_large_01.sub",
					"over_image" : "d:/ymir work/ui/game/windows/tab_button_large_02.sub",
					"down_image" : "d:/ymir work/ui/game/windows/tab_button_large_03.sub",
					"tooltip_text" : uiScriptLocale.INVENTORY_PAGE_BUTTON_TOOLTIP_3,

					"children" :
					(
						{
							"name" : "Inventory_Tab_03_Print",
							"type" : "text",

							"x" : 0,
							"y" : 0,

							"all_align" : "center",

							"text" : "I",
						},
					),
				},

But i dont know the Position of the buttons Y and X

 

Link to comment
Share on other sites

  • 3 weeks later...
  • 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.