Abandoned [RELEASE] Trade Computer Extension

Status
Thread Closed: Not open for further replies.
How it crashed? Excel crashed? Runtime error? Please press debug, so you can post the codeblock. where TCE halts.

I get 5 out of 6 of the loading blocks light up then a MVB run time error 9 subscript out of range

on debug the TCE.XLSM Trade Code page is displayed with the following

Sub POS_Systems()
Dim Station_ID As Long, ArDiscount As Variant, A As Long, b As Long, c As Long, lLZeile As Long, ArMinPrice(1 To 10000) As Long
Worksheets("Pre_Select").Range("J2:J1001").ClearContents
For A = 1 To AzRegStations
ReDim ArDiscount(AzGoods)
DoEvents
'SystemÍD schreiben
Station_ID = Ar_DBRegStations(A, 1)
For c = 3 To AzGoods + 2
DoEvents
If ArData_Buy(c, Station_ID + 2) <> 0 And ArData_Buy(c, Station_ID + 1) <> "" Then (this bit highlighted yellow)
ArDiscount(c - 2) = ArData_Buy(c, Station_ID + 2) - ArData_Goods(c - 2, 3)
End If
Next c
ArMinPrice(A) = WorksheetFunction.Min(ArDiscount)
Erase ArDiscount
Next A
With Application.WorksheetFunction
Worksheets("Pre_Select").Range("J2:J" & AzRegStations + 1) = .Transpose(ArMinPrice)
End With
Worksheets("Systems").Activate
Worksheets("Systems").Range("A2:K1001").ClearContents
Worksheets("Systems").Range("A2:K" & AzRegStations + 1).Value = Worksheets("Pre_Select").Range("A2:K" & AzRegStations + 1).Value
ActiveWorkbook.Worksheets("Systems").Sort.SortFields.Clear
ActiveWorkbook.Worksheets("Systems").Sort.SortFields.Add Key:=Range( _
"J2:J10001"), SortOn:=xlSortOnValues, Order:=xlAscending, DataOption:= _
xlSortNormal
With ActiveWorkbook.Worksheets("Systems").Sort
.SetRange Range("A1:K10001")
.Header = xlYes
.MatchCase = False
.Orientation = xlTopToBottom
.SortMethod = xlPinYin
.Apply
End With

End Sub

anything I can do to fix or delete all and restart?

thx for your precious time appreciate it

Enty
 
I get 5 out of 6 of the loading blocks light up then a MVB run time error 9 subscript out of range

Looks like a database error. Please use a backup or use the database from beta 1.

- - - - - Additional Content Posted / Auto Merge - - - - -

I changed VerboseLogging entry in AppConfig.xml before, I've had it changed for a while for EliteOCR Tool and CMDR's Log, where it picks up the right info from.

EDIT.....................

I had to change the permissions of the AppConfig.xml prior to being able to edit it, if that gives you more information?

Did you have UAC active? I didnt need a special permission to open/modify it. Next update i give you workaround, if AppConfig read/mod fails.
 
Did you have UAC active? I didnt need a special permission to open/modify it. Next update i give you workaround, if AppConfig read/mod fails.

Whats UAC?

If you mean TCE, then no I didn't have that open when changing edit permissions of AppConfig.xml
 
No, UAC = User Account Control. Its a security feature of windows. If on, please deactivate it for a test.

Thats Fixed it, it's now working. But when I make edits I get this Error.

3001.png

Then when I exit the program, my changes haven't been saved.

Scrub the above I see it's a common issue
 
Last edited:
Looks like a database error. Please use a backup or use the database from beta 1.


wasn't sure what you meant by the database, ie if that was the tce.xlsm file or another one in the directory, I deleted the whole directory and started again as I had only been to two stations, I loaded back up and got the same error at the same point, then I found a zip file with a new tce.xlms

re ran with this and it seems to have fixed the previous error but now I get a start up error 3001 arguments are the wrong type, are out of acceptable range, or are in conflict with one another, I can click ok and it will continue to run but then ill fly else where and it will back ground crash and report the error 3001 arguments are the wrong type, are out of acceptable range, or are in conflict with one another again clicking ok makes it continue again, the processing notifier is illuminated too during this phase.

Enty
 
HIGH TECH / INDUSTRIAL missing from Economy List

The HIGH TECH / INDUSTRIAL option is missing from the Economy list in the Trade Station Database window.

Is it safe for me to add the value to table myself?

TCE - Missing Economy Option.png

TCE - Economy Table.png
 
All other is running so far? Will look later into the issue.


Sorry no, most does but ADD STAR SYSTEM RECORD
poped up automatically so I entered the required coordinates and had to select VISITED
to get the save button to appear. When I clicked it, I got this:

StarData1.jpg

Access Login.jpg

Followed by :

Run-time error '9':

Subscript out of range


If Worksheets("Werte").Cells(74, 3).Value <> 1 And Panel_DB_Stars.Visible = False And Unknown_Star = False Then
Worksheets("Data").Cells(63, 2).Value = Worksheets("Werte").Cells(76, 2).Value
Application.CalculateFull
StarData(1) = Worksheets("Data").Cells(65, 2).Value
i = AzStars
If Ar_DBStars(StarData(1), 6) = 0 Then
If FTP_Enabled = True Then
Call Download_DB
Worksheets("DB_Stars").Range("A1:G100000").ClearContents
Call DB_Importer(AppPath & "\DB\TCE.mdb", "Stars", "DB_Stars", Range("A1"))
End If
StarData(6) = 1
StarData(7) = ""
Star_SOK = True
Call ADO_Export_Mod(AppPath & "\DB\TCE.mdb", "Stars")
Worksheets("DB_Stars").Range("A1:G100001").ClearContents
Call DB_Importer(AppPath & "\DB\TCE.mdb", "Stars", "DB_Stars", Range("A1"))
Worksheets("DB_Stars").Activate
ActiveWorkbook.Worksheets("DB_Stars").Sort.SortFields.Clear
ActiveWorkbook.Worksheets("DB_Stars").Sort.SortFields.Add Key:=Range( _
"A2:A1000001"), SortOn:=xlSortOnValues, Order:=xlAscending, DataOption:= _
xlSortNormal
With ActiveWorkbook.Worksheets("DB_Stars").Sort
.SetRange Range("A1:G1000001")
.Header = xlYes
.MatchCase = False
.Orientation = xlTopToBottom
.SortMethod = xlPinYin
.Apply
End With
Ar_DBStars = Worksheets("DB_Stars").Range("A2:G" & AzStars + 1)
Star_SOK = False
If FTP_Enabled = True Then
Call Upload_DB
End If


I checked, it is not in the Database

Star List.jpg


Tried a third time after posting this.
change status to partial
and added a small note.

I do not know if it's one of those 2 changes or just sheer coincidence but is saved properly without errors !!!


Another new system with same crash on save, when STATE OF EXPLORATION was set to partial but no notes added
added same new system without touching STATE OF EXPLORATION but with a note. No problem !!! :)

So, for now, just write something in the note box :)
 
Last edited:
Ho and you didn't mention anything in the update log
(unless I just missed it)

but with the new update,
It seems quite a bit harder to have the mouse jump from ED to the CONTROL button while the panels are hidden !!!


No more loosing control !

Great job !!

and many Thanks !!!
 
Hi,
I love the color change thingy while OCRing. But I suggest to change to yellow, when screenshot is taken and not when the import is entirely done. This might give us a short more time to react earlier.
 
The HIGH TECH / INDUSTRIAL option is missing from the Economy list in the Trade Station Database window.

Is it safe for me to add the value to table myself?

You can do it, but i change the system completely into primary and secondary economy. All registered stations will get a new economy ID to represent the new structure. I sugguest, you make a note to the star system and change it to the new system, when it comes out. But now select high tech only.
 
Did you use the new beta 9 update?

Hi, No I didn't have the new update, I only installed it last night and I had downloaded Beta 8 Update, you were too quick, :D I didn't even think they'd be an update during me downloading and installing it. I'll try later.

I have another problem with the OCR which doesn't appear to be working, but I'll wait until I've updated with the new patch and then try again before I detail the problem, if it still exists that is.
 
Hi,
I love the color change thingy while OCRing. But I suggest to change to yellow, when screenshot is taken and not when the import is entirely done. This might give us a short more time to react earlier.

I agree !

If possible of course.
 
poped up automatically so I entered the required coordinates and had to select VISITED
to get the save button to appear.

Please tell me, did you hit enter after the last entry of a distance? Found a bug in you posted routine and the issue with the UNLOCK button too.

It seems quite a bit harder to have the mouse jump from ED to the CONTROL button while the panels are hidden !!!
No more loosing control !

I didnt change anything to this issue. So no flowers for me, unfortunately :)

Hi,
I love the color change thingy while OCRing. But I suggest to change to yellow, when screenshot is taken and not when the import is entirely done. This might give us a short more time to react earlier.

Done.
 
Last edited:
Status
Thread Closed: Not open for further replies.
Back
Top Bottom