SRL Archive - Jr. Member General Help and Discussion

Sps.getplayerpos always returning false


henryuscola

2015-06-16 21:59:12

No matter what map I use , it either can't find player position or walks in a completely different path and gets lost . Any ideas ?

fady

2015-06-16 23:43:53

From: henryuscola
No matter what map I use , it either can't find player position or walks in a completely different path and gets lost . Any ideas ?


Are you only having this issue with maps that you have made? if so, are you sure that all your maps were made with the camera facing north? also can you provide an example of the map?

Make sure the map is setup only once and at the beginning of the script and make sure it is called as a global variable.

henryuscola

2015-06-17 01:53:13

It's a map for a mini game and yes I always have it facing north sometimes it finds sps.getplayerpos prints out some coordinates then it tries to move to the area I defined buts way off. I used sps.debugplayerpos and it seems that the pos is never accurate some places on map won't even be recognized.

The Mayor

2015-06-17 03:33:36

From: henryuscola
It's a map for a mini game and yes I always have it facing north sometimes it finds sps.getplayerpos prints out some coordinates then it tries to move to the area I defined buts way off. I used sps.debugplayerpos and it seems that the pos is never accurate some places on map won't even be recognized.


Might be easier if you actually show us your map :p

henryuscola

2015-06-17 08:18:15

heres the link to the map http://imgur.com/mDsx9oB

srlMW

2015-06-17 08:25:32

From: henryuscola
heres the link to the map http://imgur.com/mDsx9oB


Hey man try using this :spongebob:

Lucidity

2015-06-17 08:28:36

You're using the world map as a minimap, try expanding your minimap larger and screenshotting it that way.

SPS seems to hate trees.

Hoodz

2015-06-17 09:19:39

From: Bly
You're using the world map as a minimap, try expanding your minimap larger and screenshotting it that way.

SPS seems to hate trees.


and dark areas (like wildy) or yellow areas (desert)

henryuscola

2015-06-17 09:52:29

Thanks I will try that later on.

henryuscola

2015-06-17 09:53:31

Thanks dude I'll see what I can do to resize it

Lucidity

2015-06-17 10:23:16

From: henryuscola
Thanks dude I'll see what I can do to resize it


What's your skype? PM me it.

EDIT : I was unable to get the entire map, but here's what I've gotten.


henryuscola

2015-06-17 11:08:18

http://prntscr.com/7i1fr0 still not working and @bly walktoPos is always false for some reason although the map and places is detected

Lucidity

2015-06-17 12:13:47

From: henryuscola
http://prntscr.com/7i1fr0 still not working and @bly walktoPos is always false for some reason although the map and places is detected


Inbox your skype :-)