Game Engine Intergration

Post

Posted
Rating:
Item has a rating of 5 (Liked by Chris Graham)
#3603 (In Topic #688)
Standard member
Steven Gilson is in the usergroup ‘Fan in training’

Long, long, long time ocPortal/Composr user, wants to intergrate Composr with my Unity3D work.

Hi all.

A little intro, as it has been a while since I've posted on the forums, in fact, noticed that since the move to Composr, I have no posts anymore :( but such is life. I've been using ocPortal, and now Composr, on and off for various projects since Chris launched it way back in 2004, I still have one of Chris' earliest CMS scripts, his text parser for BB style code somewhere on my hard disks. On ocPortal, I've pulled it apart, customized installs for my projects and done all sorts with it, its a great product.

These days, I'm a professional Unity3D developer, doing all kinds of client projects. Whenever we need a web based backend system, I usually have to turn to one of our Laravel developers and have him or her build something, completely bespoke, pretty much from scratch, that doesn't always do what I need for the project without taking up huge amounts of their time. In my spare time, along with a friend, I've started making Unity games that I'm going to want to have web backend systems for to have some nice social intergrations, score boards and what not.

Well, to cut the longest part short, alongside my other dev stuff, I'm planning on building a Unity3D plugin that lets me intergrate a Composr website into projects as a backend, either for user verification, scoreboards, media streaming, ad delivery and many many other things, with my main thinking being that I can use the Catalogues and Media Gallery systems for in-game content and the Download systems for remote updating. All without having to either make something from scratch, or rely on something either platform specific e.g. Steam Leaderboards or 3rd party hosted like Gamesparks. I can also then do Facebook intergration, without the hefty Facebook pluggin.

 So, my dev question is - has anyone attempted this yet? and if so, whats the story? As I'd like to not re-invent the wheel if possible, if no one has attempted this yet, any hints on the best ways I can hook into Composr via URL. I can send and receive POST, GET and PUT data, as with any HTML Form submission, as Unity3D is generally C#/.Net 2.0/3.5 compatible. It'd be great if Composr could work as the backend to Unity3D projects :D

Regards
Steve
Online now: No Back to the top

Post

Posted
Rating:
#3622
Avatar
Site director
Chris Graham is in the usergroup ‘Administrators’
Great to see you here Steve :).

That's really cool :). I'm not aware of anyone doing game integration.

Would you be able to join us in our next scheduled live chat? It's on 13th Jan.
8th weekly live chat - Composr
As this is a good thing to discuss, and we've started running low on good discussion topics, we could probably reschedule it around you if you couldn't make the current scheduled time.

If so, please try to come in a position of being able to trigger off mentioned web calls to a Composr site you can easily give me access to save code on (e.g. some shared hosting you could give me access to).
Let's say the hosting has a Composr install at http://example.com/composr_test/, configure Unity to fire some request(s) to http://example.com/composr_test/index.php?page=unity and I can then try and code that up while you're working on the Unity side.


Become a fan of Composr on Facebook or add me as a friend. Add me on on Twitter. Follow me on Minds (where I am most active). Support me on Patreon

Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about Composr whenever you see the opportunity or support me on Patreon.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying Composr on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Online now: No Back to the top

Post

Posted
Rating:
#3623
Standard member
Steven Gilson is in the usergroup ‘Fan in training’
Hi Chris.

I'm afraid that I am not home at all that weekend, so will be unable to make a live chat that weekend. However, I can make the following weekend if you're up for scheduling another one.

Regards
Steve
Online now: No Back to the top

Post

Posted
Rating:
#3624
Avatar
Site director
Chris Graham is in the usergroup ‘Administrators’
Yeah, we can do the week after, at the same time.

Until then I can say that essentially Composr supports the same HTTP data that anything does, in a normal PHP way.

Any query string parameters ('called GET parameters' in PHP), e.g. index.php?foo=bar&a=b
can be read using $_GET['foo'] and $_GET['a']

The raw query string with $_SERVER['QUERY_STRING'].

POSTed form parameters are read like $_POST['foo'] and $_POST['a']

If it's sending raw request data (which some POST requests will do [e.g. JSON-based POST requests], and almost any PUT request, then you need to directly read it with file_get_contents("php://input").

You can use query string parameters and request data (form parameters or raw) simultaneously.


Become a fan of Composr on Facebook or add me as a friend. Add me on on Twitter. Follow me on Minds (where I am most active). Support me on Patreon

Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about Composr whenever you see the opportunity or support me on Patreon.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying Composr on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Online now: No Back to the top
1 guest and 0 members have just viewed this.

Statistics

Users online:

Manu, ManojSree, Philip, Vaiva, raguragavan

Forum statistics:
  • 1,298 topics, 5,830 posts, 7,065 members
  • Our newest member is raguragavan
Birthdays:
Back to Top