[Current Forum ] [Archive 2003 - 2005]
[Register]  [Profile]  [Preferences]  [Search]
[Private messages]  [Memberslist]  [FAQ]  [Login]
Subsim Radio Room Forum Index » » Silent Hunter II » » Coordinate system still has me confused...I think
Author Coordinate system still has me confused...I think
GoDeep


Joined: Mar 19, 2002
Posts: 49
From: Netherlands
Posted: 2002-09-25 15:33   
Hi everyone,

I would be grateful if anyone could shed some light at this for me. Several buckets full might be nice

I know I have never been a wizz with numbers, but to give myself some credit: when there is a system, I usually see it after a while.
I have been working on adding resupply to the SH2 original campaign, but no matter what I do, I can't get the supply ship to show up in the proper place. Its icon does appear on the map, but usually some 64 miles inland. Kinda hard to get to my fresh torpedoes

I've read the documentation about how to hand edit scenario files, and I thought I had this down. Below is my code to define a milk cow supply ship, which appears when you radio it.

--------
[GROUP2]
Type = SUBWOLFPACK
Side = 2
Name = Milk Cow
Unit Type = Submarine
Origin = Germany
Crew = 80
EntryTime = 2300
EntryDate = 19990925
EntryInterval = 18
Torpedo = 15
Order1.1 = Resupply,1,Fuel,UNIT,-1,-1
ROE,AIRCRAFT,LIMITED,AVOID,EVADE,FULL
WayptDisplay = DO_NOT_SHOW

[UNIT2]
Group = 2
TypeAbrev = SS
Class = NSSUboat14
Name = U-462
Origin = Germany
Flag = TRUE
Guide = TRUE
Location = 3.040000, 5.010000
Orientation = 180
Captain = 80
Crew = 80
BoilersHot = TRUE
IconName = SUBMARINE
Display = SHOW_AS_GROUP
---------

The way I see it, the coordinates: 3.040000, 5.010000 SHOULD put the u-boat in the water, somewhere off the African coast. But no matter what I input, the icon for the ship appears, but it appears 60 - 80 miles inland.

I have tried inputting different coordinates (even my own which I KNOW are in the water), but no matter what I do, the supply ship appears near 2 degrees 52 minutes east by 7 degrees 49 minutes north.
And yes, I tried sailing away from my coordinates first, before calling for resupply

So, either I have completely misunderstood the coordinates system, OR I am doing something else wrong. Anybody has any ideas???

By the way, I am using a totally unmodded install, just SH2, patch 1.1 and PM15.

Any help will be greatly appreciated!

GoDeep


  View Profile of GoDeep        Edit/Delete This Post   Reply with quote
HerrBaron


Joined: Feb 26, 2002
Posts: 493
From: Norwalk, CT
Posted: 2002-09-25 16:45   
Quote:

On 2002-09-25 15:33, GoDeep wrote:
Hi everyone,

I would be grateful if anyone could shed some light at this for me. Several buckets full might be nice

I know I have never been a wizz with numbers, but to give myself some credit: when there is a system, I usually see it after a while.
I have been working on adding resupply to the SH2 original campaign, but no matter what I do, I can't get the supply ship to show up in the proper place. Its icon does appear on the map, but usually some 64 miles inland. Kinda hard to get to my fresh torpedoes

I've read the documentation about how to hand edit scenario files, and I thought I had this down. Below is my code to define a milk cow supply ship, which appears when you radio it.

--------
[GROUP2]
Type = SUBWOLFPACK
Side = 2
Name = Milk Cow
Unit Type = Submarine
Origin = Germany
Crew = 80
EntryTime = 2300
EntryDate = 19990925
EntryInterval = 18
Torpedo = 15
Order1.1 = Resupply,1,Fuel,UNIT,-1,-1
ROE,AIRCRAFT,LIMITED,AVOID,EVADE,FULL
WayptDisplay = DO_NOT_SHOW

[UNIT2]
Group = 2
TypeAbrev = SS
Class = NSSUboat14
Name = U-462
Origin = Germany
Flag = TRUE
Guide = TRUE
Location = 3.040000, 5.010000
Orientation = 180
Captain = 80
Crew = 80
BoilersHot = TRUE
IconName = SUBMARINE
Display = SHOW_AS_GROUP
---------

The way I see it, the coordinates: 3.040000, 5.010000 SHOULD put the u-boat in the water, somewhere off the African coast. But no matter what I input, the icon for the ship appears, but it appears 60 - 80 miles inland.

I have tried inputting different coordinates (even my own which I KNOW are in the water), but no matter what I do, the supply ship appears near 2 degrees 52 minutes east by 7 degrees 49 minutes north.
And yes, I tried sailing away from my coordinates first, before calling for resupply

So, either I have completely misunderstood the coordinates system, OR I am doing something else wrong. Anybody has any ideas???

By the way, I am using a totally unmodded install, just SH2, patch 1.1 and PM15.

Any help will be greatly appreciated!

GoDeep



I think your problem is that coordinates are in decimal degrees, not DMS notation.

_________________
Fair Winds and Following Seas!



HerrBaron


  View Profile of HerrBaron   Email HerrBaron   Goto the website of HerrBaron        Edit/Delete This Post   Reply with quote
GoDeep


Joined: Mar 19, 2002
Posts: 49
From: Netherlands
Posted: 2002-09-25 17:00   
Yes, possibly.
But even if I copy in coordinates from a working mission file, where the ship in question appears in the water, in my script, it materializes on land.

Please correct me if I am wrong, but if the coordinates are correct in one mission file, they should be correct in another one, right?

Also, my own boat appears in the water at the start of the mission. But, if I set the supply ship to appear on those coordinates, it still shows up inland on the map. (I was no longer at those coordinates when I radioed for resupply, of course).

So it strikes me, that something else is goofy. It could still be me, of course

GoDeep


  View Profile of GoDeep        Edit/Delete This Post   Reply with quote
Ol'Man


Joined: Feb 27, 2002
Posts: 81
From: Atop a high mountain
Posted: 2002-09-25 17:22   
What mission are you working on? The location you have posted {Location = 3.040000, 5.010000) is where my mission Cake Walk is located. Look at it and see if you have got the right area. Remember West of 0 is a minus {-) like (Location = -3.040000, 5.010000)

Cheers
Ol'Man


  View Profile of Ol'Man      Edit/Delete This Post   Reply with quote
GoDeep


Joined: Mar 19, 2002
Posts: 49
From: Netherlands
Posted: 2002-09-25 18:06   
Yes, exactly. I took that mission because resupply was working and I was trying to exchange the supply ship with a supply u-boat.

I figured it would be easier to work with an already working mission, and see if I could duplicate the results, and then proceeding to the original campaign missions.

The coordinates I used, come right out of the Cake Walk mission. So I know them to be correct. But not even using the original starting position of my own u-boat will put the milk cow u-boat in the water. It always ends up in Africa.
Still the only thing I did is exchange the code for the supply ship, with the code needed to have a u-boat.

So I can't figure out this weirdness. That's why I am confused. Any help you could give me, would be very welcome.

GoDeep


  View Profile of GoDeep        Edit/Delete This Post   Reply with quote
Ol'Man


Joined: Feb 27, 2002
Posts: 81
From: Atop a high mountain
Posted: 2002-09-25 18:16   
Will check into it.

Cheers
Ol'Man


  View Profile of Ol'Man      Edit/Delete This Post   Reply with quote
Mark K


Joined: Feb 27, 2002
Posts: 474
From: Petaluma, California
Posted: 2002-09-25 19:36   
Is the submarine being spawned? Most spawned units do not appear where specified in the file, but instead with a position relative to the player.

Mark


  View Profile of Mark K   Goto the website of Mark K      Edit/Delete This Post   Reply with quote
GoDeep


Joined: Mar 19, 2002
Posts: 49
From: Netherlands
Posted: 2002-09-25 19:52   
Hi Mark,

Well, the sub doesn't appear on the map, until you radio for resupply, that's true. But that also happens with the supply ship that Ol'Man scripted, and for some reason I can't figure out, his ship works fine and appears in the same location AND in water, which is a much more natural place for a ship to be than on the African continent, where my u-boat keeps appearing. Maybe the skipper likes the native girls or something, I don't know

Basically, all I did was replace the code for a supply ship (tanker), for a type XIV u-boat, which I thought would be very nice, if I could get it to work. I don't know why I can't get it to appear where I want it though. Maybe Ol'Man can enlighten me. I certainly hope so

Thanks,

GoDeep


  View Profile of GoDeep        Edit/Delete This Post   Reply with quote
Ol'Man


Joined: Feb 27, 2002
Posts: 81
From: Atop a high mountain
Posted: 2002-09-25 20:10   
Haaaaaaarrrrrrr, if Mark can't help you, he is the wizard of all that floats, your lost. Here try this:

[GROUP2]
Type = SHIPSQUADRON
Side = 2
Category = SUBMARINE
Unit Type = Submarine
Class = SSUboat14
Model = NSSUboat14
Name = U137
Origin = Germany
Crew = 53
EntryTime = 2300
EntryDate = 19990528
EntryInterval = 18
Order1.1 = Resupply,1,Fuel,UNIT,-1,-1
WayptDisplay = DO_NOT_SHOW

[UNIT1]
Group = 2
TypeAbrev = AVP
Class = NSSUboat14
Name = U137
Origin = Germany
Flag = TRUE
Guide = TRUE
Location = 0.40,1.30
Orientation = 180
Captain = 53
Crew = 53
BoilersHot = TRUE
IconName = Submarine
Display = SHOW_AS_GROUP

Subsitute for the tanker. Works for me.
It's trial and error on the location, you have to finally get one that works every time.

Cheers
Ol'Man


  View Profile of Ol'Man      Edit/Delete This Post   Reply with quote
GoDeep


Joined: Mar 19, 2002
Posts: 49
From: Netherlands
Posted: 2002-09-25 20:25   
Hey, thank you Ol'Man!

This one works for me too. I guess I need to keep experimenting some more, but I think I will get the hang of it. Will start creating missions in the middle of the ocean, no land for MILES.
Then it won't matter where exactly the supply ship turns up, it will still be wet!

Thanks again for the effort,

GoDeep


  View Profile of GoDeep        Edit/Delete This Post   Reply with quote
Ol'Man


Joined: Feb 27, 2002
Posts: 81
From: Atop a high mountain
Posted: 2002-09-25 20:39   
Here's a hint to help you test what you have quickly. Bring up your file.(Scenario folder} Then bring up SH2, go to the select a single mission screen. Alt-tab that screen down. Then Ctrl+Alt+del and end task of the screen blanker. This will leave the game up and give you access to the file you are working on. After changes click on "shell" on the task bar and you're in the game. Hope i explained this good enough.

Cheers
Ol'Man
_________________


  View Profile of Ol'Man      Edit/Delete This Post   Reply with quote
Drebbel


Joined: Mar 05, 2002
Posts: 1782
Posted: 2002-09-25 21:46   
There is a handy little tool that converts real life coordinates (degr/min/sec) into SHII decimal coordinates.

It is included in the NWS SHII editing manuals.

Download it at: http://www.navalwarfare.org.uk/files/sh2dc/sh2_editing.zip


Also tested the 3.040000, 5.010000 coordinates. I created a base at that position. It showed up in the sea and not on land.

_________________

Drebbel

www.DutchSubmarines.com
The Submarines of the Royal Netherlands Navy

[ This Message was edited by: Drebbel on 2002-09-25 21:56 ]


  View Profile of Drebbel   Goto the website of Drebbel        Edit/Delete This Post   Reply with quote
GoDeep


Joined: Mar 19, 2002
Posts: 49
From: Netherlands
Posted: 2002-09-26 04:36   
Quote:

On 2002-09-25 21:46, Drebbel wrote:
There is a handy little tool that converts real life coordinates (degr/min/sec) into SHII decimal coordinates.

It is included in the NWS SHII editing manuals.

Download it at: http://www.navalwarfare.org.uk/files/sh2dc/sh2_editing.zip



Thanks a lot, Drebbel! This should prove a valuable tool. Especially with guys like me, who get confused when they see more than 5 numbers, standing in a row.

Quote:

Also tested the 3.040000, 5.010000 coordinates. I created a base at that position. It showed up in the sea and not on land.



Yes, that's what I can't figure out either. Those coordinates *should* put a ship in the water, not 60 miles inland. I don't know why they didn't, but the fact is: they didn't. I know the Germans had some pretty advanced technology in WW2, but teleporting an entire XIV u-boat??? Nah...

Thanks again,

GoDeep


  View Profile of GoDeep        Edit/Delete This Post   Reply with quote
Lock this Topic Move this Topic Delete this Topic
Powered by phpBB Version 1.4.4
Copyright © 2000 - 2001 The phpBB Group

phpBB Created this page in 0.044772 seconds.