PDA

View Full Version : Question about locations.cfg and harbors in SHIV


GlobalExplorer
08-17-08, 06:40 AM
To get an overview whats possible with the SHIV framework, I am currently doing some experiments with Operation Monsun (which should come with all files I need), I don't want to install SHIV just to get a single file.

What I want to do is read the harbors from SHIV installation. In SHIII this could be done from:

data\Terrain\locations.cfg

In OM I don't find it and I doubt it's worth installing SHIV for this file (?)

My question is: Which file contains ports / locations in SHIV and could someone maybe mail (mail@christian-wendt.org) me this file?

Thanks.

I also need to know the effective range of aircraft. Even an educated guess from experienced SHIV players would help me because I hardly ever play :)

Problem: My map generator can read airbases w/o problem but I need to know how far the airplanes operate, otherwise the information is not very good.

If you're interested in the progress you can download test data here (everything you need to view the map is included):

http://www.christian-wendt.org/SH4/SH420080820.7z

Carotio
08-17-08, 06:54 AM
SH4 handles locations of harbours and cities completely different from SH3, so you cannot just port SH4 locations to SH3, if you want to.
But anyway, the locations in SH4 is located in Campaigns_LOC.mis

Dutchie-one
08-17-08, 07:51 AM
SH4 handles locations of harbours and cities completely different from SH3, so you cannot just port SH4 locations to SH3, if you want to.
But anyway, the locations in SH4 is located in Campaigns_LOC.mis

So you can add Harbours and City`s in that File or you have to do that on a different way ?

Thanks, Dutchie-one

Carotio
08-17-08, 08:28 AM
SH4 handles locations of harbours and cities completely different from SH3, so you cannot just port SH4 locations to SH3, if you want to.
But anyway, the locations in SH4 is located in Campaigns_LOC.mis

So you can add Harbours and City`s in that File or you have to do that on a different way ?

Thanks, Dutchie-one

Well, yeah. You do it by opening Mission Editor, open that file and under Tools you choose the map location edit mode. Now you see all the ports and cities in the world. I'm sure you'll figure out how to add new locations. It's ten times easier to add new locations with ME than the old fashion way of SH3.
Of course, you can open the mis file in notepad, since the info is pure text. But the lines are different in SH4 vs. SH3, so direct copy one way or the other can't be done...

Dutchie-one
08-17-08, 10:37 AM
SH4 handles locations of harbours and cities completely different from SH3, so you cannot just port SH4 locations to SH3, if you want to.
But anyway, the locations in SH4 is located in Campaigns_LOC.mis

So you can add Harbours and City`s in that File or you have to do that on a different way ?

Thanks, Dutchie-one

Well, yeah. You do it by opening Mission Editor, open that file and under Tools you choose the map location edit mode. Now you see all the ports and cities in the world. I'm sure you'll figure out how to add new locations. It's ten times easier to add new locations with ME than the old fashion way of SH3.
Of course, you can open the mis file in notepad, since the info is pure text. But the lines are different in SH4 vs. SH3, so direct copy one way or the other can't be done...

Thanks for youre anser.

Dutchie-one :up:

GlobalExplorer
08-18-08, 01:22 PM
Carotio: thanks with your tip I was able to extract a lot of information from Campaign_LOC.mis as well as Campaign_NMS.mis

But I still don't know where I can find information about the faction / side that controls a location? Anybody knows which file defines this? Or do I have to derive this from other information in the campaign data?

For thoise who are interested, I have taken up work on map generation for SHIV, here is a small preview:

http://www.christian-wendt.org/SH4/sh4gen_1.jpg
file:///C:/Dokumente%20und%20Einstellungen/Standard/Desktop/sh4gen_1.jpg

DeepIron
08-18-08, 01:25 PM
Wicked! :up::cool:

Sailor Steve
08-18-08, 01:36 PM
Wicked! :up::cool:
:yep: :yep: :yep:

Orion2012
08-18-08, 01:38 PM
Thats great news!!

I just recently (2 days) found the Sh3gen and have been playing with it, but if I could have the same for IV that would be even better.

If you can find a way to edit the3 information into the patrol log that would be handy information, as it's always frustrated me I can't edit it myself, to add a little personal flavor.

Carotio
08-18-08, 02:21 PM
Carotio: thanks with your tip I was able to extract a lot of information from Campaign_LOC.mis as well as Campaign_NMS.mis

But I still don't know where I can find information about the faction / side that controls a location? Anybody knows which file defines this? Or do I have to derive this from other information in the campaign data?

For thoise who are interested, I have taken up work on map generation for SHIV,

For US: US_NavalBases.mis
For Axis: Axis_NavalBases.mis

Say again: what are you trying to do?
Map generation, don't know what you're trying to do, please explain! To satisfy my curiosity, of course... :lol:

peabody
08-18-08, 04:18 PM
Carotio: thanks with your tip I was able to extract a lot of information from Campaign_LOC.mis as well as Campaign_NMS.mis

But I still don't know where I can find information about the faction / side that controls a location? Anybody knows which file defines this? Or do I have to derive this from other information in the campaign data?

For thoise who are interested, I have taken up work on map generation for SHIV,
For US: US_NavalBases.mis
For Axis: Axis_NavalBases.mis


Just some additional info, if you select and then right click the Naval base and check properties, it will tell you the dates it is Allied or Axis, some of course change during the war.

Peabody

GlobalExplorer
08-18-08, 04:36 PM
Thats great news!!

I just recently (2 days) found the Sh3gen and have been playing with it, but if I could have the same for IV that would be even better.

Sh3Gen was a bit too complex, and I am aiming for something much simpler. Easier to use, too. Currently I'm thinking of a map generator like Sh3Gen Tracking Room that gives the player better directions than the game. It's even possible that I don't release the generator and will upload only the maps, ready for the viewer, that way it should be really easy for everyone to get everything running.

That is the plan :)


For US: US_NavalBases.mis
For Axis: Axis_NavalBases.mis


This helps somewhat, but it's still not 1:1 with Campaign_LOC, so it looks like I will have the problem of matching locations and bases again?

Say again: what are you trying to do?
Map generation, don't know what you're trying to do, please explain! To satisfy my curiosity, of course... :lol:

I am working on a tool that extracts information from SHIV data and generates maps. They can be used with a freeware viewer like the stuff I made for SHIII.

Orion2012
08-18-08, 04:42 PM
Thats great news!!

I just recently (2 days) found the Sh3gen and have been playing with it, but if I could have the same for IV that would be even better.
Sh3Gen was a bit too complex, and I am aiming for something much simpler. Easier to use, too. Currently I'm thinking of a map generator like Sh3Gen Tracking Room that gives the player better directions than the game. It's even possible that I don't release the generator and will upload only the maps, ready for the viewer, that way it should be really easy for everyone to get everything running.


I'll admit, it did take me a few tries to get everything up and running. Mainly me not reading directions....

Not sure if this is possible, but I do enjoy it being actually placed on the Map.

Also, would there be any way to show the japanese or allied aircover on the generated map, not even in the game but the one you open with tatakGIS??

GlobalExplorer
08-19-08, 07:01 AM
Also, would there be any way to show the japanese or allied aircover on the generated map, not even in the game but the one you open with tatakGIS??

Aircover is definitely in (Sh3Gen had it already). The only thing I don't know is the exact range of airplanes, anybody got information on that??

Currently I am working on ordnance, experimenting what can be done with polygonal buffers. Here is a preview, do you see an improvement over Sh3Gen?

http://www.christian-wendt.org/SH4/sh4gen_4.jpg

http://www.christian-wendt.org/SH4/sh4gen_2.jpg

http://www.christian-wendt.org/SH4/sh4gen_3.jpg

GlobalExplorer
08-19-08, 07:04 AM
Does anybody here have information about how to read SHIV weather? Not that I expect it can be done, but if I could incorporate weather forecast wouldn't that be cool?

I'd also appreciate any tips about what can be read from which part of SHIV data, especially the dynamic missions are an enigma to me.

Orion2012
08-20-08, 01:06 AM
Also, would there be any way to show the japanese or allied aircover on the generated map, not even in the game but the one you open with tatakGIS??
Aircover is definitely in (Sh3Gen had it already). The only thing I don't know is the exact range of airplanes, anybody got information on that??

Currently I am working on ordnance, experimenting what can be done with polygonal buffers. Here is a preview, do you see an improvement over Sh3Gen?

http://www.christian-wendt.org/SH4/sh4gen_4.jpg

http://www.christian-wendt.org/SH4/sh4gen_2.jpg

http://www.christian-wendt.org/SH4/sh4gen_3.jpg

Certainly like the new subnet effects, and I finally noticed the aircover in theSH3gen map, after it was pointed out.

As far as the weather files, you might try posting in one of the environmental mods forum, as I believe some have made changes to the weather.

GlobalExplorer
08-20-08, 03:03 AM
As far as the weather files, you might try posting in one of the environmental mods forum, as I believe some have made changes to the weather.

Environmental mods forum? I really like to know more about SHIV weather ..

I hope the new subnets / minefield areas are much better in giving away port defenses, without being too much of a cheat either.

Here a new screen, now with some coastal batteries and aa positions.

http://www.christian-wendt.org/SH4/sh4gen_5.jpg

http://www.christian-wendt.org/SH4/sh4gen_6.jpg

GlobalExplorer
08-20-08, 09:54 AM
Carotio: thanks with your tip I was able to extract a lot of information from Campaign_LOC.mis as well as Campaign_NMS.mis

But I still don't know where I can find information about the faction / side that controls a location? Anybody knows which file defines this? Or do I have to derive this from other information in the campaign data?

For US: US_NavalBases.mis
For Axis: Axis_NavalBases.mis

I worked with these two file and it's pretty dissapointing. Is this the only way to find out about which city / harbor is in which side? What I get to see is nothing but a lot of german naval bases in the Atlantic:

http://www.christian-wendt.org/SH4/sh4gen_bases.jpg

Now I wonder if this is only the case when I use OperationMonsun?

Reise
08-20-08, 09:56 AM
Bases in atlantic are milkcow you see

FIREWALL
08-20-08, 12:25 PM
Hi GE :sunny:

I think your mod is GREAT and I don't see a CHEAT.

It's enemy intelligence which if I recall is adjustable.


Is this for SH4 1.5 ?

Orion2012
08-20-08, 01:17 PM
Bases in atlantic are milkcow you see

Yep, those are milk cows for sure, but are only available for certain dates, maybe there is a way to just look at the file between certain dates, as I can see you knowing where they would be during your patrol, but not ANY at ALL times.

GlobalExplorer
08-20-08, 08:11 PM
Yes I must check the dates, then supply boats can be filtered.

And I just found that everything looks much more complete when I work with the vanilla data, it seems I screw up Op Monsun without properly installing it over the UBoat missions (still dont have the addon).

Here is a screen with SHIV PTO vanilla. Look how neat UBI has laid out the minefields.

http://www.christian-wendt.org/sh4/sh4gen_8.jpg

http://www.christian-wendt.org/sh4/sh4gen_10.jpg


Aircoverage is still a bit patchy, but I think I'm getting there.

http://www.christian-wendt.org/sh4/sh4gen_9.jpg

GlobalExplorer
08-20-08, 08:13 PM
Is this for SH4 1.5 ?

When finished, it should work with all versions, I think about retrofitting it for SHIII too.

GlobalExplorer
08-22-08, 08:18 AM
The question about "origin" of location still stands. so far no onw knew a way to find out which faction a location belongs to (Campaign_LOC.mis).

For those that follow my progress, the polygon buffer method gives much nicer results than in Sh3Gen. I have added asw patrol zones and coastal traffic:

http://www.christian-wendt.org/SH4/sh4gen_14.jpg

http://www.christian-wendt.org/SH4/sh4gen_13.jpg

Reise
08-22-08, 01:14 PM
Look very good :up:

GlobalExplorer
08-22-08, 02:24 PM
Maps come together nicely. Now with additional merchant and coastal traffic as well as asw patrol zones:

http://www.christian-wendt.org/SH4/sh4gen_15.jpg