SetPrivateProfileString('Program Options','Maximum Frame Rate','45') Open the file, look at the lines already present and it will become obvious. This is the same content as before, but the format is slightly different.
Okay. I'm getting frustrated. I have followed every instruction here and I Still cannot get cheats to work at all. please help!
Update *Facepalm* Nevermind. I'm an idiot. after giving up and finally going to sleep I woke up and tried again and found out I was altering my Baldur's Gate 2 lua not my Baldur's Gate 1. *sigh* Beware the power of idiots and the problems they can cause. Many thanks for the attempts to aid me though.
@AllenRagia: Have you been editing baldur.ini? If you're up to version 2, simply delete your baldur.ini, edit your baldur.lua file, and add the following line:
I quickly edited the thread title and inserted the above from @Thels there. These instructions are indeed outdated with the engine updates and we probably need an entirely new thread created. Generally speaking *most* of the instructions will work in the baldur.lua - but we have many more new things you can adjust and set in there. Will write up a new set of instructions soon as I get some time.
I never could get it to stick, every time i pressed ctrl+space, it paused the game. What do i change the permissions to? Edit the file on desktop, replace file, it does the same thing, I have windows 7
I'd also make sure the game is not open when you edit the file and then ensure you've saved it (save, close, reopen, check, close) to ensure it is still there...!
I've been asked about override folders a couple times, so I'll repost here. This is just a general informational post. Below, in the spoiler, is a legend or key of sorts indicating text which will be replaced as part of the folder locations in the table below. Cut right to the table if you're already familar with folders, paths, etc. This is just a one-for-all post.
[spoiler][Game]
Baldur's Gate - Enhanced Edition
Baldur's Gate II - Enhanced Edition
Icewind Dale - Enhanced Edition
[Installation Folder] I'm only listing defaults here. The standalone Beamdog game installer can be instanned anywhere, as with the GOG game installer, so you'll need to find them yourself.
With that out of the way, the following table is a list of override folders in their exact order of priority. What I mean by that—let's say, for example, that a resource named ITEM01.ITM is found in Documents/[Game]/override, if a resource by the same name is also found in [Installation Folder]/lang/en_US/[Movies Path] then that is the one which will be used.
Top to bottom, [Installation Folder]/override will override all else.
And just to muddy the water... Here's a feature I've been sitting on for a couple years now. Since the release of Baldur's Gate: Enhanced Edition (and well before I joined the team), one of the first things I did was go poking around in the executable. I found an undocumented, and still undocumented, feature. It was an SQL reference to 'OVERRIDES'. After some testing, I found out how it worked — one can have custom override folders.
A further note, while I doubt it has any practical use in general outside of testing something, I should note that it is actually a feature which is unsupported.
If you're going to try it out, do so at your own risk. Issues may arise. Note that this functionality may change at any time.
Here are some examples: SetPrivateProfileString('OVERRIDES','1',[[C:\Users\Administrator\Documents\Baldur's Gate II - Enhanced Edition\override_for_mod]])
SetPrivateProfileString('OVERRIDES','2','C:/Infinity Engine Games/shared_override')
SetPrivateProfileString('OVERRIDES','3','C:/Infinity Engine Games/bgee_override')
SetPrivateProfileString('OVERRIDES','4','C:/Infinity Engine Games/bg2ee_hlas')
Feel like having a shared override folder for both Baldur's Gate games? You can use something like this:
SetPrivateProfileString('OVERRIDES','2','C:/Infinity Engine Games/shared_override') The key (middle option) in this case is actually mostly irrelevant in that it doesn't set priority (as I originally thought when poking around in the executable), but if it's not there then you'll only be able to set one override path. It doesn't have to be a number, but it does need to be unique.
If your path contains quotes, use double square brakcets—such as this: SetPrivateProfileString('OVERRIDES','1',[[C:\Users\Administrator\Documents\Baldur's Gate II - Enhanced Edition\override_for_mod]]) Note that one cannot simply use a generic Windows path, such as "C:\some folder\some other folder". When interpreted by the engine, the backslash will escape the character. One must use the standard UNIX-like path delimited "/", such as this: SetPrivateProfileString('OVERRIDES','2','C:/Infinity Engine Games/shared_override')
SetPrivateProfileString('OVERRIDES','3','C:/Infinity Engine Games/bgee_override')
SetPrivateProfileString('OVERRIDES','4','C:/Infinity Engine Games/bg2ee_hlas') There is no particular limit for how many custom override folders a person can have. As I said, though, be mindful of the risks with it being unsupported.
You should be careful with this option and make a backup of your Baldur.lua beforehand.
In my tests it worked correctly when starting the game the first time after making the changes. However, subsequent starts will reset the Baldur.lua completely to game defaults. It's most likely caused by the game writing the OVERRIDE lines back to the Baldur.lua in the wrong format.
In my tests it worked correctly when starting the game the first time after making the changes. However, subsequent starts will reset the Baldur.lua completely to game defaults. It's most likely caused by the game writing the OVERRIDE lines back to the Baldur.lua in the wrong format.
What line did you use? Did you use quotes or double square brackets?
Not on my end. It writes them back using double square brackets. Curious. If you post an example of the path you used I might have more of an idea why that's happening.
In any case, as I said, it's an unsupported feature. :-)
I'm using the same format as in your examples: SetPrivateProfileString('OVERRIDES','1',[[C:\Users\argent77\Documents\Infinity Engine - Enhanced Edition\override]]) The path doesn't matter. Actually, it does matter. Having a single quote in the path name causes the game to write the string back in the correct format.
I'm guessing you don't have quotes in your other paths? I should clarify that you need to use double square brackets if you have quotes in your path, else you need to use the UNIX-like path delimiter slash "/" rather than the Windows "\".
That explains it. It works perfectly fine with slashes as pathname separators.
Edit: It looks like user-defined override folders take precedence over all hardcoded override folders. The user-defined override folders themselves are applied in random order.
The order should start after the last hardcoded override (install:/override). After that, they are indeed random (whatever order they are interpreted by in the LUA). If you create a new item, let's say "TESTAR01" and put it into your custom override, then make a modification to the inventory icon and place that in the install:/override, the install:/override folder should take precedence (at least it does for me).
Can someone please help, I can't get the cheats enabled, I've followed the instructions mentioned in this thread... below attached screenshot of the Baldur INI file...
Resolved: I realized that after the update I should edit the LUA file instead of the INI file... my bad sorry.
Comments
https://forums.beamdog.com/discussion/comment/403734/#Comment_403734
First, you need to edit "Baldur.lua", not "Baldur.ini". Actually, if you still have a Baldur.ini file, you may as well delete it.
Second, instead of the lines included in the description, you need to add the following line. It's position doesn't matter:
SetPrivateProfileString('Program Options','Debug Mode','1')
In baldur.ini was 'Program Options', 'Maximum Frame Rate', '45',
in baldur.lua how does it work?
SetPrivateProfileString('Program Options','Maximum Frame Rate','45')
Open the file, look at the lines already present and it will become obvious. This is the same content as before, but the format is slightly different.
Or maybe just post a new one for v2.0 (and archive this one with v1.3 title change)
[Edit:]
The new one also can be named: Infinity Engine EE v2.0 General Customization
Update
*Facepalm* Nevermind. I'm an idiot. after giving up and finally going to sleep I woke up and tried again and found out I was altering my Baldur's Gate 2 lua not my Baldur's Gate 1. *sigh* Beware the power of idiots and the problems they can cause. Many thanks for the attempts to aid me though.
SetPrivateProfileString('Program Options','Debug Mode','1')
SetPrivateProfileString('Program Options', 'Debug Mode'
SetPrivateProfileString('Program Options',CREATE TABLE options ('section string,' 'name string,' 'value string');
SetPrivateProfileString('Program Options',INSERT INTO options ROWS ('Program Options','Debug Mode', '1',
can someone correct me on this ?
thanks!
You only need one line and it should look like this:
SetPrivateProfileString('Program Options','Debug Mode','1')
I'd also make sure the game is not open when you edit the file and then ensure you've saved it (save, close, reopen, check, close) to ensure it is still there...!
[spoiler][Game]
[Installation Folder]
I'm only listing defaults here. The standalone Beamdog game installer can be instanned anywhere, as with the GOG game installer, so you'll need to find them yourself.
[Movies Path]
Some movies use a lower resolution, so the path changes depending on what is avaliable.
[Language Code]
Take BG:EE as an example:
- Documents/[Game]/override
- Documents/Baldur's Gate - Enhanced Edition/override
- [Installation Folder]/lang/[Language Code]/[Movies Path]
- C:\Program Files (x86)\Beamdog\Games\00766/lang/de_DE/movies/480
With that out of the way, the following table is a list of override folders in their exact order of priority. What I mean by that—let's say, for example, that a resource named ITEM01.ITM is found in Documents/[Game]/override, if a resource by the same name is also found in [Installation Folder]/lang/en_US/[Movies Path] then that is the one which will be used.Top to bottom, [Installation Folder]/override will override all else.
A further note, while I doubt it has any practical use in general outside of testing something, I should note that it is actually a feature which is unsupported.
If you're going to try it out, do so at your own risk. Issues may arise. Note that this functionality may change at any time.
Here are some examples:
SetPrivateProfileString('OVERRIDES','1',[[C:\Users\Administrator\Documents\Baldur's Gate II - Enhanced Edition\override_for_mod]]) SetPrivateProfileString('OVERRIDES','2','C:/Infinity Engine Games/shared_override') SetPrivateProfileString('OVERRIDES','3','C:/Infinity Engine Games/bgee_override') SetPrivateProfileString('OVERRIDES','4','C:/Infinity Engine Games/bg2ee_hlas')
Feel like having a shared override folder for both Baldur's Gate games? You can use something like this:
SetPrivateProfileString('OVERRIDES','2','C:/Infinity Engine Games/shared_override')
The key (middle option) in this case is actually mostly irrelevant in that it doesn't set priority (as I originally thought when poking around in the executable), but if it's not there then you'll only be able to set one override path. It doesn't have to be a number, but it does need to be unique.
If your path contains quotes, use double square brakcets—such as this:
SetPrivateProfileString('OVERRIDES','1',[[C:\Users\Administrator\Documents\Baldur's Gate II - Enhanced Edition\override_for_mod]])
Note that one cannot simply use a generic Windows path, such as "C:\some folder\some other folder". When interpreted by the engine, the backslash will escape the character. One must use the standard UNIX-like path delimited "/", such as this:
SetPrivateProfileString('OVERRIDES','2','C:/Infinity Engine Games/shared_override') SetPrivateProfileString('OVERRIDES','3','C:/Infinity Engine Games/bgee_override') SetPrivateProfileString('OVERRIDES','4','C:/Infinity Engine Games/bg2ee_hlas')
There is no particular limit for how many custom override folders a person can have. As I said, though, be mindful of the risks with it being unsupported.
In my tests it worked correctly when starting the game the first time after making the changes. However, subsequent starts will reset the Baldur.lua completely to game defaults. It's most likely caused by the game writing the OVERRIDE lines back to the Baldur.lua in the wrong format.
It works fine in game patch v1.3 though.
In any case, as I said, it's an unsupported feature. :-)
SetPrivateProfileString('OVERRIDES','1',[[C:\Users\argent77\Documents\Infinity Engine - Enhanced Edition\override]])
The path doesn't matter. Actually, it does matter. Having a single quote in the path name causes the game to write the string back in the correct format.
See updated example above.
Edit: It looks like user-defined override folders take precedence over all hardcoded override folders. The user-defined override folders themselves are applied in random order.
Resolved:
I realized that after the update I should edit the LUA file instead of the INI file... my bad sorry.
Also, keep in mind this thread is for 1.x versions only, NOT for 2.x versions.
I learned that all I had to do was use the C: noe instead of typing the whole thing out.