- ComputerCraft | Programmable Computers for Minecraft
- → PossieTV's Content
PossieTV's Content
There have been 35 items by PossieTV (Search limited from 10-February 22)
#256992 Cobalt - a callback wrapper for ComputerCraft
Posted by
PossieTV
on 28 July 2016 - 03:05 AM
in
Programs
1.) The key event doesn't support the fn key and the command key, not on my mac anyway. It was an easy fix though. I just added a check in the event handling part of the cobalt program.
2.) It would be nice to have each object have a "visible" attribute that would allow me to hide and show an object without changing cobalt.state
3.) While the graphics are impressive, it is really only useful for creating basic things like menus and log in screens. Now don't get me wrong, those things are useful, it would just be nice for it to be able to handle more challenging graphical problems. For example, if you could remove buttons from a panel, or draw them directly to the screen.
I really do like the callback feature though. I think that's the best thing about cobalt. Not only does it makes graphics super easy, it makes the actual programming easier too. It's less typing and less headaches for me XD. Overall, well done. I don't download programs from the forums that often, let alone use them, let alone take the time to give feedback (I usually prefer to build all of my own tools). So again, good job!
#255842 Idea Exchange
Posted by
PossieTV
on 09 July 2016 - 07:19 PM
in
General
SquidDev, on 09 July 2016 - 01:43 PM, said:
CrazyPyroEagle, on 09 July 2016 - 10:07 AM, said:
Cracking monoalphabetical substitution isn't that bad to do automatically: instead of looking at individual letters you look at groups of letters (such as 4 successive letters) and math their frequency. The practical cryptography website (http://practicalcryp.../cryptanalysis/) has some pretty great docs on how to cracking ciphers through code.
The national cipher challenge in the UK (http://www.cipher.maths.soton.ac.uk) does many of the the things the OP discusses and may be worth checking out.
Yeah, I actually wrote one a while ago for CS class that did just that. It would look for single letters and judging on the frequency would assign it to either "i" or "a". And because "e" is rarely mis-assigned. You can go through and find the three letter word with the highest frequency ending in the letter assumed to be "e" and assign the first two letters to "t" and "h". I just used a bunch of little stuff like that along with the frequency analysis and it worked pretty good. I mean of course it's not perfect, but it was able to crack a lot of the ciphers I gave it.
//More on topic
I think it would be col to have a pastebin program that stores in a server somewhere how many times people download your program. Kinda like a nelson box for CC.
#255804 How can I create a progress bar?
Posted by
PossieTV
on 09 July 2016 - 03:35 AM
in
Ask a Pro
Like this
mon = peripheral.wrap(monSide) --Wraps the peripheral oldTerm = term.redirect(mon) --Redirects the term while storing the old term in a variable named oldTerm coloredPortion = math.floor((currentPower/maxPower) * width) --Calculates the width of the colored portion paintutils.drawLine(startX, y, startX + width, y, barColor) --Draws the bar paintutils.drawLine(startX,y,startX + coloredPortion, coloredPart) --Draws the colored portion over the bar term.redirect(oldTerm) --Sets the term back to normal
However if you have an irrational aversion to paintutils like myself or you don't want to redirect the term, you can create your own draw line method like this
function drawLine(x,y,length,color) --Defines the function
oldBgColor = term.getBackgroundColor() --Gets the current background color
for i = x, (length + x) do --Starts a for loop starting at x and ending when x gets to x + length
term.setCursorPos(i,y) --Set the cursor position to i,y
term.setBackgroundColor(color) --Set the background color to the color
term.write(" ") --Write that color to the screen
end
term.setBackgroundColor(oldBgColor) --Reset the background color
end
Of course should you decide to use this function you would have to tweak the first block of code. Just change the paintutils.drawLine() functions to this.
drawLine(startX, y, width, barColor) --Draws the bar drawLine(startX, y, coloredPortion, coloredPart) --Draws the colored part over the bar
There you go, hope I could help.
#255792 GoldSlide V1.0 (Keynote/Powerpoint in Minecraft) [WIP]
#255073 Server Project Idea- Capture the Base (POC)
Posted by
PossieTV
on 29 June 2016 - 05:12 AM
in
General
lutherwenxu, on 28 June 2016 - 10:37 AM, said:
We aren't really looking for any more team members at the moment, but help/support is always appreciated! If you wish to help, we are thinking of adding an arcade at spawn and we need games/game ideas for it. Thank you so much though for your support!
#254659 Crate API - Summon chests with items!
Posted by
PossieTV
on 23 June 2016 - 08:57 PM
in
Command Programs
#254441 Server Project Idea- Capture the Base (POC)
Posted by
PossieTV
on 21 June 2016 - 08:41 PM
in
General
Creator, on 21 June 2016 - 08:05 PM, said:
PossieTV, on 21 June 2016 - 07:49 PM, said:
Creator, on 21 June 2016 - 09:56 AM, said:
I would love your help! I took a look at your programs and your gui skills are impressive (which is pretty much all that is left on the programming side). What api did you use for FileX? Also what are your building skills like?
FileX ==> some on the go framework that is hardcoded in the program. I was writing Pixel at some point, but lost interest and a lack of time.
Building skill ==> I love it!
Sweet, then your in! I'm still working out details with Danny but once I get them I'll PM you and we can start building and set a open date.
#254433 Server Project Idea- Capture the Base (POC)
Posted by
PossieTV
on 21 June 2016 - 07:49 PM
in
General
Creator, on 21 June 2016 - 09:56 AM, said:
I would love your help! I took a look at your programs and your gui skills are impressive (which is pretty much all that is left on the programming side). What api did you use for FileX? Also what are your building skills like?
#254366 Tornado Alert System
Posted by
PossieTV
on 21 June 2016 - 05:30 AM
in
Programs
A.) Indent your code- This won't change the function of the program but it will make you seem more experienced as this is a common practice amongst professional programmers
B.) Don't use shell.run('clear')- Again, this won't change the function of the program but will make you seem more experienced
C.) Add a variable at the beginning for the input side so people can change it easier.
D.) Put your code in a while true loop that way you don't have to reset the program after every tornado.
E.) Add support for monitors. For example, when a tornado warning is issued, the computer would put the message on all the monitors it is connected to.
Other than that, good program!
#254340 Server Project Idea- Capture the Base (POC)
Posted by
PossieTV
on 20 June 2016 - 07:07 PM
in
General
DannySMc, on 20 June 2016 - 05:38 PM, said:
Awesome! I've worked on it a little bit more since that video. Everything works, it just needs to be polished a little bit. If you want to meet me on a server some time to work out everything I'm free pretty much any time. I would love to see this project up and running and I think it would be a lot of fun.
#254123 Krist betting?
Posted by
PossieTV
on 18 June 2016 - 07:12 AM
in
General
Jiloacom, on 18 June 2016 - 01:20 AM, said:
PossieTV, on 18 June 2016 - 12:35 AM, said:
When and if the day comes that people actually start accepting Krist in place of USD or any other official currency, I will be very excited and will probably jump on the Krist train as quickly as possible. However, until that day comes, my point still stands that there's no practical use to the currency. You guys can boast about the fact that you're trading Krist for small things that would otherwise be free (like Logan's logos), but trying to argue that this currency is more than just a fun little game is stretching it.
Again, making it clear, I mean no offense to the creator or any users of Krist, I don't dislike the currency or the people who use it, I just dislike the fact that people think it's valuable.
Right, and I don't think it was ever meant to be something serious. I think it was meant to just be a fun game for people to play around with as well as an impressive bit of code. All I'm saying is that the value is not inherit in the Krist, it's whatever people give it, which right now, is very little.
#254083 Krist betting?
Posted by
PossieTV
on 18 June 2016 - 12:35 AM
in
General
Cloud Ninja, on 18 June 2016 - 12:31 AM, said:
Jiloacom, on 18 June 2016 - 12:02 AM, said:
PossieTV, on 17 June 2016 - 09:37 PM, said:
That and the fact that there are useful things you can do with the tree bark painted green, such as buying food or paying bills. You can't do that with Krist.
Exactly! Just as with the American dollar (or any currency really), it becomes more and more valuable as people start to offer goods in exchange for it (like logos or server store or anything like that). And when someone offers a service on the forums (say a server hosting service or something like that) that charges Krist and peaks your interest, you will more than likely find Krist useful then.
#254053 Computercraft companys
Posted by
PossieTV
on 17 June 2016 - 09:49 PM
in
General
valithor, on 17 June 2016 - 09:42 PM, said:
PossieTV, on 17 June 2016 - 09:39 PM, said:
The idea of creating programs in a group is completely okay. Whenever it comes to "selling" these programs that it becomes funny. This is CC we are talking about here... It is meant to be a place where people can come and learn how to program, not where programs that could help someone learn must be bought with a worthless currency.
Oh I see well that makes sense, I don't really care about that though, I gave up on krist a while ago, I just like making group programs.
- ComputerCraft | Programmable Computers for Minecraft
- → PossieTV's Content


