Abandoned [RELEASE] Trade Computer Extension

Status
Thread Closed: Not open for further replies.
Please change the position for the Trade Scout panel at the panel.mdb database at your DB folder (Scout_X or Scout_Y) to fix off-screen panels.

Thanks for your help fixing this issue.

Update (V1.34) released:
- Final panel positioning fix
- Language database added. First step in translating TCE to german and frensh: All commodities and categories are translated into the OCR language selected at Pre-Start or Options panel.

no worries pleased to help and thanks for the panel position fix, i accidentally set it too 6001 lol

will look at your next update now, good work much appreciated.
 
Yeah, saw it too, next update will fix this.

Cool ;)

A small suggestion too which IMO would be handy...
If you move the options button into the control menu (seems fitting) you could put a new button on the main bar for [Ship Log] which shows and hides the ship logbook panel.
This would save having to go into options to show it again once hidden ;)
 
Cool ;)

A small suggestion too which IMO would be handy...
If you move the options button into the control menu (seems fitting) you could put a new button on the main bar for [Ship Log] which shows and hides the ship logbook panel.
This would save having to go into options to show it again once hidden ;)

Good idea, will do that.

Update (V1.34a) released:
- Code optimizations to all sort routines
- Fix for Find Commodity
- Fix reset language bug
- New OCR debug option (Option panel): If OCR Scan didnt work, activate it and now you will see the command window, when click on START OCR SCAN.
 
- New OCR debug option (Option panel): If OCR Scan didnt work, activate it and now you will see the command window, when click on START OCR SCAN.

Thank you for the Debug Mode.

See below the output that it generates. At a quick glance, it looks like it is trying to use EliteOCR.exe instead of EliteOCRcmd.exe from the \bin sub-directory.

Also, I noticed that it creates a Screenshot.bmp in the TCE\OCR_BMP directory. It does not create anything in the OCR_EXPORT directory.


>>>Debug Output<<<

Usage: EliteOCR -i input [-o output] [-s system] [-l lang]

-i --input: path to an image file
-o --output: defines where results should be written, default output.xml
-s --system: overrides the system name from log files
-l --lang: OCR language, must be one from this list: eng, deu, fra
-h --help: shows this help page
-v --version: version info

Example: EliteOCR.exe -i Screenshot_0014.bmp -o result.xml -s "Test System" -l f
ra


D:\Program Files (x86)\Frontier\EDLaunch\TCE\TCE\EliteOCR>


I tried to run EliteOCRcmd manually and it seems to have worked, but I cannot find where it put the results.xml file




D:\Program Files (x86)\Frontier\EDLaunch\TCE\TCE\EliteOCR\bin>eliteocrcmd -i "D:
\Program Files (x86)\Frontier\EDLaunch\TCE\TCE\OCR_BMP\screenshot.bmp" -out resu
lt.xml -s "Test System" -l eng
[==========]
D:\Program Files (x86)\Frontier\EDLaunch\TCE\TCE\EliteOCR\bin>dir re*
Volume in drive D has no label.
Volume Serial Number is 662C-8302

Directory of D:\Program Files (x86)\Frontier\EDLaunch\TCE\TCE\EliteOCR\bin

02/07/2015 05:38 PM <DIR> requests
0 File(s) 0 bytes
1 Dir(s) 45,826,899,968 bytes free

D:\Program Files (x86)\Frontier\EDLaunch\TCE\TCE\EliteOCR\bin>cd ....

D:\Program Files (x86)\Frontier\EDLaunch\TCE\TCE\EliteOCR\bin>cd ..\..

D:\Program Files (x86)\Frontier\EDLaunch\TCE\TCE>cd ocr_bmp

D:\Program Files (x86)\Frontier\EDLaunch\TCE\TCE\OCR_BMP>dir
Volume in drive D has no label.
Volume Serial Number is 662C-8302

Directory of D:\Program Files (x86)\Frontier\EDLaunch\TCE\TCE\OCR_BMP

02/15/2015 01:50 PM <DIR> .
02/15/2015 01:50 PM <DIR> ..
02/15/2015 01:50 PM 6,220,854 Screenshot.bmp
1 File(s) 6,220,854 bytes
2 Dir(s) 45,826,899,968 bytes free

D:\Program Files (x86)\Frontier\EDLaunch\TCE\TCE\OCR_BMP>
 
Last edited:
Testing latest version and have issues.

The ocr scan is taking a good minute or two to do 1 scan where before 1.33 it took a few seconds.
I turned on the debug which just shows some *** and then the directory where ocr resides.

The updated data in the commodities panel is not being reflected in the trade panel, trade advisor bottom left -
for instance i have personal weapons at 4236 - +441 - 22 stock on the trade advisor panel and yet in commodities it says - 4236 - 5 stock, so stock isnt being updated properly.

 
Thank you for the Debug Mode.

See below the output that it generates. At a quick glance, it looks like it is trying to use EliteOCR.exe instead of EliteOCRcmd.exe from the \bin sub-directory.

Also, I noticed that it creates a Screenshot.bmp in the TCE\OCR_BMP directory. It does not create anything in the OCR_EXPORT directory.


>>>Debug Output<<<

Usage: EliteOCR -i input [-o output] [-s system] [-l lang]

-i --input: path to an image file
-o --output: defines where results should be written, default output.xml
-s --system: overrides the system name from log files
-l --lang: OCR language, must be one from this list: eng, deu, fra
-h --help: shows this help page
-v --version: version info

Example: EliteOCR.exe -i Screenshot_0014.bmp -o result.xml -s "Test System" -l f
ra

I think you are not using the newst version of EliteOCR (Version 0.5.2.3 (2015.02.14)). TCE uses the -t parameter, that comes with Version 0.5.2.2.

Testing latest version and have issues.

The ocr scan is taking a good minute or two to do 1 scan where before 1.33 it took a few seconds.
I turned on the debug which just shows some *** and then the directory where ocr resides.

The updated data in the commodities panel is not being reflected in the trade panel, trade advisor bottom left -
for instance i have personal weapons at 4236 - +441 - 22 stock on the trade advisor panel and yet in commodities it says - 4236 - 5 stock, so stock isnt being updated properly.

With debug mode active TCE continues not before closing the debug window. Was this the reason for taking so long to scan?
Checking stock update tommorrow.
 
Last edited:
Since 1.34a OCRing never comes out of "Please wait". Despite that, clicking on "Please Wait" does sometimes start the OCR-process again.
2015-02-16 00_30_25-Panel_Prices.png

---------------------------------------

I changed "OCR_lang" to "deu", cuz you only have one option in your "options" -panel. With this option, you set the OCR-language AND the TCE-language, I guess. I modified, cuz I want to run TCE in english, (until it is totally aware of localization and bugfree in this regard) while ED is running in german. To do so from TCE-options panel, in my opinion, we need two option settings to choose: "translate OCR-Output to: deu/eng/fra" to use TCE with deu/eng/fra commodities and "use TCE in deu/eng/fra with localized commodities/menu options/etc."

2015-02-16 00_38_11-Panel_Application_top.png
 
Last edited:
Since 1.34a OCRing never comes out of "Please wait". Despite that, clicking on "Please Wait" does sometimes start the OCR-process again.

Close the debug window, forgot to mention.
Thanks for the info of clicking Please Wait. Will fix that.
 
Last edited:
Close the debug window, forgot to mention.
Thanks for the info of clicking Please Wait. Will fix that.

yep please wait is indeed happening here as well.

will test some more but i never enabled debug to start with when it was taking a while to complete.

Just got the following error -

Code:
[===       ]Error in pixCreateHeader: width must be > 0
Error in pixCreateNoInit: pixd not made
Error in pixCreate: pixd not made
Error in pixGetData: pix not defined
Error in pixGetWpl: pix not defined
Error in boxClipToRectangle: box outside rectangle
Warning in pixClipRectangle: box doesn't overlap pix
Error in pixGetDepth: pix not defined
Error in pixConvertTo8: pixs not defined
Error in pixGetWidth: pix not defined
Error in pixGetHeight: pix not defined
Error in pixGetDepth: pix not defined
Error in pixCreateHeader: width must be > 0
Error in pixCreateNoInit: pixd not made
Error in pixCreate: pixd not made
Error in pixSetAllArbitrary: pix not defined
Error in boxClipToRectangle: box outside rectangle
Warning in pixClipRectangle: box doesn't overlap pix
Error in pixGetDepth: pix not defined
Error in pixConvertTo8: pixs not defined
Error in pixGetWidth: pix not defined
Error in pixGetHeight: pix not defined
Error in pixClone: pixs not defined
Error in pixClone: pixs not defined
pix_binary_ != NULL:Error:Assert failed:in file pagesegmain.cpp, line 111

this happened when i started am ocr scan and it wanted me to close it straight away.
 
Last edited:
The instructions say to leave macro settings on Disabled except digitally signed, but my excel tells me it is not digitally signed?

Also a few things:

1. How do you close the app?
2. When my stations are not in the app (such as the station I am in) how do I properly add the data? I see how to add the station but doing so doesn't reflect all the commodities data...what should I do then. Trying to learn the proper way to use this.
 
Last edited:
E.g. nonlethal weapons aren't updated properly in the trade window, whilst properly shown in the commodity panel. EOCR scanned correct.2015-02-16 01_16_14-Panel_Prices.png2015-02-16 01_16_32-Panel_Application_top.png2015-02-16 01_16_49-Panel_Trade.png
 
Last edited:
I have some updates about how to make the OCR functionality in Commodity work.

On my system, it only seems to work with Debug Enabled.

After you run the scan and it completes in the CMD window, close the CMD window. After that, it takes approximately 30 seconds to update the Commodity panel.

If the Commodity panel does not update, I find that clicking the arrows to change Category will update it.

Every once in a while, the OCR process will fail. When that happens, I find that if I delete the screenshot.bmp file in the ..\TCE\OCR_BMP\ directory and then rerun START OCR SCAN, it will usually complete successfully.
 
The instructions say to leave macro settings on Disabled except digitally signed, but my excel tells me it is not digitally signed?

Also a few things:

1. How do you close the app?
2. When my stations are not in the app (such as the station I am in) how do I properly add the data? I see how to add the station but doing so doesn't reflect all the commodities data...what should I do then. Trying to learn the proper way to use this.


1. Click on Control then Exit.
2. After adding the station, click the Commodity button (on the right) this will allow you to enter the prices etc for the station you are at.
If you intend on using the OCR option, just click start OCR Scan, then scroll the commodities screen a page and repeat until you have scanned the entire list.
Finally, click save towards the top right.



Since 1.34a OCRing never comes out of "Please wait". Despite that, clicking on "Please Wait" does sometimes start the OCR-process again.

I'm experiencing this too, rolling back to 1.33a it works fine.
 
OCR Debug enabled

I have some updates about how to make the OCR functionality in Commodity work.

On my system, it only seems to work with Debug Enabled.

After you run the scan and it completes in the CMD window, close the CMD window. After that, it takes approximately 30 seconds to update the Commodity panel.

If the Commodity panel does not update, I find that clicking the arrows to change Category will update it.

Every once in a while, the OCR process will fail. When that happens, I find that if I delete the screenshot.bmp file in the ..\TCE\OCR_BMP\ directory and then rerun START OCR SCAN, it will usually complete successfully.


I have the same problem as above with version 1.34a. Had to click on OCR debug run OCR and then close debug for commodities panel to show save. With 1.34 everything seemed to work perfectly.
 
I have the same problem as above with version 1.34a. Had to click on OCR debug run OCR and then close debug for commodities panel to show save. With 1.34 everything seemed to work perfectly.

Meant to say version 1.33a worked perfectly. Probably go back to previous version!
 
Hi, I have a dual screen setup with my main monitor at 1920x1200 and the second (on the left) at 1366x768.
My first problem was that most of the TCE windows would open outside my viewing area on the right side of my main screen so I could barely see them or not seem them at all.
This is weird since it is supposed to be optimized for a single screen at 1920x1200 !
But anyway I have found how to move them around in this here forum :)

What I didn't find is a way to change the resolution or shrink the windows so that they will fit on my second screen.
There is no point moving them there if I can only see a small piece of them.

Anyone knows how I could do this ?
 
Every once in a while, the OCR process will fail. When that happens, I find that if I delete the screenshot.bmp file in the ..\TCE\OCR_BMP\ directory and then rerun START OCR SCAN, it will usually complete successfully.

Check those screenshots and see if you have a digit out of place on the supply/demand columns. If the number goes too high (millions) the last character wraps around to the line below half-way between the two commodity rows which can throw EliteOCR off. The newer versions handle it a lot more gracefully but every once in a while I still find this problem. I have ticketed the problem as they used to trim the last character off to prevent it happening but they managed to reintroduce the bug just after launch.
 
First of all thousand thanks for that great tool! Chapeau!

Is the right folder the one´s where the AppConfig.xml is?

Many thanks in advance.

Greetz
Mike

X:\Elite Dangerous is the installation folder (X for your drive)
Mine is NOT in X:\Elite Dangerous and seems to work in the folder containing AppConfig when I remember to reset everything after an update. I would prefer it if it was elsewhere and did not have to be reinstalled every time FD squish another bug i.e. every weekday at the moment.
 
Update (V1.34b) released:
- Hotfix OCR Scan "Please Wait" issue.
- Removed -t parameter from EliteOCR call, because it is not necessary anymore (since all commodities are translated now).

Mine is NOT in X:\Elite Dangerous and seems to work in the folder containing AppConfig when I remember to reset everything after an update. I would prefer it if it was elsewhere and did not have to be reinstalled every time FD squish another bug i.e. every weekday at the moment.

What you have to reinstall? Cant follow you.

E.g. nonlethal weapons aren't updated properly in the trade window, whilst properly shown in the commodity panel. EOCR scanned correct.

Its on my list to fix.

Hi, I have a dual screen setup with my main monitor at 1920x1200 and the second (on the left) at 1366x768.
My first problem was that most of the TCE windows would open outside my viewing area on the right side of my main screen so I could barely see them or not seem them at all.
This is weird since it is supposed to be optimized for a single screen at 1920x1200 !
But anyway I have found how to move them around in this here forum
smile.png


What I didn't find is a way to change the resolution or shrink the windows so that they will fit on my second screen.
There is no point moving them there if I can only see a small piece of them.

Anyone knows how I could do this ?

Panel zooming is always active, but referring to your primary monitor at start.

Check those screenshots and see if you have a digit out of place on the supply/demand columns. If the number goes too high (millions) the last character wraps around to the line below half-way between the two commodity rows which can throw EliteOCR off. The newer versions handle it a lot more gracefully but every once in a while I still find this problem. I have ticketed the problem as they used to trim the last character off to prevent it happening but they managed to reintroduce the bug just after launch.

Thanks for clearing this point.
 
Last edited:
Status
Thread Closed: Not open for further replies.
Back
Top Bottom