Показаны различия между двумя версиями страницы.
— |
exploremapaddon [2007/12/26 11:37] (текущий) xeye создано |
||
---|---|---|---|
Строка 1: | Строка 1: | ||
+ | ====== Explore Map ====== | ||
+ | by Thomas Voigt | ||
+ | Another PDK spinoff! Current version: v2.2 | ||
+ | |||
+ | Explore Map will create individual xyplan.dat files for each specified player. Explore map will ' | ||
+ | |||
+ | ExplMap works with both HOST and PHOST. However, some features will only be available in PHOST games (alliance support, xtern commands). | ||
+ | |||
+ | Non-DOS versions can be built with the PDK: gcc -pedantic -Wall -O -I. -L. -o explmap explcfg.c explmap.c -lpdk -lm | ||
+ | |||
+ | The sources are distributed under the GNU general public license. Please see the file COPYING for more details. | ||
+ | |||
+ | NOTE: ExploreMap version >= 2.0 is ONLY for PHOST 3. Use version 1.0b for PHOST version 2.x or HOST games. There is no difference in functionality between Explore Map v1.0 and v2.0. | ||
+ | |||
+ | NOTE: If you use PHOST' | ||
+ | |||
+ | ===== PLAYERS ===== | ||
+ | |||
+ | |||
+ | Your host should send you a file, XYPLAN?? | ||
+ | |||
+ | You can share all planets you ever scanned with your allies. Just send a comman processor message (i.e. a message to yourself) containing "xtern SharePlanets " (e.g. "xtern SharePlanets 2 4 11" will share all your planets with players 2, 4 and 11). The process is not automatic for later turns, you just tell these players all planets you currently know. This information is not passed by alliances (i.e. if player 2 is allied with player 6 then only player 2 will get these planets, not player 6). Of course nothing prevents any player from passing these info with xtern commands. | ||
+ | |||
+ | If you have allow a vision alliance to a player then he'll get all planets you scanned (_not_ planets you own). If you allow a planetary alliance then he'll get all planets you own (_not_ the planets you scan). Clearly, if you allow both alliances then your ally gets all planets you know about. | ||
+ | |||
+ | That's it! (See " | ||
+ | |||
+ | ===== HOSTS ===== | ||
+ | |||
+ | |||
+ | NEVER use a known map. (For instance, if you use the standard map then players will just use it and know all planets. There' | ||
+ | |||
+ | Place Explmap.exe in your main vgap dir. | ||
+ | Place EXPLMAP.CFG in the host dir and edit it if you like. | ||
+ | |||
+ | |||
+ | ExploreMap >= v2.0 will ONLY work with PHOST versions 3.1 and later. | ||
+ | |||
+ | |||
+ | Call: | ||
+ | |||
+ | Run ExplMap after hosting. You must run Explmap after each hosting, and distribute the output files to the players with each new rst (as the maps will update due to exploration). | ||
+ | |||
+ | |||
+ | explmap [options] [data_dir] [root_dir] | ||
+ | |||
+ | |||
+ | where: | ||
+ | data_dir is the path of your host data ie; c: | ||
+ | |||
+ | root_dir is the path of your main vgap dir ie; c:\vgap | ||
+ | |||
+ | Valid options : | ||
+ | -h ExploreMap will print a help screen and exit. | ||
+ | -v ExploreMap will print the version info and exit. | ||
+ | -f ExploreMap will use the config file | ||
+ | |||
+ | |||
+ | Explmap will create XYPLAN?? | ||
+ | |||
+ | Once a planet is scanned, it is permanently saved to the player' | ||
+ | |||
+ | Explmap writes an XYPLAN?? | ||
+ | |||
+ | |||
+ | ===== CONFIGURING EXPLMAP ===== | ||
+ | |||
+ | |||
+ | Explmap uses the config file EXPLMAP.CFG to read its config. The following options are available : | ||
+ | |||
+ | - ScanRanges : the scan range for each race. The scan range is the maximum range how far the scanners of each race range. | ||
+ | |||
+ | - DetectRanges: | ||
+ | |||
+ | - DefenseBonusPercent: | ||
+ | |||
+ | - ShareAlliedPlanets: | ||
+ | |||
+ | - ShareScannedPlanets: | ||
+ | |||
+ | - UseRandomScanning : This option decides whether all planets within scan range are detected or not. If you set " | ||
+ | |||
+ | |||
+ | To determine the chances of scanning a planet, let's assume this : | ||
+ | |||
+ | |||
+ | Range = ScanRange *(100-DefenseBonus)/ | ||
+ | Vision = DetectRange*(100-DefenseBonus)/ | ||
+ | |||
+ | |||
+ | Chances for detecting a planet are | ||
+ | |||
+ | 100% if the distance is smaller than Vision | ||
+ | 0% if the distance is greater than Range | ||
+ | 100% * ((Range-Distance)/ | ||
+ | |||
+ | |||
+ | Example : | ||
+ | If a race has a scan range of 200 ly and a detect range of 100 ly, then the chances for detecting an unowned planet at 150ly distance are 25%. If the planet is 175 ly away then the chance is 6.25%. All planets within 100 lys will be detected, and no planets further than 200 ly will be detected. | ||
+ | |||
+ | However, if the planet is owned by a a race with 40% defense bonus then the range for always detecting the planet decreases to 60 ly. The maximum detection range is 120 ly, the chance for detecting a planet at 90 ly is 25%. | ||
+ | |||
+ | Each ship will scan for you, doing its own random roll, so if you scan with several ships then your chances to scan a planet increase. | ||
+ | |||
+ | ===== PROBLEMS ===== | ||
+ | |||
+ | |||
+ | |||
+ | --ExplMap should dump the unknown planets near 0,0 or 10000,10000 (some extreme position). Hosts should tell their players that they shouldn' | ||
+ | Attempts to colonize these planets might lead to yellow or red alerts with PHOST and CHECK. | ||
+ | |||
+ | - You should avoid using EXPLMAP with maps that have planets at very low coordinates (0-300). Otherwise planets that are not scanned and got moved to the outside might seem to be " | ||
+ | |||
+ | - EXPLMAP generates only a checksum over the X coordinates, | ||
+ | |||
+ | - There is a problem with Crystal Ball v2.35 or earlier. Crystal Ball copies the map into its own data files on the very first run. Therefore CBall won't show any planets that you scanned after running CBall for the first time. The only way to fix this is to delete planet.dbv in your CBall data directory. You'll lose the information about planets that you orbited earlier (and don't own now), but the minefield data and ship data remains intact. | ||
+ | I've heard that there are severe problems with more recent versions of Crystal Ball (v2.4 ?). So if it doesn' | ||
+ | |||
+ | |||
+ | ===== NOTES ===== | ||
+ | |||
+ | --The EXPLMAP.HST file is not (yet) transportable between platforms, as are the main PHOST 3 data files. You cannot port a game over from one platform to another with the same EXPLMAP.HST file. | ||
+ | |||
+ | --I tested ExplMap with WinPlan, Vplread, EchoView, Crystal Ball (see above) and Informer, all seemed to work. If your favorite util doesn' | ||
+ | |||
+ | --ExplMap' | ||
+ | |||
+ | --ExplMap was written by Thomas Voigt, and is freeware. You should use it with the understanding that NO WARRANTEE is given. If something nasty happens, so be it -- you're using ExplMap at your own risk! | ||
+ | < | ||
+ | |||
+ | Version | ||
+ | ======= | ||
+ | |||
+ | |||
+ | This is v2.2 | ||
+ | |||
+ | Bug history : | ||
+ | v0.4 (beta) : ExplMap wouldn' | ||
+ | v1.0a : ExplMap would crash if the detectrange was the same as the scanrange. | ||
+ | v1.0b : Latest version for PHOST v2.x and HOST games | ||
+ | v2.0 : Updated for PHOST 3 (by Andrew Sterian, changes in the | ||
+ | source marked with keyword ' | ||
+ | v2.1 : Fixed potential bug in writing map files (stack corruption) Now linked with PDK v3.2 for compatibility with PHOST 3.2.3.2 | ||
+ | v2.2 : ExploreMap should be wraparound-aware now (bungled by Heiko Schlenker) | ||
+ | |||
+ | |||
+ | Please report all bugs + problems to me. Have fun ! | ||
+ | |||
+ | Thomas (spock@berlin.snafu.de) |