Jump to content

How To Skip the Intrologo Like Official


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 22
  • Angry 1
  • Think 1
  • Good 5
  • Love 2
  • Love 40
Link to comment
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
Link to comment
Share on other sites

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

Link to comment
Share on other sites

Announcements



×
×
  • 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.