cc-tweaked / CC-Tweaked

Just another ComputerCraft fork
https://tweaked.cc
889 stars 207 forks source link

Some way to notify player through pocket computer with modem #1148

Open IvoLeal72 opened 1 year ago

IvoLeal72 commented 1 year ago

Basically a way for a pocket computer with a modem to call the attention of the player, to be able to make a notification system for when a farm stops working or a super smelter is finished, etc.

I have 2 possible solutions, either being able to add a speaker and a modem to the same pocket computer, or some special method for pocket computers that makes the item blink in toolbar or something like that, like what was discussed here http://www.computercraft.info/forums2/index.php?/topic/21910-pocket-computer-ring-or-push-notification/

Void-Seeker commented 1 year ago

I personally think every computer at least should be able to beep, like the real ones do even without sound card. And Pockets should have speaker by default.

Lupus590 commented 1 year ago

What has been suggested on the forums is to open and close the modem channels, this will cause the front light to blink and thus proxy as a notification light. However, closing modem channels does mean that you may miss some messages, you can resolve this by having a computer acting as a message proxy, with all messages going to that and the pocket computer fetching them in a controlled manner, or you could set up message receipts so that the sender will resend their message to the pocket computer if the pocket computer doesn't confirm that it received the message.

IvoLeal72 commented 1 year ago

My idea would be something more integrated with the mod, than doing a weird workaround with the modem that WILL sooner or later lead to problems. The beep idea sounds good to me, but some way of it blinking in the toolbar, would also be cool.

IvoLeal72 commented 1 year ago

Hello, after thinking about this, the @Void-Seeker idea seems great to me, I have seen this beep possibility mentioned in various places in the community. Would resolve my issue.

walksanatora commented 1 year ago

My personal solution would be to allow advanced pocket PC's to dual equip peripherals Making it more worth the upgrade Like the primary peripheral in back And Mabey the other at top

IvoLeal72 commented 1 year ago

That would solve the issue too, but probably too much OP for a pocket

OttersMeep commented 10 months ago

perhaps a basic whistle chip in the pocket computers, and regular computers that can play a tone at a fixed hertz (eg: 500 HZ)

walksanatora commented 10 months ago

Give us os.beep(hz) Add a POST beep to bios.lua clearly

archer2o2x commented 10 months ago

Personally love the idea of being able to make a pocket computer beep, maybe with a fixed tone so that people have to get creative if they want multiple distinct alarms.