If you find that an illegal activity is being promoted in the game, delete the respective image files first and then the ZIP file for the affected days. After deleting the ZIP file, a new one will be created without the advertised illegal activity.
Deleting files should only be done if you suspect that an illegal activity is being promoted.
Deleting advertisements without apparent reason will result in the suspension of your games and profile!
Step 2: Set up Project
Open or create a new 3D Godot project.
Copy the unpacked "STIAds" folder directly to res:// in the project path.
Step 3: Set up HTTPRequest
Create a Node named "Download_images".
Add an HTTPRequest as a child of "Download_images".
Select the HTTPRequest node and configure the Download_Chunk_Size to 99999999999 and the Timeout to 15s in the Inspector.
Step 4: Set up Download
Create a Node3D and a MeshInstance3D as child objects of Node3D.
Set "New QuadMesh" as the mesh for MeshInstance3D and choose a preview.
Set the size (Size) to X: 1.6 and Y: 0.9.
Create a new StandardMaterial3D under "Material".
Step 5: Set up Billboard
Select the "Download_images" node and add the script res://STIAds/SCRIPTS/Download_images.gd.
Replace in the line var sti_key = "NoCode" with the name of your game as listed in STIAds.
Select MeshInstance3D and add the script res://STIAds/SCRIPTS/MeshSTIAds.gd.
Disable in res://STIAds/SCRIPTS/MeshSTIAds.gd line 48 by inserting a # at the beginning.
Step 6: Final Steps
Delete the readme.txt in the folder res://STIAds/Offline.
Copy at least one image (1920x1080 PNG) into the folder res://STIAds/Offline in case the player has no internet connection.
Step 7: Testing
Start your game. If implemented correctly, you should see an image on your MeshInstance3D after a short time.
If your game has a main menu, we recommend placing the "Download_images" node there. Adjust the delay in res://STIAds/SCRIPTS/MeshSTIAds.gd if you choose this route.