The computer that I had my code on seems to have crashed.
Is there any way to de-compile code off of the cortex onto a different computer?
I’m using RobotC.
Not that I know of
However, the computer might be salvageable. What happens if you turn it on?
No there is not a way to do this. Is the computer dead completely?
Also I suggest using git for tracking your program and backing up code.
I was just seeing if there was a way without the computer.
The computer won’t do anything at all. I have no idea what happened to it.
We download our code periodically onto a thumb drive and keep it in the laptop briefcase in case… However I don’t believe this is possible
First try replacing the battery. If that fails, you might be able to take the broken computer to a local electronic store to extract the files onto a flash drive.
pulling out the hard drive is quick and easy on most laptops, if the computer doesn’t even get to the BIOS then the hard drive probably isnt at fault and your program can be retrieved
if you dont want to buy a laptop hdd enclosure you might be able to find extra SATA cables and connect it to an existing desktop computer (the connectors are the same for a desktop 3.5" drive)
good luck!
Even if you do figure out a way to decompile the code, you will be looking at assembly (I think) unless you have a really good compiler, in which case you still won’t have any comments, and variable names become memory addresses. Basically, the code won’t really be useable, unless you just need to transfer it to a new Cortex.
In the future, your team should use GitHub for code. It’s really handy if you have multiple programmers, multiple laptops, or a programmer who works at home as well. You also get a free domain with it if your programmers are interested in HTML, JS, and SQL.
We keep all our code on our school’s computer network
Hey @jpearman can we get git or SVN integration into Robot C in a future release?
Managing your code is one of the most important thing you can teach someone to go from hobby programmer to a professional one. That, and test your code.
^^ that would be great. We use Tortoise SVN, integrates well with windows. We also have TimeMachine running all of the time for backup since we run Parallels on Mac OS X. just in case.
In all honesty I prefer just using a Windows git program to when software as fully integrated source control.
I am a pretty big fan of source tree after using it over the summer. It’s free and allows easy graphical user interface.
I’m not really sure about this, but I think there is a way. I am not able to be on ROBOTC at the moment, but I could guess where to go.
- Click ‘tools’
- Hover over ‘Advanced Tools’
- Either hover over something that is like ‘Robot’ or ‘Manage Storage’. I forgot, but I think you’ll understand.
- The storage shows ways to upload sounds to it, and it should have a file that you could might access that has the code.
If it doesn’t work, I’m sorry. If it works, you’re welcome :).
Won’t get the text code. You could get the compiled byte code but that is useless to anyone that doesn’t dream in assembly and see the world in code. So unless your JPearman it’s useless.
Also
Robot
Advanced
File management
Yea, I mean that. My bad.
Is there an online compiled to RobotC converter or something?
Not sure what your asking?
Sorry, bad wording.
I was asking if there’s any way to convert the compiled code that @1815Delta was talking about back into RobotC.
Nope.
I didn’t think so, but it was worth asking anyway.