Kan 0 Posted January 7, 2023 Share Posted January 7, 2023 (edited) Hi, I'm using several images to create animation for the login but when I open the client it takes around 10s for the animation to appear The code im using https://metin2.download/picture/8W46592p0npUXROf08COoFuJz3u1Sz41/.png Does someone know a better code for this type? im new to this best regards, Kan Edited January 7, 2023 by Metin2 Dev Core X - External 2 Internal Link to comment Share on other sites More sharing options...
bossy_max 1 Posted January 7, 2023 Share Posted January 7, 2023 Link to comment Share on other sites More sharing options...
Active+ Member Abel(Tiger) 1195 Posted January 8, 2023 Active+ Member Share Posted January 8, 2023 Use .dds, those load faster. Link to comment Share on other sites More sharing options...
Kan 0 Posted January 10, 2023 Author Share Posted January 10, 2023 (edited) On 1/7/2023 at 6:18 PM, bossy_max said: On 1/8/2023 at 9:44 AM, Abel(Tiger) said: Use .dds, those load faster. thx, i will try Edited January 10, 2023 by Kan Link to comment Share on other sites More sharing options...
Julio 3 Posted January 15, 2023 Share Posted January 15, 2023 what about the fact that those images don't resize? Code used: "name" : "bg1","type" : "expanded_image", "x" : 0, "y" : 0, "type" : "ani_image", "x" : 0, "y" : 0, "width" : SCREEN_WIDTH, "height" : SCREEN_HEIGHT, "x_scale" : float(SCREEN_WIDTH) /1980.0, "y_scale" : float(SCREEN_HEIGHT) /1080.0, "delay" : 6, "images" : ( Link to comment Share on other sites More sharing options...
Honorable Member Mali 41760 Posted January 15, 2023 Honorable Member Share Posted January 15, 2023 18 minutes ago, Julio said: what about the fact that those images don't resize? Code used: "name" : "bg1","type" : "expanded_image", "x" : 0, "y" : 0, "type" : "ani_image", "x" : 0, "y" : 0, "width" : SCREEN_WIDTH, "height" : SCREEN_HEIGHT, "x_scale" : float(SCREEN_WIDTH) /1980.0, "y_scale" : float(SCREEN_HEIGHT) /1080.0, "delay" : 6, "images" : ( SetAniImgScale 1 Link to comment Share on other sites More sharing options...
Julio 3 Posted January 15, 2023 Share Posted January 15, 2023 23 minutes ago, Mali said: SetAniImgScale Thx Mali, I'm pretty new so, you know how it is haha. First of all, I have the source of the game, and the client with its files (pack), the images for the animation were added in locale ( I have never worked inside the source because I'm not a developer, I just design stuff in PS, so, coding is not my thing, but....) From what I understand, those lines have to be added inside the client source then re-compiled in order for the client to take the resize function for the "ani_image" part that is added inside loginwindow.py. Right? Can you please tell me where inside the source are those : ///@@@PythonWindowManagerModule.cpp: ....... ///@@@PythonWindow.h:......... ###@@@ui.py:... Thx a lot Mali! 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