- ComputerCraft | Programmable Computers for Minecraft
- → davidgumazon's Content
davidgumazon's Content
There have been 31 items by davidgumazon (Search limited from 10-February 22)
#226776 The ban game
Posted by
davidgumazon
on 21 July 2015 - 09:15 AM
in
Forum Games
weeds
#226569 CCDrop - Advanced Directory And File Transfer
Posted by
davidgumazon
on 20 July 2015 - 11:52 AM
in
Programs
Hbomb_79, on 06 April 2015 - 02:21 AM, said:
Known bugs:
- If a directory is empty, the computer will hang and the waiting computer will never stop waiting until reboot/shutdown.
- Directory selection is limited by alphanumerics.
- element API is incorrectly configured.
- frame buffer causes flickering while transfering files on some machines.
#226567 Getting file size of current program?
Posted by
davidgumazon
on 20 July 2015 - 10:33 AM
in
Ask a Pro
RadiationAlert, on 07 June 2015 - 04:28 PM, said:
local DiskContents = fs.list (Disk);
local DiskSize = 0
for index, file in pairs (DiskContents) do
print ("Previous Space Calculated: "..DiskSize);
print ("Current File: "..file);
***** DiskSize = DiskSize + fs.getSize (file); ***** Line 9
end
wow! i learn new code in LUA i finally get it how for index, var in pairs(val) do end it works
-- i test this code and it works :D/>
test={'xxd','xdx','xdd'}
for var1, var2 in pairs(test) do
if var2=='xdd' then
print(var1) print(var2)
end
end
+1 LikeThis Code for my OS ;D
#223472 NEI Required? and Return Table (Function) Error
Posted by
davidgumazon
on 27 June 2015 - 07:20 AM
in
Ask a Pro
wieselkatze, on 24 June 2015 - 04:14 PM, said:
local a, b, c, d, e, f, g, h = unpack( yourTable )
or
local f1, g2, h3, i4, j5, k6, l7 = unpack( yourTable )
As the name says - they are variable. Just the same as your 'param1,param2,param3' etc.
Bomb Bloke, on 25 June 2015 - 01:03 AM, said:
davidgumazon, on 24 June 2015 - 10:45 AM, said:
Apparently mods have to tell NEI what their recipes are, so NEI can show those recipes to players. Dan had made a mistake causing the Advanced Computer recipe to display an incorrect component. It only affected people who actually had NEI installed.
#imbadgrammur
#223471 The ban game
Posted by
davidgumazon
on 27 June 2015 - 07:06 AM
in
Forum Games
MEME ◕‿◕
#223115 The ban game
Posted by
davidgumazon
on 25 June 2015 - 10:57 AM
in
Forum Games
print(print())
NeoCoder , New-Coder ==> Newbie Coder
#223024 NEI Required? and Return Table (Function) Error
Posted by
davidgumazon
on 24 June 2015 - 03:14 PM
in
Ask a Pro
KingofGamesYami, on 24 June 2015 - 02:22 PM, said:
hmm unpack might be useful for my API Project
3 Parameters, triangle has 3 sides, 3+3=6, 6/2=3, pizza has 3 sides and 3 hunger regen
*it can be i was fool again* #illumipizza_confirmed
#223004 NEI Required? and Return Table (Function) Error
Posted by
davidgumazon
on 24 June 2015 - 10:45 AM
in
Ask a Pro
wieselkatze, on 23 June 2015 - 06:05 PM, said:
local yourTable = {
"value 1";
"value 2";
"value 3";
}
local val_1, val_2, val_3 = unpack( yourTable )
unpack() is a builtin lua function, you can find some information here - bottom half of the page.
I don't really know what you mean with 'Is NEI required to fix others' mods recipes' - NEI is just there to display all the registered recipes. Also it lets you do some tweaks, e.g. changing weather, time etc..
local val_1, val_2, val_3 = unpack( yourTable )ur Code Returns Limited but i need Returns Infinitely it Returns How much Table is there
example : #var1 is 4, #var2 is 18 then i do
param1,param2,param3,param4=returnTable(var1) param_1,param_2,param_3,param_4,param_5,param_6,param_7,param_8,param_9,param_10,param_11,param_12,param_13,param_14,param_15,param_16,param_17,param_18=returnTable(var2)so the API i talk about is how much Table Stored in Variable it returns How Much Stored Tables there, ill try ur code later (cuz ill update my minecraft forge & mods)
HPWebcamAble, on 23 June 2015 - 11:51 PM, said:
davidgumazon, on 23 June 2015 - 01:05 PM, said:
is NEI is Really Required?
What made you think it was required?
You shouldn't need it, but it is by far the best mod for recipes, since it can automatically determine vanilla recipes, and plugins allow it to display modded machine recipes
It stands for Not Enough Items, which is a word play on the mod Too Many Items, which had the ability to only cheat in items (Don't think it can show recipes)
and Thanks for the Acronym , i feel refresh about "NEI"
(o_o) wait NEI is 3, Not Enough Items is 3 Sentence, it means 6, NEI's acronym "Enough" col is 6, so it says ENOUGH, and NEI word was Weird and i heard this word from song *..Watch me NEI NEI..* 2 NEI in that song my costomers in my Cafe dont stop playing that song so i want to tell them "Enough", it means 0_0 i was Fool, ... , #illumiPizza_Confirmed
Bomb Bloke, on 23 June 2015 - 11:55 PM, said:
But as to why your function doesn't work, the "retset" string it constructs would end up looking like this:
return blabal,lololol,just example ;)/>/>,
Whereas you would want it to look like this:
return "blabal","lololol","just example ;)/>/>"
The last line, "ls()", should also've been written as "return ls()".
#222848 NEI Required? and Return Table (Function) Error
Posted by
davidgumazon
on 23 June 2015 - 01:05 PM
in
Ask a Pro
is NEI is Really Required? to fix other recipe's mods? for ComputerCraft
i'm Confuse cuz Alot of People use this Acronym :// and i dont understand
please anyone answer my simple question...
and
if i do this Function it gives nil, im confuse i need this function
function returnTable(...) ... end --Load Function for..
example={"blabal","lololol","just example ;)/>"}
local param1,param2,param3=returnTable(example)
--example hav 3 table or more param for returnTable(...)
this my returnTable Codefunction returnTable(_) retset="return " for i=1,#_ do retset=retset.._[i]..',' end ls=loadstring(retset) ls() end
#218858 Pastebin Login User Key and Login as Google Account?
Posted by
davidgumazon
on 27 May 2015 - 06:32 AM
in
Ask a Pro
MKlegoman357, on 26 May 2015 - 03:59 PM, said:
http://example.com/?param1=value1¶m2=value2
If you are going to use pastebin as a message-transfer API then it won't quite work as pastebin is not meant for that. It will probably stop responding after a few messages because it will think it's spam, which will be quite true when you think about it. If you're posting message then at least make them expire, so they won't be floating in pastebin forever.
http://pastebin.com/api/api_post.php?param1=value¶m2=value2 or http://pastebin.com/api/api_post.php?i=param1=value¶m2=value2wat code ill use?
___________________________________________________________
and about my IRC for ComputerCraft:
Advertising IRC : is in Pastebin Site : 1 Server
- is Added to Allow any User Advertise Before a User Entering to Chat Areas
- There's No Cooldown Storage
- 1 Hour Advertise Cooldown/Expiration
- Blacklist is in Pastebin Site and Whitelist & ChatArea is in Another Site
- There's no Cooldown Storage
- 5 Seconds Reply Cooldown
- 30 Minutes Reply Expiration
- Added Ban Player System is Blacklist and ur Current Blacklist in IRC is saved to ur ComputerStorage
- is for User want to make own Private IRC or IRC's some players is entering ur own Chat Area
- 3 Servers Created by User can't be Float in Another Site (3 Servers is 1 Day Expiration)
- Making Own IRC and 3 Servers Created for Blacklist and Whitelist and Chat Area
- Reply Cooldowns is same as Global IRC and No Cooldown Storage
- Added Every Player is added to Whitelist to check user's INFO
- 15 Minutes IRC Cooldown
- 1 Day IRC Expiration
this is my flowchart outdated
http://linkshrink.net/7NO6PN
___________________________________________________________
Cranium, on 26 May 2015 - 05:34 PM, said:
#218755 Pastebin Login User Key and Login as Google Account?
Posted by
davidgumazon
on 26 May 2015 - 07:51 AM
in
Ask a Pro
i trying to decode pastebin's api system it gets me errors
file source: http://pastebin.com/UHvi7TNH
function getUser(username,password)
write("Login to pastebin.com...")
local response=http.post(login,
api_dev_key..key.._n..
api_user_name..textutils.urlEncode(username).._n..
api_user_password..textutils.urlEncode(password))
if response then
local sResponse=response.readAll() response.close()
print("Success.")
print("user key: "..sResponse)
return response
else
print("Failed.") print(sResponse) return false
end
end
"test" file to debug my api
os.loadAPI("papi")
print(papi.getUser(blablablabla,blablabal))
list usernames i test: red color is result
[email protected]<script cf-hash='f9e31' type="text/javascript"> /* */</script>
Error
davidgumazon03
Invalid Post Parameters
how can i Valid Post Parameters and Login as Google Account?
someone help me i'm confused i dont like to be alone in my SinglePlayer D: i'm making CC's IRC project
#210906 1.73 Bug Alert LOL can't craft xD
Posted by
davidgumazon
on 25 March 2015 - 01:45 AM
in
Bugs
Cranium, on 24 March 2015 - 02:43 PM, said:
#210799 1.73 Bug Alert LOL can't craft xD
Posted by
davidgumazon
on 24 March 2015 - 05:13 AM
in
Bugs
CC 1.73
DESCRIPTION:
i want to Craft Advance Turtle (LAN/Single Player)
latest Forge Version
EXPECTED RESULT:
and Lol i can't Craft Advance Turtle and i throw my gold, redstone,and computer in Lava for Luck XD
REPRODUCTION STEPS:
1. Resources
2. Craft
3. Bug
4. LOL
SCREENSHOT/VIDEO:
No!!! 0_0' Just Craft it
and Fix the Bug
#210099 FileX: a powerful file eXplorer with GUI![Big Update!][Open with...]
Posted by
davidgumazon
on 18 March 2015 - 04:42 PM
in
Programs
#209676 How many valid characters in CC
Posted by
davidgumazon
on 15 March 2015 - 10:10 AM
in
Ask a Pro
cuz i want make ID Generator for ComputerCraft Adds-On.
Aa,Bb,Cc,Dd,Ee,Ff,Gg,Hh,Ii,Jj,Kk,Ll,Mm,Nn,Oo,Pp,Qq,Rr,Ss,Tt,Uu,Vv,Ww,Xx,Yy,Zz (26x2)
0,1,2,3,4,5,6,7,8,9 (10)
!@#$%^&*()-=_+{}:"<>?|[]\;',./ (30)
Unknown? (??)
like Copyright mark,Registered mark, and ?
#209672 LyqydOS Beta/Development
Posted by
davidgumazon
on 15 March 2015 - 05:33 AM
in
Operating Systems
#209668 FileX: a powerful file eXplorer with GUI![Big Update!][Open with...]
Posted by
davidgumazon
on 15 March 2015 - 04:39 AM
in
Programs
#209662 ComputerCraft IRC while playin minecraft, PB expiration, HB spam
Posted by
davidgumazon
on 15 March 2015 - 03:54 AM
in
Ask a Pro
HPWebcamAble, on 14 March 2015 - 07:02 PM, said:
Pastebin has an API, which the 'pastebin' program uses. Here's a link to it:
http://pastebin.com/api#6
Your third question doesn't really seem to be a question
lol my third question is not question it's opinion?
#209534 ComputerCraft IRC while playin minecraft, PB expiration, HB spam
Posted by
davidgumazon
on 14 March 2015 - 01:42 PM
in
Ask a Pro
there's anyone make IRC for Chat Public while playing minecraft computercraft mod?
using "http"? somebody getting bored while programming there own CC project, because only singleplayer no friendz no chat
2nd Question :
how to upload pastebin file with expiration
3rd Question :
dont much spam uploading file in Hastebin if free space is low then Hastebin will delete all files and i lost my old file few years ago ;_;
#204394 Redstone API File and CloudFlare Security
Posted by
davidgumazon
on 29 January 2015 - 12:29 AM
in
Ask a Pro
#204221 Redstone API File and CloudFlare Security
Posted by
davidgumazon
on 27 January 2015 - 03:33 AM
in
Ask a Pro
and
This CloudFlare Security Always Annoyed me Every i go in http://www.computercraft.info/forums2/ or http://www.computercraft.info/ Link This CloudFlare Security Always Popup i don't know how to remove it!
#203998 ComputerCraft RAM (Random Access Memory) Idea!
Posted by
davidgumazon
on 24 January 2015 - 03:15 PM
in
Suggestions
valithor, on 17 January 2015 - 04:52 PM, said:
local comp = regular computer
gold comp = advanced computer
ps. the constant use of bold actually makes what you write incredibly hard to read.
DannySMc, on 19 January 2015 - 03:53 PM, said:
I'm Not English i'm from philippines and it's not simple to understand some english for me but i can understand some english and k no more Bold that RAM i talking about it's just Local or Global Variable that Another Computer will Handel Data everything he received and i'm not trying to plss add Ram in ComputerCraft mod, i just call Local is Regular and Gold is Advance Computers so i need to call This Computer's Reg Computer and Adv Computer?, \_(o.o)_/ iknow this is Poor Idea that my 2nd Question is to... does anyone have any Better Idea for RAM but
DannySMc, on 19 January 2015 - 03:53 PM, said:
ElvishJerricco, on 19 January 2015 - 11:48 AM, said:
Variable = {} like
-- Handler
local var1 = {}
while true do
local var2 = fname.waitForRequest()
if var2 == "cmd" then
rednet.send(id,[str]cmd)
local var2 = fname.waitForRequest()
local var1 = var2
elseif [another condition]
[same]
else
[do nothing]
end
end
-- Main
rednet.send(id,cmd)
var1 = rednet.receive()
rednet.send(id,data)
That's All
Mr. Bateman, on 19 January 2015 - 02:43 PM, said:
Mr. Bateman, on 19 January 2015 - 02:43 PM, said:
jajaja
DannySMc, on 19 January 2015 - 03:53 PM, said:
Also this should really be moved as it's not a help question
and Where i gonna Move This can u see there's 3 Question that 3rd Question is just a Question for a Question and another Question
This my PC i use is my Gift from my Uncle on 2011 this my PC i know 4-5 years Computer Life Span
Edit :
#203354 I Need Help , Text Processing and [for state do body end]
Posted by
davidgumazon
on 17 January 2015 - 08:47 AM
in
Ask a Pro
Bomb Bloke, on 16 January 2015 - 10:23 PM, said:
It supports :sub() (which is short for substring, not subtract, if that's what you're thinking), and so does Coding Ground. Neither, on the other hand, have a definition for "fname" built in.
For example:
local myVar = "Whatever" print(string.sub(myVar,1,4)) --> What print(myVar:sub(5,8)) --> ever
See this guide for more info.
If I wanted to convert a boolean into a number, I guess I'd do this:
myVar = myVar and 1 or 0 -- Sets myVar to 1 if it was true, or to 0 if it was false.
myVar = myVar and 1 or 0
will it work ? for me i need to do this
myVar = false if myVar == true then myVar=1 else myVar=0 end
#203352 ComputerCraft RAM (Random Access Memory) Idea!
Posted by
davidgumazon
on 17 January 2015 - 08:38 AM
in
Suggestions
Lignum, on 16 January 2015 - 04:57 PM, said:
LemonLake, on 16 January 2015 - 05:06 PM, said:
ardera, on 16 January 2015 - 06:47 PM, said:
My Computer is for Gaming
i talking about RAM in ComputerCraft
Bomb Bloke, on 16 January 2015 - 09:58 PM, said:
Quote
#203245 I Need Help , Text Processing and [for state do body end]
Posted by
davidgumazon
on 16 January 2015 - 10:06 AM
in
Ask a Pro
[b]var:sub([num],[num])[/b]on Coding Ground , but doesn't work , i notice this sub only works on Lua Version 5.4 and that Coding Site is using Lua v5.2
what is Computercraft's Current Lua Version Used ?
KingofGamesYami says :
It only works on a variable holding a string though, if you tried to do this:
local var = true
var:sub( 1, 1 )
Convert boolean into Number
local var = true local var = fname.converter(var) new_var = var:sub([num],[num])
- ComputerCraft | Programmable Computers for Minecraft
- → davidgumazon's Content


