Hello everyone, team 35211C here
Mabe some of you have heard complaints from your programmers that the new Vex Coding Studio IDE is not very “user-friendly” (really bad).
We have a solution for you.
Here is an open source project on GitHub we started for converting between Vex C++ and C++ Pro and the conversion between .vex and .cpp .h files. After the conversion, you can use any desired IDE to open the .cpp and .h files.
HOW TO USE:
Code Folder - the folder that you want your .cpp and .h file exported to or convert from.
Temp Folder - used to save the “ThIsisATemPoRaRyFiLE.json” during conversion, any folder would be fine.
.vex Open - the .vex file you wish to convert.
.vex Save Folder - where it will export the .vex file.
If you rename the .vex to .zip, you would find a file called “ThIsisATemPoRaRyFiLE.json” in the zip. This file is your code converted into Base 64 and combined. The GitHub project currently can convert the .vex into two files. One is “main.cpp”, and the other is “robot-config.h”.
OUR USE:
The main reason for us doing this is because we often have different programmers working on the same the same .vex files. We previously, we use Github desktop to sync the code into a server. Since the old robotic C uses .c file format, we had no problem with putting different codes together by just using the built-in function of Git. Git doesn’t interpret the .vex file so we have to manually copy past into a single .vex file if any of us is working on the same thing. This file structure allows git to resolve the issues automatically and provides everyone who is working on the project the most updated version of the code.
You are more than welcome to add improvement to this project.
If there is any question, feel free to email us: [email protected]
Hey, I love this idea and I tested it out and I have 2 questions:
Does this allow us to add more files to the .vex file or are we just stuck with the base two?
I can get the decode to work but I can’t get the convert to a .vex to work, any sugestions? I’m running the lastest version of Pyhton and using Atom as my IDE. The Progress says it is replacing the file inside json and gets stops there.