|
Post by LouisXIV on Jul 21, 2010 10:55:47 GMT 1
I like the way you think.
|
|
|
Post by danzig70 on Jul 21, 2010 16:24:16 GMT 1
Thank you Louis. You do great things for my ego.
Im working on getting aerials/maps to simulate a French incursion to sieze factories in the Ruhr region. A repeat of the 1922-1923 action.
I am in the process of creating a custom world in World Wind (WW). Found a nice tutorial in the forum. The satellite images are downloaded from a server. However, cache packs are available for use offline. I will make the necessary cache packs available when releasing missions.
The first mission will be called Ruhrkampf for the above referenced scenario.
___________________________________________
I have been thinking that the BK map images or even the super ctrl-shift-F? screenshot image can be turned into .tif and added as layer 0; the surface. You can toggle the layers easily in the layer manager. A hyperlink will be added to the center of each map image which will point to the BK shortcut. Its easy to point to any map and/or mod through the parameters of the shortcut.
You can add places with searchable placenames such as German Army HQ, Tank Factory, Objective 1. This way you zoom right to the locale. At the highest magnification level is the blue marble earth. As you zoom in different layers will be visible such as country borders, city/country names, flags, aerial images, city map plans, and lastly the BK map layer.
Objective arrows, mission plans, etc can be added to any layer.
Quite a neat application, WorldWind. I highly recommend it. It's free.
|
|
Ocelo
General
Map Artist/Eastern Front enthusiast
Posts: 1,400
|
Post by Ocelo on Jul 22, 2010 6:27:36 GMT 1
The map of Danzing looks good, a great potential for a challenging mission. ...not that I of course have any idea of whether there ever was a battle there. A city in the Eastern Front, I just assume so.
|
|
|
Post by danzig70 on Jul 28, 2010 16:26:41 GMT 1
There is footage of the Germans trying to take the post office in danzig/gdansk and had to resort to flamethrowers and fuel. The mass exodus from the east at the end of the war saw alot of action including the sinking of the Wilhelm Gustloff leaving the Hel peninsula.
As far as the UI goes, ran into another snag. When zooming into Aachen using WW at second to last layer would be the city plan map. The city plan map is used to model the BK map. Unfortunately I have a tram line at 45 degrees. I have some nice station buildings but at the wrong orientation. I can rotate the city plan to match the BK map or have north be the left side of the BK map, but it doesnt really jive when you are zooming into the battlefield using WW.
Such a headache.
|
|
|
Post by LouisXIV on Jul 29, 2010 11:01:59 GMT 1
That's when you go from being a technician to being an artist.
|
|
|
Post by danzig70 on Aug 4, 2010 17:12:57 GMT 1
Now I know why artists are crazy!
|
|
|
Post by LouisXIV on Aug 5, 2010 1:26:08 GMT 1
Wow! I must be an artist. I'm crazy!
|
|
|
Post by danzig70 on Aug 7, 2010 21:15:33 GMT 1
From a thought I had on the bk3 status thread.
It would be nice if the Lua script can write the next xml map file when you exit the map. This would only create necessary maps that could be use later during a retreat. If you add script ids to all your units, its possible to know how many units are available for the next mission.
This would be like a tile format where large satelite images of the earth are broken into smaller tiles when needed.
|
|
|
Post by Major Pain on Aug 8, 2010 1:25:13 GMT 1
You can store a GlobalVariable as you exit which is CHECKED within the Chapter or Campaign Script. You assign each map a number rather than a name, then convert the number from text to numeric. The use of an array stores the map name and call routine.
This works on the same principal as when the Chapter Script checks to see if a map was completed or lost. It checks the MAP number to determine which map to load, rather than each in succession.
MP
|
|
|
Post by danzig70 on Aug 9, 2010 7:01:30 GMT 1
Thanks Major. I have a german mission toskana from a chapter in the stock game as an example. I think I am missing something.
I have the map script file found in the data.pak/maps folder, the win.lua script file from the UI folder and the script.lua file from the German chapter "europe".
the victory function in toskana.lua below:
function Sieg() Win(0); Suicide(); end; _________________________________________
This win.lua script is below: ________________________________________________ function LuaProcessMessage( nMessageCode, nFirst, nSecond ) if ( nMessageCode == 536936448 and nFirst == 10000 ) then --OK nMessage = SetProcessedFlag( 3145729 ) AddMessage( nMessage, 1, 1 ) return 1 end
return 0 end ____________________________________
The chapter script file script.lua is below:
function EnterChapter( strChapterName ) EnableMission("scenarios\\scenariomissions\\german\\sizilien\\1");
AddBaseUpgrade( "6-barrel 15cm Nebelwerfer 41" ); ChangeCurrent ("Pz_Kpfw_MAUS", "Pz_Kpfw_IV_Ausf_G"); -- no Beute matilda in europe ChangeDefault ("Pz_Kpfw_MAUS", "Pz_Kpfw_IV_Ausf_G");
end;
function MissionFinished( strMissionName ) local bScenario = GetIGlobalVar("Mission.scenarios\\scenariomissions\\german\\toskana\\1.Finished", 0);
if ( strMissionName == "scenarios\scenariomissions\german\sizilien\1") then AddBaseUpgrade( "Wespe_SdKfz124" ); AddBaseUpgrade( "Panzerjager_Nashorn_Sdkfz164" ); AddBaseUpgrade( "15cmK39" ); AddBaseUpgrade( "Sturmgeschutz_III_Ausf_F" ); AddBaseUpgrade( "Pz_Kpfw_V_Panther_Ausf_D" ); AddBaseUpgrade( "Jagdpanzer_38t_Hetzer" );
---Medal Conditions AddMedal("Medals\\German\\krest3\\1", 3);
EnableMission("scenarios\\scenariomissions\\german\\toskana\\1"); end;
if ( strMissionName == "scenarios\scenariomissions\german\toskana\1") then EnableMission("scenarios\\scenariomissions\\german\\showdown\\1"); AddBaseUpgrade( "Pz_Kpfw_VI_Tiger_Ausf_A_H" ); AddBaseUpgrade( "Jagdpanther_SdKfz173" ); AddNewSlot ("Pz_Kpfw_VI_Tiger_II_Aus_ B"); AddBaseUpgrade( "Wirbelwind" ); AddBaseUpgrade( "10_barrel_15cm_Panzerwerfer42" ); AddBaseUpgrade( "10_cm_ K_18" ); AddMedal("Medals\\German\\tank_as1\\1", 4); end;
if ( strMissionName == "scenarios\scenariomissions\german\showdown\1") then AddMedal("Medals\\German\\krest2\\1", 3); AddMedal("Medals\\German\\as1\\1", 5); ----hoch
FinishCampaign();
end; end;
function PlayerGainLevel( iLevel ) if ( iLevel == 2) then AddNewSlot ("10_5mmLeFh18"); AddNewSlot ("10_5mmLeFh18"); AddNewSlot ("10_5mmLeFh18"); end;
if ( iLevel == 1) then AddNewSlot ("Pz_Kpfw_III_Ausf_E"); AddNewSlot ("Pz_Kpfw_III_Ausf_E"); AddNewSlot ("Pz_Kpfw_III_Ausf_E"); end; end; ______________________________________________
If I understand correctly:
win(0) calls the script win.lua stored in the UI folder with the value 0.
I dont understand the LuaProcessMessage function.
The chapter script checks to see if a map is finished with:
GetIGlobalVar("Mission.scenarios\\scenariomissions\\german\\toskana\\1.Finished", 0);
And you can issue the next map with the EnableMission command.
I just couldnt find where the global variable 1.finish is set. Is it initialized when the mission is being loaded? Do you know which file does this?
This already has interesting possibilities. For example, a chapter would be attacking or defending a city. If the city is divided into a grid then the map names would correspond to the grid values. Then this grid or table is store as an array. Then depending on which direction you leave a map, the EnableMission could use the corresponding mapname in the array?
If the chapter can keep track which maps in the array have been lost (enemy controlled), it should be possible to control enemy reiforcements and AI. Perhaps with a enemyai.lua file?
Do you know what the objectives.lua file does?
Thanks MP!
|
|
|
Post by danzig70 on Aug 11, 2010 17:31:15 GMT 1
Made some progress with the world wind application last nite. I found the way to add icons with hyperlinks that are placed using lat/lon values. There will be a base image layer that is the satellite image of the world. A layer for national flags. Clicking on a flag icon will direct you to that nation's page. A layer for battles. Will probably use an explosion icon or something similar. Clicking on this will direct you to the BK map. A layer for units. Icons will be the APP-6a icons. Clicking on this will direct you to either the units html page, HQ, or BK map for that area. Not sure yet. A layer for factories. Clicking on these factory icons will direct you to that factories html page. The html page will have a link to enter the BK map for that factory. A layer for HQ. Will post screenshot tomorrow. Base image layer flag layer clicking on a flag will open that nation's page in the browser production layer clicking on a factory icon will open the factory's page unit layer battle layer. this will either direct you to the mission page/city page or starts bk with that map loaded. and just for fun, Earth at night.
|
|
|
Post by danzig70 on Aug 12, 2010 16:55:25 GMT 1
Can someone take the full resolution image here commons.wikimedia.org/wiki/File:Whole_world_-_land_and_oceans_12000.jpg, convert it to .png and upload it? Its a very large file and my laptop doesnt have enough RAM. Thanks! You will notice the image becomes blurred when zooming in. The higher resolution image will be much better. There will be a layer that acquires the landsat images from a server and stores them in a cache folder. I want a good image for people that are offline. Note: I will be out of town for 2 weeks and will be taking a break for awhile.
|
|
|
Post by danzig70 on Sept 8, 2010 22:04:00 GMT 1
Well I wasnt able to convert the larger image file but have added LandSat 7 imagery to the custom world "GlobalCampaign" in world wind. So now, when you zoom to about 800 km above the earth, the satellite imagery is loaded. I have added the first city plan map (stadtplan) for Aachen into the application also. Now when you zoom into Aachen at about 5 km the city map loads and is visible. I may change it to 0 km. I will test that when I get home. The fascinating part is that the application gets the elevation data automatically from SRTM. You can tilt the view with a mouse and see the image is overlayed onto the terrain. I will post screenshots later today or tomorrow. Now I have the laborious task of making bk maps. I should be able to do the city of aachen in four bk maps. Next will be Saarbrucken. Historical aerial images will be added in time. There is also a clock feature. It can be set to a custom year and I believe I can set layers to appear at specific times. Some stock imagery will read the date and show summer/winter images as appropriate. I havent been able to get that feature added to my custom world. EDIT: Here are the screenshots of Zagreb: The Germany Army maps of Moscow will work also. Thankfully they have the lat/long information on all corners of the map. The city plans are more difficult as they dont have this information. The corners must be estimated and then corrected. Im quickly running out of space on my computer so I wont be adding more image layers. I will start working on the BK maps and scripts for now. UPDATE: Finally found the full collection of historical topographic maps of Germany which have long/lat information here: historisch.landkartenindex.de/historische-topographische-landkarten/geogreif-zeigt-historische-topographische-landkarten-von-ganz-deutschland-von-vor-dem-2-weltkrieg/A good source for historical topo maps of Poland www.mapy.eksploracja.pl/viewpage.php?page_id=21This source as well as the US army topo maps will provide substantial map coverage for most areas of interest. UPDATE: Here are the German topo maps dated from 1880 to 1943. Most are dated 1912 or 1898. Here is the map layer over LandSat7 imagery. Zooming in you can see near-seamless transition between maps. You can zoom in to see details on the map image such as names,etc.. And with SRTM elevation data, you can tilt the view to see the topography. Had some extra work with the longitude as the German maps use degrees from Ferro island in the canaries instead of Greenwich, England. I just had to subtract 17degrees 40minutes to get the proper longitude for worldwind.
|
|
|
Post by danzig70 on Sept 16, 2010 16:11:50 GMT 1
Made progress on France and once finished will do Poland and Czechoslovakia next. Then western europe, eastern europe, China and Japan. The US will be last as so much data is available. I can get historical aerial images, topo and srtm down to 30m. I will likely start making BK maps for some border skirmishes between France and Germany before doing Poland and the rest.
|
|
Folgore
General
(Once) BK Translator
Posts: 1,431
|
Post by Folgore on Sept 16, 2010 22:31:35 GMT 1
It seems that you are BKing the world!
|
|