New
#1
How to create .bat file to change the text in an .ini file?
I have the original Zoo Tycoon. It has no built in widescreen support, but it's possible to get it by changing some information in its .ini file. I don't want to leave it at that though, as I also have a 4:3 monitor, and I switch between the two. I don't want to have to go into the ini file and change the lines each time I want to go back to widescreen. What would I need to type into the bat file (I want two of them, one to activate widescreen support, one to deactivate it)? Following is the text of the ini:
What I need to change is in the User section. I just gave you everything else in case it needs a complete rewrite to make this work. Here's the relevant part, in case you don't want to track it down:Code:[debug] logCutoff=15 sendLogfile=0 sendDebugger=1 deltaLog1=0 deltaLog0=0 drawfps=0 drawfpsx=720 drawfpsy=20 [mgr] aimgr=ZTAIMgr worldmgr=ZTWorldMgr gamemgr=BFGameMgr scenariomgr=ZTScenarioMgr scriptmgr=BFScriptMgr soundmgr=BFSoundMgr terrainmgr=ZTAdvTerrainMgr [language] lang=9 sublang=1 [lib] res=res0.dll lang=lang0.dll [resource] path=./dlupdate;./updates;./xpack2/loc;./xpack2;./dupdate;./zupdate1;./xpack1/loc;./xpack1;./zupdate;./loc;. [user] fullscreen=1 screenwidth=1280 screenheight=1024 UpdateRate=15 DrawRate=60 lastfile= [advanced] ; 0 eTotalQuality ; 1 eQuality ; 2 eBalance ; 3 eSpeed ; 4 ePaused drag=0 click=0 normal=0 level=3 loadHalfAnims=0 use8BitSound=0 [Map] mapX=75 mapY=75 [UI] ; set this to 0 instead of 1 if you want to try color cursors ; if you get a flickering or disappearing cursor, set back to 1 useAlternateCursors=0 tooltipDelay=1 tooltipDuration=3000 MessageDisplay=1 mouseScrollThreshold=1 mouseScrollDelay=1 mouseScrollX=32 mouseScrollY=32 keyScrollX=64 keyScrollY=64 minimumMessageInterval=60 defaultEditCharLimit=22 noMenuMusic=0 menuMusic=sounds/mainmenu.wav menuMusicAttenuation=-1000 userAttenuation=0 helpType=1 playMovie=1 ; volume for first movie. value from -10000 to 0 movievolume1=-1000 playSecondMovie=1 ; volume for second movie. value from -10000 to 0 movievolume2=-1000 maxShortTooltipWidth=200 maxLongTooltipWidth=400 progressLeft=231 progressTop=420 progressRight=581 progressBottom=435 progressRed=255 progressGreen=184 progressBlue=43 progressShadowXOffset=-3 progressShadowYOffset=3 progressShadowRed=32 progressShadowGreen=32 progressShadowBlue=32 completedExhibitAttenuation=100 MSStartingCash =135000 MSCashIncrement = 5000 MSMinCash = 10000 MSMaxCash = 500000 startedFirstTutorial=1 progresscalls=1255 startedDinoTutorial=1 startedAquaTutorial=1 lastWindowX=0 lastWindowY=0 [scenario] tutorial=0
I need to change the screenwidth and height to 1366 and 768. Thanks in advance for your help.Code:[user] fullscreen=1 screenwidth=1280 screenheight=1024 UpdateRate=15 DrawRate=60 lastfile=