[BNW] Just Raze It / Raze Own Cities mod

To raze or not to raze

  • Raze

    Votes: 2 100.0%
  • Oh no don't!

    Votes: 0 0.0%
  • It depends on the target and the views of the would-be razer

    Votes: 0 0.0%
  • Only if the Mainstream Media, Alphabet Soups, and Big Corporate types condone it

    Votes: 1 50.0%

  • Total voters
    2

DukeCivStarcon

Chieftain
Joined
Nov 21, 2003
Messages
13
Location
USA
Update: Apparently the behavior controlling this is hard-coded in the following library: CvGameCore_Expansion2.dll ... although the task appears to be set correctly following the variable it seems that only 'Occupied' cities can be razed. Ironically these cannot contain (be founded by) one's own civilization. awkward

This is now a request for assistance to locate the relevant hexes [in CvGameCore_Expansion2.dll] to edit to adjust this behavior. For now this only places the button itself at the player's disposal and does not carry out the requested task.

Original post follows:

Yeah. Muuhhahahahhh Muuuhahahaha

Just raze it. Mine? Capital? Don't care. Just RAZE IT

For those who just want to watch the world burn (or have the option to should we so choose,)

The most basic mod from the most base kind of modder (muhuhahaha?) yep here it is, buckle in:

NAVIGATE TO %SteamLibraryFolder%\\steamapps\common\Sid Meier's Civilization V\Assets\DLC\Expansion2\UI\InGame\CityView

OPEN THIS SON OF A BEESTING: CityView.lua

Find this
Code:
-------------------------------------------
        -- Raze City Button (Occupied Cities only)
        -------------------------------------------
  
        if (not pCity:IsOccupied() or pCity:IsRazing()) then  
            g_bRazeButtonDisabled = true;
            Controls.RazeCityButton:SetHide(true);

Change both to FALSE


Code:
-------------------------------------------
        -- Raze City Button (Occupied Cities only)
        -------------------------------------------
  
        if (not pCity:IsOccupied() or pCity:IsRazing()) then  
            g_bRazeButtonDisabled = false;
            Controls.RazeCityButton:SetHide(false);

Like that.

Boom.

Note: I take no responsibility for the outcome of following these sweet, sweet short set of instructions. Also do not raze cities IRL. Depending on one's affiliations, it may get you into trouble (or be seen as an act of heroic protest-again, do not do per this post :) )

PS Does anyone know if and if so how the AI is design to react to razing City-States (for example,) or own-city-razing per se (as opposed to, y'know, in general?) Kinda curious if 'Capital Razing' gives more disapproval since the mechanic is disallowed generally.

Alright. You're off to douse and light the cities, the wonderful cities of non (as in, they not there anymore woo)
 
Last edited:
daenerys-targaryen.gif


PLEASE HELP US TO COMPLETE OUR QUEST
 
(Most of) this feature is already in DLL-VMC, CP and any dll mods based on them, see the PlayerCanRaze game event. You can raze capitals and holy cities, but still not your own.

The C++ code changes to permit razing of your own cities is trivial - just move the call to the game event in CvPlayer::canRaze() above the lblock that checks for the city being the player's own
 
Top Bottom