playMaker

Author Topic: Location services doesn't work for me.  (Read 4131 times)

pixeltroll

  • Playmaker Newbie
  • *
  • Posts: 19
    • View Profile
    • Augenpulver stuff
Location services doesn't work for me.
« on: July 19, 2013, 07:46:16 AM »
I trying and trying, but the location services doesn't work on my device. Nexus 10
GPS is activatet, I've read the manual of playmaker for this action. and I try many action combinations that should work.
I have unity Pro and Android Pro licence.
Ok, I am still a newbie. Could anyone send me a small sample project to test that.

Please Help,
Greetings,
Paul

Alex Chouls

  • Administrator
  • Hero Member
  • *****
  • Posts: 3632
  • Official Playmaker Support
    • View Profile
    • LinkedIn
Re: Location services doesn't work for me.
« Reply #1 on: July 19, 2013, 08:11:40 AM »
There should be a sample scene that shows your location on a map in PlayMakerSamples/Device/
Not at my computer to double check...

pixeltroll

  • Playmaker Newbie
  • *
  • Posts: 19
    • View Profile
    • Augenpulver stuff
Re: Location services doesn't work for me.
« Reply #2 on: July 19, 2013, 01:21:50 PM »
I have the test scene, but it seem that the scene doesn't work rite on my nexus X10 and on my Samsung S3.
I also add a Gui text to proof if the initialization of the device GPS is going on, that's happen fine.
Maybe the distance is to far. it should work in meters up to some Kilometers. I think that the documentation is to short for that complex function.
What should I setup for this distances?
Is anyone able set up the scene rite for me, and post it here?

Alex Chouls

  • Administrator
  • Hero Member
  • *****
  • Posts: 3632
  • Official Playmaker Support
    • View Profile
    • LinkedIn
Re: Location services doesn't work for me.
« Reply #3 on: July 19, 2013, 02:14:37 PM »
I just double checked the Location actions and they were setup for iOS not Android.

I've attached updated actions that should work on Android as well.

Please try these with the sample scene and let me know if they work for you.


pixeltroll

  • Playmaker Newbie
  • *
  • Posts: 19
    • View Profile
    • Augenpulver stuff
Re: Location services doesn't work for me.
« Reply #4 on: July 20, 2013, 03:32:30 PM »
Wow, now it works, many, many thanks for that fast help  :)

pixeltroll

  • Playmaker Newbie
  • *
  • Posts: 19
    • View Profile
    • Augenpulver stuff
Re: Location services doesn't work for me.
« Reply #5 on: July 20, 2013, 04:51:16 PM »
Ok that's work really fine for a global map,
I made so advantages to the scene like updating the the gps data all 5 seconds and drawing the longitude and latitude value into a GUI box.
With the global map all works perfect for me.
Next step would be to setup a local map of my town as a test.
I tryed to make settings in the action for a local map of my home town Wiesbaden. For that I using this helpful Website.
http://www.deine-berge.de/Rechner/Koordinaten
I copied the dezimal values of the Points of the min/max latitude and longitude  and setted these values to the playmaker action [project location to map] settings min/max  Latitude and min/max longitude.
Then I make a screenshot  and cuted out the map in photoshop between the min an max values out.
This map I using for the background. I simply replaced the wordmap of the Testszene.
For my logical understanding I doing all thinks right. but my settings doesn't work well but now the displayed latitude and longitude values looks wrong, and the position marker flips out of the view, after gps data arriving in unity.
Could enyone help me with the right settings and map for Wiesbaden? From this I will be able to learn how the system works.

I used this values and the map between this values.

Left up Point values
50.095798 Latitude  >  action setting Max latitude?
8.197853 longitute  >  action setting min longitude?

right down Point values
50.028466 Latitude  > action setting min latitude ?
8.259823 Longitude > action setting Max longitude?

I would be very grateful for your help




pixeltroll

  • Playmaker Newbie
  • *
  • Posts: 19
    • View Profile
    • Augenpulver stuff
Re: Location services doesn't work for me.
« Reply #6 on: July 28, 2013, 03:06:43 PM »
anybody here able to help here??

Alex Chouls

  • Administrator
  • Hero Member
  • *****
  • Posts: 3632
  • Official Playmaker Support
    • View Profile
    • LinkedIn
Re: Location services doesn't work for me.
« Reply #7 on: July 28, 2013, 03:56:20 PM »
Have you tried the different projection modes?
Can you post a screenshot of the action setup?