cleolibrary / CLEO-Redux

Experimental JavaScript runtime for GTA 3D era games/GTA IV/Bully
https://re.cleo.li
Other
213 stars 20 forks source link

showTextBox doesn't work #38

Closed yuksel-kadir closed 2 years ago

yuksel-kadir commented 2 years ago

When I use showTextBox with a custom string nothing happens in the game.

var VK_F5 = 116;
var player = new Player(0);
while (true) {
  wait(250);
  if (Pad.IsKeyPressed(VK_F5) && player.isPlaying()) 
  {   
    showTextBox("test");   
  }
}

cleo_redux.log

15:45:34 [INFO] CLEO Redux 0.9.1 (x64)
15:45:34 [INFO] Copyright (c) 2021-2022, Seemann. Available under the license agreement at https://re.cleo.li/LICENSE.txt
15:45:34 [INFO] Visit re.cleo.li for news and updates.
15:45:34 [INFO] Host identified as Vice City: The Definitive Edition (1.0.0.14718)
15:45:34 [INFO] Image base address 0x7ff741120000
15:45:34 [INFO] CleoConfig { log_opcodes: true, allow_cs: true, allow_js: true, check_updates: true, allow_fxt: true, allow_js_runtime_extensions: false, permission_level: Lax }
15:45:34 [WARN] CLEO Redux does not support CS scripts in Vice City: The Definitive Edition
15:45:34 [INFO] Registering custom commands
15:45:34 [INFO] Registering unsafe command 0C06 WRITE_MEMORY with required permission mem
15:45:34 [INFO] Registering unsafe command 0C07 READ_MEMORY with required permission mem
15:45:34 [INFO] Registering unsafe command 0C08 CALL_FUNCTION with required permission mem
15:45:34 [INFO] Registering unsafe command 0C09 CALL_FUNCTION_RETURN with required permission mem
15:45:34 [INFO] Registering command 0C00 IS_KEY_PRESSED
15:45:34 [INFO] SDK version 1
15:45:34 [INFO] Loading plugins from F:\Grand Theft Auto - Vice City\Gameface\Binaries\Win64\CLEO\CLEO_PLUGINS
15:45:34 [INFO] Meta version 0.213
15:45:34 [WARN] This version of CLEO Redux does not support custom opcodes in main.scm in Vice City: The Definitive Edition
15:45:52 [INFO] New event received: "init scripts"
15:45:52 [INFO] Started scanning the CLEO directory
15:45:52 [INFO] Found JS script F:\Grand Theft Auto - Vice City\Gameface\Binaries\Win64\CLEO\VehicleSpawnerVC.js
15:45:52 [INFO] Successfully loaded VehicleSpawnerVC.js and created a script with the name "Vehicle"
15:45:52 [INFO] Found JS script F:\Grand Theft Auto - Vice City\Gameface\Binaries\Win64\CLEO\aezakmiscript.js
15:45:52 [INFO] Successfully loaded aezakmiscript.js and created a script with the name "aezakmi"
15:45:52 [INFO] Found JS script F:\Grand Theft Auto - Vice City\Gameface\Binaries\Win64\CLEO\enums.js
15:45:52 [INFO] Successfully loaded enums.js and created a script with the name "enums"
15:45:52 [INFO] ["Vehicle"] wait(0)
15:45:52 [INFO] ["aezakmi"] wait(0)
15:45:52 [INFO] ["enums"] wait(0)
15:45:52 [INFO] ["Vehicle"] wait(250)
15:45:52 [INFO] ["aezakmi"] wait(250)
15:45:52 [INFO] script "enums" has been disposed
15:45:52 [INFO] ["Vehicle"] 000002: 0C00
15:45:52 [INFO] ["Vehicle"] 000002: 01F5
15:45:52 [INFO] ["Vehicle"] 000002: 0448
15:45:52 [INFO] ["Vehicle"] 000002: 0C00
15:45:52 [INFO] ["Vehicle"] 000002: 0C00
15:45:52 [INFO] ["Vehicle"] wait(250)
15:45:52 [INFO] ["aezakmi"] 000002: 0C00
15:45:52 [INFO] ["aezakmi"] wait(250)
15:45:53 [INFO] ["Vehicle"] 000002: 0C00
15:45:53 [INFO] ["Vehicle"] 000002: 01F5
15:45:53 [INFO] ["Vehicle"] 000002: 0448
15:45:53 [INFO] ["Vehicle"] 000002: 0C00
15:45:53 [INFO] ["Vehicle"] 000002: 0C00
15:45:53 [INFO] ["Vehicle"] wait(250)
15:45:53 [INFO] ["aezakmi"] 000002: 0C00
15:45:53 [INFO] ["aezakmi"] wait(250)
15:45:53 [INFO] ["Vehicle"] 000002: 0C00
15:45:53 [INFO] ["Vehicle"] 000002: 01F5
15:45:53 [INFO] ["Vehicle"] 000002: 0448
15:45:53 [INFO] ["Vehicle"] 000002: 0C00
15:45:53 [INFO] ["Vehicle"] 000002: 0C00
15:45:53 [INFO] ["Vehicle"] wait(250)
15:45:53 [INFO] ["aezakmi"] 000002: 0C00
15:45:53 [INFO] ["aezakmi"] wait(250)
15:45:53 [INFO] ["Vehicle"] 000002: 0C00
15:45:53 [INFO] ["Vehicle"] 000002: 01F5
15:45:53 [INFO] ["Vehicle"] 000002: 0448
15:45:53 [INFO] ["Vehicle"] 000002: 0C00
15:45:53 [INFO] ["Vehicle"] 000002: 0C00
15:45:53 [INFO] ["Vehicle"] wait(250)
15:45:53 [INFO] ["aezakmi"] 000002: 0C00
15:45:53 [INFO] ["aezakmi"] wait(250)
15:45:53 [INFO] ["Vehicle"] 000002: 0C00
15:45:53 [INFO] ["Vehicle"] 000002: 01F5
15:45:53 [INFO] ["Vehicle"] 000002: 0448
15:45:53 [INFO] ["Vehicle"] 000002: 0C00
15:45:53 [INFO] ["Vehicle"] 000002: 0C00
15:45:53 [INFO] ["Vehicle"] wait(250)
15:45:53 [INFO] ["aezakmi"] 000002: 0C00
15:45:53 [INFO] ["aezakmi"] wait(250)
15:45:54 [INFO] ["Vehicle"] 000002: 0C00
15:45:54 [INFO] ["Vehicle"] 000002: 01F5
15:45:54 [INFO] ["Vehicle"] 000002: 0448
15:45:54 [INFO] ["Vehicle"] 000002: 0C00
15:45:54 [INFO] ["Vehicle"] 000002: 0C00
15:45:54 [INFO] ["Vehicle"] wait(250)
15:45:54 [INFO] ["aezakmi"] 000002: 0C00
15:45:54 [INFO] ["aezakmi"] wait(250)
15:45:54 [INFO] ["Vehicle"] 000002: 0C00
15:45:54 [INFO] ["Vehicle"] 000002: 01F5
15:45:54 [INFO] ["Vehicle"] 000002: 0448
15:45:54 [INFO] ["Vehicle"] 000002: 0C00
15:45:54 [INFO] ["Vehicle"] 000002: 0C00
15:45:54 [INFO] ["Vehicle"] wait(250)
15:45:54 [INFO] ["aezakmi"] 000002: 0C00
15:45:54 [INFO] ["aezakmi"] wait(250)
15:45:54 [INFO] ["Vehicle"] 000002: 0C00
15:45:54 [INFO] ["Vehicle"] 000002: 01F5
15:45:54 [INFO] ["Vehicle"] 000002: 0448
15:45:54 [INFO] ["Vehicle"] 000002: 0C00
15:45:54 [INFO] ["Vehicle"] 000002: 0C00
15:45:54 [INFO] ["Vehicle"] wait(250)
15:45:54 [INFO] ["aezakmi"] 000002: 0C00
15:45:54 [INFO] ["aezakmi"] 000002: 0256
15:45:54 [INFO] ["aezakmi"] true
15:45:54 [INFO] ["aezakmi"] showTextBox(test)
15:45:54 [INFO] ["aezakmi"] wait(1000)
15:45:54 [INFO] ["Vehicle"] 000002: 0C00
15:45:54 [INFO] ["Vehicle"] 000002: 01F5
15:45:54 [INFO] ["Vehicle"] 000002: 0448
15:45:54 [INFO] ["Vehicle"] 000002: 0C00
15:45:54 [INFO] ["Vehicle"] 000002: 0C00
15:45:54 [INFO] ["Vehicle"] wait(250)
15:45:55 [INFO] ["Vehicle"] 000002: 0C00
15:45:55 [INFO] ["Vehicle"] 000002: 01F5
15:45:55 [INFO] ["Vehicle"] 000002: 0448
15:45:55 [INFO] ["Vehicle"] 000002: 0C00
15:45:55 [INFO] ["Vehicle"] 000002: 0C00
15:45:55 [INFO] ["Vehicle"] wait(250)
15:45:55 [INFO] ["Vehicle"] 000002: 0C00
15:45:55 [INFO] ["Vehicle"] 000002: 01F5
15:45:55 [INFO] ["Vehicle"] 000002: 0448
15:45:55 [INFO] ["Vehicle"] 000002: 0C00
15:45:55 [INFO] ["Vehicle"] 000002: 0C00
15:45:55 [INFO] ["Vehicle"] wait(250)
15:45:55 [INFO] ["Vehicle"] 000002: 0C00
15:45:55 [INFO] ["Vehicle"] 000002: 01F5
15:45:55 [INFO] ["Vehicle"] 000002: 0448
15:45:55 [INFO] ["Vehicle"] 000002: 0C00
15:45:55 [INFO] ["Vehicle"] 000002: 0C00
15:45:55 [INFO] ["Vehicle"] wait(250)
15:45:55 [INFO] ["aezakmi"] wait(250)
15:45:55 [INFO] ["Vehicle"] 000002: 0C00
15:45:55 [INFO] ["Vehicle"] 000002: 01F5
15:45:55 [INFO] ["Vehicle"] 000002: 0448
15:45:55 [INFO] ["Vehicle"] 000002: 0C00
15:45:55 [INFO] ["Vehicle"] 000002: 0C00
15:45:55 [INFO] ["Vehicle"] wait(250)
15:45:55 [INFO] ["aezakmi"] 000002: 0C00
15:45:55 [INFO] ["aezakmi"] wait(250)
15:45:56 [INFO] ["Vehicle"] 000002: 0C00
15:45:56 [INFO] ["Vehicle"] 000002: 01F5
15:45:56 [INFO] ["Vehicle"] 000002: 0448
15:45:56 [INFO] ["Vehicle"] 000002: 0C00
15:45:56 [INFO] ["Vehicle"] 000002: 0C00
15:45:56 [INFO] ["Vehicle"] wait(250)
15:45:56 [INFO] ["aezakmi"] 000002: 0C00
15:45:56 [INFO] ["aezakmi"] wait(250)
15:45:56 [INFO] ["Vehicle"] 000002: 0C00
15:45:56 [INFO] ["Vehicle"] 000002: 01F5
15:45:56 [INFO] ["Vehicle"] 000002: 0448
15:45:56 [INFO] ["Vehicle"] 000002: 0C00
15:45:56 [INFO] ["Vehicle"] 000002: 0C00
15:45:56 [INFO] ["Vehicle"] wait(250)
15:45:56 [INFO] ["aezakmi"] 000002: 0C00
15:45:56 [INFO] ["aezakmi"] wait(250)
15:45:56 [INFO] ["Vehicle"] 000002: 0C00
15:45:56 [INFO] ["Vehicle"] 000002: 01F5
15:45:56 [INFO] ["Vehicle"] 000002: 0448
15:45:56 [INFO] ["Vehicle"] 000002: 0C00
15:45:56 [INFO] ["Vehicle"] 000002: 0C00
15:45:56 [INFO] ["Vehicle"] wait(250)
15:45:56 [INFO] ["aezakmi"] 000002: 0C00
15:45:56 [INFO] ["aezakmi"] wait(250)
15:45:56 [INFO] ["Vehicle"] 000002: 0C00
15:45:56 [INFO] ["Vehicle"] 000002: 01F5
15:45:56 [INFO] ["Vehicle"] 000002: 0448
15:45:56 [INFO] ["Vehicle"] 000002: 0C00
15:45:56 [INFO] ["Vehicle"] 000002: 0C00
15:45:56 [INFO] ["Vehicle"] wait(250)
15:45:56 [INFO] ["aezakmi"] 000002: 0C00
15:45:56 [INFO] ["aezakmi"] wait(250)
15:45:57 [INFO] ["Vehicle"] 000002: 0C00
15:45:57 [INFO] ["Vehicle"] 000002: 01F5
15:45:57 [INFO] ["Vehicle"] 000002: 0448
15:45:57 [INFO] ["Vehicle"] 000002: 0C00
15:45:57 [INFO] ["Vehicle"] 000002: 0C00
15:45:57 [INFO] ["Vehicle"] wait(250)
15:45:57 [INFO] ["aezakmi"] 000002: 0C00
15:45:57 [INFO] ["aezakmi"] wait(250)
15:45:57 [INFO] ["Vehicle"] 000002: 0C00
15:45:57 [INFO] ["Vehicle"] 000002: 01F5
15:45:57 [INFO] ["Vehicle"] 000002: 0448
15:45:57 [INFO] ["Vehicle"] 000002: 0C00
15:45:57 [INFO] ["Vehicle"] 000002: 0C00
15:45:57 [INFO] ["Vehicle"] wait(250)
15:45:57 [INFO] ["aezakmi"] 000002: 0C00
15:45:57 [INFO] ["aezakmi"] wait(250)
x87 commented 2 years ago

This is expected for VC DE

https://github.com/cleolibrary/CLEO-Redux/wiki/Feature-Support-Matrix