Jump to content
×
×
  • Create New...
  • 0

locale_string problem


Lehel

Question

16 answers to this question

Recommended Posts

  • 0
  • Premium

You use Netbeans, and netbeans do not support Korean alphabet, so it's translated it into a weird language.

 

This weird language cannot be decrypted by your locale_string, so it put the Korean native text.

Link to comment
Share on other sites

  • 0

It's not locale_string error i think

 

This is not correct?

 

Succes:

"%s ´Ô°úŔÇ ±łČŻŔĚ Ľş»ç µÇľú˝Ŕ´Ď´Ů.";
"Az üzlet %s személlyel sikerült.";

 
Not succes:

"ĽŇÁöÇ°żˇ şó °ř°ŁŔĚ ľř˝Ŕ´Ď´Ů.";
"Nincs elég hely a Leltáradban.";

 
If the trade is not succes, it's say: "Az üzlet %s személlyel sikerült." (Succes) So wtf...
 
I think it's caused by the 4 inventory...

 

(Yes, my English is not very good, but pls understand me  :) )

Link to comment
Share on other sites

  • 0

Maybe yes, i think this code have error:

 

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());
    }

But as i said, with the unedited code, the trades work fine..

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

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

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

Magyarul:

Ha nem szerkesszük az exchange.cpp-nél azt a részt, hanem alapon hagyjuk, akkor nem buggos. Alap kóddal minden jól megy a kereskedésnél. Elég furcsa dolog.. Szerintem a 4 leltáras téma készítője csak leírta aztán kész, nem is érdekelte a dolog.. 

Link to comment
Share on other sites

  • 0
  • Honorable Member

Mivel nem is kellett volna eleve szerkeszteni az exchange.cpp fájlt

:D
static CGrid s_grid(5, INVENTORY_MAX_NUM / 5);

Ez alapból megteszi amit kell.

INVENTORY_MAX_NUM 4 leltárnál 180, 180/5=36 -> 5x36os Grid készül az ellenörzéshez, amit feltölt adatokkal majd keres szabad helyet.

 

Szélesség: 5

Magasság: 36

Eredmény: 5x36=180

 

Ez az egész egy logic-failed :D

 

With the original exchange.cpp file will not show "succes" when the target's inventory is full.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


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.