- Unreal Engine 4 or 5
- Visual Studio (I tested on both 2017 and 2019)
- Node JS
- Docker(Optional)
!!! VERY IMPORTANT: IF YOU WANT TO MODIFY UASSETS, PLEASE DO THIS IN UE4 VERSION OR ON A SEPARATED BRANCH, BECAUSE YOU WILL NOT BE ABLE TO USE UASSETS MODIFIED IN UE4 ON UE5. UNFORTUNATELY UASSETS ARE NOT BACK COMPATIBLE.
-
Clone
https://github.com/Cherden/postchain-client-cpp
under\Plugins\ChromaClient\Source\ChromaClient\
. Make sure new cloned dir name ischroma-cpp-pure
The structure should look like this at this moment: -
Right click on
ChromaClientTest.uproject->GenerateProjectFiles
. Wait forChromaClientTest.sln
to be generated. Note: If you want to change Engine version, then:git clean -fdx
- Right click on
ChromaClientTest.uproject->SwitchUnrealEngineVersion
-
Open
ChromaClientTest.sln
-
Make sure build configuration is
Development Editor
&Win64
-
Build & Run solution.
-
Generate a new admin keypair with optional keygen. If running locally the following test keys can be used:
private key: 3132333435363738393031323334353637383930313233343536373839303131
public key: 0350fe40766bc0ce8d08b3f5b810e49a8352fdd458606bd5fafe5acdcdc8ff3f57
-
Open
Config/blockchain-config.sample.json
and update private key. Brid and url will be automatically set -
Go into Rell/rell/config/local/run.xml and put the public key in
<args module="common">
<arg key="admin_pubkey">
<bytea>PUBKEY HERE</bytea>
</arg>
</args>
- Copy the file /Administration/.env.sample, name it .env.
- Open the .env file you juts created in the Administration folder and paste the private key after "ADMIN_PRIV_KEY=". Save it
- Run blockchain
- If you want to run blockchain with Docker:
Open terminal as Administrator
cd /Administration
npm i
npm start
- If you don't want to use Docker, then:
- Open and run ./Rell project with Eclipse (https://docs.chromia.com/tools/eclipse/installation)
Open terminal as Administrator
cd /Administration
npm i
node init_blockchain.js
- After this point restart
ChromaClientTest.sln
Visual studio instance, and UE4 project, for some environment variables to be updated. - Use a browser (not Mozilla Firefox!) to go to http://localhost:7740/brid/iid_0. Copy the RID shown.
- Open https://dev.vault.chromia-development.com/ and create a Custom D-App. Name:
Chromia Unity
, Host:http://localhost
, Port:7740
, Website:http://localhost
, and paste the RID into ChainID.
- Open
Content/PostchainDemoLevel
- Play
- Prepare node local auth script. This will launch a small js server wich will intercept the rawTx code from SSO auth success, and transfers it to UE4 plugin, via some json file.
cd SSOAuthServer/
node index.js
- Open
Content/SSODemoLevel
- Play
- Open
Content/LoginUserDemoLevel
- Play