shupershuff / Diablo2RLoader

D2rLoader - Diablo 2: Resurrected launcher for multi-boxing
MIT License
61 stars 11 forks source link

Feedback on TZ info #10

Closed never147 closed 1 year ago

never147 commented 1 year ago

I saw this new feature so thought I'd give it a go. It throws some errors for me.

Alternatively choose 'r' to refresh, 't' for TZ info or 'x' to quit.: t

 Finding TZ Update Posts....
You cannot call a method on a null-valued expression.
At D:\Users\m\Desktop\Diablo2RLoader\D2Loader.ps1:426 char:2
+     $TDs = $geturl.ParsedHtml.body.getElementsByTagName("td") | Selec ...
+     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (:) [], RuntimeException
    + FullyQualifiedErrorId : InvokeMethodOnNull

Cannot index into a null array.
At D:\Users\m\Desktop\Diablo2RLoader\D2Loader.ps1:429 char:2
+     $latestpostID = ($AllPostIDs | Sort-Object -Descending)[0]
+     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (:) [], RuntimeException
    + FullyQualifiedErrorId : NullArray

Cannot index into a null array.
At D:\Users\m\Desktop\Diablo2RLoader\D2Loader.ps1:430 char:2
+     $previouspostID = ($AllPostIDs | Sort-Object -Descending)[1]
+     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (:) [], RuntimeException
    + FullyQualifiedErrorId : NullArray

 Finding Current TZ Name...
Invoke-WebRequest : <script type="text/javascript">location.replace("/derror
/deleted/diablo2resurrected/minor");</script>
At D:\Users\m\Desktop\Diablo2RLoader\D2Loader.ps1:435 char:12
+     $geturl = Invoke-WebRequest $url
+               ~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (System.Net.HttpWebRequest:
   HttpWebRequest) [Invoke-WebRequest], WebException
    + FullyQualifiedErrorId : WebCmdletWebResponseException,Microsoft.Power
   Shell.Commands.InvokeWebRequestCommand
You cannot call a method on a null-valued expression.
At D:\Users\m\Desktop\Diablo2RLoader\D2Loader.ps1:436 char:2
+     $divs = $geturl.ParsedHtml.body.getElementsByTagName('div') | Sel ...
+     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (:) [], RuntimeException
    + FullyQualifiedErrorId : InvokeMethodOnNull

 Finding Next TZ Name...
Invoke-WebRequest : <script type="text/javascript">location.replace("/derror
/deleted/diablo2resurrected/minor");</script>
At D:\Users\m\Desktop\Diablo2RLoader\D2Loader.ps1:445 char:10
+     $geturl=Invoke-WebRequest $url
+             ~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (System.Net.HttpWebRequest:
   HttpWebRequest) [Invoke-WebRequest], WebException
    + FullyQualifiedErrorId : WebCmdletWebResponseException,Microsoft.Power
   Shell.Commands.InvokeWebRequestCommand
You cannot call a method on a null-valued expression.
At D:\Users\m\Desktop\Diablo2RLoader\D2Loader.ps1:446 char:2
+     $divs =$geturl.ParsedHtml.body.getElementsByTagName('div') | Sele ...
+     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (:) [], RuntimeException
    + FullyQualifiedErrorId : InvokeMethodOnNull

 Translating Korean to English...

 Current TZ is:
 Next TZ is:

 Accurate as of: 6:52 AM

Press Enter to continue...:
shupershuff commented 1 year ago

I had slightly improved the web-requests since the last week and then actually removed some of the web requests. But all that is moot because the source I was using has stopped posting NextTZ updates. Looking for another source currently. Have found one fella who apparently knows how to pull the data and apparently had it available via API for a moment but he says he's putting his spare time into D4 at the moment. In the next update (which I will be posting soon) I've added in a config option to disable NextTZ updates, I recommend setting this to false.

never147 commented 1 year ago

Sounds great thanks!

On Sun, 4 Jun 2023, 07:06 shupershuff, @.***> wrote:

I had slightly improved the web-requests since the last week and then actually removed some of the web requests. But all that is moot because the source I was using has stopped posting NextTZ updates. Looking for another source currently. Have found one fella but he says he's putting his spare time into D4 at the moment. In the next update (which I will be posting soon) I've added in a config option to disable NextTZ updates, I recommend setting this to false.

— Reply to this email directly, view it on GitHub https://github.com/shupershuff/Diablo2RLoader/issues/10#issuecomment-1575414281, or unsubscribe https://github.com/notifications/unsubscribe-auth/AANGICEEWEMPWFJRA2EXXMDXJQQXPANCNFSM6AAAAAAYZXNPWA . You are receiving this because you authored the thread.Message ID: @.***>

shupershuff commented 1 year ago

Closing this as should be resolved in the new release. Give the new one a hoon and let me know if you see any similar issues.