# ARGameLogic.cs script error from building with VPS tutorial

**URL:** https://community.nianticspatial.com/t/argamelogic-cs-script-error-from-building-with-vps-tutorial/2074
**Category:** I'm Stuck
**Created:** [May 27, 2022, 5:26pm UTC](https://community.nianticspatial.com/t/argamelogic-cs-script-error-from-building-with-vps-tutorial/2074 "2022-05-27T17:26:08Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![rob\_link](https://sea2.discourse-cdn.com/niantic/user_avatar/community.nianticspatial.com/rob_link/32/1176_2.png) [@rob\_link](https://community.nianticspatial.com/u/rob_link)
#### Post date: [May 31, 2022, 5:16pm UTC](https://community.nianticspatial.com/t/argamelogic-cs-script-error-from-building-with-vps-tutorial/2074/2 "2022-05-31T17:16:46Z")

</div>

Hello Peng Han Kum – welcome to the Lightship development community!

Thank you for identifying and reporting the issues you found with the Building with VPS tutorial. We have been able to identify and reproduce the errors on our end, and we’ve informed the team of the issues.

You were correct that in order to compile the ARGameLogic.cs script, you will need to add `using System;` and `using System.Linq;` to your script header. Additionally, you will need to add your own prefab GameObject instead of the mushroom. You can add a simple cube prefab for testing purposes.

Also, in the OnSessionStarted() method, be sure to subscribe the OnSessionStarted() method to the Ran event handler using the following line…

`session.Ran += OnSessionStarted;`

…as this method contains the application’s location service and wayspot anchor service initialization.

As for the pink material floor plane, can you navigate to the **PlanePrefab** asset, double-click it to open it up and ensure the **Plane** child GameObject’s material is using the **Unlit/PlanefindingGrid** shader?

 ![](https://us1.discourse-cdn.com/niantic/original/1X/9685963871b8382360fc89c67573b4f44030e893.jpeg)

Thank you again for reporting the issues you found, and let us know if you have additional questions.

---

_[View the full topic](https://community.nianticspatial.com/t/argamelogic-cs-script-error-from-building-with-vps-tutorial/2074)._
