User Tools

Site Tools


falcon4:mapflag

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
falcon4:mapflag [2007/07/07 07:19] – created mapflag initial page snakemanfalcon4:mapflag [2024/07/31 11:14] (current) – links added. snakeman
Line 2: Line 2:
  
 These tutorials in this page are **__OBSOLETE__**, do not use them as they do not work present day Falcon 4 installations! These tutorials in this page are **__OBSOLETE__**, do not use them as they do not work present day Falcon 4 installations!
 +
 +You should also reference [[falcon4:ui|User Interface]] page.
 +
  
 ====== Map / Flag Tutorial ====== ====== Map / Flag Tutorial ======
 +
 +[[https://www.pmctactical.org/forum/viewforum.php?f=47|Falcon 4.0 Forum]], [[:falcon4|Falcon 4 Home]], [[falcon4:campaign|Falcon 4 Campaign]], [[falcon4:cockpits|Falcon 4 Cockpits]], [[falcon4:database|Falcon 4 Database]], [[falcon4:file_formats|Falcon 4 File Formats]], [[falcon4:srtm|Falcon 4 SRTM Terrain]], [[falcon4:terrain|Falcon 4 Terrain]], [[falcon4:textures|Falcon 4 Textures]], [[falcon4:tools|Falcon 4 Tools]]
  
 **TE Map Image Creation** **TE Map Image Creation**
Line 9: Line 14:
 Create bmp file with terrainview - load only road, river and city TDF's. Convert this bmp file to a TARGA image using following guideline: 8bit uncompressed 2048x2048 - 256 color tga for large mission planner map. 8bit uncompressed 172x172 - 256 color tga format for small "menu" map. Do Vertical Flip for the images. Create bmp file with terrainview - load only road, river and city TDF's. Convert this bmp file to a TARGA image using following guideline: 8bit uncompressed 2048x2048 - 256 color tga for large mission planner map. 8bit uncompressed 172x172 - 256 color tga format for small "menu" map. Do Vertical Flip for the images.
  
-Use tga2res.pl perl script to convert the map to idx/rsc files ([[http://tactical.nekromantix.com/f4/docs/downloads/TerrainScripts.rar|download here]]).+Use tga2res.pl perl script to convert the map to idx/rsc files, download TerrainScripts.rar. PMCTODO download missing!?
  
 <code> <code>
Line 48: Line 53:
 </code> </code>
  
-Edit cp_sua.scf file and replace IA_MAP_TGA with SMALL_MAP_ID  +Edit cp_sua.scf file and replace IA_MAP_TGA with SMALL_MAP_ID\\ 
-Edit cs_map.scf file and replace IA_MAP_TGA with SMALL_MAP_ID  +Edit cs_map.scf file and replace IA_MAP_TGA with SMALL_MAP_ID\\ 
-Edit df_map.scf file and replace IA_MAP_TGA with SMALL_MAP_ID  +Edit df_map.scf file and replace IA_MAP_TGA with SMALL_MAP_ID\\ 
-Edit df_sua.scf file and replace IA_MAP_TGA with SMALL_MAP_ID  +Edit df_sua.scf file and replace IA_MAP_TGA with SMALL_MAP_ID\\ 
-Edit ia_map.scf file and replace IA_MAP_TGA with SMALL_MAP_ID  +Edit ia_map.scf file and replace IA_MAP_TGA with SMALL_MAP_ID\\ 
-Edit tac_psua.scf file and replace IA_MAP_TGA with SMALL_MAP_ID  +Edit tac_psua.scf file and replace IA_MAP_TGA with SMALL_MAP_ID\\ 
-Edit tac_sua.scf file and replace IA_MAP_TGA with SMALL_MAP_ID  +Edit tac_sua.scf file and replace IA_MAP_TGA with SMALL_MAP_ID\\ 
-Edit tac_team.scf file and replace IA_MAP_TGA with SMALL_MAP_ID +Edit tac_team.scf file and replace IA_MAP_TGA with SMALL_MAP_ID\\
 Edit transfer.scf file and replace IA_MAP_TGA with SMALL_MAP_ID Edit transfer.scf file and replace IA_MAP_TGA with SMALL_MAP_ID
  
Line 61: Line 66:
  
 <code> <code>
-art\resource\mainbg.irc  +art\resource\mainbg.irc 
-art\resource\main.irc  +art\resource\main.irc 
-art\resource\local.irc  +art\resource\local.irc 
-art\resource\imagerc.irc  +art\resource\imagerc.irc 
-art\resource\pilots.irc  +art\resource\pilots.irc 
-art\resource\patches.irc +art\resource\patches.irc
 art\resource\vietnam-small.irc art\resource\vietnam-small.irc
 </code> </code>
Line 83: Line 88:
  
 Done, your TE map images are finished. Done, your TE map images are finished.
 +
  
 ====== JSTARS Map Tutorial ====== ====== JSTARS Map Tutorial ======
Line 128: Line 134:
 "[SETUP] NID 0 JSTARS_MAP" "[SETUP] NID 0 JSTARS_MAP"
 </code> </code>
-with +with
 <code> <code>
 "[SETUP] NID 0 VIETNAMJSTARSMAP" "[SETUP] NID 0 VIETNAMJSTARSMAP"
Line 144: Line 150:
  
 Use the theater with these new edited files and you should see new map at your Campaign -> Intel -> JSTARS view. Use the theater with these new edited files and you should see new map at your Campaign -> Intel -> JSTARS view.
 +
  
 ====== How To Replace Country Flags ====== ====== How To Replace Country Flags ======
Line 151: Line 158:
 General information: General information:
  
-All graphics in Falcon4 are flipped upside down, as you may already know from the big campaign map. Thus don't forget to flip the flag graphics, too. +All graphics in Falcon4 are flipped upside down, as you may already know from the big campaign map. Thus don't forget to flip the flag graphics, too.
  
 Before you start, you have to know which korean country you want to exchange with a country from your theater. Before you start, you have to know which korean country you want to exchange with a country from your theater.
Line 184: Line 191:
   * SMALLFRY.tga (small TE flag version)   * SMALLFRY.tga (small TE flag version)
  
-You are totally free in namimg these files, but it makes sense to name them in a way that reminds you of what they are showing.+You are totally free in naming these files, but it makes sense to name them in a way that reminds you of what they are showing.
  
 Now we create the script file. Open Notepad text editor. Now we create the script file. Open Notepad text editor.
Line 217: Line 224:
 </code> </code>
  
-The name of the image script determines the name the perl script will give the .idx and .rsc files which will be used by Falcon4. Be sure to use the extension ".irc" for the image script file, or it WON'T work!+The name of the image script determines the name the Perl script will give the .idx and .rsc files which will be used by Falcon4. Be sure to use the extension ".irc" for the image script file, or it WON'T work!
  
-The perl script irc2res browses this image script until all [LOADIMAGE] commands are performed. So this command has to be at the beginning of each new line.+The Perl script irc2res browses this image script until all [LOADIMAGE] commands are performed. So this command has to be at the beginning of each new line.
  
 The second entry per line is the Falcon4 ID the picture shall get (SMALLALBANIA, OOB_ALBANIA, OOB_ALBANIA_DRK and so on...). The second entry per line is the Falcon4 ID the picture shall get (SMALLALBANIA, OOB_ALBANIA, OOB_ALBANIA_DRK and so on...).
  
-The third is the filename of the TGA graphic, the fourth and fifth value is always "0".+The third is the file name of the TGA graphic, the fourth and fifth value is always "0".
  
 Running the script: Running the script:
  
-I assume that you have a Windows or Unix/Linux perl installation available. Copy all files (the graphics, irc2res.pl and balkanflags.irc) to a temporary folder.+I assume that you have a Windows or Unix/Linux Perl installation available. Copy all files (the graphics, irc2res.pl and balkanflags.irc) to a temporary folder.
  
 Open a DOS-box, go to the temporary folder and start the script with: Open a DOS-box, go to the temporary folder and start the script with:
Line 237: Line 244:
 Now you have two new files in this folder, balkanflags.idx and balkanflags.rsc. Now you have two new files in this folder, balkanflags.idx and balkanflags.rsc.
  
-These need to be placed into "art/resource" during the installshield installation process.+These need to be placed into "art/resource" during the install shield installation process.
  
 Setting up F4 to use the new flags: Setting up F4 to use the new flags:
Line 267: Line 274:
 Now if you have to change a .scf file, don't double click, but right click and use "View file" from the popup menu. Now if you have to change a .scf file, don't double click, but right click and use "View file" from the popup menu.
  
-Edit and save the following files (save them twice - once to the original place and once to a backup place to put them in the installshield later).+Edit and save the following files (save them twice - once to the original place and once to a backup place to put them in the install shield later).
  
 <code> <code>
Line 273: Line 280:
 </code> </code>
  
-  * search for "BITMAP". There are two entries. +  * search for "BITMAP". There are two entries.
  
 The first contains OOB_FLAGS_NKOREA, the second OOB_FLAGS_SKOREA. Exchange these with the picture ID's of the two major opponents, in our example it would be OOB_FRY and OOB_ITALY (compare to the above image script). The first contains OOB_FLAGS_NKOREA, the second OOB_FLAGS_SKOREA. Exchange these with the picture ID's of the two major opponents, in our example it would be OOB_FRY and OOB_ITALY (compare to the above image script).
Line 288: Line 295:
   * search for "BUTTONIMAGE". You'll find a bunch of entries.   * search for "BUTTONIMAGE". You'll find a bunch of entries.
  
-These sets are ordered by teams, starting with the team 0 that is non-existant, so don't change this one (OOB_FLAGS_NONE). The second group contains OOB_FLAGS_USA, which is Team 1 in Korea:+These sets are ordered by teams, starting with the team 0 that is non-existent, so don't change this one (OOB_FLAGS_NONE). The second group contains OOB_FLAGS_USA, which is Team 1 in Korea:
  
 <code> <code>
Line 322: Line 329:
 </code> </code>
  
-  * scroll down until you find the first occurence of "OOB_FLAGS_USA":+  * scroll down until you find the first occurrence of "OOB_FLAGS_USA":
  
 <code> <code>
Line 382: Line 389:
 Now run F4 and enjoy your new flags :-). Now run F4 and enjoy your new flags :-).
  
-Manfred "Schumi" Nelles+Manfred "Schumi" Nelles\\
 F4 Terrain Team F4 Terrain Team
 +
  
 ====== Important Notice! ====== ====== Important Notice! ======
  
 These tutorials in this page are **__OBSOLETE__**, do not use them as they do not work present day Falcon 4 installations! These tutorials in this page are **__OBSOLETE__**, do not use them as they do not work present day Falcon 4 installations!
 +
falcon4/mapflag.1183792759.txt.gz · Last modified: 2007/07/10 09:52 (external edit)

Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 4.0 International
CC Attribution-Share Alike 4.0 International Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki

All PMC web site download services are temporarily suspended until web site yearly fees have been recovered, want to download addons/mods? Then Support PMC.

If you are grateful for all the work PMC has done in the past 25 years, use Support PMC page.