Special Aircraft Service

Please login or register.

Login with username, password and session length
Advanced search  
Pages: 1 2 [3]   Go Down

Author Topic: Map in MapBuilder and Game differ?  (Read 2565 times)

0 Members and 3 Guests are viewing this topic.

Seppel

  • Mapper
  • member
  • Online Online
  • Posts: 466
Re: Map in MapBuilder and Game differ?
« Reply #24 on: December 20, 2023, 04:54:34 PM »

I have to add, that I used an ... old (?) different map_c tool up to now.
I discovered the map_c tool by redwulf (?) only recently..
Logged
Kleinigkeiten machen die Vollkommenheit aus, aber Vollkommenheit ist keine Kleinigkeit.

Chrival

  • member
  • Offline Offline
  • Posts: 180
  • The wacky guy
Re: Map in MapBuilder and Game differ?
« Reply #25 on: December 21, 2023, 03:06:54 PM »

Here's the direct D/L link

https://www.mediafire.com/file/sch77x9nifyjebk/Mymap-c-preparation-v03.zip/file

It's designed for Gimp 2.10. Don't know if it works with 2.8.

Installation and all is detailled in the included readme.

Code: [Select]
README
This is a script-fu for gimp 2.10

It transforms the master map-c before conversion into the map-c that IL2 uses with the help of a table, the map_c.tga.table
It does not create the table. It just prepares the original image.
It should correct the artifacts visible while runing the sim such as:

- Periodic disappearing of narrow river
- Spurious and unwanted lines and squares in large shallow water area
- Periodic coast lines distorsions

INSTALLATION

Unzip wherever you want

Copy the 'Mymap-c-preparation-v03.scm' file into the script folder of the GIMP repertory.
Typical path should be :
C:\Users\<UserName>\AppData\Roaming\GIMP\2.10\scripts

Copy the 'Il2map_c.ggr' file into the gradient folder of the GIMP repertory
Typical path should be :
C:\Users\<UserName>\AppData\Roaming\GIMP\2.10\gradients

HOW TO USE IT

- Open your image in Gimp
        IMPORTANT : The size of the image MUST be a multiple of 32
All the layers must be merged in only one
The image may not necessary be in grayscale nor flatten. It does not matter, the script will
do the job
- In the tool bar you now have a new tab called 'IL2 MapBuild'
- Open it and run the script 'Mymap-c-preparation-v03'
- A box opens and you're prompted to adjust 3 parameters:
Upward : For some reason unknown to me Il2 offsets the map_c 200m toward the south (the bottom of the
                map). Thats the main reason (but not the only one) why the landscape never fit with water.
If you make a brand new map, I highly recommend to let 200 in this option.
If you work on an already existing map, already populated, set 0 instead to prevent some 3d objects
                standing in the water
Blur Length : If the result is not fully satisfying you may play with it. But better leave it as the
                            default value.
Resize interpolation : Same as above.
- Once the script has started it may take a few minutes to complete, depending on your hardware and on the image size.

- Export as a .tga file (make sure to uncheck RLE compression)

Then, convert it as usual with Map_c ToolBox.

If you use map_c tools instead, export the file as 'MWmap_c.tga' and run '2 dissect.bat' directly.
IMPORTANT NOTE : Do not use 'transform.bat' but dissect directly

LIMITATION

I use the Gimp 2.10 version. It should work with other version, but with no guarantee.

It works fine providing the rivers drawings are not too thin.
Especially if you intend to draw narrow canals, for example, canals may disappear.
However it's not 100% guarantee. Some artifacts still remain sometimes.


Chrival,
31/05/2021




Hope that will work for you.
Let me know.
Logged

genXgamer

  • member
  • Offline Offline
  • Posts: 1380
Re: Map in MapBuilder and Game differ?
« Reply #26 on: December 21, 2023, 04:33:16 PM »

Thanks Chrival

I remember you mentioning this script in the past.
I'm looking forward to trying it out.

Looking at your linked post I was very interested in reading about ShadeNoise, whereas I was concentrating perhaps wrongly on WaterNoise.
Logged
Go in quickly - Punch hard - Get out!

Chrival

  • member
  • Offline Offline
  • Posts: 180
  • The wacky guy
Re: Map in MapBuilder and Game differ?
« Reply #27 on: December 21, 2023, 04:58:58 PM »

Looking at your linked post I was very interested in reading about ShadeNoise, whereas I was concentrating perhaps wrongly on WaterNoise.

IIRC you seem to manage the 2 colors of water. I was very amazed by the result you posted around here.
And yes, while you want to change the color of a river, with the help of a rgb around 115-126 and a texture like slot 28 or 29 for example, the key is to eliminate the landnoise.
But the land is to look a bit weird. That's why I worked on 4096 tex. At such a resolution, noise is not needed anymore.

Edit: I forgot that I already published the 1st version 2 years ago.  :)
The current is a new version I made 1 month later. Don't remember exactly the difference.
Logged

Seppel

  • Mapper
  • member
  • Online Online
  • Posts: 466
Re: Map in MapBuilder and Game differ?
« Reply #28 on: January 03, 2024, 05:25:54 AM »

Hi Chrival,

sorry for the late response ... this real life thing ...

I tried your download, but couldn't get very far.
According to your readme I came until here:

Copy the 'Mymap-c-preparation-v03.scm' file into the script folder of the GIMP repertory.
Typical path should be :
C:\Users\<UserName>\AppData\Roaming\GIMP\2.10\scripts

Copy the 'Il2map_c.ggr' file into the gradient folder of the GIMP repertory
Typical path should be :
C:\Users\<UserName>\AppData\Roaming\GIMP\2.10\gradients

- Open your image in Gimp
   All the layers must be merged in only one
   The image may not necessary be in grayscale nor flatten. It does not matter, the script will
   do the job
- In the tool bar you now have a new tab called 'IL2 MapBuild'


Unfortunately I did not.



I use GIMP 2.8 - can this be the source of the problem?
To fill in your files I found this folders in my GIMP:


Logged
Kleinigkeiten machen die Vollkommenheit aus, aber Vollkommenheit ist keine Kleinigkeit.

Chrival

  • member
  • Offline Offline
  • Posts: 180
  • The wacky guy
Re: Map in MapBuilder and Game differ?
« Reply #29 on: January 03, 2024, 10:05:01 AM »

Hi Seppel.
I think you've put the files in the wrong place.
You are in C:\Programme ... instead of C:\Users\<UserName>\AppData\Roaming\GIMP\2.10\
Logged

Seppel

  • Mapper
  • member
  • Online Online
  • Posts: 466
Re: Map in MapBuilder and Game differ?
« Reply #30 on: January 03, 2024, 10:20:26 AM »

Oh! I see!
You're right!!

But there is no GIMP-folder in this path on my computer...  :(


Or should I just create these folders??
Logged
Kleinigkeiten machen die Vollkommenheit aus, aber Vollkommenheit ist keine Kleinigkeit.

Frankiek

  • SAS Team
  • member
  • Offline Offline
  • Posts: 3002
Re: Map in MapBuilder and Game differ?
« Reply #31 on: January 03, 2024, 10:37:49 AM »

I am on gimp 2.8 and also my build dont have any folder under AppData/Roaming
Logged

Chrival

  • member
  • Offline Offline
  • Posts: 180
  • The wacky guy
Re: Map in MapBuilder and Game differ?
« Reply #32 on: January 03, 2024, 02:19:39 PM »

You sure ?
Well I've just read the gimp 2.8 doc and it does have a user repertory where you can put all your personnal stuff, brushes, gradients, script etc.
Maybe the path has changed since 2.8 but it should be somewhere in your "User\Username" folder.
Logged

Chrival

  • member
  • Offline Offline
  • Posts: 180
  • The wacky guy
Re: Map in MapBuilder and Game differ?
« Reply #33 on: January 04, 2024, 01:00:16 AM »

I realized that I forgot to mention a very important requirement : The size of the image must be a multiple of 32.
Otherwise the result will be messed up.
Post #25 edited
Logged
Pages: 1 2 [3]   Go Up
 

Page created in 0.038 seconds with 24 queries.