Forum Moderator VegaS™ 10274 Posted October 5, 2019 Forum Moderator Share Posted October 5, 2019 On 10/5/2019 at 2:19 AM, Syriza said: Can you maybe tell how to do the Video with escape key, like official ? I mean being able to cancel the Video with escape key. As the title says, here's the simple method how you can skip the video without waiting until is finished, like official did long time ago.Here're the constants value for virtual-key codes (hexadecimal values), right now these are by default: VK_LBUTTON 0x01 - Left mouse button VK_ESCAPE 0x1B - ESC key VK_SPACE 0x20 - SPACEBAR Srcs/Client/UserInterface/Locale_inc.h Spoiler #define ENABLE_SKIP_MOVIE Srcs/Client/UserInterface/MovieMan.cpp Spoiler // 1.0) Search the function: PlayMovie(pcszName); // 1.1) Replace with: #ifdef ENABLE_SKIP_MOVIE PlayMovie(pcszName, true); #else PlayMovie(pcszName); #endif Quote How to do it when i press any key/mouse etc to skip it? Not only by specific keys, people don't know those keys maybe. This is the hidden content, please Sign In or Sign Up 24 1 1 5 2 40 Check my GitHub Profile Click to find all the threads started by me [TOOL] Text file loader + JSON Link to comment Share on other sites More sharing options...
Syriza 234 Posted October 5, 2019 Share Posted October 5, 2019 Every fucking Time i quote Vegas and ask him something he helps me dude you are the dragon god of metin2.dev i will Test this tomorrow, big thanks! 3 Link to comment Share on other sites More sharing options...
Forum Moderator VegaS™ 10274 Posted October 5, 2019 Author Forum Moderator Share Posted October 5, 2019 Update (work arround) - Added all of the virtual-key codes from mouse & keyboard, by pressing any key now you'll skip the intro logo. 3 Check my GitHub Profile Click to find all the threads started by me [TOOL] Text file loader + JSON Link to comment Share on other sites More sharing options...
Premium Hunger 472 Posted October 5, 2019 Premium Share Posted October 5, 2019 5 hours ago, Syriza said: Every fucking Time i quote Vegas and ask him something he helps me dude you are the dragon god of metin2.dev i will Test this tomorrow, big thanks! Yes, she is the dragon goddess. on: thanks for the release 1 Link to comment Share on other sites More sharing options...
Dr.Kayn 1 Posted October 11, 2019 Share Posted October 11, 2019 Thank you @VegaS Link to comment Share on other sites More sharing options...
Syriza 234 Posted October 28, 2019 Share Posted October 28, 2019 @VegaS™ Sorry i forget to write.. Solution is working, its even better then official. In official i have a small delay (lagg) when skipping, but with vegas's solution everything is working fine. Except this (if i add this, the intrologo doesnt even show anymore!) if (bSkipAllowed) { bool is_pressed = false; for (BYTE i = 0; i < 256; ++i) { if ((GetAsyncKeyState(i) & 0x8000) != 0) { is_pressed = true; break; } } if (is_pressed) break; } but i dont think this is needed since without you can skip too with mouse clicks, escape and more. As i said, you dont need this, the first part is enough. Link to comment Share on other sites More sharing options...
Recommended Posts