This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
Oxodao's profile picture

[OpenPeripherals] Glasses do not send any events (1.6.4)

Started by Oxodao, 03 January 2018 - 12:12 AM
Oxodao #1
Posted 03 January 2018 - 01:12 AM
Hi,

I am currently playing on a self-made modpack on Minecraft 1.6.4
I am using Computercraft 1.63, OpenModsLib 0.5.1, OpenPeripheralCore 0.4.1 and OpenPeripheralAddons 0.1.5.

I am unable to get the chat event from the glasses. It just does not fire…
I did a small loop like this to try

a = peripheral.wrap("back"); -- It's where there is my terminal glasses bridge
while true do
  b = os.pullEvent();
  print(B)/>;
end
It registers everything but glasses_chat_command
I tried to add it between parenthesis but still nothing…

I get only the event "registered_player_join" which is not useful in this case, and the glasses are working fine (Can draw on it).

At first I thought that it was not included yet in this version, but I decompiled OP-A and found evidences that it IS implemented correctly…


Any idea of what I am missing ?
Luca_S #2
Posted 03 January 2018 - 07:59 AM
In your code you are putting the event in the variable b, but printing B, because Lua is case sensitive they are 2 different variables.

However in that case your code shouldn't print anything.
Oxodao #3
Posted 03 January 2018 - 09:09 AM
That's a mistake in my post, I am using the correct variable
Bomb Bloke #4
Posted 05 January 2018 - 06:09 AM
It registers everything but glasses_chat_command

I assume you mean to say you're also not getting glasses_attach / glasses_detach / glasses_chat_message events? Or is it really just "command" messages you're missing?

If you're really not getting any glasses-related events, have you linked them to the bridge (by clicking them against it from your hotbar)?
Oxodao #5
Posted 17 January 2018 - 11:28 AM
Hi,

I did have them linked to the bridge, and I did not receive any glasses event at all except the "registered_player_join" one.
I upgraded my modpack to 1.7.10 and now it's working as it should.

Unfortunatly in this version, glasses cannot be installed on ModularPowersuit :(/>
Lupus590 #6
Posted 18 January 2018 - 11:20 AM
Unfortunatly in this version, glasses cannot be installed on ModularPowersuit :(/>

check if there is a compatable version of MPS
Edited on 18 January 2018 - 10:20 AM