[BNW] Adding a map size


May 16, 2021
I recently created a couple mods that changed the attributes of the "Huge" map size via the "Worlds" file in GameInfo. However, what I actually want is to create an entirely new map size. So I attempted to do so, but discovered that the on the Setup screen, when I went to choose map size, my new map size didn't show up. The display box for the map size isn't large enough to show anything beyond the default sizes . . . so I figured I would try to increase the size of the "Choose Map Size" box.

That led me to using Agent Ransack to look through the files for stuff related to the maps, and I found what I believed to be the pertinent files in Assets>UI>FrontEnd>GameSetup, in the two SelectMapSize files.

So I added the two files to my mod and activated them on the Actions and Content tabs.

I then changed this line in the xml file:

<Container Size="1024,700" Anchor="c,c" >


<Container Size="1400,700" Anchor="c,c" >

And this one in the lua file:

Controls.ScrollPanel:SetScrollValue( 0 );


Controls.ScrollPanel:SetScrollValue( 1 );

As so much of interaction with the game's files has been, this was just guesswork on my part.

Suffice to say that it didn't work. When I loaded up the game and started my mod, the "Choose Map Size" box was unchanged as far as I could tell.

So I'm really not sure where to go from here. Has anyone else attempted to add new map sizes? Does anyone know what settings I might need to change?
Top Bottom