Jump to content




Need help with a program

help computer

  • You cannot reply to this topic
10 replies to this topic

#1 TheBlueKingLP

  • Members
  • 21 posts

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

#2 Bomb Bloke

    Hobbyist Coder

  • Moderators
  • 7,099 posts
  • LocationTasmania (AU)

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.

#3 TheBlueKingLP

  • Members
  • 21 posts

Posted 16 February 2016 - 05:33 AM

please fix this bug!

#4 Lyqyd

    Lua Liquidator

  • Moderators
  • 8,465 posts

Posted 16 February 2016 - 05:38 AM

I believe it already has been fixed. What version of ComputerCraft are you using?

#5 TheBlueKingLP

  • Members
  • 21 posts

Posted 16 February 2016 - 06:42 AM

i use 1.74(1.7.10)

#6 Lyqyd

    Lua Liquidator

  • Moderators
  • 8,465 posts

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+?

#7 Bomb Bloke

    Hobbyist Coder

  • Moderators
  • 7,099 posts
  • LocationTasmania (AU)

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 Bomb Bloke, 17 February 2016 - 01:09 PM.
Wrong MC version


#8 TheBlueKingLP

  • Members
  • 21 posts

Posted 17 February 2016 - 02:14 AM

My server is running Forge 1.7.10 1566

#9 Bomb Bloke

    Hobbyist Coder

  • Moderators
  • 7,099 posts
  • LocationTasmania (AU)

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.

#10 TheBlueKingLP

  • Members
  • 21 posts

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

#11 KingofGamesYami

  • Members
  • 3,002 posts
  • LocationUnited States of America

Posted 17 February 2016 - 03:14 PM

View PostTheBlueKingLP, on 17 February 2016 - 02:34 PM, said:

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.





2 user(s) are reading this topic

0 members, 2 guests, 0 anonymous users