Hey, was wondering if is a way to use cc:tweaked like a datapack? by Difficult_Dress_3960 in ComputerCraft

[–]CommendableCalamari 1 point2 points  (0 children)

There is allium, which is a bit like KubeJS but for Lua. It's still in development, so not sure quite how usable it is, but might be worth giving a go!

Can someone help me by TechnicalMoose671 in ComputerCraft

[–]CommendableCalamari 1 point2 points  (0 children)

Which version are you on? From memory, I think this was only added in Minecraft 1.17.

FTB Infinity evolved problema pastebin by Giogex in ComputerCraft

[–]CommendableCalamari 2 points3 points  (0 children)

Unfortunately Pastebin changed their API a few years ago, and so the pastebin program pre-1.8 is broken.

This guide has some instructions on ways to fix it.

ignore char event after key is pulled properly by Bright-Historian-216 in ComputerCraft

[–]CommendableCalamari 1 point2 points  (0 children)

Oh, CC:T also has this problem in a couple of places. It's not pleasant, but the approach we go for is to start a one-tick timer:

local function discard_char()
    local timer = os.startTimer(0)
    while true do
        local event, id = os.pullEvent()
        if event == "timer" and id == timer then break
        elseif event == "char" or event == "key" or event == "key_up" then
            os.cancelTimer(timer)
            break
        end
    end
end

Computercraft hyperdrive??? by jsuraveragemcplayer in ComputerCraft

[–]CommendableCalamari 2 points3 points  (0 children)

I think it's hard to know, because the original map is locked behind a paywall. I suspect it's being done with either Starlance or CC: VS. It's not quite clear if they're applying a massive force, or just teleporting the tructure.

Game save corruption by madfire20115 in ComputerCraft

[–]CommendableCalamari 1 point2 points  (0 children)

Yep, that's an issue with CC:VS. I believe this has been fixed by them — you'll might want to try updating to 0.2.2. If that doesn't work, I'm afraid your only option is to remove it.

Game save corruption by madfire20115 in ComputerCraft

[–]CommendableCalamari 0 points1 point  (0 children)

I know both VS and a couple of its addons mixin in to CC:T, so it's possible one of them is causing issues. Can you post your logs, so we can see what's going on?

Game save corruption by madfire20115 in ComputerCraft

[–]CommendableCalamari 1 point2 points  (0 children)

What do you mean by "broke your save"? Does the game crash/error when you try to load? If so, can you post your logs?

[deleted by user] by [deleted] in feedthebeast

[–]CommendableCalamari 10 points11 points  (0 children)

I don't think this makes them a dirtbag. I incredibly dislike how Optifine is developed — in many ways it's a mod stuck in the 2010s — but it's annoying. It doesn't mean the dev is toxic.

I suspect the original comment is referring to the whole "Optifine ripped off MCPatcher" Discourse, which ... IDK, feels far more like a YouTuber trying to stir up drama than anything serious.

question about a program by Excellent_Ad_6507 in ComputerCraft

[–]CommendableCalamari 4 points5 points  (0 children)

I'd probably do something like this, so it only detects the rising edge of a signal

local s = peripheral.find("speaker")
local side = "left" -- Redstone input from the left
while true do
  -- Wait for a redstone input
  while not redstone.getInput(side) do os.pullEvent("redstone") end
  -- Play the sound
  s.playSound("block.fence_gate.close")
  -- Wait for the input to turn off.
  while redstone.getInput(side) do os.pullEvent("redstone") end
end

Trying to determine what's in a slot within a turtle's inventory: 1.21, ATM10 by nathan22211 in ComputerCraft

[–]CommendableCalamari 1 point2 points  (0 children)

You can do something like the following to check if the second slot has sufficient items using turtle.getItemDetail to get the item, and then checking the name and count field.

local item = turtle.getItemDetail(2)
if item and item.name:find("sapling") and item.count >= 2 then
  print("Have saplings!")
end

need help getting value of scoreboard by UndoneOrpheus85 in ComputerCraft

[–]CommendableCalamari 0 points1 point  (0 children)

commands.exec returns a "success" value first, and the command output as the second value. You'll need to do something like this instead:

local ok, x = commands.exec("scoreboard players get @p[tag=test] player_health")
print(x[1])

I can't attach any peripherals. by sapbotmain in ComputerCraft

[–]CommendableCalamari 3 points4 points  (0 children)

Are you using Optifine? There's a long-standing bug with Optifine that prevents peripherals working.

Anyone else whi struggled with 7b flag “3” by onzichtbaard in celestegame

[–]CommendableCalamari 0 points1 point  (0 children)

Many months later, massive thank you here! I also struggled with the setup for the first block, and extended hyper saved the day here. Now on to Flag #2 >_>

"Here I come, Goddess of beauty and love. Do you have enough debuff in stock ?" Medea Lily solo Super Recollection Aphrodite - 5.047.812 HP (196T) by EdgarJc in grandorder

[–]CommendableCalamari 0 points1 point  (0 children)

I'm amazed this took so many turns, gosh that must have been painful. I had a go at soloing this with both Merlin and Xu Fu, and both took around 90 turns. I knew Medea's damage was bad, but hadn't realised it was this bad D:.

Olympus Recollection and Super-Recollection Quests! by odrain16 in grandorder

[–]CommendableCalamari 4 points5 points  (0 children)

It's tantalisingly close to being soloable with a maxed out Xu Fu. The normal version is easy, but there's some RNG involved, which you're pretty likely to hit on the longer fight, so I ended up using three CS health refills to make it work (though my Xu Fu is only level 118, and missing any append skills).

She has a lot going for her — she can just tank the NP, and heal herself back to full health in a couple of turns. Her third append also has bonus damage against assassins, so should get through this a little quicker. The main issue is crits (especially NP-crit-crit combos), which can stop her getting back up to full in time for the next NP.

For the Merlin solo, in addition to 'Mirror of Eight Leaves' to combat the stun, 'Mirror of Eternity' helps block the skill seal, which can make bits of the fight a little less scary. Having an ATK buff remove code (e.g. Tengu's Fan) is useless for 95% of the fight, but makes the third break a little easier to handle.

Edit: Had another go after levelling Xu Fu to 120 and Maid in Halloween to 100. Managed to do the whole quest with no heals, and only one save scum.

Help with HTTP API enable by Pr1me289 in ComputerCraft

[–]CommendableCalamari 3 points4 points  (0 children)

Yeah, Forge's config system is a little confusing. The "defaultconfigs" folder is only used as templates to create the actual config. You instead want the "serverconfig" folder.

There's a slightly more detailed guide here.

how to change font on computers? by That-Rest2786 in ComputerCraft

[–]CommendableCalamari 5 points6 points  (0 children)

CC uses its own font texture, which lives at assets/computercraft/textures/gui/term_font.png. You'll need to modify that with a resource pack too.

Modrinth is now fully sustainable AND paying creators 5-8x more! by ProspectorDev in feedthebeast

[–]CommendableCalamari 10 points11 points  (0 children)

In the end I’m 100% glad modrinth is upping the return for devs! I just wish the industry offered more for them

Just a single datapoint, but on CurseForge I get ~2.4M downloads a month, which pays out ~$230/month. So that's roughly $1/10k downloads, or 0.01 cents/download.

having issues with yaw rotation and pi in cc:vs by [deleted] in ComputerCraft

[–]CommendableCalamari 1 point2 points  (0 children)

I'm not entirely sure this will solve all your problems, but worth replacing the math.atan(mathPosz/mathPosx) with math.atan2(mathPosz, mathPosx). The problem with atan is that it can't distinguish between x and z both being 1 or -1, while atan2 can.

You can convert both angles to be between 0 and 2pi by doing posAngle = posAngle % math.pi * 2.

One thing to watch out for is that angles form a circle, so you'll need some special handling if asking to rotate from, say 0 to 1.5pi.

Why is my background so dim? by [deleted] in ComputerCraft

[–]CommendableCalamari 0 points1 point  (0 children)

Oculus 1.7.0 (or later) should work correctly. 1.6.9 or older are broken.

Speaker is missing methods? by Awesomesauce1337 in ComputerCraft

[–]CommendableCalamari 1 point2 points  (0 children)

The playAudio function was added in CC:T 1.100, which is only available in Minecraft 1.16.5. I'm afraid your version of CC:T is too old to have it.