Jump to content

srd file; where am I wrong?


idefix44
 Share

Recommended Posts

srd file; where am I wrong?

Attached in a zip file:
- the mis file with the ships roads.
- the matching srd file.

In the maps.dcg file, MapAxis=North  

Blue ships spawn at Genova_Harbor and follow the blue paths. It's correct.
I want that Red ships spawn at Crotone_Supply_Depot_Harbor and follow the red paths.
But they spawn at 200_Tyrrhenian_Sea. It isn't correct.

200_Tyrrhenian_Sea: 57000.00 1000.00
Crotone_Supply_Depot_Harbor: 75000.00 500.00

Crotone_Supply_Depot_Harbor is lower than 200_Tyrrhenian_Sea.
Where am I wrong?

I use the IL2DCG 3.48 version.

CDG_Italy.zip

Link to comment
Share on other sites

I see an issue with your file which may or may not solve the problem.  You need at least eight waypoints for each route and I noticed many of yours only have three or four.  Example:

 

[Crotone_Bay to Crotone_Harbor]
  73000.00 4000.00 120.00 0 2 2.7777777777777777
  73000.00 1000.00 120.00 0 2 2.7777777777777777
  75000.00 500.00 120.00

 

Stick a few more waypoints between each of these three waypoints.

Link to comment
Share on other sites

I see an issue with your file which may or may not solve the problem.  You need at least eight waypoints for each route and I noticed many of yours only have three or four.  Example:

 

[Crotone_Bay to Crotone_Harbor]

  73000.00 4000.00 120.00 0 2 2.7777777777777777

  73000.00 1000.00 120.00 0 2 2.7777777777777777

  75000.00 500.00 120.00

 

Stick a few more waypoints between each of these three waypoints.

 

Done Sir.

 

Each road has 9 or 10 waypoints now.

 

But the problem isn't fixed...

CDG_Italy v3.zip

Link to comment
Share on other sites

When DCG generates the mission, it puts the X/Y coordinates of each location into the locations.dcg file.  According to this file:

 

200_Tyrrhenian_Sea 0 59000.00 1000.00

Crotone_Harbor 2 73000.00 4000.00

Crotone_Bay 0 74000.00 3000.00

 

While you have this:

 

[Crotone_Bay to Crotone_Harbor]
  73000.00 4000.00 120.00 0 2 2.7777777777777777
  71000.00 4000.00 120.00 0 2 2.7777777777777777
  69000.00 4000.00 120.00 0 2 2.7777777777777777
  67000.00 3000.00 120.00 0 2 2.7777777777777777
  67000.00 1000.00 120.00 0 2 2.7777777777777777
  69000.00 2000.00 120.00 0 2 2.7777777777777777
  71000.00 2000.00 120.00 0 2 2.7777777777777777
  73000.00 2000.00 120.00 0 2 2.7777777777777777
  75000.00 500.00 120.00

 

It appears Crotone_Harbor is taking from the first waypoint in this series and not the last one.  This is definitely a bug.  You could probably solve it by adding another "dummy" location just north of Crotone_Harbor that links to Crotone_Harbor.  But I will look into fixing the bug.

Link to comment
Share on other sites

Ok. I've downloaded and updated my IL2 DCG to 3.49b4 version.

 

I'm sorry, but this bug isn't fixed.

 

When the sea road is:

[Crotone_Bay to Crotone_Harbor]
  73000.00 4000.00 120.00 0 2 2.7777777777777777
  71000.00 4000.00 120.00 0 2 2.7777777777777777
  69000.00 4000.00 120.00 0 2 2.7777777777777777
  67000.00 3000.00 120.00 0 2 2.7777777777777777
  67000.00 1000.00 120.00 0 2 2.7777777777777777
  69000.00 2000.00 120.00 0 2 2.7777777777777777
  71000.00 2000.00 120.00 0 2 2.7777777777777777
  73000.00 2000.00 120.00 0 2 2.7777777777777777
  75000.00 500.00 120.00
 

I get:

Crotone_Harbor 1 73000.00 2000.00

 

So, I add one line:

[Crotone_Bay to Crotone_Harbor]
  73000.00 4000.00 120.00 0 2 2.7777777777777777
  71000.00 4000.00 120.00 0 2 2.7777777777777777
  69000.00 4000.00 120.00 0 2 2.7777777777777777
  67000.00 3000.00 120.00 0 2 2.7777777777777777
  67000.00 1000.00 120.00 0 2 2.7777777777777777
  69000.00 2000.00 120.00 0 2 2.7777777777777777
  71000.00 2000.00 120.00 0 2 2.7777777777777777
  73000.00 2000.00 120.00 0 2 2.7777777777777777
  75000.00 500.00 120.00 0 2 2.7777777777777777
  75000.00 100.00 120.00
 

and get:

Crotone_Harbor 1 75000.00 500.00

 

The X/Y coordinates don't come from the last line but from the second to last line... :(

 

A mistake in a loop, may be. ;)

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...