Jump to content


JustPingo's Content

There have been 3 items by JustPingo (Search limited from 30-September 19)


By content type

See this member's

Sort by                Order  

#262834 WebSocket implementation

Posted by JustPingo on 19 December 2016 - 01:58 AM in Suggestions

The websocket specification isn't enormous and pretty straight forward. I'm sure you could do it.



#262832 [MC 1.10.2][CC 1.80pr0] ModemCrashFix - Fixes modem crashes (duh)

Posted by JustPingo on 19 December 2016 - 01:23 AM in Peripherals and Turtle Upgrades

EDIT: You'd better use Unborked instead of this.

Hello everyone.

Recently I've been playing with CC 1.80 beta in 1.10.2, and pre-release 0 is having a very game-breaking bug: when you try to place down an ender modem, the game crashes and it's impossible to log back in again.
As ComputerCraft is taking some time to get updated, I made this very dirty hack to fix that precise bug. Just put the jar in your mods folder like a regular mod, and the bug will get fixed automatically.
It needs to be installed on both client and server.

This is an unoptimized and dirty hack: it's not perfect at all, the fix is so ugly I'm not proud of it. If you have a better suggestion I'd gladly take it.
This is only meant for and compatible with Minecraft 1.10.2 and CC 1.80pr0. Do NOT try to use it with any other version. It won't let you anyway I think.
If you've seen this bug happen in another version, please tell me so I can port the patch. Actually, I'm saying it's not working, but it's just not properly tested... But don't!

Download

Details
Spoiler

Hope you enjoy.

EDIT : Oh well, just noticed Unborked is a thing. At least, I guess that fix was fun to make lol



#261465 [Java API] ILuaAPI registry

Posted by JustPingo on 05 November 2016 - 07:18 PM in Suggestions

Hello everyone!

I've been wanting to create a new default API for computers, and I noticed that there wasn't any form of registry for ILuaAPI classes, and that they were added in an hard-coded fashion.
Do you think it could be possible to add such a thing? It would be great to add custom default Java API, without requiring dirty code injection tricks.
Currently I'm patching dan200.computercraft.core.computer.Computer.createAPIs() as a coremod, but it really isn't ideal.

Thanks for reading.

EDIT: Ok after checking you can also just patch the class in the preInit using traditional runtime classpath bytecode editors, so no need for a coremod, but it still is not pretty.