#1 07-10-2013 17:00

Rapper_skull
Registered: 07-10-2013
Posts: 2

Exporting variables from CLEO script

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

#2 08-10-2013 14:53

Deji
From: UK
Registered: 09-11-2008
Posts: 189
Website

Re: Exporting variables from CLEO script

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

#3 08-10-2013 14:58

Rapper_skull
Registered: 07-10-2013
Posts: 2

Re: Exporting variables from CLEO script

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

#4 06-01-2014 07:41

OpcodeXe
Registered: 06-01-2014
Posts: 2

Re: Exporting variables from CLEO script

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

Board footer

Powered by FluxBB