Lehel 14 Posted August 31, 2014 Share Posted August 31, 2014 Hello,when I have full inventory,and anyone wants to give me an object , it says me that the trade was completing succesful,although, it not was succesfull. How can I solve this ? 1 Link to comment Share on other sites More sharing options...
Lehel 14 Posted August 31, 2014 Author Share Posted August 31, 2014 *Bump* Link to comment Share on other sites More sharing options...
Randomize 16 Posted August 31, 2014 Share Posted August 31, 2014 Change it in locale_string ? Link to comment Share on other sites More sharing options...
Lehel 14 Posted August 31, 2014 Author Share Posted August 31, 2014 In locale_string I didn't seen anything like my problem. Link to comment Share on other sites More sharing options...
Night 367 Posted August 31, 2014 Share Posted August 31, 2014 he means that there is just a translation error fix it thats all Link to comment Share on other sites More sharing options...
Lehel 14 Posted September 1, 2014 Author Share Posted September 1, 2014 And how can I fix this ? Link to comment Share on other sites More sharing options...
Lehel 14 Posted September 3, 2014 Author Share Posted September 3, 2014 BUMP Link to comment Share on other sites More sharing options...
TheSLZ 107 Posted September 3, 2014 Share Posted September 3, 2014 Edit: No it's not translation error, i have this bug too in 40k game (mainline) I don't know it's matter, but i have 4 inventory page. Link to comment Share on other sites More sharing options...
Premium Galet 514 Posted September 5, 2014 Premium Share Posted September 5, 2014 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 More sharing options...
TheSLZ 107 Posted September 5, 2014 Share Posted September 5, 2014 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 More sharing options...
TheSLZ 107 Posted September 6, 2014 Share Posted September 6, 2014 Solved, if i don't change the exchange.cpp, there is no error with trade notice, and no error with trades Funny thing.. Link to comment Share on other sites More sharing options...
Honorable Member xP3NG3Rx 19762 Posted September 6, 2014 Honorable Member Share Posted September 6, 2014 The source of problem is a function which check the exchanging ppl empty spaces in the inventory.bool CExchange::CheckSpace() Link to comment Share on other sites More sharing options...
TheSLZ 107 Posted September 6, 2014 Share Posted September 6, 2014 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 More sharing options...
Honorable Member xP3NG3Rx 19762 Posted September 6, 2014 Honorable Member Share Posted September 6, 2014 Mivel nem is kellett volna eleve szerkeszteni az exchange.cpp fájlt 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 With the original exchange.cpp file will not show "succes" when the target's inventory is full. Link to comment Share on other sites More sharing options...
TheSLZ 107 Posted September 6, 2014 Share Posted September 6, 2014 Yes Link to comment Share on other sites More sharing options...
Lehel 14 Posted September 23, 2014 Author Share Posted September 23, 2014 Can you give me exchange.cpp from the original mainline source ? Link to comment Share on other sites More sharing options...
Night 367 Posted September 23, 2014 Share Posted September 23, 2014 Can you give me exchange.cpp from the original mainline source ? http://pastebin.com/KMSQFrBD with kr texts Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now