open.mp icon indicating copy to clipboard operation
open.mp copied to clipboard

rcon password when the default password not changed, the timer will no longer working

Open ohmypxl opened this issue 2 years ago • 0 comments

Describe the bug When you downloading the open.mp package and start running it, you'll see that there is an error that tells you to change rcon password, but unlike SA:MP that is closing the program (to indicate something wrong going on), open.mp seem to disable the timer mechanism, making the timer no longer to function normally.

To Reproduce Steps to reproduce the behavior:

  1. Download open.mp
  2. Make new .pwn inside gamemodes folder, and paste this:
#include <open.mp>

forward OnSomething();
public OnSomething()
{
    print("Will not be called");
}

main()
{
    print("Hello World");
    SetTimer("OnSomething", 1000, false);
}
  1. Compile the script, and run it
  2. See the behaviour

Expected behavior The legacy plugin, gamemode, filterscript shouldn't be loaded completely if the rcon default password needs to be enforced for users to change it or force close the application like sa-mp does, but i think you can just check if the rcon feature itself is disabled or not to add extra measures to this.

Screenshots and/or logs

Without changing the rcon password:

Loaded 22 component(s) from /home/sui/Documents/pawn-tutorial/components
[2023-11-24T16:31:45+0700] [Error] Your rcon password must be changed from the default password, please change it.
[2023-11-24T16:31:45+0700] [Info] Hallo World

With changed rcon password:

Loaded 22 component(s) from /home/sui/Documents/ysi-tutorial/components
[2023-11-26T09:37:11+0700] [Info] Loading plugin: crashdetect
[2023-11-26T09:37:11+0700] [Info]   CrashDetect plugin 4.21
[2023-11-26T09:37:11+0700] [Info] Hallo World
[2023-11-26T09:37:12+0700] [Info] Will not be called

Release version Put the release version of the broken build here. https://github.com/openmultiplayer/open.mp/releases/tag/v1.1.0.2612

ohmypxl avatar Nov 26 '23 02:11 ohmypxl