Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bcrypt_delete File or function is not found since last YSI Update. #674

Open
lPauI opened this issue Apr 26, 2024 · 4 comments
Open

bcrypt_delete File or function is not found since last YSI Update. #674

lPauI opened this issue Apr 26, 2024 · 4 comments

Comments

@lPauI
Copy link

lPauI commented Apr 26, 2024

Starting open.mp server (1.2.0.2670) from commit 41ebf182bf73dc9cb11841bfe6b0179ba31f9dd5
Loading component Actors.dll
	Successfully loaded component Actors (1.2.0.2670) with UID c81ca021eae2ad5c
Loading component Checkpoints.dll
	Successfully loaded component Checkpoints (1.2.0.2670) with UID 44a937350d611dde
Loading component Classes.dll
	Successfully loaded component Classes (1.2.0.2670) with UID 8cfb3183976da208
Loading component Console.dll
	Successfully loaded component Console (1.2.0.2670) with UID bfa24e49d0c95ee4
Loading component CustomModels.dll
	Successfully loaded component CustomModels (1.2.0.2670) with UID 15e3cb1e7c77ffff
Loading component Databases.dll
	Successfully loaded component Databases (1.2.0.2670) with UID 80092e7eb5821a96
Loading component Dialogs.dll
	Successfully loaded component Dialogs (1.2.0.2670) with UID 44a111350d611dde
Loading component discord-connector.dll
	Successfully loaded component discord-connector (0.3.6.1) with UID 493dfe4f6ea1841f
Loading component Fixes.dll
	Successfully loaded component Fixes (1.2.0.2670) with UID b5c615eff0329ff7
Loading component GangZones.dll
	Successfully loaded component GangZones (1.2.0.2670) with UID b3351d11ee8d8056
Loading component LegacyConfig.dll
	Successfully loaded component LegacyConfig (1.2.0.2670) with UID 24ef6216838f9ffc
Loading component LegacyNetwork.dll
	Successfully loaded component RakNetLegacyNetwork (1.2.0.2670) with UID ea9799fd79cf8442
Loading component Menus.dll
	Successfully loaded component Menus (1.2.0.2670) with UID 621e219eb97ee0b2
Loading component Objects.dll
	Successfully loaded component Objects (1.2.0.2670) with UID 59f8415f72da6160
Loading component Pawn.dll
	Successfully loaded component Pawn (1.2.0.2670) with UID 78906cd9f19c36a6
Loading component pawncmd.dll
	Successfully loaded component Pawn.CMD (0.3.4.0) with UID a03b47c907a96c29
Loading component pawnraknet.dll
	Successfully loaded component Pawn.RakNet (0.1.6.0) with UID 4a8b15c16d23e42f
Loading component Pickups.dll
	Successfully loaded component Pickups (1.2.0.2670) with UID cf304faa363dd971
Loading component Recordings.dll
	Successfully loaded component Recordings (1.2.0.2670) with UID 871144d399f5f613
Loading component TextDraws.dll
	Successfully loaded component TextDraws (1.2.0.2670) with UID 9b5dc2b1d15c992a
Loading component TextLabels.dll
	Successfully loaded component TextLabels (1.2.0.2670) with UID a0c57ea80a009742
Loading component Timers.dll
	Successfully loaded component Timers (1.2.0.2670) with UID 2ad8124c5ea257a3
Loading component Unicode.dll
	Successfully loaded component Unicode (1.2.0.2670) with UID 8ffb446f8353922b
Loading component Variables.dll
	Successfully loaded component Variables (1.2.0.2670) with UID 75e121848bc01fa2
Loading component Vehicles.dll
	Successfully loaded component Vehicles (1.2.0.2670) with UID 3f1f62ee9e22ab19
Loaded 25 component(s) from D:\chars.ro\RPG-GM\components
[2024-04-26T22:44:43+0300] [Info]  >> discord-connector: afb7e3b successfully loaded.
[2024-04-26T22:44:43+0300] [Info] [Pawn.RakNet] plugin v1.6.0 loading...
[2024-04-26T22:44:43+0300] [Info] [Pawn.RakNet] 

    | Pawn.RakNet 1.6.0 | open.mp | 2016 - 2023
    |--------------------------------------------
    | Author and maintainer: katursis


    | Compiled: Feb 12 2023 at 16:51:14
    |--------------------------------------------------------------
    | Repository: https://github.com/katursis/Pawn.RakNet/tree/omp
    |--------------------------------------------------------------
    | Wiki: https://github.com/katursis/Pawn.RakNet/wiki

[2024-04-26T22:44:43+0300] [Info] [Pawn.CMD] plugin v3.4.0 loading...
[2024-04-26T22:44:43+0300] [Info] [Pawn.CMD] 

    | Pawn.CMD 3.4.0 | open.mp | 2016 - 2023
    |-----------------------------------------
    | Author and maintainer: katursis


    | Compiled: Feb 12 2023 at 17:25:09
    |----------------------------------------------------------
    | Repository: https://github.com/katursis/Pawn.CMD/tree/omp

[2024-04-26T22:44:43+0300] [Info] Loading plugin: crashdetect
[2024-04-26T22:44:43+0300] [Info]   CrashDetect plugin 4.21
[2024-04-26T22:44:43+0300] [Info] Loading plugin: mysql
[2024-04-26T22:44:43+0300] [Info]  >> plugin.mysql: R41-4 successfully loaded.
[2024-04-26T22:44:43+0300] [Info] Loading plugin: streamer
[2024-04-26T22:44:43+0300] [Info] 

*** Streamer Plugin v2.9.6 by Incognito loaded ***

[2024-04-26T22:44:43+0300] [Info] Loading plugin: sscanf
[2024-04-26T22:44:43+0300] [Info] 
[2024-04-26T22:44:43+0300] [Info]  ===============================
[2024-04-26T22:44:43+0300] [Info] 
[2024-04-26T22:44:43+0300] [Info]       sscanf plugin loaded.     
[2024-04-26T22:44:43+0300] [Info] 
[2024-04-26T22:44:43+0300] [Info]          Version: 2.13.8
[2024-04-26T22:44:43+0300] [Info] 
[2024-04-26T22:44:43+0300] [Info]    (c) 2022 Alex "Y_Less" Cole  
[2024-04-26T22:44:43+0300] [Info] 
[2024-04-26T22:44:43+0300] [Info]  ===============================
[2024-04-26T22:44:43+0300] [Info] 
[2024-04-26T22:44:43+0300] [Info] Loading plugin: samp_bcrypt
[2024-04-26T22:44:43+0300] [Info] [SampBcrypt] [info]: Version: 0.4.1
[2024-04-26T22:44:43+0300] [Info] Loading plugin: TOTP
[2024-04-26T22:44:43+0300] [Info] TOTP plugin v1.0.1 by Games loaded.
[2024-04-26T22:44:43+0300] [Info] Loading plugin: ColAndreas
[2024-04-26T22:44:43+0300] [Info] *********************
[2024-04-26T22:44:43+0300] [Info] ** Created By:     **
[2024-04-26T22:44:43+0300] [Info] ** [uL]Chris42O    **
[2024-04-26T22:44:43+0300] [Info] ** [uL]Slice       **
[2024-04-26T22:44:43+0300] [Info] ** [uL]Pottus      **
[2024-04-26T22:44:43+0300] [Info] *********************
[2024-04-26T22:44:45+0300] [Info] Loaded collision data.
[2024-04-26T22:44:45+0300] [Info] *********************
[2024-04-26T22:44:45+0300] [Info]   ColAndreas Loaded
[2024-04-26T22:44:45+0300] [Info]    v1.4.0
[2024-04-26T22:44:45+0300] [Info] *********************
[2024-04-26T22:44:45+0300] [Info] MapFix by Nexius v4.5.5 loaded (include version).
[2024-04-26T22:44:45+0300] [Info]  
[2024-04-26T22:44:45+0300] [Info]  
[2024-04-26T22:44:45+0300] [Info]          ==============================================================
[2024-04-26T22:44:45+0300] [Info]          |                                                            |
[2024-04-26T22:44:45+0300] [Info]          |                                                            |
[2024-04-26T22:44:45+0300] [Info]          |    YYYYYYY       YYYYYYY    SSSSSSSSSSSSSSS  IIIIIIIIII    |
[2024-04-26T22:44:45+0300] [Info]          |    Y:::::Y       Y:::::Y  SS:::::::::::::::S I::::::::I    |
[2024-04-26T22:44:45+0300] [Info]          |    Y:::::Y       Y:::::Y S:::::SSSSSS::::::S I::::::::I    |
[2024-04-26T22:44:45+0300] [Info]          |    Y::::::Y     Y::::::Y S:::::S     SSSSSSS II::::::II    |
[2024-04-26T22:44:45+0300] [Info]          |    YYY:::::Y   Y:::::YYY S:::::S               I::::I      |
[2024-04-26T22:44:45+0300] [Info]          |       Y:::::Y Y:::::Y    S:::::S               I::::I      |
[2024-04-26T22:44:45+0300] [Info]          |        Y:::::Y:::::Y      S::::SSSS            I::::I      |
[2024-04-26T22:44:45+0300] [Info]          |         Y:::::::::Y        SS::::::SSSSS       I::::I      |
[2024-04-26T22:44:45+0300] [Info]          |          Y:::::::Y           SSS::::::::SS     I::::I      |
[2024-04-26T22:44:45+0300] [Info]          |           Y:::::Y               SSSSSS::::S    I::::I      |
[2024-04-26T22:44:45+0300] [Info]          |           Y:::::Y                    S:::::S   I::::I      |
[2024-04-26T22:44:45+0300] [Info]          |           Y:::::Y                    S:::::S   I::::I      |
[2024-04-26T22:44:45+0300] [Info]          |           Y:::::Y        SSSSSSS     S:::::S II::::::II    |
[2024-04-26T22:44:45+0300] [Info]          |        YYYY:::::YYYY     S::::::SSSSSS:::::S I::::::::I    |
[2024-04-26T22:44:45+0300] [Info]          |        Y:::::::::::Y     S:::::::::::::::SS  I::::::::I    |
[2024-04-26T22:44:45+0300] [Info]          |        YYYYYYYYYYYYY      SSSSSSSSSSSSSSS    IIIIIIIIII    |
[2024-04-26T22:44:45+0300] [Info]          |                                                            |
[2024-04-26T22:44:45+0300] [Info]          |                                                            |
[2024-04-26T22:44:45+0300] [Info]          |                      (c) 2021 MPL v1.1                     |
[2024-04-26T22:44:45+0300] [Info]          |            Alex "Y_Less" Cole and contributors.            |
[2024-04-26T22:44:45+0300] [Info]          |                                                            |
[2024-04-26T22:44:45+0300] [Info]          |                                                            |
[2024-04-26T22:44:45+0300] [Info]          ==============================================================
[2024-04-26T22:44:45+0300] [Info]  
[2024-04-26T22:44:45+0300] [Info]  
[2024-04-26T22:44:45+0300] [Info]  ========================================== 
[2024-04-26T22:44:45+0300] [Info]  |                                        | 
[2024-04-26T22:44:45+0300] [Info]  |   Generating code, this may take a     | 
[2024-04-26T22:44:45+0300] [Info]  |  little bit of time.  Note that this   | 
[2024-04-26T22:44:45+0300] [Info]  |  code generation works best with the   | 
[2024-04-26T22:44:45+0300] [Info]  |     JIT plugin, which you are not      | 
[2024-04-26T22:44:45+0300] [Info]  |     currently using.  Get it here:     | 
[2024-04-26T22:44:45+0300] [Info]  |                                        | 
[2024-04-26T22:44:45+0300] [Info]  |       https://git.io/jit-plugin        | 
[2024-04-26T22:44:45+0300] [Info]  |                                        | 
[2024-04-26T22:44:45+0300] [Info]  |             Please wait...             | 
[2024-04-26T22:44:46+0300] [Info]  |                                        | 
[2024-04-26T22:44:46+0300] [Info]  |             Done in 936ms!             | 
[2024-04-26T22:44:46+0300] [Info]  |                                        | 
[2024-04-26T22:44:46+0300] [Info]  ========================================== 
[2024-04-26T22:44:46+0300] [Info] *** YSI Info: Script ID: 1
[2024-04-26T22:44:46+0300] [Info] Filterscript '../scriptfiles/ysi_aux_runtime' loaded.
[2024-04-26T22:44:46+0300] [Info]  |                                        | 
[2024-04-26T22:44:46+0300] [Info]  | Server:      open.mp 1.2.0.2670 (W)    | 
[2024-04-26T22:44:46+0300] [Info]  | Started:     26 Apr 2024 - 22:44:45    | 
[2024-04-26T22:44:46+0300] [Info]  |                                        | 
[2024-04-26T22:44:46+0300] [Info]  | Compiler:    3.10.11 (Windows)         | 
[2024-04-26T22:44:46+0300] [Info]  | Includes:    open.mp v037030           | 
[2024-04-26T22:44:46+0300] [Info]  | Codepage:    <none>                    | 
[2024-04-26T22:44:46+0300] [Info]  | Built:       26 Apr 2024 - 22:44:36    | 
[2024-04-26T22:44:46+0300] [Info]  |                                        | 
[2024-04-26T22:44:46+0300] [Info]  | YSI:         v05.10.0006               | 
[2024-04-26T22:44:46+0300] [Info]  | Master:      1                         | 
[2024-04-26T22:44:46+0300] [Info]  |                                        | 
[2024-04-26T22:44:46+0300] [Info]  | JIT:         <none>                    | 
[2024-04-26T22:44:46+0300] [Info]  | Crashdetect: <found>                   | 
[2024-04-26T22:44:46+0300] [Info]  |                                        | 
[2024-04-26T22:44:46+0300] [Info]  ========================================== 
[2024-04-26T22:44:46+0300] [Info]  
[2024-04-26T22:44:46+0300] [Info] [debug] Long callback execution detected (hang or performance issue)
[2024-04-26T22:44:46+0300] [Info] [debug] AMX backtrace:
[2024-04-26T22:44:46+0300] [Info] [debug] #0 0003b7a4 in ?? (0, 35, 21243744, 1598650688) in <unknown>
[2024-04-26T22:44:46+0300] [Info] [debug] #1 0003bbfc in ?? (0, 0, 21243776, 1598650688) in <unknown>
[2024-04-26T22:44:46+0300] [Info] [debug] #2 0003fea8 in ?? () in <unknown>
[2024-04-26T22:44:46+0300] [Info] [debug] #3 0003898c in ?? () in <unknown>
[2024-04-26T22:44:46+0300] [Info] [debug] #4 000105b8 in ?? () in <unknown>
[2024-04-26T22:44:46+0300] [Info] [debug] #5 0000f358 in ?? () in <unknown>
[2024-04-26T22:44:46+0300] [Info] [debug] #6 0000eaa0 in public SSCANF_OnGameModeInit () in <unknown>
[2024-04-26T22:44:46+0300] [Info] [debug] #7 native CallLocalFunction () in Pawn.dll
[2024-04-26T22:44:46+0300] [Info] [debug] #8 000018a4 in public WC_OnPlayerDamageDone () in <unknown>
[2024-04-26T22:44:46+0300] [Info]  
[2024-04-26T22:44:46+0300] [Info] Baza de date s-a conectat cu succes.
[2024-04-26T22:44:46+0300] [Info] [debug] Long callback execution detected (hang or performance issue)
[2024-04-26T22:44:46+0300] [Info] [debug] AMX backtrace:
[2024-04-26T22:44:46+0300] [Info] [debug] #0 00074e58 in ?? (1, 6803520, 3727096) in <unknown>
[2024-04-26T22:44:46+0300] [Info] [debug] #1 00199dcc in ?? () in <unknown>
[2024-04-26T22:44:46+0300] [Info] [debug] #2 001cbb68 in ?? () in <unknown>
[2024-04-26T22:44:46+0300] [Info] [debug] #3 0008e2c4 in ?? () in <unknown>
[2024-04-26T22:44:46+0300] [Info] [debug] #4 000871ec in ?? () in <unknown>
[2024-04-26T22:44:46+0300] [Info] [debug] #5 000505b0 in ?? () in <unknown>
[2024-04-26T22:44:46+0300] [Info] [debug] #6 00050bb4 in public OnScriptInit@E () in <unknown>
[2024-04-26T22:44:46+0300] [Info] [debug] #7 native CallLocalFunction () in Pawn.dll
[2024-04-26T22:44:46+0300] [Info] [debug] #8 00038a60 in ?? () in <unknown>
[2024-04-26T22:44:46+0300] [Info] [debug] #9 000105b8 in ?? () in <unknown>
[2024-04-26T22:44:46+0300] [Info] [debug] #10 0000f358 in ?? () in <unknown>
[2024-04-26T22:44:46+0300] [Info] [debug] #11 0000eaa0 in public SSCANF_OnGameModeInit () in <unknown>
[2024-04-26T22:44:46+0300] [Info] [debug] #12 native CallLocalFunction () in Pawn.dll
[2024-04-26T22:44:46+0300] [Info] [debug] #13 000018a4 in public WC_OnPlayerDamageDone () in <unknown>
[2024-04-26T22:44:46+0300] [Info] Setting server password to: "1"
[2024-04-26T22:44:46+0300] [Info] Legacy Network started on port 7777
[2024-04-26T22:45:15+0300] [Info] [connection] incoming connection: 100.124.213.150:63473 id: 0
[2024-04-26T22:45:15+0300] [Info] [join] xPaulfgg has joined the server (0:100.124.213.150)
[2024-04-26T22:45:18+0300] [Info] [connection] incoming connection: 100.87.141.14:60476 id: 1
[2024-04-26T22:45:18+0300] [Info] [join] ViperaSSS has joined the server (1:100.87.141.14)
[2024-04-26T22:45:23+0300] [Error] Function not registered: bcrypt_is_equal
[2024-04-26T22:45:23+0300] [Info] [debug] Run time error 19: "File or function is not found"
[2024-04-26T22:45:23+0300] [Info] [debug]  bcrypt_is_equal
[2024-04-26T22:45:23+0300] [Error] File or function is not found
[2024-04-26T22:45:23+0300] [Info] Filterscript '../scriptfiles/ysi_aux_runtime' reloaded.
[2024-04-26T22:45:23+0300] [Info] Filterscript '../scriptfiles/ysi_aux_runtime' load failed.
[2024-04-26T22:45:23+0300] [Error] Function not registered: bcrypt_delete
[2024-04-26T22:45:23+0300] [Info] [debug] Run time error 19: "File or function is not found"
[2024-04-26T22:45:23+0300] [Info] [debug]  bcrypt_delete
[2024-04-26T22:45:23+0300] [Error] File or function is not found
[2024-04-26T22:45:23+0300] [Info] Filterscript '../scriptfiles/ysi_aux_runtime' reloaded.
[2024-04-26T22:45:23+0300] [Info] Filterscript '../scriptfiles/ysi_aux_runtime' load failed.
[2024-04-26T22:45:23+0300] [Info] Filterscript '../scriptfiles/ysi_aux_runtime' reloaded.
[2024-04-26T22:45:23+0300] [Info] Filterscript '../scriptfiles/ysi_aux_runtime' reloaded.
[2024-04-26T22:46:15+0300] [Info] [part] xPaulfgg has left the server (0:1)

I had the previous YSI version, and I decied to update to the last one. I updated to the latest bcrypt version, and then I updated the YSI v5.10.0006. But these errors showed up, and then bcrypt became unstable.

@Y-Less
Copy link
Member

Y-Less commented Apr 28, 2024

OK, so a function not being found is fine - that's just YSI determining which BCrypt plugin and version is being used (which I should maybe make clearer in the messages). However, I tested and confirmed the new version with BCrypt 0.4.1 so I'm not sure what is going on there. What do you mean "unstable"?

@lPauI
Copy link
Author

lPauI commented Apr 28, 2024

I mean when I try to use the BCrypt_CheckInline the server is freezing

@Y-Less
Copy link
Member

Y-Less commented Apr 28, 2024

Could you post some code please? It worked here.

@lPauI
Copy link
Author

lPauI commented Apr 28, 2024

OnPlayerLogin(const playerid, const password[], const racecheck)
{
	inline const LoadPassword()
	{
		if(racecheck != MySQLRaceCheck[playerid])
		{
			SendClientMessage(playerid, COLOR_SERVER, "SERVER >>{FFFFFF} Server-ul este suprasolicitat. Revino mai tarziu.");

			KickEx(playerid);
			return 1;
		}

		new dbpass[BCRYPT_HASH_LENGTH], pass[BCRYPT_HASH_LENGTH];

		strcpy(pass, password, sizeof pass);

		cache_get_value_name(0, "Password", dbpass);

		cache_get_value_name_int(0, "Admin", PlayerInfo[playerid][pAdmin]);

		new
			google[16 + 1];

		cache_get_value_name(0, "Google", google);

		inline const CheckPassword(bool:same)
		{
			switch(same)
			{
				case false:
				{
					SetPVarInt(playerid, "LoginTries", GetPVarInt(playerid, "LoginTries") - 1);

					if(GetPVarInt(playerid, "LoginTries") == -3)
					{
						KickEx(playerid);
						return 1;
					}

					va_SendClientMessage(playerid, COLOR_WARNING, "Parola incorecta. Mai ai %d incercari ramase.", GetPVarInt(playerid, "LoginTries") + 3);

					format(gString, 100, "Bun venit, %s!\nPune-ti parola mai jos pentru a te loga!", PlayerInfo[playerid][pUsername]);
					Dialog_ShowCallback(playerid, using public DIALOG_LOGIN<iiiis>, DIALOG_STYLE_PASSWORD, "Login:", gString, "Login", "Quit");
				}

				case true:
				{
					#if defined GOOGLE_AUTH
						if(PlayerInfo[playerid][pAdmin] > 6)
						{
							if(google[0] == '0')
							{
								new
									gkey[16 + 1];

								for(new i = 0; i < sizeof gkey; i ++) gkey[i] = 65 + random(25 + 1);

								format(gkey, sizeof gkey, gkey);

								mysql_format(SQL, gString, sizeof gString, "UPDATE `users` SET `Google` = '%e' WHERE `Name` = '%e'", gkey, PlayerInfo[playerid][pUsername]);
								mysql_tquery(SQL, gString, "", "");

								KickEx(playerid);
								return 1;
							}

							inline const DIALOG_GOOGLE(response, listitem, string:inputtext[])
							{
								#pragma unused listitem, response

								new
									const code = GoogleAuthenticatorCode(google, gettime());

								if(strval(inputtext) == code)
								{
									mysql_format(SQL, gString, sizeof gString, "SELECT * FROM `users` WHERE `Name` = '%e'", PlayerInfo[playerid][pUsername]);
									mysql_tquery(SQL, gString, "LogPlayer", "dd", playerid, MySQLRaceCheck[playerid]);
								}

								else
								{
									KickEx(playerid);
									return 1;
								}
							}

							Dialog_ShowCallback(playerid, using inline DIALOG_GOOGLE, DIALOG_STYLE_INPUT, "Google:", "Introdu mai jos codul din aplicatia google:", "Login", "Quit");
							return 1;
						}
					#endif

					mysql_format(SQL, gString, sizeof gString, "SELECT * FROM `users` WHERE `Name` = '%e'", PlayerInfo[playerid][pUsername]);
					mysql_tquery(SQL, gString, "LogPlayer", "dd", playerid, MySQLRaceCheck[playerid]);
				}
			}
		}

		BCrypt_CheckInline(pass, dbpass, using inline CheckPassword);
	}

	MySQL_TQueryInline(SQL, using inline LoadPassword, "SELECT * FROM `users` WHERE `Name` = '%e'", PlayerInfo[playerid][pUsername]);
	return 1;
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants