- Sky
- Blueberry
- Slate
- Blackcurrant
- Watermelon
- Strawberry
- Orange
- Banana
- Apple
- Emerald
- Chocolate
- Charcoal
-
Content Count
65 -
Joined
-
Last visited
-
Days Won
4
Everything posted by SpaceBeeGaming
-
How to shrink a table before it is read?
SpaceBeeGaming replied to SuperSamir's question in Programming
I think you should take this to the developers of nuclearcraft as there's nothing we can really do (apart from editing the config file to increase memory size.) -
Do you know the address of your I/O blocks? They are unique and random Expamle 2 should work IF you enter the correct addresses. right click/shift+right click with an analyzer will show you the address. take the first 5 characters of the address and put them inside the component.get() calls.
- 1 reply
-
- i/o blocks
- addressing
-
(and 1 more)
Tagged with:
-
Trouble with changing background color on existing script
SpaceBeeGaming replied to Gembrace's question in Programming
I don't see anything setting the color to white, it could be on your end. Post a screenshot of the screen, that might help figuring out the problem. It could also be that the program doesn't work correctly anymore. -
How to shrink a table before it is read?
SpaceBeeGaming replied to SuperSamir's question in Programming
How much memory you have in the computer? You should use T3.5 Memory if you arn't already. You could also try with a server as they can accept twice the amount of memory. -
I want to make an ingame "Internet" for things like email
SpaceBeeGaming replied to CanyonTheRoyStinky✔'s question in Miscellaneous
@Canyon Canyon Canyon Canyon You could take a look at my DNS server/client system. https://github.com/SpaceBeeGaming/OC-DNS. I haven't used it in a while, so I don't know if it still works (should work but no guarantees). Just ask if you have more questions or come across problems, always happy to help. -
First, use code blocks. Second, i fixed your errors and made a few improvements. This should do what you wanted, if not reply in this thread. local component = require("component") local sides = require("sides") local colors = require("colors") --Unused local event = require("event") local term = require("term") local redstone = component.redstone local firecount = 1 local run = true local function main() local input = redstone.getInput(sides.front) if (input == 10) then print("Redstone Lever ON") print("Firing Firework " .. firecount .. "!") firecount
-
Network messages repeat multiple times?
SpaceBeeGaming replied to PyroRider's question in Programming
First, why are you sleeping after event.pull() , that's unneccesary and could cause issues where a event is missed. Second, how are the computers connected (picture), Are the computers separated by a swich, is there a loop where the swich receives a packet twice (This is the most likely reason for duplicating messages.) -
First the opencomputers documentation: http://ocdoc.cil.li local computer = require("computer") local component = require("component") local sides = require("sides") local rs = component.redstone local gpu = component.gpu --Desired time in seconds EDIT THIS!!! local timer_length = 10 --Clear the screen local w,h=gpu.getResolution() gpu.fill(1,1,w,h," ") local time_remaining --Get the current time and add desired countdown to it. local time_now = computer.uptime() local target_time = time_now + timer_length -- Function to draw remaining time on screen local function PrintTime(time)
-
The program seems to require a redstone card.
-
open computers config file (settings.conf) lines 584-603.
-
OpenComputers with ticket machine from computronics
SpaceBeeGaming replied to EderV's question in Miscellaneous
@EderV The ticket machine also requires power, put another cell next to it/use cables. -
nothing to say just that i need help with a script
SpaceBeeGaming replied to GabelaGarlaSrl's question in Programming
@GabelaGarlaSrl Glad to be of help, and no it's not that long script. Here is an example of a medium/large-ish-sized script: https://github.com/SpaceBeeGaming/OC-DNS/blob/master/bin/dns_server.lua (It's from my GitHub, part of a larger project) -
nothing to say just that i need help with a script
SpaceBeeGaming replied to GabelaGarlaSrl's question in Programming
Here is a fixed version along with some notes: local event = require("event") --< event library needs to be requested. local component = require("component") --< same for component local lift = component.lift while true do local e = event.pull("motion") --< Don't use system reserved variable names for your own. if (e == "motion") then --< This event is never false, as the 'event.pull()' is filtered => the upper action will alwayus run. lift.callFloor(2) else --< Cant be 'elseif', would need a conditon to test os.run(elevatormotionmanipulation -
nothing to say just that i need help with a script
SpaceBeeGaming replied to GabelaGarlaSrl's question in Programming
@GabelaGarlaSrl What is the error? Can't help if we don't know the problem. -
@BattyCynris When you update OpenComputers (the mod), It doesn't change what is on the computers, it only changes the contents of the OpenOS floppy disk. So updating the in-game computer after the mod update only requires you to insert the OpenOS floppy disk and running "install" again. The tool you linked is basically just for those who can't update their mod (playing on a server with outdated version but need features of a newer version) so don't use it if normal updating is available.
- 852 replies
-
- gui
- controller
-
(and 2 more)
Tagged with:
-
Use public/private keys for data encryption?
SpaceBeeGaming replied to Niami's question in Programming
@Niami Here is a link https://ocdoc.cil.li/component:data Basically it works like this: user A and B both generate a key pair. Then they exchange their public keys. Then the actual AES encryption key is calculated from own private and other users public key these calculations end up in the same result. In other words: A public + B private = B public + A private. Thus allowing encryption and decryption. This is explained in the docs, but poorly. I may have some examples,I might share if you're interested. -
@AustinLearns First of all, how it doesn't work? Hard to help if the problem is unknown.
-
How are you powering the computer?
- 16 replies
-
- error
- unrecoverable
-
(and 1 more)
Tagged with:
-
@vratk0529 function names can't have (-) characters in them as it is interpreted as a minus. You have to use underscores (_).
-
@Crack3dC0d3 They get suspended because your power storage is full and they turn on if power demand rises or storage level drops. In other words it's working as intended.
- 852 replies
-
- gui
- controller
-
(and 2 more)
Tagged with:
-
Decided to change temporarily to event.pull() but thanks anyway.
-
So, I'm developing a program which uses event.listen(), and debugging them is a pain because of lines like these: bad argument #1 (string expected, got nil) How am I supposed to know where the error is when there is no location information? So is there a way to get the full error details somehow?
-
Sounds interesting, but make sure to write the documentation well.
-
Hello. So, I'm making an (in-game) monetary transaction system and for that I need encryption. Documentation on the data card is extremely poor (no examples). Here's what I have so far: Note! The key transfer has already been done. --Machine #A local pubKeyA, privKeyA = data.generateKeyPair() local shKeyA = data.ecdh(privKeyA, pubKeyB) local message = "Hello?" ---[What happens in here to encrypt data?] modem.send(encryptedData) --just placeHolder --Machine #B local pubKeyB, privKeyB = data.generateKeyPair() local shKeyB = data.ecdh(privKeyB, pubKeyA) local message=event.pull() --
-
How to get the number of files in a directory?
SpaceBeeGaming replied to SpaceBeeGaming's question in Programming
Never mind I ended up doing things differently.