Hi, I'm a newb to programming but not a total stranger (I own VB6, now using vb2008 express). I'm developing a program to tweak the settings of the Thief: Deadly Shadows video game. The tweaker program is designed to load and configuration profiles so the ttlg/T3Ed Guild community can share tweaks with each other and then apply those setting to the game's ini files. A little more info here: [ame=http://www.ttlg.com/forums/showthread.php?t=127954]UNDER DEVELOPMENT - Thief 3 Gold Tweaker - TTLG Forums[/ame] & here are a list of tweaks the tweaker program will apply to the game: [ame=http://www.ttlg.com/forums/showthread.php?t=83801]Thief 3 - Tweak Guide - TTLG Forums[/ame]
Anyway, I managed to load and save the config profiles but I'm stuck on applying those settings to the game's .ini files. The main problem is finding the right string. Thief: Deadly Shadows .ini file has settings for xbox & PC. I only want to change the PC settings in DEFAULT.INI:
I want to change "ShowIntroMovies=False" under the "[PCStartup]" section when the user clicks "Apply Changes" on the main form.
One way I could go about this is to look for "[PCStartup]" hold the line number it's on, then look for the "ShowIntroMovies" string under that line number. There are several instances in the game's .ini files where the same setting exists but they exists under different sections. So how would I find a specific occurrence of a string?
Anyway, I managed to load and save the config profiles but I'm stuck on applying those settings to the game's .ini files. The main problem is finding the right string. Thief: Deadly Shadows .ini file has settings for xbox & PC. I only want to change the PC settings in DEFAULT.INI:
VB.NET:
[XboxStartup]
ShowIntroMovies=True
ForceCopyFromHardDrive=False
ShortIntroMovies=d:\content\t3\VideoTextures\eidos-logo.bik; . . . etc.
GameStartFiles=d:\Media\Font12.xpr, . . . etc.
[PCStartup]
ShowIntroMovies=False
ShortIntroMovies=d:\content\t3\VideoTextures\eidos-logo.bik; . . . etc.
One way I could go about this is to look for "[PCStartup]" hold the line number it's on, then look for the "ShowIntroMovies" string under that line number. There are several instances in the game's .ini files where the same setting exists but they exists under different sections. So how would I find a specific occurrence of a string?