.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)

DRG January 14th, 2025 12:38 PM

Re: Height Maps
 
Yeah it would be nice to know exactly how he downloaded the code

That said, I just tried a random search ( //www.venhola.com/maps/geo.php#44.15577044111034,41.994028549747384,0) and ended up in the area between the Black and Caspian seas but ( no surprise......) when I tried to DL the map the message.....

Quote:

Something went wrong, return value 2. Process returned:
Can't locate List/MoreUtils.pm in @INC (you may need to install the List::MoreUtils module) (@INC contains: /etc/perl /usr/local/lib/x86_64-linux-gnu/perl/5.30.0 /usr/local/share/perl/5.30.0 /usr/lib/x86_64-linux-gnu/perl5/5.30 /usr/share/perl5 /usr/lib/x86_64-linux-gnu/perl/5.30 /usr/share/perl/5.30 /usr/local/lib/site_perl /usr/lib/x86_64-linux-gnu/perl-base) at contour.pl line 13.
BEGIN failed--compilation aborted at contour.pl line 13.
..appeared and the seach did NOT have a longitude is greater than 99

So if whoever this is found a way to get it to work there are a lot of people who would be interested

WHY he cannot register with Shrapnel is a mystery

DRG January 14th, 2025 12:51 PM

Re: Height Maps
 
HOLD ON

https://github.com/tvenhola/SPMBT-maps

Somebody more code tech savvy than me needs to look at this

THERE DOES SEEM TO BE CODE

Quote:

# SPMBT-maps
Satellite height data to WinSPMBT map utility

Requirements:
* Linux
* Perl (5.?)
* Perlmagick (imagemagick utility)
* SRTM3 map data files from the region of your choice from http://dds.cr.usgs.gov/srtm/version2_1/SRTM3/

Installation:

Install the linux utlities perl and perlmagick:

Ubuntu and Debian:

zovs66 January 15th, 2025 03:59 AM

Re: Height Maps
 
The fellow posted this:

"Here is the fixed script. Somewhere between line 190 and 200 is where the bug is, where it calls the heightmap files. Adjusting one of the "arrays" to allow an extra digit fixed it.

Do note that I cannot vouch it being bug-free, I am not proficient in Perl."


and:

"Do note also there is also an off-by-one bug when entering the longitude in the script. Still trying to debug it when I have the free time.
For example, entering N39.60354930809638, W105.0732811510434, increment longitude by 1, change it to W106.0732811510434
Mine created the map squarely right into where I wanted it, and made a map out of that area."


I have downloaded his script, but I don't have UNIX / LYNIX to run it.

So its sits on my hard drive.

zovs66 January 15th, 2025 04:03 AM

Re: Height Maps -- The Fix ?
 
1 Attachment(s)
This is the file he posted, but I am not sure how to incorporate it into that repo or test it or to build a server for it???

DRG January 15th, 2025 09:47 AM

Re: Height Maps
 
Me neither and it's not something Andy has worked with

What I am unclear on is how this fix gets the program running from its remote location

Has he turned it into a standalone?

lukerduker123 February 15th, 2025 06:51 PM

Re: Height Maps
 
If anyone can conjigger this up I can potentially host it. My brother runs an Ubuntu server, so that's one step. Not sure where to start or where to finish -- when he gets home I'm grilling him on this.

Update: A good person on a Discord server I'm on decided to faf around with it, and it's apparently missing a contour.pl file.

Update #2: I found someone who appears to be DMNT on Twitter. I reached out with a brief message, and I'm hoping they reply.

DRG February 16th, 2025 10:03 AM

Re: Height Maps
 
Well..... I wish you GOOD LUCK with this. If .you can find someone who knows how to Contact Thomas Venhola that may also help or spomeone who can decipher what is here..........

https://github.com/tvenhola/SPMBT-maps

That link might be the key to the entire puzzle if you can find someone who likes solving code mysteries

lukerduker123 February 16th, 2025 06:33 PM

Re: Height Maps
 
I don't want to promise anything DRG, all I have to say is that this'll be an interesting night. It turns out I'm in the same server as the guy with the fix, and I'm in another server with someone who knows much about Linux and Perl. I'm going to push them together, see what comes of it.

DRG February 16th, 2025 08:10 PM

Re: Height Maps
 
Good luck!

lukerduker123 February 19th, 2025 10:08 PM

Re: Height Maps
 
Sorry for the delay -- one fine fellow is working on forking it (Github speak). Once it's forked the other'll mess with the php, but otherwise I think it'll be working.


All times are GMT -4. The time now is 01:46 PM.

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