You are not logged in.
Pages: 1
Hello, is there a way to export variables of cleo scripts to an external program?
Let's say I have a cleo script that stores the player position in a variable. Is it possible for another program running in Windows to read that variable for further uses?
Offline
You could use files or if the other program is injected into the memory, allocated memory (or code data). There's no dynamic link library style exporting, though...
Offline
So I must inject my program into the game just like CLEO dose?
Is there a simple way or at least documentation on how CLEO is loaded?
Offline
Just do this:
Actor.StorePos($PLAYER_ACTOR, 0@, 1@, 2@)
0AF3: write_float 1@ to_ini_file "cleo\config.ini" section "DATA" key "X"
0AF3: write_float 2@ to_ini_file "cleo\config.ini" section "DATA" key "Y"
0AF3: write_float 3@ to_ini_file "cleo\config.ini" section "DATA" key "Z"
Write your positions into a .ini file.
Then tell your program to read that file.
Why do that hard thing when you can do it easly?
Last edited by OpcodeXe (06-01-2014 07:42)
Offline
Pages: 1