Quantcast [WIP] Communicate with external program - Demo with playlist player - ESOUI
Thread Tools Display Modes
03/27/15, 08:37 AM   #1
04348
Join Date: Feb 2015
Posts: 4
[WIP] Communicate with external program - Demo with playlist player

Hi !
Recently, I've search a way to play custom soundtrack in ESO (The original is fine, I just want to add some track ). But I quickly realised that it was impossible with this API... So I decided to use a very VERY awfull and uncertain way, but finally I got something working

The program is in two parts :
The ESO addon, which read the current map num, convert it to a binary array, and then use ten pixels (9 for data + one for read the correct color) in the left up corner (so 0*0 to 9*0) to display this number.
And the win program, which read the pixels, convert it to binary and to decimal, and then do anything with it

Nevertheless, I'm a very noob with the ESO API, and the addon part is even more ugly than the program :3



The terrible addon source : http://pastebin.com/haP5EtQL
(For battle and boss Battle, atm I use key to bind , it's not automatic ^^" )
And the certainly non-less terrible C++ program source : http://pastebin.com/s1Sas1n7 (Using Fmodex for play sounds)

The win program can certainly work for anyone, but for the addon I'm very doubtful about that, since I don't test it with other resolution than 1080*1920 ^^'

If someone want to try this draft, here's a zip : http://www.mediafire.com/download/i9...x4/ESO+CMP.zip
But It's certainly very buggy at the moment
  Reply With Quote
03/27/15, 08:53 AM   #2
Ayantir
 
Ayantir's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2014
Posts: 1,022
The only way to read data output by eso without a reloadui is to read memory

I don't think ZOS will like to see their executable memory readen
It's like that we wrote bots and cheating programs

I strongly suggest you to do not talk too much of your project (especially here, there are zos devs reading us) if you don't want to have your eso account ban.

It's not an offense, playing music is good, I would LOVE to play skyrim songs, music, etc.
But you actually must do some tricks that zos won't clearly like to see development.

I really think our limit is "the public LUA" and nothing more
ZOS don't say anything for people who use a custom launcher because it dosn't modify the eso.exe itself.
They don't say anything for RU project or cervanteso which add a custom dat files

But to trying to play with protected LUA functions, read eso.exe memory, can make risk some problems with your ingame account I think.

Anyway, have fun with this
__________________
Obsessive Compulsive Coder

My little french Guild: Cercle de l'Eveil
  Reply With Quote
03/27/15, 11:23 AM   #3
Baertram
 
Baertram's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2014
Posts: 1,741
If you do not want to read the eso.exe memory/screen you could do a workaround maybe:

Save a screenshot as some trigger executes (may freeze the screen for a few milli seconds ) and then let your external program check the screenshot folder for new files, read the file's pixels, delete the screenshot afterwards.

maybe this can work without any1 getting "angry" with ZOS :-)
  Reply With Quote
03/27/15, 01:20 PM   #4
merlight
AddOn Author - Click to view addons
Join Date: Jul 2014
Posts: 645
Originally Posted by Baertram View Post
If you do not want to read the eso.exe memory/screen you could do a workaround maybe:

Save a screenshot as some trigger executes (may freeze the screen for a few milli seconds ) and then let your external program check the screenshot folder for new files, read the file's pixels, delete the screenshot afterwards.
That's just a more clunky way of reading the frame buffer IMO the difference between the OP and directly reading process memory is purely technical.
  Reply With Quote
03/28/15, 03:47 AM   #5
Fyrakin
 
Fyrakin's Avatar
AddOn Author - Click to view addons
Join Date: Apr 2014
Posts: 129
Any 3rd party program reading process memory poses a serious security risk. I wouldn't reccomend anyone using that kind of solution.
  Reply With Quote
03/28/15, 04:55 AM   #6
04348
Join Date: Feb 2015
Posts: 4
It don't read ESO memory at all x)
It get windows's display pixel, it's exactly like take a screenshot and read it ^^'

And to be sure It's leggit, I don't even interact in any way with the window of the game, just Windows, so it work only in windowed.
I only use https://msdn.microsoft.com/en-us/lib...or=-2147217396

Injector's like SweetFX's one do a lot more, and nobody get ban for use it :x

Last edited by 04348 : 03/28/15 at 05:17 AM.
  Reply With Quote
03/28/15, 10:28 AM   #7
Ayantir
 
Ayantir's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2014
Posts: 1,022
I'm a way too old for that kind of stuff
__________________
Obsessive Compulsive Coder

My little french Guild: Cercle de l'Eveil
  Reply With Quote

ESOUI » AddOns » Alpha/Beta AddOns » [WIP] Communicate with external program - Demo with playlist player

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off