1. We have added a Gift Upgrades feature that allows you to gift an account upgrade to another member, just in time for the holiday season. You can see the gift option when going to the Account Upgrades screen, or on any user profile screen.
    Dismiss Notice

Toggle Resource Layer ON by default - how to?

Discussion in 'Civ4 - SDK/Python' started by Cybah, May 24, 2015.

  1. Cybah

    Cybah Emperor

    Joined:
    Jun 22, 2007
    Messages:
    1,480
    Does anybody know? Doesnt matter if sdk/python/xml.

    I just want to see the resources on the map by default.
     
  2. Nightinggale

    Nightinggale Deity

    Joined:
    Feb 2, 2009
    Messages:
    4,556
    I have an untested idea, which might work.

    In CVGame.cpp, add the bold line.
    Code:
    void CvGame::setFinalInitialized(bool bNewValue)
    {
    	PROFILE_FUNC();
    
    	int iI;
    
    	if (isFinalInitialized() != bNewValue)
    	{
    		m_bFinalInitialized = bNewValue;
    
    		if (isFinalInitialized())
    		{
    			updatePlotGroups();
    			[B]gDLL->getEngineIFace()->toggleResourceLayer();[/B]
    If that doesn't work, then add that line somewhere else. It doesn't look like there is a way to read the current setting, which mean the only option appears to be toggling the setting at startup in a location, where the code is only called once.
     

Share This Page