Learn how to append Parameters to your App URL from the Old Control panel.
Overview
After Passing a Command to your App from the Control Panel Config “Parameters to Pass to App”, you can append Parameters to your App URL by enabling the Feature “Should append parameters from URL with existing one to override?” from the Old Control Panel and adding CMD Line arguments to the end of your App URL.
Instructions :
Step 1. Prepare
...
For this document you need to:
...
the setup
To prepare the setup for this tutorial, refer to this document and follow the instructions.
These are the steps explained in the document which should be completed before moving to Step 2 :
Download the sample App “E3DSFeatures Template”.
Upload “E3DSFeaturesTemplate” on the Old Control Panel.
Select the App from the List in “Step 1 : Select an App” in the Old Control Panel.
Create a New Config and call it “CMDLineDemo” from “Step 2 : Create a Config” in the Control Panel.
Enable
...
Package your Project from Unreal Engine Package your Project from Unreal Engine
...
Upload at least one application on your Control PanelUpload your Unreal Engine Application
- To complete this guide, your working environment must meet all the requirements above. If you have not completed any of the points, follow the link to the appropriate instruction and complete it first.
Instructions
...
...
“Parameters to Pass to App” from the “Developer Option” Tab of the Config “CMDLineDemo”.
Add -green in the text box of “Parameters to Pass to App”.
Play the “E3DSFeaturesTemplate” game from “Step 3 : Generate URLs” and run to the 12th Bay.
Check the color of the Sphere in the 12th Bay. It should be green (since we added the Command -green).
After completing the steps above from the document, you are now ready to move to Step 2 of this tutorial to Append Parameters To your App URL.
Step 2. Enable Should append parameters from URL with existing one to override
In the Old Control Panel, select “CMDLineDemo” Config from “Step 2 : Create a Config”.
Go to : Edit Config > Developer Option.
Enable “Should append parameters from URL with existing one to override?” (see image below).
Click “Save”.
...
Step 3. Copy the App URL to the clipboard
Go to : Control Panel > Step 3: Generate URLs.
Click “Copy App URL”. (See image below).
...
This URL will be copied to the clipboard (demo is an example username) :
https://connector.eagle3dstreaming.com/v5/demo/E3DSFeaturesTemplate/CmdLineDemo
...
Step 4. Add Command lines to the
...
copied App URL
We are going to add ?exeLunchArgs=-[variable]
...
to the end of the URL.
...
For example, say I wanted to add '-blue' to my URL.
I will first start with this URL: https://connector.eagle3dstreaming.com/v5/demo/E3DSFeaturesTemplate/CmdLineDemo
...
Follow the examples below :
Example 1 :
In this example, we are adding ?exeLunchArgs=-blue
...
to the end of
...
the URL :
https://connector.eagle3dstreaming.com/v5/demo/E3DSFeaturesTemplate/CmdLineDemo?exeLunchArgs=-blue
The system has now appended the
...
Command and has sent both the
...
Command added into the
...
Config (i.e. -green) and the
...
Command added into the URL (i.e. ?exeLunchArgs=-blue) to the UE game.
Example 2 :
In this example, we are adding ?exeLunchArgs=-green pink red to the end of the URL
https://connector.eagle3dstreaming.com/v5/demo/E3DSFeaturesTemplate/
...
CmdLineDemo?exeLunchArgs=-green pink red
The system has now appended the ?exeLunchArgs=-green pink red
...
When you click on https://connector.eagle3dstreaming.com/v5/demo/E3DSFeaturesTemplate/CmdLineDemo?exeLunchArgs=-blue, your output will look something like this( where 2 values is getting parsed from two place in cmdline args):
...
Tip |
---|
Now that we are familiar with how the appending system works, we can explore how this is used for authentication. |
For example, say I want to authenticate by a user’s email address:
...
Command and has sent both the Command added into the Config (i.e. -green) and the Command added into the URL (i.e. ?exeLunchArgs=-green pink red) to the UE game.
Step 5. Open the game. Run to the 12th bay
Paste the App URL from the Clipboard to the Browser :
https://connector.eagle3dstreaming.com/v5/demo/E3DSFeaturesTemplate/CmdLineDemo?exeLunchArgs=-
...
By adding the email address into the URL (yes the '@' sign is an accepted character), you will be able to pass the email address into your UE app where you can then proceed with the authentication. Within the E3DSFeaturesTemplate App, there is a blueprint showing how to receive a value (in the E3DSFeaturesTemplate example we show how to use the command line to get an IP Address for multiplayer).
Tip |
---|
Voila! You are now ready to authenticate your UE visitors sending their email address through the command line! |
...
Special data:
%ip_streamer% will pass the IP address of the machine where UE app is running
%ip_ss% will pass the IP address of the Signaling server
%port_streamer2ss% will pass the port of the Signaling server through which UE app communicates with the signaling server
...
Info |
---|
In Parameters If I put : |
Then the output would be something like this:
...
blue,
Warning 🛑
Note |
---|
DO NOT run the game by clicking “Play App” in “Step 3 : Generate URLs” of the Control Panel !!! That causes you to ONLY see the changes made to the “Parameters to Pass to App” Config from the Control Panel (i.e. the green color) and not the ones made to the App URL. |
In the game, 2 values will be getting parsed from 2 places in the CMDLine arguments (image below):
From the “Parameters To Pass to App” Config Feature (the green color).
From the additional Command added to the end of the URL (the Blue color).
...
Panel | ||||||
---|---|---|---|---|---|---|
| ||||||
Now that we are familiar with how the Appending system works, we can explore how this is used for Authentication. Refer to this document. |
...
Was this article helpful? Comment Below. Let us know your feedback
...
.
...
...
Need help? Contact Support
...
Submit a new request at E3DS support portal
...
.
...
Requests sent on weekends will not be addressed until the following business day.