commit ec75bb149c46ffa2d8c85f1e78c797258748364d Author: sasbot <> Date: Sat Jun 6 12:00:00 2020 +0000 update zmp diff --git a/.hgignore b/.hgignore new file mode 100644 index 000000000..f6adc7e7e --- /dev/null +++ b/.hgignore @@ -0,0 +1,6 @@ +# use glob syntax. +syntax: glob +.bin/* +*.bak +*.~* +*.orig \ No newline at end of file diff --git a/7za.exe b/7za.exe new file mode 100644 index 000000000..12b9499a2 Binary files /dev/null and b/7za.exe differ diff --git a/BuildZMmp.cmd b/BuildZMmp.cmd new file mode 100644 index 000000000..72127e87b --- /dev/null +++ b/BuildZMmp.cmd @@ -0,0 +1 @@ +cscript BuildZMmp.js \ No newline at end of file diff --git a/BuildZMmp.js b/BuildZMmp.js new file mode 100644 index 000000000..a63f18ec4 --- /dev/null +++ b/BuildZMmp.js @@ -0,0 +1,65 @@ +function CBuildSource(Folder, Ext){ + this.Ext = Ext; + this.fso = WScript.CreateObject("Scripting.FileSystemObject"); + this.Folder = this.fso.GetFolder(Folder); + + this.SourceCheckExtRegExp = new RegExp("^" + this.Ext + "$", "i"); + + this.CheckExt = function(Folder){ + return this.fso.GetExtensionName(Folder.Name).match(this.SourceCheckExtRegExp); + }; + + this.GetSourceFoldersEnumerator = function(){ + return new Enumerator(this.Folder.SubFolders); + }; +}; + +function CBuilder(FolderName){ + this.fso = WScript.CreateObject("Scripting.FileSystemObject"); + this.WshShell = WScript.CreateObject("WScript.Shell"); + this.FolderExists = false; + + this.FolderName = FolderName; + if (FolderName.length == 0){ + this.FolderName = "."; + }; + + this.GetNewFullFileName = function(FileName){ + if (!this.FolderExists){ + if (!this.fso.FolderExists(this.FolderName)){ + this.Folder = this.fso.CreateFolder(FolderName); + this.FolderExists = true; + }else{ + this.Folder = this.fso.GetFolder(this.FolderName); + this.FolderExists = true; + }; + }; + return this.fso.BuildPath(this.Folder.Path, this.fso.GetFileName(FileName)); + }; + this.GetCommandLine = function(SourceFolder, FileName){ + return "7za a -tzip \""+ FileName + "\" \"" + SourceFolder + "\\*.*\"" ; + }; + this.ProcessFolder = function(Folder){ + var NewFileName = this.GetNewFullFileName(Folder.Name); + var FolderFullName = Folder.Path; + if (this.fso.FileExists(NewFileName)){ + this.fso.DeleteFile(NewFileName); + }; + var CommandLine = this.GetCommandLine(FolderFullName, NewFileName); + WScript.Echo(CommandLine); + var Pipe = this.WshShell.Exec(CommandLine); + while(!Pipe.StdOut.AtEndOfStream){ + WScript.StdOut.WriteLine(Pipe.StdOut.ReadLine()); + }; + } +}; + + var Source = new CBuildSource(".", "zmp"); + var Builder = new CBuilder(".\\.bin"); + var oFiles = Source.GetSourceFoldersEnumerator(); + for (; !oFiles.atEnd(); oFiles.moveNext()){ + var oFile = oFiles.item(); + if (Source.CheckExt(oFile)){ + Builder.ProcessFolder(oFile); + }; + }; diff --git a/MOON_terrain/18.bmp b/MOON_terrain/18.bmp new file mode 100644 index 000000000..89b9714d2 Binary files /dev/null and b/MOON_terrain/18.bmp differ diff --git a/MOON_terrain/24.bmp b/MOON_terrain/24.bmp new file mode 100644 index 000000000..197beb573 Binary files /dev/null and b/MOON_terrain/24.bmp differ diff --git a/MOON_terrain/GetUrlScript.txt b/MOON_terrain/GetUrlScript.txt new file mode 100644 index 000000000..4dd2e0416 --- /dev/null +++ b/MOON_terrain/GetUrlScript.txt @@ -0,0 +1,3 @@ +begin + ResultURL:=GetUrlBase+'&x='+inttostr(GetX)+'&y='+inttostr(GetY)+'&zoom='+inttostr(18-GetZ)+'&s='+copy('Galileo',1,random(7)+1); +end. \ No newline at end of file diff --git a/MOON_terrain/params.txt b/MOON_terrain/params.txt new file mode 100644 index 000000000..f867189dc --- /dev/null +++ b/MOON_terrain/params.txt @@ -0,0 +1,24 @@ +[PARAMS] +pnum=110 +GUID={82F76321-6574-4EE2-8DCD-654557134AD7} +asLayer=0 +name=Луна Высоты (Google) +NameInCache=MOON_terrain +DefURLBase=http://mw1.google.com/mw-planetary/lunar/lunarmaps_v1/terrain/ +ContentType=image/jpeg +ParentSubMenu=Космос +Ext=.jpg +projection=1 +sradiusa=1737400 +sradiusb=1737400 +separator=0 +UseDwn=1 +Usestick=1 +UseGenPrevious=1 +Usedel=1 +Usesave=1 +UseAntiBan=0 +Sleep=0 +DefHotKey=83 +BanIfLen=0 +CacheType=1 \ No newline at end of file diff --git a/mars_elevation/18.bmp b/mars_elevation/18.bmp new file mode 100644 index 000000000..abf34a878 Binary files /dev/null and b/mars_elevation/18.bmp differ diff --git a/mars_elevation/24.bmp b/mars_elevation/24.bmp new file mode 100644 index 000000000..706f267ac Binary files /dev/null and b/mars_elevation/24.bmp differ diff --git a/mars_elevation/GetUrlScript.txt b/mars_elevation/GetUrlScript.txt new file mode 100644 index 000000000..4dd2e0416 --- /dev/null +++ b/mars_elevation/GetUrlScript.txt @@ -0,0 +1,3 @@ +begin + ResultURL:=GetUrlBase+'&x='+inttostr(GetX)+'&y='+inttostr(GetY)+'&zoom='+inttostr(18-GetZ)+'&s='+copy('Galileo',1,random(7)+1); +end. \ No newline at end of file diff --git a/mars_elevation/params.txt b/mars_elevation/params.txt new file mode 100644 index 000000000..51c2389bd --- /dev/null +++ b/mars_elevation/params.txt @@ -0,0 +1,26 @@ +[PARAMS] +pnum=108 +GUID={E90A2F3E-45CE-4AF9-AC19-D372AC403CCB} +asLayer=0 +name=Марс Выстоы (Google) +name_9=Марс Выстоы (Google) +NameInCache=MARS_elevation +DefURLBase=http://mw1.google.com/mw-planetary/mars/visible/ +ContentType=image/jpeg +ParentSubMenu=Космос +ParentSubMenu_9=Space +Ext=.jpg +projection=1 +sradiusa=3396190 +sradiusb=3396190 +separator=0 +UseDwn=1 +Usestick=1 +UseGenPrevious=1 +Usedel=1 +Usesave=1 +UseAntiBan=0 +Sleep=0 +DefHotKey=82 +BanIfLen=0 +CacheType=1 \ No newline at end of file diff --git a/mars_infrared/18.bmp b/mars_infrared/18.bmp new file mode 100644 index 000000000..abf34a878 Binary files /dev/null and b/mars_infrared/18.bmp differ diff --git a/mars_infrared/24.bmp b/mars_infrared/24.bmp new file mode 100644 index 000000000..706f267ac Binary files /dev/null and b/mars_infrared/24.bmp differ diff --git a/mars_infrared/GetUrlScript.txt b/mars_infrared/GetUrlScript.txt new file mode 100644 index 000000000..4dd2e0416 --- /dev/null +++ b/mars_infrared/GetUrlScript.txt @@ -0,0 +1,3 @@ +begin + ResultURL:=GetUrlBase+'&x='+inttostr(GetX)+'&y='+inttostr(GetY)+'&zoom='+inttostr(18-GetZ)+'&s='+copy('Galileo',1,random(7)+1); +end. \ No newline at end of file diff --git a/mars_infrared/params.txt b/mars_infrared/params.txt new file mode 100644 index 000000000..2b1fd71af --- /dev/null +++ b/mars_infrared/params.txt @@ -0,0 +1,25 @@ +[PARAMS] +pnum=109 +GUID={72F36652-2D7E-4B9D-BA26-63D773FB9AE7} +asLayer=0 +name=Марс Инфракрасный (Google) +name_9=Марс Инфракрасный (Google) +NameInCache=mars_infrared +DefURLBase=http://mw1.google.com/mw-planetary/mars/infrared/ +ContentType=image/jpeg +ParentSubMenu=Космос +Ext=.jpg +projection=1 +sradiusa=3396190 +sradiusb=3396190 +separator=0 +UseDwn=1 +Usestick=1 +UseGenPrevious=1 +Usedel=1 +Usesave=1 +UseAntiBan=0 +Sleep=0 +DefHotKey=82 +BanIfLen=0 +CacheType=1 \ No newline at end of file