Official GHost++ Home - Codelain.com
May 21, 2013, 05:39:08 AM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: [Beginner] [How To] Add Maps to GHost++ in Windows  (Read 40884 times)
0 Members and 1 Guest are viewing this topic.
Instinct121
Chief Executive Officer
Distinct Contributor
*
Offline Offline

Posts: 8854


Now on HoN


View Profile WWW
« on: February 16, 2009, 10:01:45 PM »


Note  From the readme.txt (for anyone reading this)

=====================================
Using the "map" Command
=====================================


Since Version 13.2 GHost++ supports loading Warcraft III maps without corresponding map config files.
These maps will always be loaded with default options, more specifically:

1.) The map speed will be fast.
2.) The map visibility will be default.
3.) The map observers will be none.
4.) The map flags will be teams together + fixed teams.
5.) The map game type will be custom.

This means you cannot use the command to load non-custom (e.g. blizzard or melee) maps at this time.
You will need to create config files for any maps that you want to change these settings for and use the load and map commands to load them.






I made a video tutorial, it will explain how you can add maps to ghost using the map config file method.

Download here: How to Add Maps to Ghost
Mirror 1: How to Add Maps to Ghost
The zip file contains an .exe file, it is a self contained flash video file, and is not a program.
Quote from: Instinct121
I accidentally said in the tutorial: "Warcraft III loads the maps by using map config files" but I actually meant to say that Ghost loads the maps by using map config files.


The config file I use as a template is here:
Quote
map_path = Maps\Download\Tropical_Towerwars_v5.46b.w3x
map_localpath = Tropical_Towerwars_v5.46b.w3x


If the map is a dota map then add:
Quote
map_type = dota





(some maps Ghost cannot detect values correctly for, in which case this method does not work.  This works for many maps anyways)

« Last Edit: November 24, 2009, 01:43:32 PM by Instinct121 » Logged

Official GHost++ Home - Codelain.com
« on: February 16, 2009, 10:01:45 PM »

 Logged
Instinct121
Chief Executive Officer
Distinct Contributor
*
Offline Offline

Posts: 8854


Now on HoN


View Profile WWW
« Reply #1 on: February 16, 2009, 10:48:49 PM »

    Note  There are some maps that the above method will not work for

    I highly recommend reading the FAQ before going through the steps below, if the FAQ is of no help, then go through steps below

    These special maps have been made in such a way that GHost does not read them correctly.  The maps may cause one or more of the following:
    (from most likely to lease likely)
    1. The map is a custom melee style map, where you can normally choose a race, but with GHost you can't. 
    - To fix this, set
    Quote
    map_gametype = 2


    2. The map is an official blizzard map, but it's not hosting it like one.
    - Set
    Quote
    map_gametype = 9


    3. The game instantly ends when you attempt to start it.  (The slots may be misconfigured)
    - GHost reads the map to determine how many players are in the map, what race they are, and if they are human slots, or computer slots.
    - There are two ways of determining whether or not the slots are misconfigured.  The main symptom is that when the game is started, it instantly ends, and the player is kicked back to the lobby.
    - The second way of determining whether or not the slots are misconfigured, is to compare the way the lobby looks when GHost hosts the game, as compared to when Warcraft III hosts the game.  The colors, computer slots, and player slots should be in the same order, arrangement, and race(s) when compared for the map to work properly.  You can change the slots information manually by following steps in the next section.

    4. GHost says "the currently loaded map config file is incorrect", or you get any other errors when trying to host.  (The map data may be misread)
    - GHost reads the map to determine the map_crc, map_size, map_info, map_sha1 which are needed to be able to use the map.  Some maps (quite rare) cause GHost to misread or be completely unable to read that information.  This error can be duplicated when GHost cannot find the map, ensure that the map paths are correct and that GHost can actually find the map file before it generates the error

    To resolve Slots Misconfiguration:
    I've already stated that you have to manually set the slot values.  To do so, it's best to start with a 'clean slate', so to speak.  Follow the steps below and your map slots should now be configured correctly.
    • Open the map config file and delete slot information
    • Open the map with Warcraft III and note the colors, races, teams, and player slots.  Screenshot them if you want.
    • Host the map using the config file without the slot information in the config and see if the slots are identical.  If so, try hosting, you may be done already.  If not, note which items are different, since you'll want to concentrate on those ones.
    • If you don't have an automated way of setting the slot values as per the way GHost sees them, you'll have to create them based on this guideline by CorruptionOfLOL.  In it he explains how to do it specifically for Go Fish!, but you can use this tutorial for any map config file.
      Quote
      # slot structure
      #  [PID] [Download Status] [Slot Status] [Computer] [Team] [Colour] [Race] [Skill] [Handicap]
      #  - PID is always 0
      #  - Download Status is always 255
      #  - Slot Status is 0 for open, 1 for closed, 2 for occupied
      #  - Computer is 0 for no, 1 for yes
      #  - Team
      #  - Colour
      #  - Race is 1 for human, 2 for orc, 4 for night elf, 8 for undead, 32 for random (add 64 to any of these for fixed)
      #  - Skill is 0 for easy computer, 1 for normal computer or human, 2 for hard computer
      #  - Handicap is 50/60/70/80/90/100


      1. Host a game of Go FiSH! with Warcraft III (not GHost), and take a screenshot of the game lobby.

      2. In your Go FiSH!.cfg, type out the slot structure on a separate line for every slot that appears in your screenshot, like so:
      map_slot1 = 0 255 (Slot Status) (Computer) (Team) (Color) (Race) (Skill) (Handicap)
      map_slot2 = 0 255 (Slot Status) (Computer) (Team) (Color) (Race) (Skill) (Handicap)
      etc... Until you've typed out each slot. Obviously, numbers should go where those parentheses are. You can discern which number by referencing your screenshot and the instructions quoted in that post. The "Team" field's value is from 0-11: 0 is Team 1, 1 is Team 2, and so on, with 11 being Team 12. Likewise, the "Color" field is a number from 0-11: 0 being Red, 1 being Blue, 2 being Teal, and so on like that, with 11 being Brown.

      3. Load the edited .cfg file, and host it with Ghost. The lobby of the game you join should look indentical to the one from when you hosted manually.
       3a. If it doesn't, note the differences and re-check the slot structure of your Go FiSH!.cfg.
       3b. Continue doing this until you have the correct slots.

      4. Start the game and rejoice as you play a five-day Fishing Tournament


    To resolve Invalid Map Data:
    Make sure you're aware of the difference between GHost not being able to find the map, and GHost being unable to read the values from the map file after it finds it.  This is very important.

    1. Go into your map config file, and delete the values for map_crc, map_size, map_info, and map_sha1.  It should look like this:
    Quote
    map_crc =
    map_size =
    map_info =
    map_sha1 =

    To keep you from needing to waste time, try hosting the map and see if it works.  If it's still the same (of if you didn't have those entries before), then keep going.
    2.  You'll need to get the values for the map manually.  Luckily the process has been eased by the use of this program: http://www.codelain.com/forum/index.php?topic=8962.0
    You'll have to host/join a game with Warcraft III without GHost to get the values you'll want.[/list]
    « Last Edit: October 12, 2009, 02:33:54 AM by Instinct121 » Logged

    Pages: [1]
      Print  
     
    Jump to:  

    Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!