Jump to content


unnamedcoder's Content

There have been 19 items by unnamedcoder (Search limited from 10-February 22)


By content type

See this member's

Sort by                Order  

#258388 Post Your Internet Speed!

Posted by unnamedcoder on 25 August 2016 - 09:12 AM in General

I don't think that anybody is ready for this...
Posted Image



#255718 FlappyPixel - A FlappyBird implementation for Computercraft!

Posted by unnamedcoder on 07 July 2016 - 04:07 PM in Games

View PostCreator, on 07 July 2016 - 07:54 AM, said:

View Postunnamedcoder, on 05 July 2016 - 05:57 PM, said:

Hey, I've fixed the death screen, and I will implement the difficulty setting if you want, new code is: http://pastebin.com/Tc6QXU6Z

Thanks, will test it ASAP, and if I like it (which I am sure i will), I will put it for downloading and give credits.
No need for giving credits :)



#255570 FlappyPixel - A FlappyBird implementation for Computercraft!

Posted by unnamedcoder on 05 July 2016 - 05:57 PM in Games

Hey, I've fixed the death screen, and I will implement the difficulty setting if you want, new code is: http://pastebin.com/Tc6QXU6Z



#255203 Classic - pretty OOP in CC

Posted by unnamedcoder on 30 June 2016 - 09:39 PM in APIs and Utilities

nice, gives a lot of functionality that vanilla lua doesn't offer, almost as flexible as java



#254141 Pine3D - Best performing 3d graphics library for CC!

Posted by unnamedcoder on 18 June 2016 - 11:43 AM in APIs and Utilities

View PostIncinirate, on 18 June 2016 - 07:12 AM, said:

Sorry, should have been a little more explicit, what I meant is, that since you already have defined vertices for drawing lines to create objects, you can reference 3/4 of them to create a triange/quad respectively. For example:
vert1 = {0,0,0}
vert2 = {1,0,0}
vert3 = {0,1,0}
face = {vert1,vert2,vert3}
You then have all the information to draw a triangle in face, you can easily change it to work with quadrilaterals as well.
Even better:
face = { {0,0,0}, {1,0,0}, {0,1,0} }



#253954 Pine3D - Best performing 3d graphics library for CC!

Posted by unnamedcoder on 16 June 2016 - 08:14 PM in APIs and Utilities

View PostXelostar, on 16 June 2016 - 07:32 PM, said:

Looks promising! I want the model to be a 1 by 1 by 1. For other sizes, I will probably add a rotation and a size value. :-)
Can you make the "drawing space" a 10 by 10? That would be useful. I will probably upload by API tomorrow. :D

Sure, 10 by 10, I won't be able to make this until the 7th of July, so unless u wanna make it, go ahead



#253924 Multitasking - rewritten!

Posted by unnamedcoder on 16 June 2016 - 05:43 PM in APIs and Utilities

Isn't this why the parallel api exists?



#253913 Pine3D - Best performing 3d graphics library for CC!

Posted by unnamedcoder on 16 June 2016 - 03:12 PM in APIs and Utilities

View PostXelostar, on 14 June 2016 - 03:33 PM, said:

View Postunnamedcoder, on 14 June 2016 - 03:00 PM, said:

View PostXelostar, on 14 June 2016 - 12:36 PM, said:

That is kind of how my 3D printer modeling program works... :P
I advise you to wait until I release my API. Then you can use it to draw what people are creating.
Well, it still is hard to create a program for creating models...
Maybe you can make it so that the user can click somewhere on the screen (2d) and then give a height value to that point. Later the user can connect these points to draw lines. I wish you a lot of succes! :D

Yeah I was thinking about that, I could make it next month, since I have to do exams starting monday and it is getting hectic for me, I need to spend my time on revision etc. I know exactly how I'm going to do it, I'll just need some time, also could you specify the dimensions of the model?

Awesome! Take your time! :)
If you mean that x and z are length and width and that y is the height, jsut like in minecraft, then here is your answer.
If you mean how big it shoud be:
from (-0.5, -0.5, -0.5) to (0.5, 0.5, 0.5) would be great! :)
Alright, I've made a quick mock-up for the program, I was thinking of something like this:
Posted Image
Sorry for the messy handwriting :P



#253764 Pine3D - Best performing 3d graphics library for CC!

Posted by unnamedcoder on 14 June 2016 - 03:00 PM in APIs and Utilities

View PostXelostar, on 14 June 2016 - 12:36 PM, said:

That is kind of how my 3D printer modeling program works... :P
I advise you to wait until I release my API. Then you can use it to draw what people are creating.
Well, it still is hard to create a program for creating models...
Maybe you can make it so that the user can click somewhere on the screen (2d) and then give a height value to that point. Later the user can connect these points to draw lines. I wish you a lot of succes! :D

Yeah I was thinking about that, I could make it next month, since I have to do exams starting monday and it is getting hectic for me, I need to spend my time on revision etc. I know exactly how I'm going to do it, I'll just need some time, also could you specify the dimensions of the model?



#253732 Pine3D - Best performing 3d graphics library for CC!

Posted by unnamedcoder on 14 June 2016 - 12:03 AM in APIs and Utilities

View PostXelostar, on 13 June 2016 - 03:55 PM, said:

I want to see what you come up with! :)
If you want to have a 2d line drawing API, you could just use:
paintutils.drawLine(x1, y1, x2, y2, color)
But I assume you want something like this:
for lineNr, lineCoordinates in pairs(linesToDraw) do
  paintutils.drawLine(lineCoordinates.x, lineCoordinates.y, lineCoordinates.x2, lineCoordinates.y2, lineColor)
end
Anyway, please let me know when you are getting somewhere! :)

Well, at the moment I'm trying to figure out a way to do this, I was thinking that it could be done with layers, the arrow keys will decide which layer you are editing therefore you could create full block shapes, another idea was placing points to connect lines to, I'm still trying to wrap my head around the concept.



#253710 Pine3D - Best performing 3d graphics library for CC!

Posted by unnamedcoder on 13 June 2016 - 02:56 PM in APIs and Utilities

View PostXelostar, on 12 June 2016 - 09:07 PM, said:

Well, I was thinking about that myself, but I like working together! :D
I will probably use some kind of table with relatve coordinates and a few things to draw the lines and stuff. The frame currently looks something like this:

shapeFrame = {
	coordinates = {
		{x = -0.5, y = -0.5, z = -0.5}, -- These are the coordinates for one corner
		{x = -0.5, y = -0.5, z = 0.5},
		{x = -0.5, y = 0.5, z = 0.5},
		{x = -0.5, y = 0.5, z = 0.5},
		{x = 0.5, y = -0.5, z = 0.5},
		{x = 0.5, y = -0.5, z = 0.5},
		{x = 0.5, y = 0.5, z = 0.5},
		{x = 0.5, y = 0.5, z = 0.5},
	},
	lines = {
		{1, 5, colors.red}, -- Refer to the index numbers of the coordinates and the color of the line
		{2, 6, colors.red},
		{3, 7, colors.red},
		{4, 8, colors.red},
		{1, 3, colors.red},
		{2, 4, colors.red},
		{5, 7, colors.red},
		{6, 8, colors.red},
		{1, 2, colors.red},
		{3, 4, colors.red},
		{5, 6, colors.red},
		{7, 8, colors.red},
	}
}

If you can pull such a thing off, I will make my API able to load those kind of models. If you have a better idea of how a model can be saved, please let me know.

I'll have a go at making a program that allows you to edit and create objects, if you wanna work by yourself, I'll leave you to it :)

EDIT: could you possibly provide a 2d linedrawing api for me?



#253657 Virus Remover (Disk)

Posted by unnamedcoder on 12 June 2016 - 08:46 PM in APIs and Utilities

I know this thread is OLD, however it is a cool concept, but you could make the program scan through all the files on the pc, using readLines(), and look for uses of the fs api and os.pullEvent, they it would display a list of possible bad files and the user could manually look through these to check if they're infected with a virus.



#253654 Pine3D - Best performing 3d graphics library for CC!

Posted by unnamedcoder on 12 June 2016 - 08:35 PM in APIs and Utilities

View PostXelostar, on 12 June 2016 - 05:56 AM, said:

Thank you for your compliment! :D
I will split my code into an API other people can use and a demo which you can also edit.
I am almost done doing this! :D (I am having a little trouble debugging, but hopefully it will be finished soon. :D)
Good luck with the debugging, I'd like to know how you add shapes to the world, do you use files to import them, if so could you show me the code to generate the shapes? I'd love to have a go at making an api which allows you to create new objects for the world and import them, sort of like .mdl files



#253575 [Deleted]

Posted by unnamedcoder on 11 June 2016 - 10:17 PM in APIs and Utilities

View PostmoTechPlz, on 16 April 2016 - 06:46 PM, said:

He should not have used 'table' as a variable in the example. Try this;
tTest = { 4, 6, 8, 10, 12 }
charts.tableLines( "", 3, 3, tTest, 0 )

The following keywords are reserved and cannot be used as names: and, break, do, else, elseif, end, false, for, function, if, in, local, nil, not, or, in, local, nil, not,or, repeat, return, then, true, until, while.



#253573 Scoreboard.

Posted by unnamedcoder on 11 June 2016 - 10:11 PM in APIs and Utilities

This could be made so much more efficient, but I still like it, keep it up



#253557 Pine3D - Best performing 3d graphics library for CC!

Posted by unnamedcoder on 11 June 2016 - 05:38 PM in APIs and Utilities

Love it! Nice, smooth and efficient, keep it up, it'd be cool if you could implement this into a game engine, for example having map creation, object creation, object placement, etc! Can't wait to see the future updates though!



#253553 Simple options list creator!

Posted by unnamedcoder on 11 June 2016 - 05:12 PM in APIs and Utilities

View PostIncinirate, on 11 June 2016 - 05:05 PM, said:

Screenies please :)

coming right up, it was 4 am when i uploaded this, i was too tired lol



#253514 Simple options list creator!

Posted by unnamedcoder on 11 June 2016 - 03:56 AM in APIs and Utilities

Hey everyone, I just want to say that I made this program at 4 AM, half asleep, please tell me if I missed something if there is anything to be more efficient etc. I'm not very good at explaining things so, if you have any trouble understanding, please say! I know the pain when making a new program on computercraft and you need a quick menu, well here's the solution! I know that there are probably hundreds of programs out there, just like mine, but I thought that I should post it in-case it was any use to anyone on here.

Explanation:
To use the menu, you can use the up and down arrowkeys, hit enter to select.
If you select the first option, the function will return 1 (number), if you select option 2, it will return 2 and so on. The function takes 2 arguments, string and a table, title and the options, there will be examples below for you to see. You could load this script as an API or just paste it at the top of your code, up to you.

Download:
http://pastebin.com/EJfeq8Dp - OR - pastebin get EJfeq8Dp listmaker

Screenshots and examples:

Posted Image

this is an example program, using mainMenu("This is an example!!\nMultiple lines work too!\nSee!\n", {"A","B","C","D","E","You can have as many options as you wish!"}) try it yourself!


Any hints or suggestions? PM me! Thanks for reading!



#253118 Creating a computercraft virus, any ideas?

Posted by unnamedcoder on 06 June 2016 - 03:41 AM in Programs

Ok, so I'm pretty adept at lua, and I'll take and attempt any suggestion as long as it's not too crazy or something that I just can't do. Currently the virus is called "iloveyou", it locks your computer, changes the id, deletes all the files, and auto ejects an inserted floppy disk. the best part is the heart animation that floats across the screen.