MegaMek-v0.32.0

所属分类:OpenGL
开发工具:Visual C++
文件大小:10916KB
下载次数:19
上传日期:2008-06-03 19:00:53
上 传 者lidawei
说明:  三维地形显示代码,是以前的一个工程,现在拿来大家共享
(Three-dimensional terrain display code, is a former project, now used as U.S. share)

文件列表:
build.bat (351, 2006-10-05)
build.xml (10450, 2006-10-05)
data\boards\archipelago1.board (6186, 2006-10-05)
data\boards\archipelago2.board (6309, 2006-10-05)
data\boards\battleforce2.board (5172, 2006-10-05)
data\boards\battletech.board (4933, 2006-10-05)
data\boards\boxcanyon.board (4795, 2006-10-05)
data\boards\buildings\city_downtown.board (10289, 2006-10-05)
data\boards\buildings\city_residential.board (10261, 2006-10-05)
data\boards\buildings\city_skyscraper.board (10020, 2006-10-05)
data\boards\buildings\city_suburbs.board (8905, 2006-10-05)
data\boards\buildings\coast1.board (5992, 2006-10-05)
data\boards\buildings\dropport1.board (7959, 2006-10-05)
data\boards\buildings\dropport2.board (8716, 2006-10-05)
data\boards\buildings\militarybase1.board (6676, 2006-10-05)
data\boards\buildings\militarybase2.board (7210, 2006-10-05)
data\boards\buildings\seaport.board (9650, 2006-10-05)
data\boards\cityhillsresidential1.board (5743, 2006-10-05)
data\boards\cityhillsresidential2.board (6127, 2006-10-05)
data\boards\cityruins.board (5482, 2006-10-05)
data\boards\citystreet_grid_park1.board (5863, 2006-10-05)
data\boards\citystreet_grid_park2.board (6011, 2006-10-05)
data\boards\citytech.board (5429, 2006-10-05)
data\boards\coast2.board (5199, 2006-10-05)
data\boards\deepcanyon1.board (4783, 2006-10-05)
data\boards\deepcanyon2.board (4755, 2006-10-05)
data\boards\deserthills.board (4744, 2006-10-05)
data\boards\desertmountain1.board (4709, 2006-10-05)
data\boards\desertmountain2.board (4716, 2006-10-05)
data\boards\desertsinkhole1.board (4882, 2006-10-05)
data\boards\desertsinkhole2.board (4834, 2006-10-05)
data\boards\heavyforest1.board (6137, 2006-10-05)
data\boards\heavyforest2.board (6179, 2006-10-05)
data\boards\lakearea.board (5087, 2006-10-05)
data\boards\largelakes1.board (5815, 2006-10-05)
data\boards\largelakes2.board (5535, 2006-10-05)
data\boards\largemountain1.board (4864, 2006-10-05)
data\boards\largemountain2.board (4941, 2006-10-05)
data\boards\moonscape1.board (6140, 2006-10-05)
data\boards\moonscape2.board (6142, 2006-10-05)
... ...

INTRODUCTION ------------ MegaMek is a version of BattleTech that you can play with your friends over the internet. It is written in Java. All of the level 1 (3025) equipment and nearly all of the level 1 rules are functioning. In addition, many of the level 2 rules and equipment are finished, and even a few level 3 rules are available in the options. If you would like information about how to play the game, see the "PLAYING THE GAME" section, below. If you're having trouble getting MegaMek started, see the next section, "RUNNING MEGAMEK". RUNNING MEGAMEK --------------- Java programs run in their own enviroment, called a Virtual Machine or VM for short. These Java VMs are available on most systems from a variety of sources. Most modern systems have one installed by default. Windows users: To start MegaMek, run the MegaMek.bat file. If this fails to start MegaMek, see the "INSTALLING OR UPDATING YOUR JAVA RUNTIME" section, below. Other graphical OSes: Many other graphical OSes, such as MacOS and OSX, will allow you to double-click the .jar file to run it. If this does not work, try running MegaMek from the command line. Running MegaMek from the command line: To do this using Sun Java, or most other implementaions, navigate to the directory containing the .jar file and run: java -jar MegaMek.jar If none of the above options work for you, see the "INSTALLING OR UPDATING YOUR JAVA RUNTIME" section, below. If you have a VM, but it does not support .jar files, then use your favorite extraction program to decompress "MegaMek.jar", "collections.jar", "TinyXML.jar", and "Ostermiller.jar" into a new "classes" folder (create the "classes" folder in your main "megamek" folder). Once these steps have been done (you only need to do the above steps once), you will need to set the classpath to the classes folder and the current folder and run "MegaMek.class". For example, using Sun Java, run: java -cp .;classes megamek/MegaMek Note that in some cases, the semicolon may need to be escaped: java -cp .\;classes megamek/MegaMek INSTALLING OR UPDATING YOUR JAVA RUNTIME ---------------------------------------- If your system did not come with a Java VM, or you need to update your Java VM, here are some links. Sun Java (Linux, Solaris, Windows): http://java.sun.com/j2se/downloads.html Mac OSX 10.1 and above: Java updates are included in OS updates for 10.1 and above. There is no external way to update your Java VM. Earlier Mac OS versions: http://developer.apple.com/java/download.html GCJ/Gnu classpath (Linux): Of interest to experienced developers, there may be some compatibility problems. http://gcc.gnu.org/java/ Microsoft VM (Windows): Microsoft no longer makes their VM available for seperate download. This version of MegaMek uses features not supported by the Microsoft JVM. IBM VM: MegaMek seems to react badly to this VM - it is not recommended. CONNECTING ---------- MegaMek is a network game. One player hosts a game and the rest of the players connect. The connecting players can connect from anywhere with a TCP/IP connection to the host, including the same computer (see hotseat, below.) To host a game, press the "Host a New Game..." button in the main menu. Fill in your name and click "Okay". The password field allows you to specify a password for certain server commands. (Type /help in the chat line to get a list of server commands.) If you don't specify a password, anybody is allowed to reset the server or kick players, so be careful. Once the lobby screen comes up, other players can connect and the game can begin. The other players will need to know the IP address of the host computer. There are several ways to determine your IP address. If you are on Windows 9x/ME, you can use the Run command on the start menu and enter "winipcfg". On Windows 2000/NT/XP, you will need to open a command prompt and type "ipconfig". As a last resort, there are some web pages, such as www.whatismyip.com that will try to detect your IP address, but if your internet service uses a proxy or firewall, these pages cannot accurately detect it. To connect to a game, press the connect button on the main menu and fill in your player name and the host's IP address. To play in a hotseat fashion, you can run the host and any number of other players on the same computer. First, launch and host a game. Then, launch another copy of the game for each connecting player, and in the "Server Address" field of the connect dialog, type "localhost". Each player will need to switch to his/her copy of the game to play their turn. To start a dedicated server, use the -dedicated command line switch. A dedicated server just runs the server, in the console, without a "host" player in the game. People, including yourself, can join it like a game with a host. The dedicated server reads the password and port options from the MegaMek.cfg file, or uses the default (no password and port 2346.) If you want the dedicated server to load a saved game, supply the filename after the -dedicated switch, like this: "-dedicated savedgame.sav". To stop the server, you will need to tell the Java machine to halt execution, which is CTRL + C on most platforms. PLAYING THE GAME ---------------- Pre-game Lobby: Here you can chat, specify what mechs you wish to use, select map settings, declare starting positions, and change your player's color. When everybody has at least one mech, you may all hit "ready" to start the game. Most changes to the game parameters will cancel your ready status, so you should wait for everybody to finish choosing their mechs and positions. Note: If you wish to use custom mech designs, please see the section below entitled "CUSTOM UNITS". You can enter the map selector by pressing the "Edit/View" button under the map sizes. You can change the dimensions of the map boards (in hexes) or the dimensions of the whole map (in boards.) All maps are loaded off the server. All the map boards that MegaMek comes with are 16x17. Whenever you change either of these values, you will need to hit the "Update Size Settings" button to have the rest of the dialog reflect the new values. Below the map size inputs is a not-to-scale representation of how the boards are laid out relative to each other. The middle column lists the current maps and the rightmost column lists the available maps. To change a current map, select it in the middle column, select the map you want in the right column, and press the "<<" button between the two columns. You may also select a map by clicking on its number in the map layout grid. When you select a map, (other than [SURPRISE] or [RANDOM]) you have the choice or rotating it 180 degrees (North becomes South, East becomes West, and vice versa) by clicking on the "Rotate Board" checkbox; the fact that the map is rotated will be shown in the middle column. [SURPRISE] means that the Server will pick a random map and not tell you what it has picked until the game starts. [RANDOM] means that the Server will pick a map as soon as you hit "Okay". [GENERATED] means that the server will create random terrain for you to play on. You need to use the "generated map settings" button to select what kind of terrain you want. There is a set of settings with drop down list of choices. For most settings, you can pick "none", "low", "medium" or "high". Except for cities, where you pick a type of city instead. Theme - leave blank for the default theme, or enter a theme supported by your tileset. grass, lunar, mars, snow are supported by the standard tileset Elevation - how hilly you want the map Cliffs - chance of 2+ level elevation changes, if you have enough elevation already Woods - higher settings have more and larger tree patchs and more heavy woods Roughs - higher settings have more and larger rough patches Lakes - works the same as woods, but deep water instead of heavy woods Swamps/Pavement/Ice/Rubble/Fortified all work like roughs. Fortified hexes are described in the MaxTech rulebook. River - chance to have a river running across the map Road - chance to have a single road running across the map Craters - chance for craters, also the size and number. Good for a "moonscape" map City: HUB - roads wander out from the centre with plenty of twists and turns. A common pattern for older european cities. GRID - vertical and horizontal roads divide the city into rectangular blocks. A pattern common in newer cities, especially in north america and asia. METRO - a grid with roads forming a diagonal X from the centre as well. Water and swamp will affect the city plan, as the builders will have to make bridges to cross it or just give up and stop the road at the edge. Mountain tops (4+ height) are expensive to build on, so they will only build in the valleys. Other terrain will just be bulldozed in the name of progress, though you may find a few hexes left between buildings. There is also a "advanced" button, which lets you fine-tune the map to your liking. See the "advanced map settings" section near the end of this file Initiative Report: Each player's initiative rolls and the corresponding turn order will be shown here. Movement Phase: The buttons at the bottom of the screen let you change between different modes of movement, switch to another unit, or commit to your current path. You do not have to move the first selected unit first. Left-click on the map to specify a hex to move to. A path should appear on the board, showing your unit's path to the target hex. The numbers in the center represent how many movement points you will have to use to reach each hex. Cyan indicates walking, yellow running, and red jump movement. Dark grey sections of the path indicate where you have exceeded your movement capacity, or other illegal moves. You can drag the mouse to see movement options for several different hexes. Please note that you can change the colors used to display the movement points by editing MegaMek.cfg; you may specify a color in RGB notation (e.g. 255 255 255 for white) or with any of the following text values: black, blue, cyan, darkgray, gray, green, lightgray, magenta, orange, pink, red, white, or yellow. Units can also be moved by using "waypoints." By clicking each hex between the unit's current location and destination, you can delineate the exact path to be taken. Holding the Shift key while clicking on the map allows you to change the unit's facing without moving. Since you automatically change facing while moving, this is best done at the end of any movement. To move backwards, click the "Back Up" button before clicking a hex in the arc behind the unit. To jump, click the "Jump" button before the destination hex. Facing changes during jumps are free. Prone units can change facing without getting up at the normal cost. To get up, click the "Get Up" button, then the desired destination hex and/or facing. Facing changes performed immediately after getting up are free. To get up and back up, click "Get Up," then "Back Up," then the destination hex and/or facing. You cannot get up and jump in the same turn. Charging and death from above attacks are also declared during the movement phase. Click the "Charge" or "D.F.A." button and then click on the mech you wish to target. If the attack is valid, it will be sent to the server immediately (but resolve during the physical attack phase.) If the program is not using the path you want for your attack, you may plot a path near the target using the appropriate type of movement and then use the charge or dfa button to complete the attack. If a vehicle or Mek that has sufficient empty space starts a turn in the same hex as a friendly infantry unit, it can Load the unit as its first move of the turn. A vehicle or Mek that is already carrying an infantry unit can unload the unit as its last movement of the turn. If an Anti-Mek infantry platoon or Battle Armor squad has succeeded in mounting a Mek with a Swarm attack, the Mek can attempt to dislodge the squad during the movement phase in one of three ways: 1) jumping (requires a Pilot Skill Roll, with a +4 modifier), 2) walking into (and perhaps through) a Level 2 or deeper water hex, or 3) ending its turn in a hex that is on fire (this will not work against Battle Armor squads). Swarming infantry automatically die if they are dislodged into a Level 1 or deeper water hex. Infantry dislodged in the Movement Phase can not move or fire for the rest of the turn. Swarming units can not move off of their target Mek until they use the Stop Swarm action in the Weapons Fire Phase. VTOLs and VTOL BA use the "go up" and "go down" buttons to change elevation (flight level). Movement around structures (buildings/bridges) is a little more complicated, because of the different floors a unit can occupy. The "climb mode" button sets your current preference. "Go thru" means you prefer to go under bridges or through the walls of buildings, if there is a choice. "Climb up" means you prefer to climb on top of structures when possible. You can change mode multiple times during your movement, for example a stormcrow prime could use "climb up" to go over a heavy building to save MP, then change to "go thru" to pass a light building that won't support its weight. Infantry can move up and down inside buildings using the stairs. This is accomplished by using the "go up" and "go down" buttons. Also, infantry that jump into a building can use the "go up" and "go down" buttons to choose which floor to jump through the window of. Click the building hex you want to jump into first, and the game will pick the highest floor you can reach (or the roof). Then use the "go down" button to select a lower floor if you want to. The Esc key clears all current movement. Movement Report: If any units needed piloting skill rolls during their movement, a report showing the results of these rolls will be shown. Weapons Fire Phase: If you need to check the range and line of sight (LoS) between two hexes, there are two tools available for you to use; the LoS tool and the ruler tool. To use the LoS tool, hold CTRL and click on the two hexes you want to check. The ruler tool works like the LoS tool, but uses the ALT key instead of the CTRL key. The ruler tool can also be used by middle-clicking the two hexes with a three-button mouse. Both tools will pop up a window that tells you what terrain is intervening and whether one or both hexes has partial cover. The ruler tool also draws the line of sight on the board so that you can see which hexes LoS passes through. You can switch between 'Mech line of sight and non-'Mech line of sight in the "LoS Setting" panel, located under the "View" menu at the top of the screen. 'Mech line of sight and non-'Mech line of sight differ in that 'Mechs are assumed to be "looking" from one elevation level above that of the hex they are in, whereas infantry and vehicles only take up the elevation level of their hex. The buttons at the bottom of the screen allow you to fire your weapons, switch to another unit, or commit to your currently declared fire. Again, you do not need to declare fire for your first selected unit first. To target another unit, click on it on the board. Targetting information for your current weapon should appear in the mech display window. To fire your current weapon at the target, press the "Fire" button at the bottom of the screen. To switch to another weapon, click on its name at the top of the mech display window. Spread your fire among multiple targets by repeating these steps using unassigned weapons. When all desired weapons have been assigned to a target, press the "Done" button at the bottom of the screen. Note that fire is resolved in the order that it is declared, so if you feel that it is a good idea to fire weapons in a different order than they are listed, go ahead. Secondary facing changes (torso twists) are accomplished by holding Shift and clicking on the board. Your unit will attempt to change its secondary facing in the direction specified. If you assign a weapon to a target and then attempt a facing change, the weapons fire will be cancelled. You can not switch to another unit after declaring some weapons fire. To switch to another unit, first cancel all current fire by hitting the Esc key. When you hit the fire button for your last available weapon, all declared fire will be committed. An Anti-Mek trained infantry platoon or Battle Armor squad that is in the same hex as a Mek can conduct a Leg Attack or a Swarm Mek attack. The base to-hit number varies with the number of men in the unit. A Swarm Mek attack against a Mek that is prone and/or immoble gains a -4 modifier to its to-hit roll. A successful Leg Attack may cause critical damage to one of the Meks legs; if no critical is rolled, the leg will take 4 points of damage (which may damage the leg's internal structure, and cause another critical roll). A successfull Swarm Mek attack does no damage in the turn it hits, but it means that the unit has attached itself to the Mek, and can begin to cause significant damage on subsequent turns. Starting the turn after the unit starts a Swarming a Mek, all attacks by that unit automatically hit, use a location chart that is more dangerous than normaly, and automatically roll for a Thru-Armor Critical. A unit that is Swarming a Mek can also choose to Stop Swarming in any weapons phase. The Leg Attack, Swarm Mek, and Stop Swarm actions are all "solo" actions: the unit can take no other action in the Weapons Fire Phase. Attempts to do so will cancel the "solo" action. Swarming infantry can not be targeted by any attacks other than a "Brush Off" attack (see Physical Attacks Phase). Weapons Fire Report: If there were any weapon attacks, the server will resolve them all at the end of the phase in the order they were declared. The results will be shown in a report. Physical Attacks Phase: To declare a physical attack, select your target on the board and click the button corresponding to the attack you want to make. If a physical attack type is unavailable (or isn't programmed yet) the button will be greyed out. Units ineligible to make physical attacks due to being out of range, having made weapons attacks, or for any other reason, will be skipped. If all units are ineligible, the entire phase will be skipped. Prone Meks that are in the same hex as a vehicle can punch the vehicle, if they have both arms. Prone Meks that are in a Clear or Pavement hex as an infantry platoon or Battle Armor squad can "thrash" at the unit if they have at least one arm or leg. Be warned, that "thrashing" causes a Pilot Skill Roll that, if failed, causes the Mek to suffer damage as if it has fallen 1 level. Meks that are not prone that have been Swarmed by an infantry platoon or Battle Armor squad can attempt to "Brush Off" the squad with either or both arms. Any "Brush Off" attack that fails to hit the infantry will inflict punch damage on the Mek. Any successful "Brush Off" attack ends a Swarm Mek attack. End of Turn Report: If there were any physical attacks, the results will be shown. The results of the Heat and End phases will be shown. After this phase, it's time for initiative again! Hurrah! CUSTOM UNITS ------------ All units (mechs, vehicles, infantry, etc.) are located in the data/mechfiles directory. They may be individual files or zi ... ...

近期下载者

相关文件


收藏者