Kafa
Inactive Member-
Posts
269 -
Joined
-
Last visited
-
Feedback
0%
Content Type
Forums
Store
Third Party - Providers Directory
Feature Plan
Release Notes
Docs
Events
Everything posted by Kafa
-
import uiScriptLocale PATTERN_PATH = "d:/ymir work/ui/pattern/" ROOT_PATH = "d:/ymir work/ui/game/looting/" WINDOW_WIDTH = 316 WINDOW_HEIGHT = 494 PATTERN_WINDOW_WIDTH = 294 PATTERN_WINDOW_HEIGHT = 390 PATTERN_X_COUNT = (PATTERN_WINDOW_WIDTH - 32) / 16 PATTERN_Y_COUNT = (PATTERN_WINDOW_HEIGHT - 32) / 16 window = { "name" : "LootingSystem", "style" : ("movable", "float",), "x" : SCREEN_WIDTH / 2 - WINDOW_WIDTH / 2, "y" : SCREEN_HEIGHT / 2 - WINDOW_HEIGHT / 2, "width" : WINDOW_WIDTH, "height" : WINDOW_HEIGHT, "children" : ( { "name" : "board", "type" : "board_with_titlebar", "style" : ("attach",), "x" : 0, "y" : 0, "width" : WINDOW_WIDTH, "height" : WINDOW_HEIGHT, "title" : uiScriptLocale.LOOTING_SYSTEM_TITLE, "children" : ( ## base pattern { "name" : "base_pattern", "type" : "window", "style" : ("attach", "ltr",), "x" : 10, "y" : 32, "width" : PATTERN_WINDOW_WIDTH, "height" :PATTERN_WINDOW_HEIGHT, "children" : ( ## LeftTop 1 { "name" : "pattern_left_top_img", "type" : "image", "style" : ("ltr",), "x" : 0, "y" : 0, "image" : PATTERN_PATH + "border_A_left_top.tga", }, ## RightTop 2 { "name" : "pattern_right_top_img", "type" : "image", "style" : ("ltr",), "x" : PATTERN_WINDOW_WIDTH - 16, "y" : 0, "image" : PATTERN_PATH + "border_A_right_top.tga", }, ## LeftBottom 3 { "name" : "pattern_left_bottom_img", "type" : "image", "style" : ("ltr",), "x" : 0, "y" : PATTERN_WINDOW_HEIGHT - 16, "image" : PATTERN_PATH + "border_A_left_bottom.tga", }, ## RightBottom 4 { "name" : "pattern_right_bottom_img", "type" : "image", "style" : ("ltr",), "x" : PATTERN_WINDOW_WIDTH - 16, "y" : PATTERN_WINDOW_HEIGHT - 16, "image" : PATTERN_PATH + "border_A_right_bottom.tga", }, ## topcenterImg 5 { "name" : "pattern_top_cetner_img", "type" : "expanded_image", "style" : ("ltr",), "x" : 16, "y" : 0, "image" : PATTERN_PATH + "border_A_top.tga", "rect" : (0.0, 0.0, PATTERN_X_COUNT, 0), }, ## leftcenterImg 6 { "name" : "pattern_left_center_img", "type" : "expanded_image", "style" : ("ltr",), "x" : 0, "y" : 16, "image" : PATTERN_PATH + "border_A_left.tga", "rect" : (0.0, 0.0, 0, PATTERN_Y_COUNT), }, ## rightcenterImg 7 { "name" : "pattern_right_center_img", "type" : "expanded_image", "style" : ("ltr",), "x" : PATTERN_WINDOW_WIDTH - 16, "y" : 16, "image" : PATTERN_PATH + "border_A_right.tga", "rect" : (0.0, 0.0, 0, PATTERN_Y_COUNT), }, ## bottomcenterImg 8 { "name" : "pattern_bottom_center_img", "type" : "expanded_image", "style" : ("ltr",), "x" : 16, "y" : PATTERN_WINDOW_HEIGHT - 16, "image" : PATTERN_PATH + "border_A_bottom.tga", "rect" : (0.0, 0.0, PATTERN_X_COUNT, 0), }, ## centerImg { "name" : "pattern_center_img", "type" : "expanded_image", "style" : ("ltr",), "x" : 16, "y" : 16, "image" : PATTERN_PATH + "border_A_center.tga", "rect" : (0.0, 0.0, PATTERN_X_COUNT, PATTERN_Y_COUNT), }, ), }, ## object in pattern window { "name" : "object_area_window", "type" : "window", "style" : ("attach",), "x" : 10+5, "y" : 32+5, "width" : 270, "height" : 380, }, ## scroll bar { "name" : "scroll_bar", "type" : "scrollbar", "x" : 286, "y" : 36, "size" : 380, }, ## Init Button { "name" : "init_button", "type" : "button", "x" : 11, "y" : 428, "default_image" : "d:/ymir work/ui/public/large_button_01.sub", "over_image" : "d:/ymir work/ui/public/large_button_02.sub", "down_image" : "d:/ymir work/ui/public/large_button_03.sub", "text" : uiScriptLocale.LOOTING_SYSTEM_INIT, }, ## Save Button { "name" : "save_button", "type" : "button", "x" : 217, "y" : 428, "default_image" : "d:/ymir work/ui/public/large_button_01.sub", "over_image" : "d:/ymir work/ui/public/large_button_02.sub", "down_image" : "d:/ymir work/ui/public/large_button_03.sub", "text" : uiScriptLocale.LOOTING_SYSTEM_SAVE, }, ## message { "name" : "message_window", "type" : "window", "x" : 18, "y" : 457, "width" : 279, "height" : 18, "style" : ("attach",), "children" : ( { "name" : "message_bg", "type" : "image", "style" : ("ltr", "attach", ), "x" : 0, "y" : 0, "image" : ROOT_PATH + "message_bg.sub", }, { "name" : "message_text", "type" : "text", "x":0, "y":0, "text": "", "all_align" : "center" }, ), }, ), }, ), } Thanks buddy i added my uiscript file But i already tested that, now atleast the window movable issue is fixed, but i cant click on anything still. I personally think its a issue of parent, but i couldnt fix it..
-
Hey guys, i started trying to learn python, i have a problem i created a gui of loot filter, i created some buttons and images scrollbar works too, i only have the issue that nothing is clickable, i spent many hours (many) trying to fix the issue. i know my code is really bad.. i'm just trying to learn this, and its my first time. i'd be happy if someone can help me fixing the issue so i actually understand why nothing is clickable: here is my file: [Hidden Content]
-
Nice bro, could u tell for others how exactly you fixed it ?
-
You have 5 safebox pages and you say its still byte? [Hidden Content] just increase the byte here is a tutorial
- 32 replies
-
- 40
-
I had the same issue, check your code again with visual studio maybe there is something byte. i forget how i fixed it.
-
Thank you bro, as always good work!
-
Thanks for your answer. Appreciate the system tho, its definitly something i'll use.
-
Thanks for the release Owsap, i've got one question tho. In official the luck of getting additional attributes is based on the dragon stone. So if you change a mythical one with 1x 100700 it has a very very low chance to get an additional bonus, could you maybe change that? if not still thanks.
-
Variable is being used without being initialized.
Kafa replied to Kafa's topic in Community Support - Questions & Answers
I understand, thank you! -
else if (strType == "drop") { CDropItemGroup* pkGroup; bool bNew = true; itertype(m_map_pkDropItemGroup) it = m_map_pkDropItemGroup.find (iMobVnum); if (it == m_map_pkDropItemGroup.end()) { pkGroup = M2_NEW CDropItemGroup(0, iMobVnum, stName); } else { bNew = false; CDropItemGroup* pkGroup = it->second; } for (int k = 1; k < 256; ++k) { char buf[4]; snprintf(buf, sizeof(buf), "%d", k); if (loader.GetTokenVector(buf, &pTok)) { std::string& name = pTok->at(0); DWORD dwVnum = 0; if (!GetVnumByOriginalName(name.c_str(), dwVnum)) { str_to_number(dwVnum, name.c_str()); if (!ITEM_MANAGER::instance().GetTable(dwVnum)) { sys_err("ReadDropItemGroup : there is no item %s : node %s", name.c_str(), stName.c_str()); M2_DELETE(pkGroup); return false; } } int iCount = 0; str_to_number(iCount, pTok->at(1).c_str()); if (iCount < 1) { sys_err("ReadMonsterDropItemGroup : there is no count for item %s : node %s", name.c_str(), stName.c_str()); M2_DELETE(pkGroup); return false; } float fPercent = atof(pTok->at(2).c_str()); DWORD dwPct = (DWORD)(10000.0f * fPercent); sys_log(0," name %s pct %d count %d", name.c_str(), dwPct, iCount); pkGroup->AddItem(dwVnum, dwPct, iCount); #ifdef __INGAME_WIKI__ CommonWikiData::TWikiInfoTable* tbl; if ((tbl = GetItemWikiInfo(dwVnum)) && !tbl->origin_vnum) tbl->origin_vnum = iMobVnum; auto pTableTemp = GetTable(dwVnum); DWORD currVnum = dwVnum; DWORD startRefineVnum = GetWikiItemStartRefineVnum(dwVnum); if (pTableTemp && (pTableTemp->bType == ITEM_WEAPON || pTableTemp->bType == ITEM_ARMOR) && startRefineVnum != currVnum) currVnum = (startRefineVnum != 0 ? startRefineVnum : currVnum); CommonWikiData::TWikiItemOriginInfo origin_info; origin_info.set_vnum(iMobVnum); origin_info.set_is_mob(true); m_itemOriginMap[currVnum].push_back(origin_info); CMobManager::instance().GetMobWikiInfo(iMobVnum).push_back(CommonWikiData::TWikiMobDropInfo(dwVnum, iCount)); #endif continue; } break; } if (bNew) m_map_pkDropItemGroup.insert(std::map<DWORD, CDropItemGroup*>::value_type(iMobVnum, pkGroup)); } Error:Run-Time Check Failure #3 - The variable 'pkGroup' is being used without being initialized. At C:\Users\anil_\Documents\mainline\Srcs\Server\game\src\item_manager_read_tables.cpp:863 Line 863 is: pkGroup->AddItem(dwVnum, dwPct, iCount); Would be nice if someone is helping, i dont understand this error.
-
It was just a joke, thank you for your release. Dont be so serious. ;(
-
tUtorial for replacing dots with penis ?
-
They're decentralized.
-
You did something wrong in PythonApplication.cpp. Does this appear when you start a application as admin?
-
Hey welcome bro, can you code Auto Hunt? @ ShadoWDK nAH welcome my friend its just a meme this auto hunt thing @ Mali
-
Ok bro.. i think i meight messed up the compilation of cpr. Could you compile it for windows and sent it to me? Only if you have time. I'm sorry.
-
I'm getting a core crash after senting a message /discord .. the message is sent successfully but then the core crashes. Im using windows files @ Mali Expression __acrt_first_block == header File....... \heap\debug_heap.cpp : Line 996