Hi, I have a computer connected to some adapters for my nuclearcraft reactors and I want to run commands to these adapters via modem messages. I've got the load function to execute commands such as reactor.activate and deactivate but it won't return any values such as reactor.isProcessing (true/false) or reactor.getEnergyStored(). I've got a code example below where I've skipped the modem message and made an example string.
Printing test gives me a nil value but printing test2 gives me the expected value of true/false. How do I get it to return something so that I can send the info back to the requesting computer?
You can post now and register later.
If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.
Hi, I have a computer connected to some adapters for my nuclearcraft reactors and I want to run commands to these adapters via modem messages. I've got the load function to execute commands such as reactor.activate and deactivate but it won't return any values such as reactor.isProcessing (true/false) or reactor.getEnergyStored(). I've got a code example below where I've skipped the modem message and made an example string.
Printing test gives me a nil value but printing test2 gives me the expected value of true/false. How do I get it to return something so that I can send the info back to the requesting computer?
Thanks.
Link to post
Share on other sites