Program not functioning?
#1
Posted 07 November 2017 - 10:14 PM
Installer:
https://pastebin.com/3JdVN9Tz
ClickMenu:
https://pastebin.com/HuZxiUFC
Remote:
https://pastebin.com/f39FWPcg
I should also mention that I do not get any errors during any of the programs listed. I also have another menu system that works with this perfectly. Instead of clickable buttons it uses just the keyboard. The install for that is here: https://pastebin.com/SPaBgXtV
#2
Posted 07 November 2017 - 10:34 PM
*There are exceptions to this, such as global variables.
Unrelated, but why do you have an exact duplicate of my stacker game on your pastebin? You should give me credit for my program at the very least, though I would prefer duplicates to not exist at all - simply point the installer to my pastebin.
#3
Posted 08 November 2017 - 03:10 AM
The credit is given in my program, I only edited it so when I exit the game it reboots it or goes to the menu. I have a disclaimer in the menu system saying I did not write any of the coding and there are links to the original poastebins. I don't want to have to recode it everytime I install my menu program, its simply for convenience.
#4
Posted 08 November 2017 - 03:30 AM
As far as credit goes, that's fine, but you shouldn't need to edit my script to do something after it is executed. Execution returns to the point in the script where shell.run after the program ends; the same effect could be added by simply modifying your own program instead of mine.
#5
Posted 08 November 2017 - 03:34 AM
I'm not very good at ComputerCraft, nothing past the basics. It was easir for me to do it this way. If you're uncomfortable with me using your program I can take it down. The original pastebin is linked under the "Help" menu and it states I did not make the program. I can add your actual name if you'd like as well.
Edit: The menu system I am making is purely for a private server including a bunch of my friends. We're creating an arma like style of gaming server that we use computercraft a lot for and I wanted to make the computer program have more options and I thought adding games would make it so, rather than try to learn how to before the server goes up, I figured I'd collect a few and put them in a separate menu. The menu system is the standard program that will be used in specific classes that players can choose from but not everyone has access to the computer and its contents. Mostly, I will be using it so really it's more of a personal convenience and I don't have the time between work, college, internships, and life to learn more intricate coding to make it the way I wanted, this was just easier.
Edited by RobotBubble, 08 November 2017 - 03:37 AM.
#6
Posted 08 November 2017 - 03:47 AM
I have a third computer listening for all rednet messages and printing them to a monitor screen.
I launched "remote" via each menu, and proceeded to press wasd (in that order) and compared the outputs on the monitor.
The outputs were identical, aside from the varying IDs (since the computers have different IDs).
This leads me to believe that the problem does not exist within your clickmenu program, and instead resides elsewhere. I can provide video evidence if you wish.
PS: I'm fine with you using my program, but give credit to the original creators of each program. The name and a link to the CC forums post of each program should be sufficient.
Edit: Besides this, there are some issues with your programs. For example, in "remote" you have a massive if/elseif chain ending with an "else" which runs the program again... this is called recursion and will eventually cause a java exception to be thrown.
Another issue is your use of rednet.recieve in remote. Before it will function, it expects to receive a response. I simulated this response by sending a random rednet message at it, simply to get past that point in the script. However, it would probably be a good thing to have a timeout on that which would indicate no turtle was found.
Edited by KingofGamesYami, 08 November 2017 - 03:53 AM.
#7
Posted 08 November 2017 - 04:06 AM
https://www.youtube....F2PkSrcxY&t=49s
https://pastebin.com/187EGDBX
#8
Posted 08 November 2017 - 04:27 AM
I think the click menu and non-click menu YOU are testing have differences in the version of the "remote" program you are using - one which sends the correct rednet messages, and one which does not.
Start a new world from scratch, run the installers, then tell me I am wrong.
PS: I am testing this in the Nightly build of ComputerCraft. However, I am confident this will not affect the results of these programs in this way.
#9
Posted 08 November 2017 - 04:58 AM
SPaBgXtV is the ComputerInstall
If I did a bad job of explaining then the video I linked in a previous reply goes over exactly how to do this.
#10
Posted 08 November 2017 - 05:28 AM
1. Place computer with modem on back
2. pastebin run SPaBgXtV
3. Place a second computer, again with the modem on back
4. pastebin run 3JdVN9Tz
5. Place wireless turtle
6. pastebin run 187EGDBX
Each computer asks me for a name, I enter some random data.
In the first and second computers, I navigate to TurtleMenu, then Remote (using keys and clicks respectively).
My rednet logger detects the messages sent, and notes that they are "TS Refuel". The source code of TurtleMenu on line 26, looks for a different string ("TurtleRefuel").
Poking around your pastebin, I found this script, which appears to send the correct messages. However, it is NOT installed by SPaBgXtV. According to pastebin, the script has been edited since the release of your youtube video.
Edited by KingofGamesYami, 08 November 2017 - 05:35 AM.
#11
Posted 08 November 2017 - 05:40 AM
https://www.youtube....eature=youtu.be
The only difference between the coding you were using and the one here is that I just got rid of the TurtleMenu for efficiency. The Turtle will now use TurtleRemote as the startup. To be honest, I should just get rid of the TurtleMenu and implement it into the Turtle but that is for another day haha.
Edited by RobotBubble, 08 November 2017 - 06:09 AM.
#12
Posted 08 November 2017 - 02:41 PM
#13
Posted 08 November 2017 - 03:04 PM
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users