Recent posts

Pages 1 2 3 4 ... 10
11
General / Looking for Visual Studio Comp...
Last post by pjals_but_noisy - Oct 25, 2021, 05:22 pm
Quote from: QuickMuffin8782 on Sep 30, 2021, 11:10 pm
Quote from: TheTinyDeskEngineer on Sep 29, 2021, 03:12 pmIn all of the time that I've played with Computercraft I've spent quite a bit of that time getting confusing problems which are hard to solve. I thought that it might be better if I use Visual Studio to create and edit Computercraft lua code. But I can't find anything useful on Google, as always. I'm using Visual Studio Community 2019.
You can also use ZeroBrane Studio. It also works with CC and is a good editor to use as it useful for compatibility with syntax highlighting for CC (w/o adding a addon for it ;)) and lua, and is useful for seeing your code in the left sidebar in a easy-to-understand UI.

Link: https://studio.zerobrane.com/download?not-this-time
i know this is an old post, but vscode also works with different languages than lua
12
Ask a Pro / ipairs not working correctly
Last post by pjals_but_noisy - Oct 25, 2021, 11:53 am
its a number, not a string (tested with type(index))
13
Ask a Pro / ipairs not working correctly
Last post by Lupus590 - Oct 24, 2021, 06:28 pm
Are you sure that you are using numeric indexes and not having numbers in strings?
14
Ask a Pro / ipairs not working correctly
Last post by pjals_but_noisy - Oct 24, 2021, 12:06 pm
code: https://pastebin.com/PZq9uhpH

for some some reason, this code doesn't work correctly, even though the table goes like
Code Select
{
 1={
  ...
 }
 ...
}

if you replace ipairs with pairs, it works correctly
15
Operating Systems / Pepdroll 7 Operating system
Last post by QuickMuffin8782 - Oct 24, 2021, 07:00 am
Quote from: pjals_but_noisy on Oct 22, 2021, 02:34 pmfor the 5th time this week, these arent operating systems, these are window managers with extra bloatware apps
I disagree. This is a fully recreation and awesome project to mimic the Windows-like feel of the operating system, and I love the feel of it! 5/5 stars for this operating system. And window manager and desktop feel of this is classified as a operating system. Although COSC aims the same goal, this still deserves some reward! A+ for effort!
16
General / CC: Restitched (Fabric) 1.17.1...
Last post by pjals_but_noisy - Oct 23, 2021, 11:17 am
late to the party but cool!
17
Ask a Pro / Need help with NBS format bina...
Last post by pjals_but_noisy - Oct 22, 2021, 09:20 pm
oh look, i got it working, great.... nevermind, it thinks all notes are on layer 256? man binary is confusing
18
Ask a Pro / Need help with NBS format bina...
Last post by pjals_but_noisy - Oct 22, 2021, 09:15 pm
Quote from: Lupus590 on Oct 22, 2021, 06:05 pmThe error message is telling you that you are trying to use something as a table that is not a table. It could be that the table is not ready yet.

Looking at you code line 72 (the line number that the error is blaming) is this line

Code Select
layers[layer].notes[tick] = {}
That's quite the nested table and any of those could be not actually a table.

I would check that the table exists before trying to use it, and if it doesn't then make it, you have to do this for each level of the nesting of the table.

Code Select
if not layers then
  layers = {}
end
if not layers[layer] then
  layers[layer] = {}
end
if not layers[layer].notes then
  layers[layer].notes = {}
end
im pretty sure thats half the problem, since its normally not supposed to return 256 for everything
(and great, now its reading past the bounds)
19
Ask a Pro / Need help with NBS format bina...
Last post by Lupus590 - Oct 22, 2021, 06:05 pm
The error message is telling you that you are trying to use something as a table that is not a table. It could be that the table is not ready yet.

Looking at you code line 72 (the line number that the error is blaming) is this line

Code Select
layers[layer].notes[tick] = {}
That's quite the nested table and any of those could be not actually a table.

I would check that the table exists before trying to use it, and if it doesn't then make it, you have to do this for each level of the nesting of the table.

Code Select
if not layers then
  layers = {}
end
if not layers[layer] then
  layers[layer] = {}
end
if not layers[layer].notes then
  layers[layer].notes = {}
end
20
Operating Systems / Pepdroll 7 Operating system
Last post by pjals_but_noisy - Oct 22, 2021, 02:34 pm
for the 5th time this week, these arent operating systems, these are window managers with extra bloatware apps
Pages 1 2 3 4 ... 10