Log in

View Full Version : Campaign Questions!


Reece
08-12-06, 09:01 AM
Hi, been working on Campaign files & have started off with HT146 SCR layer & incorporated the various Canals & Helgoland etc, & merged with parts of other mods that I like [see * below], I also removed some locations as they were doubled in the LND layer, that is HT147 based, with much of the 'WarAce' files merged, and I manually added a dozen new ports as well. Also the RND layer is HT147 based with adjustment to respawning & reporting to produce more capital ships.:up:
So far all is going well but very time consuming as the locations given aren't the same as when manually editing the LND file.:-? What I need to know is:
1) What uses the Locations.cfg ?
2) Will there be a problem not entering the Ports/Cities?
When Playing the game the new Ports are there even though not entered in the Locations.cfg file, If anyone can shed some light here I would appreciate it?
Many Thanks.:D


* WarAce, Tonnage War, NOK, HT146 & 7.
Many thanks to the creators of these campaing files & hope that they do not mind me using them in parts rather than in whole.

rowi58
08-12-06, 02:04 PM
What I need to know is:
1) What uses the Locations.cfg ?
2) Will there be a problem not entering the Ports/Cities?
When Playing the game the new Ports are there even though not entered in the Locations.cfg file, If anyone can shed some light here I would appreciate it?
Many Thanks.:D


* WarAce, Tonnage War, NOK, HT146 & 7.
Many thanks to the creators of these campaing files & hope that they do not mind me using them in parts rather than in whole.

Hi,
all the ports/harbours, industry, cities and lighthouses are allocated via the Locations.cfg. The entries in the Locations.cfg refer to the files in the roster data/Terrain/Locations. There you find the DAT-files of all the bases/harbours, the industry, cities and lighthouses. For example:

[Location 347]; Stralsund Ostsee-Erweiterung
Long=13.104657; geographical data
Lat=54.313184
Heading=0
OnLand=false
ShowOnMap=true
FileName=Djakarta; used layout
LocationName=Stralsund; shown name on map

I added the harbour of Stralsund (Baltic Sea) to the Location.cfg and therfore i'm using the Djakarta-layout - as you can find in the roster above. To minimise confusion, i make remarks in each (important) line i added in the Locations.cfg (text after the semicolon)

Without the Locations.cfg, you will not see any "location" in the game.

In the Campaign_LND.mis you define for example wich harbour become a naval base, where your airfields (airbases) and your costal defence/air defence (i.e. bunker) are located. This job you can do with the SH3-MissionEditor.

So if you want new ports/cities in your game, you must edit the Locations.cfg (see example above) or you will not see them. When you did this, you can make a new naval base in this port via editing rhe Campaign_LND.mis with SH3-MisionEditor.

Hope this will help you.

rowi58

Reece
08-12-06, 09:32 PM
That's a big help, :yep: I notice that "LocationName=" is missing on some of the entries, not sure why? I will explain exactly what I am editing:

When opening the LND layer some of the Ports (a greater part) are marked in black but do not show in the game, so I added the Ports via notepad to the file such as:

[Unit 1108]
Name=Konigsberg
Class=NavalBase
Type=407
Origin=German
Side=0
Commander=0
CargoExt=-1
CargoInt=-1
CfgDate=19380101
DeleteOnLastWaypoint=true
DockedShip=false
GameEntryDate=19380101
GameEntryTime=0
GameExitDate=19440804
GameExitTime=0
EvolveFromEntryDate=false
Long=2446748.000000
Lat=6560270.000000
Height=5.850000
Heading=180.000000
Speed=0.000000
CrewRating=3
DelayMin=0
ReportPosMin=-1
ReportPosProbability=100
RandStartRadius=0.000000
NextWP=0

And

[Unit 1114]
Name=Malmo
Class=NavalBase
Type=407
Origin=Sweden
Side=0
Commander=0
CargoExt=-1
CargoInt=-1
CfgDate=19380101
DeleteOnLastWaypoint=true
DockedShip=false
GameEntryDate=19380101
GameEntryTime=0
GameExitDate=19451231
GameExitTime=0
EvolveFromEntryDate=false
Long=1554898.000000
Lat=6672000.000000
Height=5.850000
Heading=0.000000
Speed=0.000000
CrewRating=3
DelayMin=0
ReportPosMin=-1
ReportPosProbability=100
RandStartRadius=0.000000
NextWP=0

These Ports were existing in the LND layer (in black) but not shown in the game now they do but not sure what to put in the Locations.cfg, if I were to guess I'd put:

[Location xx1]
Long=20.3846
Lat=54.6716
Heading=330
OnLand=false
ShowOnMap=true
FileName=Konigsberg
LocationName=Konigsberg

[Location xx2]
Long=12.9549
Lat=55.60009
Heading=250
OnLand=false
ShowOnMap=true
FileName=Malmo
LocationName=Malmo

Is this correct?:) Please note that the Lon/Lat in LND is not the same as where pointer is (in Locations.cfg), if it were the name of the Port would appear miles away .... wierd!

Thanks for your help.:up:

rowi58
08-13-06, 12:52 AM
These Ports were existing in the LND layer (in black) but not shown in the game now they do but not sure what to put in the Locations.cfg, if I were to guess I'd put:

[Location xx1]
Long=20.3846
Lat=54.6716
Heading=330
OnLand=false
ShowOnMap=true
FileName=Konigsberg
LocationName=Konigsberg

[Location xx2]
Long=12.9549
Lat=55.60009
Heading=250
OnLand=false
ShowOnMap=true
FileName=Malmo
LocationName=Malmo

Is this correct?:) Please note that the Lon/Lat in LND is not the same as where pointer is (in Locations.cfg), if it were the name of the Port would appear miles away .... wierd!

Thanks for your help.:up:


Hi Reece,

this is nearly correct. Take a look at your entries "FileName=Malmo" in your Locations.cfg. Are you sure that you have a "Malmo.dat" i your folder data/Terrain/Location? If not, this will not work (see the following screenshot)

http://img149.imageshack.us/img149/6716/stralsund3zr9.jpg

This is standard SH3. If "Malmo.dat" (or Konigsberg.dat) is not in this folder choose another one. For example the "defaulf"-harbours of SH3 - called Large_harbor_type_II.dat or Large_harbor_type_III.dat or for small harbours Djakarta.dat. Take a look at the *.tga-files in this folder to check the layout of the harbour.

So edit the line in the lLocations.cfg "FileName=Large_harbor_type_II". The line "LocationName=Malmo" is correct, if you want this name shown on the map.

Your are absoluty corrct with the "dimensions/values" of long. and lat.. I do not know why SH§ is using two different methods in the LND.mis and the cfg-file to specify long. and lat. values.

1. HINT:
How to get the values for long. and lat. You can search i google earth or just open the *LND.mis or even a single-mission.mis file in the SH3-MissionEditor. Go to the coordinates where you want to have a new "location", zoom up and move the curor/mouse to the point you want as the center of the "location". Look at the screenshot:

http://img99.imageshack.us/img99/1743/stralsund2dn3.jpg

You will find both values of long. and lat. in the left corner on the bottom as marked above (also activate in SH3-MissionEditor nemu "View - Render accurate shore line").

2. HINT
I can't check your values for the NavalBase in Malmo or Konigsberg. To be sure that you can start without problems from your new base, proceed as follow: open your *LND.mis in the SH3-MissionEditor, go to your new harbour/base, zoom up to max, drag and drop "NavalBase" from the rigth bar to the place where you want to start (bunker or basin), plot a (fictive) course out of the bunker/basin with one waypoint, mark your "NavalBase", rigthklick on your mouse, select "Properties" and "Headig to waypoint" - finish and save (but don't forget the other values). So you can sail out of your new base without any collision.


greetig
rowi58

Reece
08-13-06, 01:40 AM
Ah I see the light, I knew the Longitude/Latitude were, but completely ignored the left values & it is these that appear in the LND file & the right values in the cfg file.:D I didn't know about the Locations folder with the tga's & that is a big help I think I will print these out to a little booklet for quick reference!:D I will try starting from the "new base" then, as a test.:up:
Many thanks.

Reece
08-13-06, 09:31 AM
This is turning into a nightmare!!:cry: First of all I ended up with 3 Ports superimposed I then deleted the entries from the LND file via notepad & entries in Locations .cfg, opened LND with SH3 editor and checked, all back to scratch with Malmo existing in black print & showing Soerabaja file. So I put the Cursor pointer just below the Port (can't get a snapshot to show!) near the name (who knows where to actually put it! & wrote down the settings. Entered these with notepad:

Locations.cfg:

[Location 507]
Long=12.937448
Lat=55.606365
Heading=350
OnLand=false
ShowOnMap=true
FileName=Soerabaja
LocationName=Malmo

Campaign_LND.mis:

[Unit 1114]
Name=Malmo
Class=NavalBase
Type=407
Origin=Sweden
Side=0
Commander=0
CargoExt=-1
CargoInt=-1
CfgDate=19380101
DeleteOnLastWaypoint=true
DockedShip=false
GameEntryDate=19380101
GameEntryTime=0
GameExitDate=19451231
GameExitTime=0
EvolveFromEntryDate=false
Long=1552500.000000
Lat=6672790.000000
Height=5.850000
Heading=0.000000
Speed=0.000000
CrewRating=3
DelayMin=0
ReportPosMin=-1
ReportPosProbability=100
RandStartRadius=0.000000
NextWP=0

Then ran SH3 editor & I now have the original port showing with the new added Port miles out to sea, in a NW direction, nowhere near the pointer values.:-?

I placed the left values to the LND file & the right ones to the Locations.cfg!
Don't know what to do at this point, should the Port already exist and if so should I create over the top? Totally confused!
Please advise.:yep:
Reece.

rowi58
08-13-06, 02:18 PM
This is turning into a nightmare!!
Locations.cfg:

[Location 507]
Long=12.937448
Lat=55.606365
Heading=350
OnLand=false
ShowOnMap=true
FileName=Soerabaja
LocationName=Malmo

Campaign_LND.mis:

[Unit 1114]
Name=Malmo
Class=NavalBase
Type=407
Origin=Sweden
Side=0
Commander=0
CargoExt=-1
CargoInt=-1
CfgDate=19380101
DeleteOnLastWaypoint=true
DockedShip=false
GameEntryDate=19380101
GameEntryTime=0
GameExitDate=19451231
GameExitTime=0
EvolveFromEntryDate=false
Long=1552500.000000
Lat=6672790.000000
Height=5.850000
Heading=0.000000
Speed=0.000000
CrewRating=3
DelayMin=0
ReportPosMin=-1
ReportPosProbability=100
RandStartRadius=0.000000
NextWP=0

Then ran SH3 editor & I now have the original port showing with the new added Port miles out to sea, in a NW direction, nowhere near the pointer values.:-?

I placed the left values to the LND file & the right ones to the Locations.cfg!
Don't know what to do at this point, should the Port already exist and if so should I create over the top? Totally confused!
Please advise.:yep:
Reece.

Hi Reece,

i copied your lines to my Locations.cfg and *LND.mis to see if it is correct. Just a little bit down and to the rigth and it is perfect. The name Malmo apears and it is the Soerabaja-layout.

http://img45.imageshack.us/img45/5489/malm1ta9.jpg

I also checked your LND.nis values. No Problem. Same remarks as above. So try with the values of the screenshot Lock at the black DOT in the harbour-layout. I think that marks the center (or node). Perhaps some little adjustment.

I think it looks very good. I normaly need more than 3 trials to find the final place.

greetings
rowi58

Reece
08-13-06, 09:55 PM
Hi, yes that is where it ends up but had to figure out how to get a snapshot so I could show you what mine looks like, note the black dots:
http://i66.photobucket.com/albums/h244/Reecehk/PortProblem.jpg
Mine shows that a Port exists there already but is not in the LND Layer a search in notepad shown nothing there but the new one I'm adding.:-? this includes the Locations.cfg. At this point I will do a search (*.*) of the entire data folder & subfolders for Malmo to see if I can find another accurence.:)
Just by the way will let you know that using XP's search for this task fails, the program doesn't work!! typical Microsoft!:down: explains a lot of past problems with the computer, I always assumed it worked!
Thanks for your continued help.:D

Edit. Completed the search and reveals only the LND & Locations.cfg files contain "Malmo".

Reece
08-13-06, 10:59 PM
Hi got it at last, a simple error, I was searching for Malmo & Konigberg, should have been Malmö & Königberg!:oops: Wont make that mistake again, these Ports already existed in the Locations.cfg file!
Thanks very much for your patience & help.:D
Cheers.

rowi58
08-13-06, 11:16 PM
Hi got it at last, a simple error, I was searching for Malmo & Konigberg, should have been Malmö & Königberg!:oops: Wont make that mistake again, these Ports already existed in the Locations.cfg file!
Thanks very much for your patience & help.:D
Cheers.


Hi

thats what i want to tell you, but someone (i myself i think) canceld my internetconection while i was writing the answer. So you are first.



"know i can see your problem. Someone has jusr put a harbour right there. To find it, open the "Locations.cfg" with your "Notepad", go to the menu "Search" and search for Soerabaja: it must apears (minimum) 3-times (one for the original Soerabaja and 2-times for the harbours above. If you have found the "secound" Malmo, look at the name of this location. Perhaps it is writen Malmö (with the german "ö" or search for Malm).

The black DOTs on the map represent some cities and industries. Someoe put the files (for example) "City_FR_GR" from the folder data/Terrain/Location round there:

[Location 331] ; St.Nazaire-City
Long=-2.368824
Lat=47.281700
Heading=200
OnLand=true
FileName=City_Fr_Gr
LocationName=St.Nazaire

If you cancel the last line or do not edit it (what is "standard" in SH3), the location-name would not be shown on map, only the black DOT.

The guy who addedt Malmö ito the Location.cfg did not add ia NavalBase to the LND_Layer. Thats why you can not find Malmö in the LND_Layer (only your ew base is there - look at rhe green mark that represents a naval base)."

greetings
rowi58

Reece
08-13-06, 11:39 PM
Yes you are correct, when I found Malmö, there were a few entries for cities & factories! I had to cut and paste to get the "oomlahs - probably spelt wrong) I don't know the key combo for that character.:D
Cheers.

SquareSteelBar
08-14-06, 08:49 AM
Hi Reece,

there's a little prog in WinXP [called 'Zeichentabelle' in german; dunno the english name] that provides every german 'Umlaut' [and strange other signs] for every installed font. Maybe you haven't installed it yet.
For installation go to Control Panel\Software\[Add Windows Components] or similar. You will be asked for your WinXP Setup CD. When it is installed you'll find a shortcut in ProgramGroup/SystemPrograms? Maybe it's already there. Have a look to the pics:

the little prog [maybe you know it already]:

http://img49.imageshack.us/img49/6822/zeichentabelleev7.jpg


For installation:

http://img49.imageshack.us/img49/5954/addds6.jpg

Sorry for my poor english

Greetz,
SSB

zzsteven
08-14-06, 04:57 PM
Start/Programs/Accessories/System Tools/Character Map.

zz

Reece
08-14-06, 10:09 PM
Yes thanks, I knew the character map existed but didn't know what it was (at the time never cared!).:oops:
Thanks Guys, a shotcut to the desktop is required!:D
Cheers

zzsteven
08-15-06, 04:12 PM
Yes thanks, I knew the character map existed but didn't know what it was (at the time never cared!).:oops:
Thanks Guys, a shotcut to the desktop is required!:D
Cheers

I've never use it either. Had to hunt to remember where it was located. :D

zz