Jump to content

Recommended Posts

  • Forum Moderator
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

  • Metin2 Dev 28
  • Eyes 1
  • Angry 1
  • Think 1
  • Good 5
  • Love 2
  • Love 46
Link to comment
https://metin2.dev/topic/22066-how-to-skip-the-intrologo-like-official/
Share on other sites

  • Forum Moderator

Update (work arround) - Added all of the virtual-key codes from mouse & keyboard, by pressing any key now you'll skip the intro logo.

  • Love 3
  • Premium
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 

  • Love 1
  • 3 weeks later...

@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.

Don't use any images from : imgur, turkmmop, freakgamers, inforge, hizliresim... Or your content will be deleted without notice...
Use : https://metin2.download/media/add/

Please use https://metin2.download/ when uploading files smaller than 100MB, otherwise the approval will take longer due to manual upload.

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.