Moodle - About sending data to Unity content - moodle

We are still absolute beginner in moodle. I will try to phrase our query as clearly as possible.
So, the basic requirement for our project is that, we be able to host unity games in moodle courses and track the student performances in each of the unity games. For now we have decided to go with xAPI standard. We have already setup a free LRS from scrom cloud.
My query is : How can I (moodle side developer) send the information on who is the current user that launched the unity game. So that my game developer friend can later send the statements like : A USER clicked in the BUTTON. Or, a USER ended a game with the score of 82. And things like that.
I am finding it very hard to grasp the general idea of how this works. Any help would be highly appreciated. Just pointing in the right direction would help a lot.

To be able to use your Unity project in Moodle you will have to add it as an activity. Moodle handle different kinds of activites (SCORM, H5P...)
You can instal the following plugin which implements xAPI
https://moodle.org/plugins/mod_tincanlaunch in Moodle and look its source code to get an idea. When installed, you will find the source code in the folder:
mod/tincanlaunch/
I think the general idea is:
Get the current user info in Moodle:
global $USER
$username= $USER->username;
$firstname = $USER->firstname;
$lastname = $USER->lastname;
Post those information to Unity
Get it in Unity
Then send to LRS and/or Moodle.
Maybe you can fit your Unity project to mod_tincanlaunch if it meets your needs.

Related

How to download CS:GO demo from match sharing code

Since 9/17/2019, Valve provided an API that allows players to give access to third-party websites to download their matchs history.
From this documentation, I have been able to get all my sharing code CSGO-xxxxx-xxxxx..., ready to download the matchs ! But, I didn't find any information about how to download them.
In this page and the last one, we can read Third-party websites and applications can use this authentication code to access your match history, your overall performance in those matches, download replays of your matches, and analyze your gameplay. and This page outlines the basics of creating a website or application to access players match history and help with players statistics tracking and gameplay analysis.. So, I'm pretty sure their might be a way.
Most of all, a famous website, https://csgostats.gg is able to download demos from this sharing code, so...
I know that this code CSGO-xxxxx-xxxxx... code be use like this steam://rungame/730/:steamID:/+csgo_download_match%20CSGO-xxxxx-xxxxx to watch the demo. But my goal is really to download it, to be able to parse it. So, I'm not looking for this way.
So, I'm looking for a way to download a CSGO demo using Valve's access token :
You can download CSGO demo with this link : http://replay131.valve.net/730/xxxxxxxxxxxxxxxxxxxxx_xxxxxxxxx.dem.bz2, but I havn't find a way to convert the sharing code to the demo's name.
I'm not sure if this question should be here or in software engineering ? ...
Alright, I forgot to answer my own question.
Since 4 months, I used this answer : https://www.reddit.com/r/GlobalOffensive/comments/glwlq1/how_to_download_csgo_demo_from_match_sharing_code/fr0f8q5/?utm_source=reddit&utm_medium=web2x&context=3
But, once I got my MatchID, OutcomeID and TokenID, I use boiler-writter to download the .info. Then inside, I can easily find the link of the demo.
CSGO-Demos-Manager (https://github.com/akiver/CSGO-Demos-Manager) can do this. It is written in C#. Unfortunately I have been unable to find any other solution.

Tools to detect stolen content

Do you know any software or tools that can be used to detect when people are stealing content from our website?
Today we are only able the do something about the duplicate content, when we find it manually. There must be some kind of tool or service to use, to detect stolen content?
I'm a part of the project called whocopied.me where you can insert a little javascript snippet and you have a dashboard that helps you with an overview.
We created a little introduction to show it in action
https://www.youtube.com/watch?v=PsS_2oEzPqE&t=2s
If you are using Wordpress, we created a simple plugin for you to install - no requirement of understanding HTML :-)
https://wordpress.org/plugins/whocopiedme/

Area learning in Unity

I asked this question on the Project Tango Google+ page and it was suggested that I post it here.
Something that I'm very confused on is area learning. Apparently, how it works is that you scan a room, save the ADF file, then later you can visit the same room and load the ADF file and it will know your position in the room, correct?
Does anyone have any experience doing this in Unity? There's a "Save ADF" button in the example, but no way to load it afterward? How do you use ADFs you've previously saved? It's all very confusing to me right now. Can anyone help explain things a bit better?
DEPRECATED
Your understanding and explanation about the working of Area Learning and Area Description Files is right.
There is an example called "AreaLearningUnity" in Project Tango Unity Examples repo showing the usage of this functionality.
In this example you can save the ADF by clicking the SaveADF button, and when you restart the app again, it automatically loads the last saved adf.This functionality is executed by the following code in the example.
if(m_useADF)
{
// Query the full adf list.
PoseProvider.RefreshADFList();
// loading last recorded ADF
string uuid=PoseProvider.GetLatestADFUUID().GetStringDataUUID();
m_tangoApplication.InitProviders(uuid);
}
To choose a specific UUID instead of the latest one, you can use GetCachedADFList() call which returns a list of ADFs saved on your device, which can be used to choose the ADF you want to load.
I encourage you to take a look at PoseProvider Class in Project Tango Unity SDK.
EDIT: The SDK has changed so much, so this can be marked as deprecated.

Extremely simple content updating tool for websites - CMS? PHP forms? Suggestions please!

As a side project I tutor grandparents and other computer novices in Computer & Internet 101, from physically using a mouse to dealing with e-mail/searching/etc. Web development isn't really my area of focus - I do have reasonable HTML/CSS/Javascript etc skills, so I can throw together a decent-looking simple, static site - but occasionally I get asked to put together extremely simple websites for these people, that they can update themselves; that is, edit text-based content without giving Grandpa a heart attack by making him come face-to-face with HTML/Javascript.
I've waded through a mile-long list of CMS software - largely culled from the many other similar questions on SO - but they've all got something ruling it out: hosted, restricts the design (can't use w/existing CSS, looks "Word-press-y", etc), not free/FOSS, etc. I wonder if "CMS" is even the right word for what I'm looking for. What I need is a simple text editor for the client: that is, something that will give the client a text box of some variety, let them edit it, and update the content with that info. They can't mess with navigation, add new pages, change anything other than text. If it was really fancy, they could upload a picture.
I was planning to do this just with a couple of password-protected php forms, but thought I'd ask if there's anything already out there that might provide this functionality? Any suggestions on building my own version of this, in PHP or something else?
What I'm really interested in is:
1) the simplicity/customize-ability of the admin interface (or lack of admin interface, if the client could somehow edit directly in the page), and
2) ease of set up for me (not getting paid much if at all for this, don't want to wade through three million plugin options to figure out how to get some unwieldy, high learning-curve framework to do what I want).
Try pulsecms.
Here is another very simple CMS that has JQuery and modernizr , HTML5 Boilerplate and TinyMCE.
I have my wife setup with Windows LiveWriter
http://explore.live.com/windows-live-writer?os=other
This means that she just builds her articles as if she is using a word processor (almost exactly the same) and then just uploads the article to her blog. I use Blogengine.net to host the blog on a Godaddy hosting solution.
Blogengine comes with built in support for LiveWriter and only required that you input the address, username and password in.
I understand this is an old post, but i hope someone find this of interest.
You could give the users the instruction to upload text files to the site, and the have the HTLM/PHP/ASP pages load the context of such .ts files.
Each web page should have a specific named .txt file associated.

CMS for Professional Photographer with Pretty Admin Back End

I'm working on a few sites for professional photographers who want to be able to update on their own. I'm looking for a simple CMS solution that has very basic functionality as a gallery and is easy for them to work with. My main concern is with ordering images--I'd like for them to be able to drag their thumbnails around and lock the order. I suspect there is an existing solution out there and am looking for recommendations. I've seen something like this driven by Flash for Flash sites, but I don't know the name of it. I'm looking for something that is similar, but not Flash.
Photogallery tikiti is nice http://www.rocky.nu/photogallery/
I used wordpress and the dm_albums plugin for this site http://www.arkphotography.co.uk
I found dm_albums easy to use, and so did the photographer who had little experience of using wordpress and none of using dm_albums.