Active Member ReFresh 2340 Posted November 11, 2016 Active Member Share Posted November 11, 2016 (edited) Hi guys, how can I set text with loaded percents? For example: is 10% it will show: loading map textures, is 20% it will show: loading warrior etc. Here is a video with that loading: I think, I must do it somewhere on these lines: Thanks for answers! Sincerely, ReFresh Edited August 11, 2022 by ReFresh I'll be always helpful! Link to comment Share on other sites More sharing options...
VegaS 1087 Posted November 12, 2016 Share Posted November 12, 2016 (edited) //@root/introLoading.py //@Mr.Big Dick //1.) Search: self.loadingGage=self.GetChild("FullGage") //2.) Add bellow: self.loadingInfo = self.GetChild("LoadingInfo_Text") //3.) Search: self.loadingGage.SetPercentage(2+98*p/100, 100) //4.) Add bellow: self.loadingInfo.SetText("Loading: %s" % (self.txtLoadingProgressDict[p])) //5.) Search: self.errMsg.Hide() //6.) Add bellow: self.txtLoadingProgressDict = { 0: "InitData", 10: "Map", 30: "Sound", 40: "Effect", 50: "Warrior", 60: "Assasin", 70: "Sura", 80: "Shaman", 90: "Skill", 93: "Enemy", 97: "NPC", 98: "Guild Building", 100: "Start game" } //@locale/xx/loadingwindow.py //1.) Search: "name" : "FullGage", //2.) And add under this section: -> https://metin2.download/picture/bH38A0dGUpV6X9BXGgcJHh1c11Sqtzgo/.png { "name" : "LoadingInfo_Text", "type" : "text", "x" : 190, "y" : -20, "fontname" : "Tahoma:19", "text" : "", "vertical_align" : "center", }, Edited August 24, 2022 by Metin2 Dev Core X - External 2 Internal 4 Link to comment Share on other sites More sharing options...
Active Member ReFresh 2340 Posted November 12, 2016 Author Active Member Share Posted November 12, 2016 @VegaS Thanks for answer, but it doesn't work :/ I'll be always helpful! Link to comment Share on other sites More sharing options...
VegaS 1087 Posted November 12, 2016 Share Posted November 12, 2016 Just now, ReFresh said: @VegaS Thanks for answer, but it doesn't work :/ F5, i edited reply. Link to comment Share on other sites More sharing options...
Active Member ReFresh 2340 Posted November 12, 2016 Author Active Member Share Posted November 12, 2016 Now it works, but I have one little problem. Why it do this? As first it load full gage without any text and then is gage empty and it works good. It do it in one loading step: First: Then: Here: @VegaS I'll be always helpful! Link to comment Share on other sites More sharing options...
Active Member ReFresh 2340 Posted November 12, 2016 Author Active Member Share Posted November 12, 2016 @VegaS I got this error: 1112 12:04:19056 :: File "introLoading.py", line 268, in OnUpdate 1112 12:04:19056 :: File "introLoading.py", line 190, in __SetProgress 1112 12:04:19056 :: KeyError 1112 12:04:19056 :: : 1112 12:04:19056 :: 10 //THIS IS NUMBER OF LOADED PRECENT, IN SYSSER WAS ALL SAME ERRORS WITH PERCENTS WHICH WAS LOADED. 1112 12:04:19056 :: Here are the lines where is an error: I'll be always helpful! Link to comment Share on other sites More sharing options...
Active Member ReFresh 2340 Posted November 14, 2016 Author Active Member Share Posted November 14, 2016 Still need help to solve the error. I'll be always helpful! Link to comment Share on other sites More sharing options...
Active Member ReFresh 2340 Posted November 18, 2016 Author Active Member Share Posted November 18, 2016 #push I'll be always helpful! Link to comment Share on other sites More sharing options...
tavi 13 Posted November 18, 2016 Share Posted November 18, 2016 Refresh problem is with your gauge, because I implement this sistem and is work very nice without your problem Link to comment Share on other sites More sharing options...
Active Member ReFresh 2340 Posted November 18, 2016 Author Active Member Share Posted November 18, 2016 1 hour ago, tavi said: Refresh problem is with your gauge, because I implement this sistem and is work very nice without your problem Are you serious? I know it omg. Go to learn English language and don't post comments like which you posted. I don't need to read it's your problem blablabla I need solution for my problem. I'll be always helpful! Link to comment Share on other sites More sharing options...
Developer PACI 921 Posted November 18, 2016 Developer Share Posted November 18, 2016 The syserr entry says it doesn't exists the key 10 in your dictionary (self.textLoadingProgressDict). 2 when you return 0 and server doesn't boot: Link to comment Share on other sites More sharing options...
tavi 13 Posted November 18, 2016 Share Posted November 18, 2016 18 hours ago, ReFresh said: Are you serious? I know it omg. Go to learn English language and don't post comments like which you posted. I don't need to read it's your problem blablabla I need solution for my problem. Thank you very much, you are very annoying. I trying to help you with my post. Link to comment Share on other sites More sharing options...
Active Member ReFresh 2340 Posted November 19, 2016 Author Active Member Share Posted November 19, 2016 5 hours ago, tavi said: Thank you very much, you are very annoying. I trying to help you with my post. You helped me a lot xD I'll be always helpful! 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