GithubHelp home page GithubHelp logo

kylaaa / robloxluaerrorreporter Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 40 KB

A drag and drop solution for reporting client and server errors from scripts in Roblox games.

License: MIT License

Lua 100.00%

robloxluaerrorreporter's Introduction

Roblox Lua Error Reporter

A drag and drop solution for reporting client and server errors from scripts in Roblox games.

This package is designed to allow you to easily get analytics on scripts that might throw errors in your published games.

Things to Know

When you run the game, this package will place a few items into your Workspace :

ReplicatedStorage

- ErrorReporting - This Folder contains a RemoteEvent called ClientErrorEvent. This is placed here as a known location so that our server and client scripts can both locate it. If there is already something in ReplicatedStorage with this name, it will throw an error and you will have to handle the collision for it to work.

StarterPlayer.StarterPlayerScripts

- ErrorObserverClient - This LocalScript will get copied into every player that joins. It will listen for clientside errors, and fire the ClientErrorEvent RemoteEvent to pass this information back to the server.

Getting Started

  1. Download the /bin/ErrorReporter.rbxm file and drag it into RobloxStudio. It should unpack as a Folder named ErrorReporter.
  2. Move this Folder into ServerScriptService. While it can work properly if placed directly in the Workspace, Config will contain sensitive information that you likely do not want to be publicly visible to any player that joins.
  3. Open the ModuleScript named Config and set the appropriate variables. By default, this module will try to report your data to GoogleAnalytics, but you will have to configure it with the appropriate tracking ID.
  4. Turn off any verbose messages when you are happy that everything is working properly.

Configuring Google Analytics

  1. Log into your Google Analytics account at : https://analytics.google.com/
    1. If you do not have an account, hit Signup
    2. Configure your account for a Website
    3. Account Name - Use your business name, or your website name if you have one
    4. Website Name - Make this the name of your game
    5. Website URL - A real website is highly recommended, but https://roblox.com is acceptable
    6. Industry Category - Games
    7. Scroll down and hit Get Tracking ID
    8. Accept the Terms and Conditions. **** You are liable for following data storage laws ****
    9. You are now on the correct page, skip to step 3
  2. Open the Admin Panel in the lower left corner, click on Property > Property Settings
  3. Copy the Tracking Id
  4. Open the Config ModuleScript and update the GOOGLE_ANALYTICS_TRACKING_ID value

Configuring for PlayFab

**- This feature is currently only available for developers in the beta program. -**
** - If you have not received an invitation, these steps will not work for you. -**

(These instructions can also be found : https://developer.roblox.com/en-us/articles/using-the-analytics-service) Testing PlayFab will be a little more difficult that Google Analytics, as data will only be sent from a live game server.

  1. Log into your PlayFab dashboard at https://developer.rblx.playfab.com/en-US/sign-up
  2. Find your game, and copy the string of characters under the name.
  3. Open the Command Bar in Studio
  4. Enter the text : game:GetService("AnalyticsService").ApiKey = "<YOUR_COPIED_API_KEY>"

Now, when you publish your game, you should see data starting to flow into your dashboard. Events may take a few minutes to appear.

robloxluaerrorreporter's People

Contributors

kylaaa avatar

Stargazers

MrMidnight avatar

Watchers

 avatar

robloxluaerrorreporter's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.