More actions
The guide will cover how to get the csv of armor-stats via Cargo command on Windows. Step by step, for real beginner as myself. There is 3 commands for getting the game's data :
cargo csv-export armor-stats
cargo csv-export weapon-stats
cargo csv-export all-items
To be able to execute those godsend commands, you need administrator's right and, strictly in this order :
- Install Visual Studio Build Tools with :
- "Desktop development with C++" So windows 10 SDK is installed.
- English language pack
- Install Cargo
- And then Install : CMake, Ninja Build System and Python3 using the power shell with this command :
iwr -useb get.scoop.sh | iex scoop install cmake ninja python
Once you installed them :
- Install Git and Git LFS
- Create a folder for your game file : .
.../MyDocument/Git
- Open the power shell in
.../MyDocument/Git
- Clone the game's file from git with :
git clone https://gitlab.com/veloren/veloren.git
Once the copy is finished :
- go to
.../MyDocument/Git/veloren/
and open the PowerShell in.../MyDocument/Git/veloren/
- Execute the command and export the table
Installing Visual Studio Build Tool
If you tried to install first Cargo, you will get this windows :
It tells you :
- Don't install me yet.
- Install Microsoft Visual C++ Build Tool 2019 :
- Check its box for "Desktop development with C++" So windows 10 SDK is installed.
- Install English language pack
-
Installation of Visual Studio, step 1
-
Language pack installation, step 2
Installing Cargo (Rust)
Once Visual Studio is installed, download : https://win.rustup.rs/, if your installed visual editor, and the required tools you should get this screen :
Choose the default installation with by typing 1 and pushing enter. If your installation went well you should get this new message :
Congrat ! Cargo is installed !
Install CMake, Ninja and Python3
Now, we will use few commands to speed up installation process. Open the apps list with the touch Windows and search : PowerShell then Enter. In the power shell copy-paste this command :
iwr -useb get.scoop.sh | iex scoop install cmake ninja python
You may get a warning :
PowerShell requires an execution policy in [Unrestricted, RemoteSigned, ByPass]to run Scoop.
That warning just mean that windows won't execute any external script or programs that aren't verified. To remove the execution policy, type :
Set-ExecutionPolicy RemoteSigned -Scope CurrentUser
and type Y.
Installing Git and Git-lfs
Go there, and install it :https://gitforwindows.org/ The box will ask you lot of things where, if you are not a DEV, you can't tell the difference. Just go for the default and recommended parameters. Install also git-lsf
Exporting csv file
Finally, everything is setup. Open file Explorer, choose a place where you want to copy game's file. Here we chose .../MyDocument/Git
Open Git folder. Then go to the button File at the top menu and open PowerShell.
And let's copy the game file from git with :
git clone https://gitlab.com/veloren/veloren.git
It will takes a while. Once the download is finished, let's tell the terminal PowerShell to open the new folder veloren :
cd veloren
From there, in .../MyDocument/Git/veloren
you can execute any commands, try :
cargo csv-export "armor-stats"