Jump to content


Oct125's Content

There have been 49 items by Oct125 (Search limited from 10-February 22)


By content type

See this member's


Sort by                Order  

#119849 [API] Mouse and graphic api V1.6.1 beta. Easy to use GUI API with full mouse...

Posted by Oct125 on 22 May 2013 - 04:33 PM in APIs and Utilities

View Postbjornir90, on 22 May 2013 - 12:20 AM, said:

Just to say that i'm back on it ! I will finish the tickbox soon. :)

:D



#113247 [Solved] Problem with bundled cables

Posted by Oct125 on 22 April 2013 - 12:45 PM in Ask a Pro

View Posttheoriginalbit, on 22 April 2013 - 12:02 PM, said:

View PostOct125, on 22 April 2013 - 11:50 AM, said:

And... "r2 = not r2", it inverts r2?
Exactly right. It turns that if elseif that you had into one line. the 'not' operator inverts the result, so false is true and true is false.

Ok thanks!



#113234 [Solved] Problem with bundled cables

Posted by Oct125 on 22 April 2013 - 11:50 AM in Ask a Pro

View Posttheoriginalbit, on 22 April 2013 - 11:23 AM, said:

Try this ... I modified the code a little. If you want to know why I did anything or how anything works just ask

Thanks! Worked very well =)

And... "r2 = not r2", it inverts r2?



#113226 [Solved] Problem with bundled cables

Posted by Oct125 on 22 April 2013 - 11:20 AM in Ask a Pro

View Posttheoriginalbit, on 22 April 2013 - 10:54 AM, said:

Ok so the reason that there is the problem every time you refresh is because you keep adding or subtracting the value from the cable, this is not how they work, and again I say to people this is where colours.combine and colours.subtract come into use instead of just simple addition and subtraction.

Off-topic about people wanting you to translate your code
Spoiler

Thanks to response me! I replaced
Spoiler
to
Spoiler
but, still not working... Now when i select all, only one turn on :/



#113209 [Solved] Problem with bundled cables

Posted by Oct125 on 22 April 2013 - 10:39 AM in Ask a Pro

View PostSpongy141, on 21 April 2013 - 07:01 PM, said:

Weird... Be nice if the comments in the code were all in English, what language is that? Anyways, why do you have "term.setBackgroundColor() and "term.setTextColor()" in a comment? If your going to use them, they shouldn't be in a comment. And could you translate it ALL to English, I'm having trouble reading what variables go were... since most variables mean something, or a abbreviated so having them in a different language makes it hard to tell what the hell is going on.

I updated and translate my code, so, please, read it again in the first post!



#112716 [Solved] Problem with bundled cables

Posted by Oct125 on 21 April 2013 - 11:15 AM in Ask a Pro

View PostGradyTheHermit, on 20 April 2013 - 05:21 PM, said:

Quick question which version of the Mouse and graphic api i see a beta link and a major update upon checking your link
I would recommend if possible, abandon the api and write your code in the default computer-craft setup
Then add it back enclosed in the button function(is that what its called?)
also make sure you are using an advanced computer AND advanced monitor
you may want to try to set the colors as numbers (defined here)
or if all else fails.. you could use regular redstone wire and define the on/off for all three sides in one section of code. taking up more room and being lazy but meh

it would also help if you translated your comments in the code you wrote or at least tell me the language they are in


--also be happy i made this account to answer your question

Thanks to response my topic, i will try to replace the colors by the numbers, maybe can help, unfortunately i can't replace the bundled cable by redstone, and, the comments are in portuguese! AND i will try without the API...



#112207 A category for W.I.P. projects!

Posted by Oct125 on 20 April 2013 - 08:03 AM in Forum Discussion

I think that the title explain everything...

Obs: Work In Progress ;)



#112202 [WIP] Util OS

Posted by Oct125 on 20 April 2013 - 07:58 AM in Operating Systems

View Postbjornir90, on 06 February 2013 - 07:10 PM, said:

Is this abandonned ? I want to see what it is going to become :P And also I think you could add some computer function instead of physical functions like doors and lights ;)
No! I paused the development, but now i'm working on it again! :P

View PostHowCanIDeleteMyAccount?, on 07 February 2013 - 02:59 PM, said:

Why do I need this, if it only adds doors and lights, I could just as easily get a VERY simple program to do it for me, does it help with development, is it for people who don't know lua or what?

P.S : I am not trying to be a jerk, just see what he says, I want to know why he made it.
Well, i played in various tekkit servers, and usually, they don't have a door protection system, so, i build the door lock first, and after, the computer lock, and the other things...
I made this, to help me in those servers!



#112179 [Solved] Problem with bundled cables

Posted by Oct125 on 20 April 2013 - 07:33 AM in Ask a Pro

Hello all!
I'm trying to make a on/off selector using this API (to make the buttons), and a bundled cable, that go to my 3 ractors (each one using the white, orange and the yellow cable, respectively).

I code this, but, every time that i press "r", the reactors turn on and off, randomly!!!
UPDATED!! But not working, same problem...
Spoiler

I believe that my error is in the "Refresh" function...

Someone can help me?

Sorry for the english ...



#71685 [API] Mouse and graphic api V1.6.1 beta. Easy to use GUI API with full mouse...

Posted by Oct125 on 10 January 2013 - 05:35 AM in APIs and Utilities

View PostArchAngel075, on 05 January 2013 - 08:58 AM, said:

I am now back in action aside from small driver issues, but anyhow :

I will play around with 1.5 ASAP, and I have two suggestions! :

TickBox
draws a 3x3 box where its centre is green or red, if ticked = green if not ticked = red,

setLists
i've no idea what to call them really.. but they are simply two boxes witha button between them, the boxes contain a list of things, like place names or what have you(user defined) and allow you to set if (for this example) placeA to true, placeB - D to false and then placeE to true again.. And one can quickly return what the value of a place is..
-Its like a multi-version of the tickbox, to change a places value you click its name in the box and click the button between the boxes(which in Windows can be two arrows going right/left)

ill elaborate more if needed...

The tick box will be really useful!
And Bjornir, i've made a installer in my OS that copies the API from your pastebin ok?



#70702 [LUA] Problems with a boot loader...

Posted by Oct125 on 08 January 2013 - 05:52 AM in Ask a Pro

View PostMikk809h, on 07 January 2013 - 07:35 PM, said:

Oh then im really sorry, for posting wrong info...
i didnt really know that it would ignore the parametres.
And the parallel: i just think that it would be easier to just make two words in the paratheses.. ::-/
sorry.
It's ok! You just trying to help ;)

View PostremiX, on 07 January 2013 - 09:23 PM, said:

View PostMikk809h, on 07 January 2013 - 07:35 PM, said:

And the parallel: i just think that it would be easier to just make two words in the paratheses.. ::-/
sorry.

It is but it's really up to the coder to do what he wants :)

I'm busy looking it at it now and I see you call text() within text() within the parallel.waitForAny(). Will that not give a stack overflow at times, or maybe the time will run out in time..

edit: I think the problem does lie within the parallel function, where you call text() all the time. Weird that the time keeps changing seconds, maybe you should have used a for loop for the timer function.

Also, if you don't know about Tables, you should learn about them and use them a lot, they are really useful.

Check this out:

Spoiler

Thanks! This will help a lot! I'll put your name on the credits session ;)

And i modified the code a little to, for example, bypass the boot loader if a function in my os it is activated...



#70412 [LUA] Problems with a boot loader...

Posted by Oct125 on 07 January 2013 - 12:18 PM in Ask a Pro

View PostMikk809h, on 07 January 2013 - 11:32 AM, said:

Your term.cleaLine(6,14) should be
term.clearLine() -- Without Any arguments.

Your term.clearLine(6,14) is throwing an error, which shuts down the system, before you should know it.
and you should call your parallel.waitForAny() after the two functions :
Like :


function() -- make a name for the function. Like:

function start1()
--- Do stuff

end
function time()
timer()
end
parallel.waitForAny(start1, time)

I think that would solve the problem :P


:D
Well... Thanks anyway...

View PostOrwell, on 07 January 2013 - 11:40 AM, said:

View PostMikk809h, on 07 January 2013 - 11:32 AM, said:

Your term.cleaLine(6,14) should be
term.clearLine() -- Without Any arguments.

Your term.clearLine(6,14) is throwing an error, which shuts down the system, before you should know it.
and you should call your parallel.waitForAny() after the two functions :
Like :


function() -- make a name for the function. Like:

function start1()
--- Do stuff

end
function time()
timer()
end
parallel.waitForAny(start1, time)

I think that would solve the problem :P


:D
You're wrong twice. You can perfectly call term.clearLine(6,14), it will just ignore the parameters. You can also perfectly define the functions within the call to parallel.waitForAny. Thus the problem is something different. If no one finds it soon, I will take a look myself.

Ok!



#70381 [WIP] Util OS

Posted by Oct125 on 07 January 2013 - 11:14 AM in Operating Systems

View Postpielover88888, on 07 January 2013 - 10:46 AM, said:

thank goodness i know a little spanish, because i really would not understand this otherwise..and..still don't.
all i knew is "press" and "continue" when i clicked shell, lol

:P Don't worry i'll translate it in the final version...

Seems like the new bootloader worked... B)

A litte tip:

In the menu:

Desligar = shutdown
Reiniciar = reboot
Shell = Shell :P

After clicking you need to press any key to proceed...



#70355 [LUA] Problems with a boot loader...

Posted by Oct125 on 07 January 2013 - 10:34 AM in Ask a Pro

I'm creating a boot loader for my OS, but i'm having problems... He have a countdown, but when the count Reaches 0, the boot loader doesn't stop... If i press any key that i'm using in the boot loader (arrows), the boot loader restart and reboot the os... So i have to stop him! And i don't know how do this... And when i select another item, the boot loader start a new count, and don't stop the old...

Here's the code:
Spoiler

Some one can help me?



#70331 [WIP] Util OS

Posted by Oct125 on 07 January 2013 - 09:12 AM in Operating Systems

View PostSkullblade, on 06 January 2013 - 10:01 AM, said:

Quote

No. This isn't another OS, this OS, have real and useful functions!
Grammar is a little off; otherwise looks pretty cool :)
Fix it! Sorry for that...

View Postpielover88888, on 06 January 2013 - 03:53 PM, said:

i ran the pastebin thing to download it,
then ran it of course, and.. o_O where does it put the os? it won't boot the actual operating system, lol. And, yes i tried restarting the computer.

View PostSkullblade, on 06 January 2013 - 07:22 PM, said:

Ummm is it just me or does when you run inst it goes through fine and says its downloading and fine but none of the files install

View Postpielover88888, on 07 January 2013 - 08:45 AM, said:

not just you, Skullblade, that's for sure.
Please re-download the installer!
The os will boot automatically...
Sorry for that...



#69806 [WIP] Util OS

Posted by Oct125 on 06 January 2013 - 06:22 AM in Operating Systems

View PostPixelToast, on 06 January 2013 - 06:09 AM, said:

belongs in general, just pm a moderator to move it back when you release code

the door could use a darker shade under and to the right of the window part
and the light could use orange in the center and yellow on the outside

the boot screen could be animated (and disabled ) in the config menu
it gets annoying seeing a boot screen whenever i want to restart the computer

Ok! I liked your tips thanks! I'll tweak the icons ;) And do something about the boot screen...



#69795 [WIP] Util OS

Posted by Oct125 on 06 January 2013 - 06:05 AM in Operating Systems

View PostPixelToast, on 06 January 2013 - 05:58 AM, said:

the icons could use some work but other than that it looks nice c:

The principal screen is a big image, with these icons :P So the computer needs to print only one image!



#69782 [WIP] Util OS

Posted by Oct125 on 06 January 2013 - 05:50 AM in Operating Systems

Util OS

V: 0.2 BETA



Hello all!
I'm working in a project called Util OS. This isn't another OS, this OS, have real and useful functions! And is totaly in user interface, no command line!

Functions and the progress:
Spoiler

At startup you can choose if you want to use Util OS, or CraftOS (if you don't active any function actived). And you can return to the shell in the Principal screen.

In this OS, i'm using this awesome API:

Mouse and graphic API by Bjornir90 - http://www.computerc...ent-of-buttons/

And i created my own API inspired on the Cornichen API that creates a window. (I haven't found the Cornichen post, sorry!)

And here some screenshots...
Spoiler

And here is the installer, if you want to try it!
But... The OS is completely in portuguese...
I'll translate it in the final version...
You need to have HTTP API activated!

To install, type in your computer: pastebin get FkKztnmp inst
and after downloading type: inst



ChangeLog!
Spoiler




Please give-me feedback! If like the idea post here too!
Sorry for my bad English...



#65656 [API] Mouse and graphic api V1.6.1 beta. Easy to use GUI API with full mouse...

Posted by Oct125 on 29 December 2012 - 07:43 AM in APIs and Utilities

Ok!



#65276 [WIP] HackDOS 1 by Pikachi_Althon

Posted by Oct125 on 28 December 2012 - 11:15 AM in General

View PostPikachi_Althon, on 28 December 2012 - 08:53 AM, said:

How do you move topics? Get a mod to do it?
Oct123 its WIP (Work in Progress)

Ok! Sorry for i don't pay attention :P



#65224 [API] Mouse and graphic api V1.6.1 beta. Easy to use GUI API with full mouse...

Posted by Oct125 on 28 December 2012 - 08:10 AM in APIs and Utilities

Error in line 269: Unexpected symbol, it's a "çl" I fix that but the code keeps buggy in line 240 :/



#65220 [WIP] HackDOS 1 by Pikachi_Althon

Posted by Oct125 on 28 December 2012 - 07:59 AM in General

Please post some screenshots ;)
And the download!



#64763 [API] Mouse and graphic api V1.6.1 beta. Easy to use GUI API with full mouse...

Posted by Oct125 on 27 December 2012 - 08:10 AM in APIs and Utilities

Ok!

Error: gui:240: attempt to compare __lt on nil and number



#64418 [Solved] Search for a name in a table

Posted by Oct125 on 26 December 2012 - 09:50 AM in Ask a Pro

View PostCozzimoto, on 26 December 2012 - 09:41 AM, said:

you are quite welcome. i learn by just writing my code all by myself, but i am here to teach as well =D

EDIT
another thing that may be very fun to do is if the client sends back a failed message meaning the password didnt match what you sent you can have it send a redstone signal thats hiding under the users feet to drop them into lava or some sort of way to kill them saying they are not allowed, or a safer way would keep track of how many attemps and if the failed attempts equals lets say 3 then drop them. >=)

:D Thanks the code will help a lot! And this is a good idea to keep others away from my house >:)


View PostremiX, on 26 December 2012 - 09:44 AM, said:

I'd suggest to not use tables, rather use a file system (save all users and there passwords to a file of their own
Save the names and passwords of everyone to a file.

Your file system can be like so:
.OS (main directory)
  .users (directory for all users)
	Oct125 (users)

To check if the user is valid, you use repeat to check every line of the file:

write("Username: ")
userName = read()

if fs.exists(".OS/.users/" .. userName) then
	-- code if the user exists
	-- now enter password, etc
else
	-- user does not exist
end

Well, that's a good idea, i'll think about it...



#64416 [Solved] Search for a name in a table

Posted by Oct125 on 26 December 2012 - 09:45 AM in Ask a Pro

:D Thanks the code will help a lot!