OpenComputers

OpenComputers

49M Downloads

Where is `maxPacketSize()` and `maxPacketParts()`

asvdvl opened this issue ยท 7 comments

commented

OC 1.7.5.192, minecraft 1.12.2.
I am trying to execute maxPacketSize() with a modem and I am getting an error. If I try to look at all the functions of the modem, then I cannot find this function, but the tunnel has it.
image
Also, trying to find a similar issues, I found this, and I see that this functionality has been added to the mod. However, I don't see this function either.

commented

All that data is part of the Device Info now. Use computer.getDeviceInfo to get a table of various bits of information.

commented

These functions were removed, as Brisingr noted, in favor of computer.getDeviceInfo. I believe it says on the wiki that they were removed.

commented

It's not a bug but a regression. 2 methods disappeared from the modem component.

well, I probably have to use a binary search algorithm to get these values
Or catch error and parse it

commented

what is the error your getting? sorry for being a bit late, thinking of taking this mod up and plan on starting by fixing bugs

commented

what is the error your getting? sorry for being a bit late, thinking of taking this mod up and plan on starting by fixing bugs

It's not a bug but a regression. 2 methods disappeared from the modem component.
I remember having made a program with them and having it crash after a mod update.

commented

Maybe they left a note in the code as to why it was removed, ill check now

commented

All the code for it is there, but this is kinda a mess (the structure of the source files) so maybe im not seeing something