Jump to content

drzachary

Members
  • Posts

    2
  • Joined

  • Last visited

Posts posted by drzachary

  1. 27 minutes ago, zztong said:

     

    I wouldn't put the Tents into your KingGen config file. While they were built in the Prefab Editor like a POI, they're really intended to be placed as decorations in the biome.xml file. The same is true of my Hunter's Traps.

     

    Those tents are tiny pup-tents. As a decoration you'll come across them in the wilderness and sometimes in settlements. If you make them a POI, they'll chew up space that could have gone to more meaningful content. The biome.xml file in my modlet will take care of placing them for you even with a KingGen map. I think this is because decorations aren't part of world generation.

     

    Sweet!  Thanks for that detailed explanation.. I had no idea there was a difference!  I wonder how many decorations I have in my Prefabs... 😐

  2. Hey y'all!  I'm new to KingGen (and adding POIs in general), and had a question for ya.


    I've added a bunch of prefabs, used the KingGen 'create custom' list, and generated worlds with them.  I have 5-6 custom POIs that are never added to any world I create (tried default settings, resizing biomes, etc.)  All of these custom POIs do populate if I run KingGen in "POI mode."  

     

    I tested by trying a world with *only* those POIs in them (in various combinations), and I get an error:

     

    Traceback (most recent call last):
      File "crash_log.py", line 19, in handle_crash_log
      File "gui_generation.py", line 27, in generate
      File "ntime.py", line 11, in ntime
      File "world.py", line 1301, in run
      File "world.py", line 265, in generate
      File "world.py", line 542, in init_cities
      File "world.py", line 642, in gen_cities
      File "hub_factory.py", line 25, in gen_random_city
      File "hub_factory.py", line 59, in gen_random_hub
      File "city.py", line 46, in __init__
      File "city.py", line 61, in generate
      File "city.py", line 274, in populate_grid
      File "city.py", line 246, in try_place
    AttributeError: 'NoneType' object has no attribute 'rotate_to_face'

     

    I also noticed that the entries for them all have something in common in the custom POI list created by KingGen:

     

    Castle-Eltz,125,72,230,0,2,burnt_forest/snow/pine_forest/desert/wasteland,,none,,
    zztong_Tent_01,2,1,2,0,2,burnt_forest/snow/pine_forest/desert/wasteland,,none,,
    zztong_Tent_02,2,1,2,0,2,burnt_forest/snow/pine_forest/desert/wasteland,,none,,

     

    (and so on)

     

    They all have 'none' as their 'prob' field (if I'm reading the format correctly.)   So, if I am understanding it right, KingGen's custom POI tool is flagging these as "don't put these in any maps."  Indeed, when I remove that 'none' so it matches other entries, I get the above error again.

     

    So... how can I tell what is causing KingGen to reject these POIs (which I am able to place manually)?  I poked around the xml for each POI but didn't see anything they shared in common that was different from the working ones, at first glance!

     

    Any help is appreciated, but obviously this isn't a game-breaking thing :) I love KingGen and have made incredibly fun, varied maps with it, just curious as to why these particular ones are failing.

     

    EDIT: Flying around in a POI-mode map, I do get the sense that the failing ones are *mostly* very large POIs.

     

×
×
  • Create New...