.com.unity Forums

.com.unity Forums (http://forum.shrapnelgames.com/index.php)
-   Campaigns, Scenarios & Maps (http://forum.shrapnelgames.com/forumdisplay.php?f=106)
-   -   Map: Height Maps (http://forum.shrapnelgames.com/showthread.php?t=50616)

dmnt December 7th, 2017 11:06 AM

Re: Height Maps
 
Good news, everyone!

I recently did a change so that whenever you place the grid on the map the URL on your browser location bar changes and is copy/paste compliant. What's even better is that it doesn't break the old url scheme but redirects to the new one.

The URL is now like http://www.venhola.com/maps/geo.php#...780275752547,5

where the first value in the comma separated list after hash sign (in this example 24.87101620780233,60.22780275752547,5) is longitude, second one is latitude and last one is rotation (in degrees).

The link providing "L" button still gives out the old URL format but as explained above, is turned into this new user friendly format. Enjoy, folks!

DRG December 7th, 2017 11:35 AM

Re: Height Maps
 
The link I use is
http://www.venhola.com/maps/

and it brings me to the
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Input coordinates in WGS84

Latitude (decimal, negative = southern hemisphere)
0.0
Longitude (decimal, negative = western hemisphere)
0.0
Rotation (degrees)
0
Go!
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
screen and it still functions normally for me and it seemns a bit easier for anyone to see the coordinates to enter

DRG December 7th, 2017 11:38 AM

Re: Height Maps
 
BTW... it was your program that inspired the changes you will see to the load map screens for next patch..

DRG December 8th, 2017 10:33 AM

Re: Height Maps
 
A problem has developed. I tried to generate a map this morning and got an error message. I thought perhaps it was because I was using my original link but I just tried the one you provided in post 131 and the same message appears


Quote:

Something went wrong, return value 2. Process returned:
Can't locate JSON.pm in @INC (you may need to install the JSON module) (@INC contains: /etc/perl /usr/local/lib/x86_64-linux-gnu/perl/5.22.1 /usr/local/share/perl/5.22.1 /usr/lib/x86_64-linux-gnu/perl5/5.22 /usr/share/perl5 /usr/lib/x86_64-linux-gnu/perl/5.22 /usr/share/perl/5.22 /usr/local/lib/site_perl /usr/lib/x86_64-linux-gnu/perl-base .) at contour.pl line 9.
BEGIN failed--compilation aborted at contour.pl line 9.
What is ........" the JSON module " ?

dmnt December 10th, 2017 08:16 AM

Re: Height Maps
 
Quote:

Originally Posted by DRG (Post 840460)
A problem has developed. I tried to generate a map this morning and got an error message. I thought perhaps it was because I was using my original link but I just tried the one you provided in post 131 and the same message appears


Quote:

Something went wrong, return value 2. Process returned:
Can't locate JSON.pm in @INC (you may need to install the JSON module) (@INC contains: /etc/perl /usr/local/lib/x86_64-linux-gnu/perl/5.22.1 /usr/local/share/perl/5.22.1 /usr/lib/x86_64-linux-gnu/perl5/5.22 /usr/share/perl5 /usr/lib/x86_64-linux-gnu/perl/5.22 /usr/share/perl/5.22 /usr/local/lib/site_perl /usr/lib/x86_64-linux-gnu/perl-base .) at contour.pl line 9.
BEGIN failed--compilation aborted at contour.pl line 9.
What is ........" the JSON module " ?

Looks like I forgot to install the required modules on the Google api script. It is lacking the JSON data format handling module on the new server and can't download the contours.

I'll try to fix it right now.

dmnt December 10th, 2017 08:27 AM

Re: Height Maps
 
Should be fixed now.

DRG December 10th, 2017 09:56 AM

Re: Height Maps
 
Not quite yet.........

Quote:


Something went wrong, return value 9. Process returned:
coords => 60.263401849049245,24.79209997529907,60.2696188170 9869,24.935376385368095,60.19253328574271,24.94941 3610829748,60.18630167767603,24.806137200760716
level => 10.000000
dx = (60.26961881709869 - 60.263401849049245)/158, 24.935376385368095 - 24.79209997529907)/158)
dy = (60.18630167767603 - 60.263401849049245)/198, 24.806137200760716 - 24.79209997529907 - .5*0.000901109497289461)/198)
Zero 60.263401849049245, 24.79209997529907
dx 3.91004279839213e-05:0.000901109497289461, dy -0.000387438047101596:6.82747272010108e-05
Corners: (0,0)=60.263401849049245 24.79209997529907 (159,0)=60.26961881709869 24.935376385368095 (0,199)=60.18630167767603 24.806137200760716

Corners: (1,1)=60.2630730616441:24.7935199142722: (159,1)=:60.2692509292656:24.9358952148439: (1,199)=:60.186360328318:24.807038310258: (159, 199)=:60.1925381959395:24.9494136108297

readline() on closed filehandle API at contour.pl line 257.
Use of uninitialized value $key in scalar chomp at contour.pl line 258.
no key set at contour.pl line 260.


dmnt December 10th, 2017 04:30 PM

Re: Height Maps
 
Quote:

Originally Posted by DRG (Post 840468)
Not quite yet.........

Quote:


Something went wrong, return value 9. Process returned:

Yeah right, forgot to put that google API key file in place. :doh:

This time it works, I promise! (at least it did download for me) :D

DRG December 10th, 2017 04:45 PM

Re: Height Maps
 
Confirmed now working again

Thanks

Great program.......

Grant1pa December 29th, 2017 11:57 AM

Re: Height Maps
 
Quote:

Originally Posted by DRG (Post 840474)
Confirmed now working again

Thanks

Great program.......

Seems like I'm having a problem downloading the .dat file. I get an error message "spmap.999.dat couldn't be downloaded". I've tried to open it in explorer as well as Edge and get the same error. It saves to my download as an IE icon file but won't open. Any ideas?

Tom


All times are GMT -4. The time now is 06:16 AM.

Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©1999 - 2025, Shrapnel Games, Inc. - All Rights Reserved.