Results 1 to 5 of 5

Thread: CfgLocationTypes error

  1. #1
    Retired Member
    Join Date
    Jun 7 2009
    Location
    Denmark
    Posts
    384

    CfgLocationTypes error

    Hi guys.

    I just added alot of keypoints on my map, and visitor saves them in mapname.hpp.
    But when loading the map, the keypoints isnt added.


    Then I copied all keypoints in the .hpp and inserted them into class names in the config.
    Now, the keypoints are there, but im getting this error:

    Code:
    No entry 'D:\BIS TOOLS 2\BinMake\Binarize\bin\config.cpp/CfgLocationTypes.'.
    What causes this?
    Do I need to empty the mapname.hpp so they are not in both the config and the hpp? <-- No difference
    Or do I need to tell my config somehow that it should get the keypoints in the hpp, and delete those I have added to config.cpp?

    OR/AND! Should I just copy-paste the locationtypes from the bistools config.cpp into my own config somewhere? <-- No difference

    Im lost!

    Thanks in advance
    Last edited by MugAben; Jan 31 2011 at 17:59.

  2. #2
    CWR² Developer Bushlurker's Avatar
    Join Date
    Aug 27 2004
    Location
    Under a bush, somewhere in Scotland...
    Posts
    1,808
    Hi Dampet...

    Do you have a section like this in your main config.cpp.....

    Code:
    		class Names
    		{
    			#include "mapname.hpp"
    		};

    B

  3. #3
    Retired Member
    Join Date
    Jun 7 2009
    Location
    Denmark
    Posts
    384
    Author of the Thread
    Hi.

    Yes, i have class names with a few cities and such. But not the #include part.
    But wont that do the same thing as just copy/pasting from mapname.hpp into config.cpp?

    Heres everything in my mapname.hpp (favslevx.hpp)

    Spoiler:
    Last edited by MugAben; Jan 31 2011 at 18:05.

  4. #4
    CWR² Developer Bushlurker's Avatar
    Join Date
    Aug 27 2004
    Location
    Under a bush, somewhere in Scotland...
    Posts
    1,808
    class NameVillage
    {
    name="";
    position[]={795.703,4483.65};
    type="";
    radiusA=250;
    radiusB=250;
    };
    class CityCenter2
    {
    name="";
    position[]={796.43,4478.45};
    type="";
    radiusA=250;
    radiusB=250;
    These first two don't have a specified "keypoint type"....

    First thing to check is your actual Visitor install main directory - BIS TOOLS\Visitor - or wherever you installed it.....

    Look to see if you have a file in that main Visitor directory called "KPTypes.dat"...
    There was a bit of discussion about this back in the early days, and I'm pretty sure Suma or one of the Devs explained it... basically - this file was missing from at least some early versions of Visitor 3... that may be fixed now - check your install... if you don't have one - you can download it from the Resources & Tutorials section of my crappy website... or copy this and paste it into notepad - save it as a file called "KPTypes.dat" - and drop it in your main Visitor 3 directory...

    Spoiler:


    Once you have that file in place, the different KP types should become available in Visitor in the popdown "types" menu when you place a keypoint...
    Keypoints don't necessarily need a visible name - unless thats the type of keypoint it is... but they all need a "type"...

    Usual procedure is to make the keypoint in Visitor - select the type in there too... these are exported to that "mapname.hpp" file, and - during binarizing - "included" in the main config.cpp with the "include" line posted above - CfgClutter.hpp should be a seperate file that gets included at binarization time in exactly the same way...


    B

  5. #5
    Retired Member
    Join Date
    Jun 7 2009
    Location
    Denmark
    Posts
    384
    Author of the Thread
    Once again you save my ass!

    It was those missing types that did it.. I cant believe we missed that!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •