Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to use?/ How to learn how to use it? #7

Closed
LookslikeLenni opened this issue Mar 4, 2022 · 3 comments
Closed

How to use?/ How to learn how to use it? #7

LookslikeLenni opened this issue Mar 4, 2022 · 3 comments

Comments

@LookslikeLenni
Copy link

yo, Im a coding noob and want to try to make more advanced stats for rocket leauge by reading the replays, but as you propably know :), its just random symbols. So how can I use this "software", and what does it even spill out ?

@AidanShipperley
Copy link

This project just contains the source code for the replay parser, so you need to compile the code yourself before you can use it.

Assuming you're on windows, you just need to run the "buildwindows.bat" file after modifying it a bit. Just right click it and select "Edit", and then change the "C:\Python37\python" to the file location where python is on your computer. If you don't have python, you can download it from the Microsoft Store.

You also need to download MSBuild.exe, which is how windows compiles C++ source code. It comes packaged with Visual Studio 2022, which is free to download.

From Microsoft Documentation:
If you have Visual Studio, then you already have MSBuild installed. With Visual Studio 2022, it's installed under the Visual Studio installation folder. For a typical default installation on Windows 10, MSBuild.exe is under the installation folder in MSBuild\Current\Bin.

Same as with python, copy the file location along with MSBuild.exe so it will know the location of the executable. For example, my last line looked like this:
D:\School\VisualStudio\MSBuild\Current\Bin\MSBuild.exe CPPRP.sln -p:Configuration=JSONBuild -p:Platform=x64

Save the file with CTRL+S and then just double click the batch file to build the source code into an executable.

After that, you should be able to see a "CPPRPJSON.exe" file in "your-directory\CPPRP\x64\JSONBuild".

While you're in the directory you can open a powershell window by just typing powershell into the filepath:
image

And pressing enter. After that you can just follow the Usage section to run the executable, just make sure you add ".exe" after the CPPRPJSON since we're on windows.

An example run could be something like this:
CPPRPJSON.exe -i myReplayFile.replay -o myReplayFileOutput.json

As for picking out specific stats and incorporating it with your project, I don't really think anyone can help you if you don't have coding experience. Trying to understand C++ code without coding experience can be extremely complicated, speaking from my personal experience learning.

Feel free to ask if there are any other general questions though!

@rfields1128
Copy link

rfields1128 commented Apr 25, 2022

As someone new to Linux, I was curious if you could explain briefly how to compile the code in Ubuntu and run the executable. I've tried compiling it myself using make all in the terminal. It compiles successfully but when I try to use CPPRPJSON I just get lost. I don't know how to point it towards a replay. Any help would be appreciated. Thank you.

Edit: I'm using Eclipse IDE if that helps.

@LookslikeLenni
Copy link
Author

LookslikeLenni commented May 13, 2022

@AidanShipperley

I already fail at the bat...

usually a window occur (even briefly) when its get started succesfully right? because it didnt :)

Capture

Note:
whether the CRPPR nor the CRPPRJSON folder contained a x64 folder and I couldnt find a CRPPRJSON.exe anywhere in the Project

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants