Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

show where a player is watching for #21

Open
pironic opened this issue Jan 23, 2013 · 3 comments
Open

show where a player is watching for #21

pironic opened this issue Jan 23, 2013 · 3 comments

Comments

@pironic
Copy link
Member

pironic commented Jan 23, 2013

This is copy+pasted from an issue on the main repo: overviewer/Minecraft-Overviewer#844 as contibuted by: @djv1rus


its not an issue, this is my version of playermarker.js. I dunno where to post. If someone is interrested about a second marker, a triangle who show where a player is watching for. You need to send the head rotation variable with a plugin in your server (i used the y value of the position)

http://avetco.fr/player_markers.js

//#######################################################
//############player2.php is used to rotate the viewarea

@djv1rus
Copy link

djv1rus commented Jul 8, 2013

hi all !
i updated the code (entierely rewritted)

http://avetco.fr/map/player_markers.js

i deleted the php file for rotate the triangle icon( too much ressources consumption)
i just generated the 360 images needed : -179.png, -180.png, 180.png, and so on and placed em in a cache folder

see ya !

@djv1rus
Copy link

djv1rus commented Jul 10, 2013

i forgot
here is the plugin you need to get the rotation value
http://avetco.fr/map/plocation.jar

and here is the cache folder:
http://avetco.fr/map/cache.7z

i added a feature : for the people who need to send the markers.json in an outside provider,
when your bukkit isn't your webserver
check plugins/plocation/config.yml...

here is the code i use on the webserver, to receive my file
php
$destinationFolder = "/home/www/map/";
if (is_uploaded_file($_FILES["nameofthefile"]["tmp_name"])) {
$name = $_FILES["nameofthefile"]["name"];
if (rename($_FILES["nameofthefile"]["tmp_name"], $destinationFolder.$name)) {
$from= fopen('markers2.json','r');//<<for some security reason i need
$to= fopen('markers.json','w+');//<<<< to do this on my webserver
while(!feof($from))fwrite($to,fgets($from));//<<<< maybe it can be remove on other providers
die();
}
}
/php
tell me if this works for you !

see ya

@djv1rus
Copy link

djv1rus commented Jul 11, 2013

what is this addon doing ?
http://avetco.fr/map2/#/1913/64/626/-9/0/0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants