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

Need help with a program

Started by TheBlueKingLP, 16 February 2016 - 01:14 AM
TheBlueKingLP #1
Posted 16 February 2016 - 02:14 AM
program links

btn: http://pastebin.com/YkCL8GyA

startup: http://pastebin.com/sb8N5V38

in my singleplayer world,the button all can press

but in my SMP it didn't work!
i need help with this,thx
Bomb Bloke #2
Posted 16 February 2016 - 04:09 AM
It's this bug. Long story short, monitor touches are a bit inaccurate in SMP. You'll need to make your buttons larger to compensate for this.
TheBlueKingLP #3
Posted 16 February 2016 - 05:33 AM
please fix this bug!
Lyqyd #4
Posted 16 February 2016 - 05:38 AM
I believe it already has been fixed. What version of ComputerCraft are you using?
TheBlueKingLP #5
Posted 16 February 2016 - 06:42 AM
i use 1.74(1.7.10)
Lyqyd #6
Posted 16 February 2016 - 05:44 PM
That version should not suffer from the bug posted above. What kind of server are you using for your multiplayer? Forge, Cauldron, MCPC+?
Bomb Bloke #7
Posted 17 February 2016 - 01:05 AM
I gave it a try on Danny's server (MC 1.8.9 / CC 1.78 / Forge only), and it's certainly bugged there. Can't recall any reports of it working under earlier builds (other than one guy who, um, didn't seem to understand what the issue was in the first place).

To reproduce, you just run this code and attempt to draw horizontal lines:

local mon = peripheral.find("monitor")

mon.setTextScale(0.5)
term.redirect(mon)

while true do
    local myEvent = {os.pullEvent("monitor_touch")}
    paintutils.drawPixel(myEvent[3], myEvent[4], colours.white)
end

You'll find it's impossible to light up certain columns on the display.
Edited by
TheBlueKingLP #8
Posted 17 February 2016 - 02:14 AM
My server is running Forge 1.7.10 1566
Bomb Bloke #9
Posted 17 February 2016 - 01:10 PM
Long story short, if I've got it right (and given that the same script lets you push all buttons in SSP, I'm fairly confident that I am), then your only short-term solution is to make your buttons larger. If a proper fix is ever to come, it'll be for MineCraft 1.8.9 or later.
TheBlueKingLP #10
Posted 17 February 2016 - 02:34 PM
but the 1x1 monitor screen is small,i can't make the button lager,that i put near my door for a password key pad
KingofGamesYami #11
Posted 17 February 2016 - 03:14 PM
but the 1x1 monitor screen is small,i can't make the button lager,that i put near my door for a password key pad

That can be changed. This bug cannot.