Jump to content


zwap1233's Content

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


By content type

See this member's

Sort by                Order  

#74558 AxBoot (1.33+) - Plus Specification for Devs

Posted by zwap1233 on 15 January 2013 - 03:37 AM in Programs

handy, but will a hacker be able to install a other os and access all filles of other os's or is there some protection?



#36359 [Lua][Question] How does os.run() work?

Posted by zwap1233 on 02 October 2012 - 01:43 PM in Ask a Pro

it works thanks



#36356 [Lua][Question] How does os.run() work?

Posted by zwap1233 on 02 October 2012 - 01:24 PM in Ask a Pro

View PostOrwell, on 02 October 2012 - 01:22 PM, said:

View Postzwap1233, on 02 October 2012 - 01:11 PM, said:

View PostLyqyd, on 02 October 2012 - 01:10 PM, said:

Not with the quotes around test.

so if i use env = {['textutils'] = test}
it will work?
Yes.

thanks :(/> going to test it now!



#36352 [Lua][Question] How does os.run() work?

Posted by zwap1233 on 02 October 2012 - 01:11 PM in Ask a Pro

View PostLyqyd, on 02 October 2012 - 01:10 PM, said:

Not with the quotes around test.

so if i use env = {['textutils'] = test}
it will work?



#36349 [Lua][Question] How does os.run() work?

Posted by zwap1233 on 02 October 2012 - 01:02 PM in Ask a Pro

View PostOrwell, on 02 October 2012 - 12:55 PM, said:

The syntax of os.run is found here:
http://www.computerc...hp?title=Os.run

You can find a bit of information on Environments here:
http://www.lua.org/pil/14.html

I quickly made some code illustrating the use:

test1
env = {}
env.a = function() return 42 end
os.run(env, 'test2')

test2
print(a())

Basically, the environment is a (meta)table that stores all global variables and functions (like fs, rednet, print(), ...).
So basically this allows you to run programs with adapted global vars/functions.

if i make a api and i call it test whit a method SlowPrint
and i run a program whit os.run(env,'program')
and local env = {['textutils'] = 'test'}
would the program run my SlowPrint method everytime when he calls 'textutils.SlowPrint()'?

and thanks for the links



#36347 [Lua][Question] How does os.run() work?

Posted by zwap1233 on 02 October 2012 - 12:56 PM in Ask a Pro

View PostMtdj2, on 02 October 2012 - 12:42 PM, said:

Well, unless you are going to use the first thing (environment), I'd recomment you to use shell.run( program, arguments )
Hope I helped.

Edit: Enviroment is where the variables are stored. (Or that is what I think...)

i know what shell.run() does but the environment option may give me a solution to a problem i have.
i want to run a program in a folder but the program must not go out that folder i hoped the environment argument would allow me to manipulate the program by making the program think he is using the normal apis but excutly he running my api that edits the path and than excutes the normal api whit the modifed path, i saw something like that in the shell. (os.run({['shell'] = shell}) , _sPath) but i'm not sure what it is doing and how i could use it myself.



#36342 [Lua][Question] How does os.run() work?

Posted by zwap1233 on 02 October 2012 - 12:30 PM in Ask a Pro

like the title says: 'How does os.run() work?'
i understand that is runs the file in the second argument.
but how do i use the first argument and what does it do?



#35689 How can i unload the os api?

Posted by zwap1233 on 30 September 2012 - 09:13 AM in Ask a Pro

How can i unload the os api?

Is there a way to unload the os api?
i'm awere of os.unLoad() but what must i put between the '()'
and after it can i also reload it?



#25980 What is you programing / Technical experience ?

Posted by zwap1233 on 14 August 2012 - 12:11 PM in General

LUA of course i can also java. i have worked whit gml(can't do it anymore) and html
right now i'm the best a java. Technical well.. i can make litle devices using a building pack and a soldering iron.
so i know what thing like resistors do.



#22439 1.4 black screen

Posted by zwap1233 on 29 July 2012 - 11:16 AM in Bugs

View PostDirkus7, on 28 July 2012 - 06:35 PM, said:

View Postzwap1233, on 28 July 2012 - 03:24 PM, said:

View PostCloudy, on 28 July 2012 - 02:59 PM, said:

Update your forge version.

i have 3.3.7 the most uptodate version!
nope, 3.3.8 is the newest, you have to update
http://dl.dropbox.co...orge/Latest.txt
http://minecraftforg.../topic,5.0.html

thanks now it works (:



#22177 1.4 black screen

Posted by zwap1233 on 28 July 2012 - 03:24 PM in Bugs

View PostCloudy, on 28 July 2012 - 02:59 PM, said:

Update your forge version.

i have 3.3.7 the most uptodate version!



#22162 1.4 black screen

Posted by zwap1233 on 28 July 2012 - 02:40 PM in Bugs

View PostCloudy, on 28 July 2012 - 11:58 AM, said:



C:UsersWouterDesktop>java -Xms1G -Xmx1G -cp Minecraft.exe net.minecraft.Launc
herFrame  1>log.txt
jul 28, 2012 4:37:51 PM cpw.mods.fml.common.FMLCommonHandler beginLoading
INFO: Attempting early MinecraftForge initialization
jul 28, 2012 4:37:51 PM cpw.mods.fml.common.FMLCommonHandler beginLoading
INFO: Completed early MinecraftForge initialization
2012-07-28 16:37:51 [INFO] Forge Mod Loader version 2.2.48.135 for Minecraft 1.2
.5 loading
2012-07-28 16:37:51 [INFO] Loading mods from C:UsersWouterAppDataRoaming.mi
necraftmods
2012-07-28 16:37:51 [INFO] Forge Mod Loader has loaded 3 mods
2012-07-28 16:37:51 [INFO] MinecraftForge v3.3.7.135 Initialized
Exception in thread "Minecraft main thread" java.lang.NoClassDefFoundError: forg
e/IEntityLivingHandler
	    at mod_CCTurtle.load(mod_CCTurtle.java:35)
	    at cpw.mods.fml.common.modloader.ModLoaderModContainer.init(ModLoaderMod
Container.java:324)
	    at cpw.mods.fml.common.Loader.modInit(Loader.java:263)
	    at cpw.mods.fml.common.Loader.initializeMods(Loader.java:604)
	    at cpw.mods.fml.client.FMLClientHandler.onLoadComplete(FMLClientHandler.
java:203)
	    at net.minecraft.client.Minecraft.a(Minecraft.java:426)
	    at net.minecraft.client.Minecraft.run(Minecraft.java:735)
	    at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.ClassNotFoundException: forge.IEntityLivingHandler
	    at java.net.URLClassLoader$1.run(Unknown Source)
	    at java.net.URLClassLoader$1.run(Unknown Source)
	    at java.security.AccessController.doPrivileged(Native Method)
	    at java.net.URLClassLoader.findClass(Unknown Source)
	    at java.lang.ClassLoader.loadClass(Unknown Source)
	    at java.lang.ClassLoader.loadClass(Unknown Source)
	    ... 8 more


View PostTheOutcast5, on 28 July 2012 - 11:26 AM, said:

make sure you have no folder with zips in them in the mods folder . i had that problem once. it kept crashing me

not the case



#22115 1.4 black screen

Posted by zwap1233 on 28 July 2012 - 11:19 AM in Bugs

when i start minecraft whit only computercraft(and ccturtle) i get a black screen after the mojang logo and it doesn't go away. i deleted META-INF and coppied all the files in the forge.zip file to the minecraft.jar and coppied the computercraft.zip file to the mods folder whitout unziping it i also deleted the old computercraft folder.

if i did something wrong can someone tell me?



#21145 ALL YOUR BASE ARE BELONG TO LULZSEC

Posted by zwap1233 on 24 July 2012 - 07:59 PM in General

View Postabc, on 10 June 2012 - 07:46 PM, said:

View Postthesbros, on 25 May 2012 - 05:29 PM, said:

View Postabc, on 25 May 2012 - 04:32 AM, said:

View PostBigSHinyToys, on 25 May 2012 - 04:29 AM, said:

you do know that the leader of LULZSEC was arrested and turned informant. if you truly are LULZSEC then you may want out of the country as the polica are definitely looking for you.

as for them owing the forums you have done nothing of any consequence.
sorry but i am not sabu, however i did make this thread (for the lulz)

View Postthesbros, on 25 May 2012 - 04:01 AM, said:

I think you're spamming.
'Nuff said.
i think you just broke a rule by making a pointless post
Oh, well quoting about 7 of your posts... You made 7 pointless posts. I made 1.
So,
I win.
it was related to the fact that i posted in every section before anyone else did

dude you started talking about posting obsesion and ended at "how to crash a server"!



#21143 Why doesn't Computer Craft use java?

Posted by zwap1233 on 24 July 2012 - 07:52 PM in General

View Posttomass1996, on 08 July 2012 - 02:50 AM, said:

View Postbbqroast, on 07 July 2012 - 08:25 PM, said:

LUA is not bad at all.

View PostD3matt, on 08 July 2012 - 01:49 AM, said:

C) LUA is arguably easier than java

Just one thing that was niggling me,
Lua is not an acronym,
It is Lua not LUA.
Does it metter Lua or LUA



#20576 How to get text from above line

Posted by zwap1233 on 22 July 2012 - 10:14 AM in Ask a Pro

var = rs.testBundledInput("back",color.blue)
print(var)
if var == true then
-- do something
else
-- do something
end




#20418 how do i test my pheripheral?

Posted by zwap1233 on 21 July 2012 - 12:22 PM in Peripheral Help and Discussion

i have 2 questions.
1. like the title says how do i test my pheripheral? after making the class and adding the ccapi and instaling forge(that went all well) do i just start recompile.bat or do i first have to remove the api? and is there a easier way?

2. what class must implement the IPheripheral iterface? the basemod class or the block class i made?

zwap1233



#20410 Creating Peripherals and Turtle Upgrades (Updated for 1.5)

Posted by zwap1233 on 21 July 2012 - 11:59 AM in Peripherals and Turtle Upgrades

whit "TileEntity" do you mean the basemod class or the block class?



#20268 Shadow's ComputerCraft Server [bukkit][1.2.5][CC1.33][lockette]

Posted by zwap1233 on 20 July 2012 - 02:25 PM in General

IGN: zwap1233
AGE: 15
location: netherlands
programming history: i'm good at programing i made some bukkit plugins whit java i'm a bit new to lua but its easy to learn because it looks like java.