You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
I think there needs to be an update to ScanJournal - if you call it on repeat a 100 times there is maybe an 80-85% accuracy rate.
for example -
[System] [FFBB00]You take [98FB98]1[FFBB00] clumps of [98FB98]Silt[FFBB00] from the soil.
[System] [FFBB00]You take [98FB98]1[FFBB00] clumps of [98FB98]Loam[FFBB00] from the soil.
N/A
[System] [FFBB00]You take [98FB98]1[FFBB00] clumps of [98FB98]Loam[FFBB00] from the soil.
N/A
[System] [FFBB00]You take [98FB98]1[FFBB00] clumps of [98FB98]Clay[FFBB00] from the soil.
[System] [FFBB00]You take [98FB98]1[FFBB00] clumps of [98FB98]Clay[FFBB00] from the soil
Describe the solution you'd like
I would like to see a solution that can be implemented like this -
StartScanning()
WhateverCommandHere()
print(RetrieveJournalScan()) # contains an array of everything from StartScanning() to RetrieveJournalScan()
and or, to expand on it...
StartScanning()
WhateverCommandHere()
boolean = JournalScanMatch({"match str1, match str2, match str3"}) - returns true if any of the strings are found
I think what this is going to take is creating a separate thread and then using thread.join() to make sure the JournalScanner() is finished before the main thread accesses it - I foresee needing a sleep(500) or sleep(1000) in the scanner thread as well to ensure that the messages are properly picked up.
Currently how I am solving this problem is this -
function JournalScanner(startT, endT)
arry = {}
for i = startT, endT, .5 do
table.insert(arry, ScanJournal(i))
end
return arry
end
and then it's called with something like -
start = TIME
SomeCommand()
sleep(500)
SCANJOURNAL = JournalScanner(start, TIME)
or
function JournalScanner(startT, endT, search)
for i = startT, endT, .5 do
ScanJournal(i)
for str in search do
if string.match(SCANJOURNALMESSAGE, str) then
return true
end
end
end
return false
end
and then
start = TIME
SomeCommand()
sleep(500)
boolean = JournalScannerMatch(start, TIME, {"match str1, match str2, match str3"})
Notice that sleep(500) in there? - that really is what ensures that the command's journal output is properly caught - this is why I believe that a separate thread is necessary as you wouldn't want to freeze the main thread and you still need to call the command that follows the StartScanning().
Broken pseudo code - (I haven't written C# in 10 years, please excuse the cross threading and the accessing variables on different threads)
static void scanner() {
startTime = TIME
sleep(500)
get journalEntries between startTime and NOW
JOURNAL_ARRAY = array of entries
}
static void DoAction() {
TargetDynamic or whatever
}
static void Main(args) {
thread1 = new Thread(scanner)
thread1.start()
DoAction()
thread1.join()
print(JOURNAL_ARRAY)
}
The text was updated successfully, but these errors were encountered:
Is your feature request related to a problem? Please describe.
I think there needs to be an update to ScanJournal - if you call it on repeat a 100 times there is maybe an 80-85% accuracy rate.
for example -
Describe the solution you'd like
I would like to see a solution that can be implemented like this -
and or, to expand on it...
I think what this is going to take is creating a separate thread and then using
thread.join()
to make sure the JournalScanner() is finished before the main thread accesses it - I foresee needing a sleep(500) or sleep(1000) in the scanner thread as well to ensure that the messages are properly picked up.Currently how I am solving this problem is this -
and then it's called with something like -
or
and then
Notice that sleep(500) in there? - that really is what ensures that the command's journal output is properly caught - this is why I believe that a separate thread is necessary as you wouldn't want to freeze the main thread and you still need to call the command that follows the
StartScanning()
.Broken pseudo code - (I haven't written C# in 10 years, please excuse the cross threading and the accessing variables on different threads)
The text was updated successfully, but these errors were encountered: