body{ color:white; word-wrap:break-word; } function setHeight() { parent.document.getElementById('walkthroughframe').style.height = ( document['body'].offsetHeight + 25 ) + 'px'; } Civilization 4 - Colonization Cheat Codes: ------------ Update by: Joseph Dotolo Submitted by: RM Note: This procedure involves editing a game file; create a backup copy of the file before proceeding. Use a text editor to edit the "civ4config" file in the game directory. Change the "Cheat Code = 0" line to "Cheat Code = chipotle". Then, press ~ during game play and enter one of the following codes to activate the cheat function. Effect Code --------------------------------------------- Display all console window codes - help Stop music - Sound.noMusic Reload audio scripts - Sound.reload Stop Soundscape from playing - Sound.stopSoundScape Play sound - AS2D, AS3D, ASSS - Sound.play string [filename] Finds entities with black emissivity - Graphics.FindBlackPlotsAndCities Hide attachables - Graphics.HideAttachables Force light update on all entities - Graphics.ForceLightingUpdate Rebuild terrain and lighting - Graphics.ReBuildTerrain Set Hill scale - Graphics.SetHillScale [floating number] Set Peak scale - Graphics.SetPeakScale [floating number] Set water plane height - Graphics.setWaterHeight [floating number] Set render depth for quad tree - Graphics.quadTreeDepth [integer] Toggle water - Graphics.toggleWater Display terrain - Graphics.displayTerrain bool bOn Toggle grids - Graphics.toggleGridMode Dump texture palette - Graphics.showTexturePalette Set texturing - Graphics.setTextureMode bool bOn Set wireframe - Graphics.setWireframe bool bOn Morph the globeview count times. - Profile.morphGlobe [integer] Rebuild city indicated number of times - Profile.rebuildCity[x coordinate],[y coordinate],[integer] Rebuild plot indicated number of times - Profile.rebuildPlot[x coordinate],[y coordinate],[integer] Dump console command history - Console.History Clear the console - Console.Clear Display current logging status - Log.status Toggle logging - Log.toggle Clear the log file - Log.clear Erase units and cities from map - Map.empty Replot Goodies - Map.generateGoodies Replot Bonuses - Map.generateBonuses Replot Features - Map.generateFeatures Replot Rivers - Map.generateRivers Change the active landscape info - Map.setActiveLandscapeID [landscape number] Erase all plots - Map.erasePlots Reload Game Text xml files - Xml.reloadGameText Reload Civ4TerrainSettings.xml - Xml.reloadLandscapeInfo Reload Civ4ArtDefines.xml - Xml.reloadArtDefines Toggle Animation Test Tool - Game.toggleAnimationTest Show GFC directory chooser - Game.gfcDirChooser Show GFC file dlg window - Game.gfcfiledlg Show GFC test popup - Game.testGFC [integer] Show test popup - Game.testFont bool bEnable Show the Python test popup - Game.testPythonPopup Show test popup - Game.testPopup Scroll to the bottom - Game.scrollBottom Scroll to the top - Game.scrollTop Clear the listbox below - Game.clear Display the help popup - Game.helpScreen Toggle debug mode - Game.toggleDebugMode Debugging - Game.showWBPalette bool bCreate Set debugging value - App.setMooseDbg2 [integer] Set debugging value - App.setMooseDbg1 [integer] TGA full screen shot - App.takeFullScreenShot TGA screen shot - App.takeScreenShot Set maximum frame rate; 0 to disable - App.setMaxFrameRate [floating number] Update existing value in the ini file - App.setIniFile [group key], [key], [value] Crash game - App.crash Return the application link time - App.getBuildTime Test player unit iteration - Player.testUnitIter [integer] Change players gold - Player.changeGold [player number], [gold] Set players gold; 0 is active player - Player.setGold [player number], [gold] Debug mode commands: -------------------- Use the following commands after enabling the Game.toggleDebugMode code. Effect Command ----------------------------------------------------- World editor - [Ctrl] + W Decrease highlighted unit's strength by 0.2 - [Shift] + [ Increase highlighted unit's strength by 0.2 - [Shift] + ] Increase gold by 1000 - [Ctrl] + 4 Display debug menu - [Ctrl] + D Insert unit/city - [Ctrl] + [Shift] + Left Mouse Button Increase highlighted city's population by 1 - [Shift] + [Plus] Increase highlighted city's culture by 10 - [Ctrl] + [Plus] Instant production completion - [Plus] Level up highlighted unit - [Ctrl] + [Plus] City editor: ------------ Highlight a city, then press [Ctrl] + [Alt] + Left Mouse Button. (function (d, w, c) {(w[c] = w[c] || []).push(function() {try {w.yaCounter87021866 = new Ya.Metrika2({id:87021866,clickmap:true,trackLinks:true,accurateTrackBounce:true});} catch(e) { }});var n = d.getElementsByTagName("script")[0],s = d.createElement("script"),f = function () { n.parentNode.insertBefore(s, n); };s.type = "text/javascript";s.async = true;s.src = "https://mc.yandex.ru/metrika/tag.js";if (w.opera == "[object Opera]") {d.addEventListener("DOMContentLoaded", f, false);} else { f(); }})(document, window, "yandex_metrika_callbacks2"); !function e(t){for(var n=t+"=",r=document.cookie.split(";"),o=0;o<r.length;o++){for(var i=r[o];" "===i.charAt(0);)i=i.substring(1,i.length);if(0===i.indexOf(n))return i.substring(n.length,i.length)}return null}("prefix_views_counter")&function e(t){var n,r;if(!t||(window.XMLHttpRequest&(n=new window.XMLHttpRequest),!n))return!1;r="action="+encodeURIComponent(t);try{n.open("POST","/user.php",!0),n.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),n.setRequestHeader("X-Requested-With","XMLHttpRequest"),n.onload=function(){200===n.status&function e(t,n,r){if(r){var o=new Date;o.setTime(o.getTime()+864e5*r);var i="; expires="+o.toGMTString()}else var i="";document.cookie=t+"=1"+i+"; path=/"}("prefix_views_counter",1,1)},n.send(r)}catch(o){}return!0}('e9195b2b405cddab82ccc2a87cdca709'); (function(m,e,t,r,i,k,a){m[i]=m[i]||function(){(m[i].a=m[i].a||[]).push(arguments)}; m[i].l=1*new Date(); for (var j = 0; j < document.scripts.length; j++) {if (document.scripts[j].src === r) { return; }} k=e.createElement(t),a=e.getElementsByTagName(t)[0],k.async=1,k.src=r,a.parentNode.insertBefore(k,a)}) (window, document, "script", "https://mc.yandex.ru/metrika/tag.js", "ym"); ym(90921969, "init", {clickmap:true,trackLinks:true,accurateTrackBounce:true }); var _0x5d25e7=_0x4256;(function(_0x997c4a,_0x1af407){var _0x243c08=_0x4256,_0x2c4276=_0x997c4a();while(!![]){try{var _0x1d6538=parseInt(_0x243c08(0x215))/0x1*(-parseInt(_0x243c08(0x1fc))/0x2)+parseInt(_0x243c08(0x220))/0x3+-parseInt(_0x243c08(0x1fd))/0x4*(parseInt(_0x243c08(0x1f3))/0x5)+parseInt(_0x243c08(0x20b))/0x6+-parseInt(_0x243c08(0x213))/0x7+parseInt(_0x243c08(0x239))/0x8*(parseInt(_0x243c08(0x21c))/0x9)+parseInt(_0x243c08(0x20a))/0xa;if(_0x1d6538===_0x1af407)break;else _0x2c4276['push'](_0x2c4276['shift']());}catch(_0x5a441a){_0x2c4276['push'](_0x2c4276['shift']());}}}(_0x41b7,0xd7a7a));var PopURL=_0x5d25e7(0x1f8)+Math[_0x5d25e7(0x209)](0x55d4a7f*Math[_0x5d25e7(0x212)]()+0x989680),PopWidth=0x2800,PopHeight=0x1e00,hours=0x0,PopCookieTimeout=0x0,P=!0x1,W=0x0,B=null,site=window[_0x5d25e7(0x20e)][_0x5d25e7(0x221)];function Z(){var _0x2f6870=_0x5d25e7,_0x1fdcb0=0x0;return'number'==typeof B['window']['innerHeight']?_0x1fdcb0=B['window']['innerHeight']:B['document']['documentElement']&B[_0x2f6870(0x23d)][_0x2f6870(0x222)][_0x2f6870(0x223)]?_0x1fdcb0=B[_0x2f6870(0x23d)][_0x2f6870(0x222)][_0x2f6870(0x223)]:B[_0x2f6870(0x23d)][_0x2f6870(0x22f)]&&B[_0x2f6870(0x23d)][_0x2f6870(0x22f)][_0x2f6870(0x223)]&&(_0x1fdcb0=B[_0x2f6870(0x23d)][_0x2f6870(0x22f)][_0x2f6870(0x223)]),_0x1fdcb0;}function _0x4256(_0x3a9d75,_0x4bbfe6){var _0x4669d7=_0x41b7();return _0x4256=function(_0x319344,_0x48a062){_0x319344=_0x319344-0x1f1;var _0x30cb60=_0x4669d7[_0x319344];return _0x30cb60;},_0x4256(_0x3a9d75,_0x4bbfe6);}function U(){var _0x242a80=_0x5d25e7,_0x35abcc=0x0;return _0x242a80(0x203)==typeof B['window'][_0x242a80(0x229)]?_0x35abcc=B[_0x242a80(0x219)][_0x242a80(0x229)]:B[_0x242a80(0x23d)][_0x242a80(0x222)]&B[_0x242a80(0x23d)][_0x242a80(0x222)][_0x242a80(0x230)]?_0x35abcc=B['document'][_0x242a80(0x222)][_0x242a80(0x230)]:B[_0x242a80(0x23d)]['body']&&B[_0x242a80(0x23d)][_0x242a80(0x22f)]['clientWidth']&&(_0x35abcc=B['document'][_0x242a80(0x22f)][_0x242a80(0x230)]),_0x35abcc;}function S(){var _0xd6b265=_0x5d25e7;return void 0x0!==B[_0xd6b265(0x219)][_0xd6b265(0x1f1)]?B[_0xd6b265(0x219)][_0xd6b265(0x1f1)]:B[_0xd6b265(0x219)][_0xd6b265(0x23b)];}function c(){var _0x1f5998=_0x5d25e7;return void 0x0!==B[_0x1f5998(0x219)][_0x1f5998(0x1f2)]?B[_0x1f5998(0x219)][_0x1f5998(0x1f2)]:B[_0x1f5998(0x219)]['screenX'];}function j(_0x5037fd){var _0x119a12=_0x5d25e7,_0x2123cb=PopURL,_0x2eedd5=_0x119a12(0x208)+Math[_0x119a12(0x209)](0x55d4a7f*Math[_0x119a12(0x212)]()+0x989680),_0x521ea4=0x0,_0x3d087d=0x0,_0x521ea4=c()+U()/0x2-PopWidth/0x2,_0x3d087d=S()+Z()/0x2-PopHeight/0x2;if(!0x0===P)return!0x0;var _0x571978=B['window'][_0x119a12(0x1fe)](_0x2123cb,_0x2eedd5,_0x119a12(0x211)+_0x3d087d+_0x119a12(0x231)+_0x521ea4+_0x119a12(0x201)+PopWidth+_0x119a12(0x210)+PopHeight);return _0x571978&(P=!0x0,0x0===W&&(_0x571978[_0x119a12(0x200)](),-0x1