| View previous topic :: View next topic |
| Author |
Message |
fleetp

Helmsman 
Posts: 4600 

 
26028 Gold -

|
Posted: Fri Oct 02, 2020 9:13 pm Post subject: |
|
|
| Pirate wrote: | | Could the land be moved around until you have like a fictional map? |
It's possible, since jlangsdo did it in the Barbados shift mod. I suspect the landscape.ini file and piratemap.dta files are the key pieces. New caribbeanmap2.bmp, caribbeanmap4.bmp and caribbeanmap6.bmp would need to be made.
I made a very quick comparison of the base game landscape.ini file and the on jlangsdo used in the Barbados shift mod. The "barbados"
Themodelcitizen moved Bermuda in the four corners map. Maybe he'll share how he did it. |
|
| Back to top |
|
 |
themodelcitizen

Gunner 
Posts: 903 

 
15615 Gold -

|
Posted: Fri Oct 02, 2020 9:54 pm Post subject: |
|
|
You should be able to move some islands around.
I just used a website that compares changes between blocks of text, and compared the original landscape.ini with the one from jlangsdo's Barbados shift.
I was surprised to see he only changed a tiny section, just the x and y coordinates for the "Barbados" entry in landscape.ini (I think it's under Terrain44).
Bermuda's in there too, I just shifted the degrees so it was back on the playable area.
You can see from the files the Barbados entry is calling up (barbados_H.bmp etc) that the island is prebuilt and can just be shifted around.
That moves the physical landscape, not the city itself obviously. There are other named islands in landscape.ini, and others that are just something like Antilles10, you'd have to figure out what that is.
Not sure what a lot of changes or overlapping islands would do, likely crash the game (although the map is surprisingly resilient) |
|
| Back to top |
|
 |
fleetp

Helmsman 
Posts: 4600 

 
26028 Gold -

|
Posted: Sat Oct 03, 2020 1:58 am Post subject: |
|
|
Here is the Barbados portion of the landscape.ini from the base game
[Terrain44]
Heightmap = Barbados_H.bmp
Terrainmap = Barbados_T.bmp
Normalmap = Barbados_N.tga
Blendmap = Barbados_B.tga
Shadowmap = Barbados_L.bmp
Canopymap = Barbados_C.bmp
Surfmodel = Barbados_S.nif
Surflines = Barbados_S.dat
Shoalsmodel = Barbados_Shoals.nif
Treemodel = Barbados_Trees.nif
Causticmodel = Barbados_Caustics.nif
CellWidth = 64
CellHeight = 64
XYScale = 0.193697
ZScale = 1.984805
XPos = 1762.259155
YPos = 309.322571
ZPos = -324.497467
TextureOffX = 0.0
TextureOffY = 0.0
FadeStart = 120
FadeEnd = 100
TextureScale = 2.0
LBTextureScale = 8.0
LPTextureScale = 16.0
Last edited by fleetp on Sat Oct 03, 2020 2:06 am; edited 3 times in total |
|
| Back to top |
|
 |
fleetp

Helmsman 
Posts: 4600 

 
26028 Gold -

|
Posted: Sat Oct 03, 2020 2:01 am Post subject: |
|
|
This is the Barbados portion of the landscape.ini file from the Barbados shift mod.
[Terrain44]
Heightmap = Barbados_H.bmp
Terrainmap = Barbados_T.bmp
Normalmap = Barbados_N.tga
Blendmap = Barbados_B.tga
Shadowmap = Barbados_L.bmp
Canopymap = Barbados_C.bmp
Surfmodel = Barbados_S.nif
Surflines = Barbados_S.dat
Shoalsmodel = Barbados_Shoals.nif
Treemodel = Barbados_Trees.nif
Causticmodel = Barbados_Caustics.nif
CellWidth = 64
CellHeight = 64
XYScale = 0.193697
ZScale = 1.984805
XPos = 1732.259155
YPos = 309.322571
ZPos = -324.497467
TextureOffX = 0.0
TextureOffY = 0.0
FadeStart = 120
FadeEnd = 100
TextureScale = 2.0
LBTextureScale = 8.0
LPTextureScale = 16.0[/u] |
|
| Back to top |
|
 |
themodelcitizen

Gunner 
Posts: 903 

 
15615 Gold -

|
Posted: Sat Oct 03, 2020 2:26 am Post subject: |
|
|
Yeah exactly, it's shockingly simple what he actually did (paired with moving the city in cityloc). if you like, try and move around some of the other "terrains" that appear to correspond to specific islands |
|
| Back to top |
|
 |
fleetp

Helmsman 
Posts: 4600 

 
26028 Gold -

|
Posted: Sat Oct 03, 2020 3:39 am Post subject: |
|
|
Where does the different piratemap.dta file (in the Barbados shift mod) come into play? |
|
| Back to top |
|
 |
themodelcitizen

Gunner 
Posts: 903 

 
15615 Gold -

|
Posted: Sat Oct 03, 2020 3:55 am Post subject: |
|
|
You know I'm not actually sure. Looking at it in a hex editor it looks like it might correspond to placement of things (maybe a pirate's buried treasure? wasn't that part of the reason jlangsdo fixed it originally so you could finally land there?)
in any event I didn't touch it, but could still land and disembark on Bermuda with only the landscape.ini changes |
|
| Back to top |
|
 |
fleetp

Helmsman 
Posts: 4600 

 
26028 Gold -

|
Posted: Sat Oct 03, 2020 5:23 pm Post subject: |
|
|
I installed the Barbados shift mod (excluding the piratemap.dta file). I started a new game. Barbados was in the 'new' location,and I was able to both sail into the harbor and land on the island and march into town.
Last edited by fleetp on Sat Oct 03, 2020 5:55 pm; edited 1 time in total |
|
| Back to top |
|
 |
themodelcitizen

Gunner 
Posts: 903 

 
15615 Gold -

|
Posted: Sat Oct 03, 2020 5:32 pm Post subject: |
|
|
I'm guessing it has something to do with the maps to buried treasure, maybe in the unlikely chance that treasure ended up on barbados, that file shifts it to the new one
In which case Bermuda should be fine as it was off the playable area
edit:
someone unravelled it and its a cutout of the Caribbean, could be consistent with it being used for the game to produce something like landmarks/treasure
http://www.hookedonpirates.com/forums/viewtopic.php?p=72717#72717
or it could be a sort of default map, particularly with respect to the mainland, and then any changes in landscape are done on top of that. Could be helpful along with piratemap8 for building a new map |
|
| Back to top |
|
 |
fleetp

Helmsman 
Posts: 4600 

 
26028 Gold -

|
Posted: Sat Oct 03, 2020 5:58 pm Post subject: |
|
|
Using the Barbados shift (minus the piratemap.dta file) I was able to make a land attack on the city of Barbados. |
|
| Back to top |
|
 |
themodelcitizen

Gunner 
Posts: 903 

 
15615 Gold -

|
Posted: Sat Oct 03, 2020 6:05 pm Post subject: |
|
|
well yeah Bermuda works right, same logic applies. It will be something bigger, like the mainland. Wonder if we can unravel the east indies one |
|
| Back to top |
|
 |
themodelcitizen

Gunner 
Posts: 903 

 
15615 Gold -

|
Posted: Sat Oct 03, 2020 10:13 pm Post subject: |
|
|
from here, explains a lot about how he made the East Indies mod:
http://www.hookedonpirates.com/forums/viewtopic.php?p=89504#89504
| Quote: | The world in SMP is built up of 58 island groups placed on a deep ocean background. Each island group is scaled and placed on the map in landscape.ini. In the Caribbean, the continental coastline is broken into several island groups, with very smooth seams. [When I was figuring this out, one edit was to adjust the X coordinate of Coastal1 in landscape.ini slightly - this shifted Florida to the east and created a channel I could sail up into the continental US.]
For the East Indies map, I started by downloading a topographical map from NOAA here: http://www.ngdc.noaa.gov/mgg/gdas/gd_designagrid.html
After tweaking the scaling and offset exactly the way I wanted it, I wrote a script to cut the map into a grid of 28 blocks and write out island group files representing the topology in each spot of the grid. I took the largest of the Caribbean island groups, Coastal1, as the base. This way I didn't have to actually look at the map to distinguish the real island groups... but it means that the seams are much more visible. Also, I've never figured out exactly how the different scales for different island groups works.
Since this method derives everything about the land from the one topographical map, it's not as fancy as the Caribbean. The trees and shading are much more regular and boring.
In the East Indies, land and sea depths are scaled differently, but they are both based on the real topography of the East Indies as downloaded from NOAA. I tried to set a balance between "too hilly to be playable" and "so flat it's boring" in the Z scaling without faking it. |
|
|
| Back to top |
|
 |
fleetp

Helmsman 
Posts: 4600 

 
26028 Gold -

|
Posted: Sat Oct 03, 2020 10:28 pm Post subject: |
|
|
We've gone off topic.
I'll upload my full Paramaribo City/ Fort Saint Louis City mod to the 'Reserved for Game Mods' section and then lock this topic.
We can create a new topic here in the Customization and Modding to continue discussing the game files and what they do.
Very respectfully,
fleetp |
|
| Back to top |
|
 |
|