Smart helmet doesn't work
applejag opened this issue ยท 15 comments
I am trying to use the smart helmet but it doesn't draw anything on my screen.
I tried using the helmet
program that comes with the mod (the Dynamic Mount so to speak) by @Fxzy (says Fxz_y in the code) but the only thing that worked on there was the print resolution option. I played around a bit more and found that it simply can't draw for some reason. Super strange.
This is the program I tested and it doesn't do anything noticeable, while it should make a big red bar at the top right?
p = peripheral.find("antenna")
hud = p.getHUD(p.getPlayers()[1])
w,h = hud.getResolution()
color = hud.getColorFromRGB(255,0,0)
hud.drawRectangle(0, 0, w, 200, color)
hud.sync()
I was able to get this functioning using your provided code.
Two things before I go into trying to track down the problem code-wise:
- Are you sure the helmet and the antenna you're using are linked? To link them, you must right click on the antenna with the helmet in hand.
- Are you wearing the linked helmet?
@jilleJr While bugtesting the smart helmet we have stumbled upon some problems relating to forge.
Mind telling what version of forge you are running?
@GrandMind Don't bother going through the code, you won't find anything ๐
@GrandMind @Fxzy I am using the following:
Minecraft 1.7.10
Forge 10.13.2.1291
ComputerCraft 1.73
OpenModsLib 1.7.10-0.6
OpenPeripheral 1.7.10-AIO-1
Peripherals++ 1.2.0
Pneumaticcraft 1.7.10-1.5.3
Just for testing I disabled all mods except peripherals++ and computercraft, and it still doesn't work.
@jilleJr, @austinv11 is releasing an update that might fix the issue, if it still persists, please tell us.
@Fxzy Ok when will this new build be available and where can I find it?
I just released v1.2.1, here is a direct link to the download. Please report back if it doesn't work.
@GrandMind the code worked without any errors. I made sure to link up the antenna and helmet, I even labeled the antenna before linking. I did this in a creative singleplayer world so no other players could be interfearing. Am I missing something? I used an advanced computer and the antenna peripheral, nothing else (except for the helmet of course)
Alright. As @Fxzy asked, what forge version are you currently using?
@austinv11 Nope still doesn't work.
obj.getResolution
and obj.getColorFromRGB
is the only functions that have a noticeable outcome, whereas every other function does nothing
Okay, I know what's wrong. It doesn't work in creative for some reason. Fixing now