User Tools

Site Tools


falcon4:tools:villageutil

Differences

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

Link to this comparison view

Next revision
Previous revision
falcon4:tools:villageutil [2009/04/16 09:49] – created falcon4:tools:villageutil moved page. snakemanfalcon4:tools:villageutil [2024/07/31 10:54] (current) – links added. snakeman
Line 1: Line 1:
-====== Village Util ======+====== Falcon 4 Village Util ======
  
-**Village Util** by Snake Man, PMC.+[[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]]
  
-This is automatic objective placer. This is now obsolete util as we have Dem2Terrain and [[falcon4:tools:tacedit|TCL scripts]] features which far succeed anything this util could do.+**Falcon 4 Village Util** by Snake Man, PMC. 
 + 
 +This is automatic objective placer for campaign files. Source code from [[https://github.com/SnakeManPMC/dos-village-util|Github dos-village-util]]. 
 + 
 +This is now obsolete util as we have Dem2Terrain and [[falcon4:tools:tacedit|TCL scripts]] features which far succeed anything this util could do.
  
  
Line 12: Line 16:
  
 ====== Disclaimer ====== ====== Disclaimer ======
-  + 
-This is piece of **** crappy program. This is completely free piece of software and can be distributed freely. It has no warranty whatsoever and we urge you to backup all your files before running it. PMC will not take any responsibility of this buggy software. Yes can you read? PMC takes no responsibility!+This is piece of [redacted] crappy program. This is completely free piece of software and can be distributed freely. It has no warranty whatsoever and we urge you to backup all your files before running it. PMC will not take any responsibility of this buggy software. Yes can you read? PMC takes no responsibility!
  
  
 ====== Config ====== ====== Config ======
- +
 The configuration file called village.cfg explanation in depth as follows... The configuration file called village.cfg explanation in depth as follows...
  
-Line 1. one number digit, usually 2. This does not need to be changed on normal conditions, however in my tests I've seen two different sort of TDF files which either need 2 or 3 characters stripper from the end of the line. So if you are running the cfg with number 2 and your objectives names end short like "Americ" for "America" then you should use number 3 in the first line of village.cfg +Line 1. one number digit, usually 2. This does not need to be changed on normal conditions, however in my tests I've seen two different sort of TDF files which either need 2 or 3 characters stripper from the end of the line. So if you are running the cfg with number 2 and your objectives names end short like "Americ" for "America" then you should use number 3 in the first line of village.cfg
  
-Line 2. X coordinate for csv creation. For default sized theaters its 1024 and for those larger 128 segment theaters is 2048. +Line 2. X coordinate for csv creation. For default sized theaters its 1024 and for those larger 128 segment theaters is 2048.
  
-Line 3. Y coordinate for csv creation. For default sized theaters its 1024 and for those larger 128 segment theaters is 2048. +Line 3. Y coordinate for csv creation. For default sized theaters its 1024 and for those larger 128 segment theaters is 2048.
  
 Line 4. Owner team number. The teams are as following:\\ Line 4. Owner team number. The teams are as following:\\
Line 35: Line 39:
 7 - Gorn 7 - Gorn
  
-Line 5. Control team number. Difference between owner and control is that owner is the original holder of objective and control is the team that currently holds (has captured possibly) the objective. In normal conditions line 4 and 5 should be the same. I personally use number 2, which is ROK. +Line 5. Control team number. Difference between owner and control is that owner is the original holder of objective and control is the team that currently holds (has captured possibly) the objective. In normal conditions line 4 and 5 should be the same. I personally use number 2, which is ROK.
  
-Line 6. yes/no to add NoName objectives. If you type "yes" here, then objectives that has no name will be added and called "NoName". If you use "no" then no objectives without names are skipped. In modern countries all even smallest villages have names usually, but lets say for example Afghanistan is one country which has huge amount of city or village entries in the e00 data where the TDF is created that does not have name included. +Line 6. yes/no to add NoName objectives. If you type "yes" here, then objectives that has no name will be added and called "NoName". If you use "no" then no objectives without names are skipped. In modern countries all even smallest villages have names usually, but lets say for example Afghanistan is one country which has huge amount of city or village entries in the e00 data where the TDF is created that does not have name included.
  
  
Line 49: Line 53:
 ====== Usage ====== ====== Usage ======
  
-Place village.exe, village.cfg and possible village.dat into any directory, copy/merge your airport and label TDF files into one big village.txt file in Linux using "cat *TDF village.txt" command, or in windows systems open ms-dos box and use command "copy airport.TDF + label.TDF village.txt". Then place this new village.txt into the same dir as village.exe, run village.exe either on win explorer or in ms-dos box. +Place village.exe, village.cfg and possible village.dat into any directory, copy/merge your airport and label TDF files into one big village.txt file in Linux using "cat *TDF village.txt" command, or in windows systems open ms-dos box and use command "copy airport.TDF + label.TDF village.txt". Then place this new village.txt into the same dir as village.exe, run village.exe either on win explorer or in ms-dos box.
  
-If everything went ok it says something like this: +If everything went ok it says something like this:
 <code> <code>
 Village Util v0.3 - TDF 2 CSV converter (c) PMC 2001,2002 Village Util v0.3 - TDF 2 CSV converter (c) PMC 2001,2002
 cfg file configs, ch_nuke: 2, xres: 2048, yres: 2048 cfg file configs, ch_nuke: 2, xres: 2048, yres: 2048
-First object number: 4 Added 2 factories. Added 30 objectives. 33 highest objectives num http://falcon4.nekromantix.com+First object number: 4 Added 2 factories. Added 30 objectives. 33 highest objectives num
 </code> </code>
 Notice that this is shown only in the ms-dos box screen, if you use windows explorer and double click village.exe it only flashes shortly as it runs and shuts down the task when its done. I'd suggest you run it in ms-dos box. You should get village1.csv file into your dir when everything went successfully. You can open this csv file with excel or in wordpad, most likely notepad will barf on the file size. Notice that this is shown only in the ms-dos box screen, if you use windows explorer and double click village.exe it only flashes shortly as it runs and shuts down the task when its done. I'd suggest you run it in ms-dos box. You should get village1.csv file into your dir when everything went successfully. You can open this csv file with excel or in wordpad, most likely notepad will barf on the file size.
Line 64: Line 68:
  
 //Village util is obsolete, use [[falcon4:tools:tacedit|TCL scripts]] now.// //Village util is obsolete, use [[falcon4:tools:tacedit|TCL scripts]] now.//
 +
falcon4/tools/villageutil.1239875381.txt.gz · Last modified: 2009/04/16 09:49 (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.