Skip to content

How to enable the CLUA console in the Beamdog version of BGII EE

I've been trying to enable the CLUA console by editing the Baldur.lua file but so far I haven't been able to get it to work. Here is my Baldur.lua file before I attempt to edit it:

SetPrivateProfileString('Game Options','Environmental Audio','1')
SetPrivateProfileString('Game Options','HP Over Head','0')
SetPrivateProfileString('Game Options','Mouse Scroll Speed','40')
SetPrivateProfileString('Game Options','Confirm Dialog','0')
SetPrivateProfileString('Game Options','Show Character HP','1')
SetPrivateProfileString('Game Options','Auto Pause State','1725')
SetPrivateProfileString('Game Options','Render Travel Regions','0')
SetPrivateProfileString('Game Options','Tiles Precache Percent','100')
SetPrivateProfileString('Game Options','Command Sounds Frequency','2')
SetPrivateProfileString('Game Options','Area Effects Density','100')
SetPrivateProfileString('Game Options','GUI Feedback Level','5')
SetPrivateProfileString('Game Options','Auto Pause Center','1')
SetPrivateProfileString('Game Options','Maximum HP','1')
SetPrivateProfileString('Game Options','Cleric Ranger Spells','1')
SetPrivateProfileString('Game Options','Memory Level','1')
SetPrivateProfileString('Game Options','Effect Text Level','63')
SetPrivateProfileString('Game Options','Show Learnable Spells','1')
SetPrivateProfileString('Game Options','Bored Timeout','3000')
SetPrivateProfileString('Game Options','Tutorial State','1')
SetPrivateProfileString('Game Options','Over Confirm Everything','0')
SetPrivateProfileString('Game Options','Quick Item Mapping','1')
SetPrivateProfileString('Game Options','Journal Popups','1')
SetPrivateProfileString('Game Options','Filter Games','1')
SetPrivateProfileString('Game Options','No Difficulty Based XP Bonus','1')
SetPrivateProfileString('Game Options','Show Message Box Hint','1')
SetPrivateProfileString('Game Options','3E Thief Sneak Attack','0')
SetPrivateProfileString('Game Options','Attack Sounds','1')
SetPrivateProfileString('Game Options','Locator Feedback Level','3')
SetPrivateProfileString('Game Options','Pausing Map','0')
SetPrivateProfileString('Game Options','Terrain Hugging','0')
SetPrivateProfileString('Game Options','Nightmare Bonus XP','0')
SetPrivateProfileString('Game Options','Footsteps','1')
SetPrivateProfileString('Game Options','Selection Sounds Frequency','3')
SetPrivateProfileString('Game Options','Infravision','1')
SetPrivateProfileString('Game Options','Ranged Weapon Switching','0')
SetPrivateProfileString('Game Options','Critical Hit Screen Shake','1')
SetPrivateProfileString('Game Options','Message Box Top','158')
SetPrivateProfileString('Game Options','All Learn Spell Info','0')
SetPrivateProfileString('Game Options','Combat UI','1')
SetPrivateProfileString('Game Options','Suppress Extra Difficulty Damage','0')
SetPrivateProfileString('Game Options','Last Save TBP','000000023-After first wave')
SetPrivateProfileString('Game Options','Heal Party on Rest','1')
SetPrivateProfileString('Game Options','Classic Selection Circles','0')
SetPrivateProfileString('Game Options','Hotkeys On Tooltips','1')
SetPrivateProfileString('Game Options','Keyboard Scroll Speed','44')
SetPrivateProfileString('Game Options','Render Explored Map','1')
SetPrivateProfileString('Game Options','Render Actions','0')
SetPrivateProfileString('Game Options','Weather','1')
SetPrivateProfileString('Game Options','Duplicate Floating Text','1')
SetPrivateProfileString('Game Options','Always Dither','1')
SetPrivateProfileString('Game Options','Difficulty Level','2')
SetPrivateProfileString('Game Options','Subtitles','1')
SetPrivateProfileString('Game Options','Extra Feedback','0')
SetPrivateProfileString('Game Options','Nightmare Bonus Gold','0')
SetPrivateProfileString('Game Options','Color Circles','1')
SetPrivateProfileString('Game Options','Last Save','000000001-Quick-Save')
SetPrivateProfileString('Language','Text','en_US')
SetPrivateProfileString('Graphics','Hardware Mouse Cursor','1')
SetPrivateProfileString('Graphics','Use Nearest Neighbour Scaling','1')
SetPrivateProfileString('Graphics','Use Sprite Outlines','1')
SetPrivateProfileString('Graphics','Use Character Highlights','1')
SetPrivateProfileString('Graphics','Scale UI','1')
SetPrivateProfileString('Graphics','Zoom Lock','1')
SetPrivateProfileString('Graphics','Backend','0')
SetPrivateProfileString('Graphics','vendor','Intel')
SetPrivateProfileString('Graphics','version','OpenGL version 4.3.0 - Build 10.18.15.4248 - build XXXX')
SetPrivateProfileString('Graphics','renderer','Intel(R) HD Graphics 4400')
SetPrivateProfileString('Graphics','Greyscale On Pause','0')
SetPrivateProfileString('Graphics','Show Black Space','1')
SetPrivateProfileString('Fonts','uk_UA','PERMIAN')
SetPrivateProfileString('Fonts','ja_JP','MEIRYO')
SetPrivateProfileString('Fonts','zh_CN','SIMSUN')
SetPrivateProfileString('Fonts','ru_RU','PTSERIF')
SetPrivateProfileString('Fonts','Zoom','112')
SetPrivateProfileString('Fonts','ko_KR','NANUM')
SetPrivateProfileString('Window','Maximized','0')
SetPrivateProfileString('Window','Full Screen','1')
SetPrivateProfileString('Multiplayer','Enable Chat Menu','1')
SetPrivateProfileString('Multiplayer','Disable Banters','1')
SetPrivateProfileString('MOVIES','RESTDUNG','1')
SetPrivateProfileString('MOVIES','MINEFLOD','1')
SetPrivateProfileString('MOVIES','REST','1')
SetPrivateProfileString('MOVIES','NASHKELL','1')
SetPrivateProfileString('MOVIES','INTRO','1')
SetPrivateProfileString('MOVIES','CAMP','1')
SetPrivateProfileString('MOVIES','LOGO','1')
SetPrivateProfileString('MOVIES','BLACKPIT','1')
SetPrivateProfileString('MOVIES','RESTINN','1')
SetPrivateProfileString('MOVIES','DEATHAND','1')
SetPrivateProfileString('MOVIES','BGENTER','1')
SetPrivateProfileString('MOVIES','FRARMINN','1')
SetPrivateProfileString('MOVIES','WRECK','1')
SetPrivateProfileString('Program Options','Volume Voices','100')
SetPrivateProfileString('Program Options','Path Search Nodes','32000')
SetPrivateProfileString('Program Options','Maximum Frame Rate','30')
SetPrivateProfileString('Program Options','Volume Movie','92')
SetPrivateProfileString('Program Options','Volume Music','41')
SetPrivateProfileString('Program Options','Active Campaign','0')
SetPrivateProfileString('Program Options','Font Name','')
SetPrivateProfileString('Program Options','Never Show Nuisance SOD','1')
SetPrivateProfileString('Program Options','Drop Capitals','1')
SetPrivateProfileString('Program Options','Tooltips','17')
SetPrivateProfileString('Program Options','Disable Cosmetic Attacks','0')
SetPrivateProfileString('Program Options','Cloud Saves Enabled','0')
SetPrivateProfileString('Program Options','Translucent Shadows','1')
SetPrivateProfileString('Program Options','Volume Ambients','17')
SetPrivateProfileString('Program Options','Volume SFX','46')
SetPrivateProfileString('Program Options','Sprite Mirror','0')
SetPrivateProfileString('Program Options','3D Acceleration','1')


One of the posts in this forum suggests to do this:


Add these lines 'Program Options', 'Debug Mode', '1', You can put it right at the top if you like

CREATE TABLE options (
section string,
name string,
value string
);
INSERT INTO options ROWS (
'Program Options', 'Debug Mode', '1',

This is a little confusing - other posts say to locate the line which says "INSERT INTO options ROWS (" but as you can see there is no such line in my Baldur.lua file.

I have tried simply adding this at the top line of the Balur.lua file: 'Program Options', 'Debug Mode', '1',
however this does not work.

Maybe the problem is that most posts assume you are working with a Baldur.ini file and not the Baldur.lua file, but I would think they work mostly the same.

If anyone could please explain how I should edit the Baldur.lua file to enable the CLUA console I'd greatly appreciate the assistance. Thanks!

Comments

  • kjeronkjeron Member Posts: 2,367
    https://forums.beamdog.com/discussion/61900/how-to-enable-the-console-in-bgee-sod-bg2ee-in-version-2-0-and-later
    The line you need to add to baldur.lua is:
    SetPrivateProfileString('Program Options','Debug Mode','1')
  • Drago_DarkstormDrago_Darkstorm Member Posts: 18
    kjeron said:

    https://forums.beamdog.com/discussion/61900/how-to-enable-the-console-in-bgee-sod-bg2ee-in-version-2-0-and-later
    The line you need to add to baldur.lua is:
    SetPrivateProfileString('Program Options','Debug Mode','1')

    Thanks for the link and the reply. I've added the line to my Baldur.lua file - I've copy/pasted the top few lines here so you can see:

    SetPrivateProfileString('Program Options','Debug Mode','1')
    SetPrivateProfileString('Game Options','Environmental Audio','1')
    SetPrivateProfileString('Game Options','HP Over Head','0')
    SetPrivateProfileString('Game Options','Mouse Scroll Speed','40')

    ...but after saving the file, restarting the game and pressing CTRL + SPACEBAR, all that happens is the game pauses.
  • JuliusBorisovJuliusBorisov Member, Administrator, Moderator, Developer Posts: 22,724
    Make sure it's the baldur.lua file you need - i.e. it's located in the documents folder for your game (where also your saves are).

    What platform are you on? There might be a problem with Mac - https://forums.beamdog.com/discussion/62557/mac-sierra-settings-workaround#latest.

    If you're on Windows, make sure the baldur.lua is not read-only.
  • Drago_DarkstormDrago_Darkstorm Member Posts: 18
    edited October 2017
    It is the baldur.lua file and it is in my documents folder:

    C:\Users\**my username here**\Documents\Baldur's Gate - Enhanced Edition

    I'm running Windows 10 on a laptop pc.
    I *did* change the file to Read Only after saving it, because one of the other posts recommended doing this so the game doesn't overwrite the baldur.lua file. Although, I've checked the file with an editor after saving it and restarting the game, and it still has the line I added to it (it still appears as it does above where I posted the top four lines of the file).

    Now it would be easy to change it back so the baldur.lua file is no longer Read Only but would that really make a difference if the file is not erasing my changes on save/restart?

    Also, I'm not sure if this matters but I am trying to open the CLUA in BGII EE, not BG EE.
  • Grond0Grond0 Member Posts: 7,317
    It does matter, yes - there are separate LUA files for BGEE and BG2EE. If you want to open the console in the latter you need to change the LUA file in C:\Users\**my username here**\Documents\Baldur's Gate II - Enhanced Edition
  • GusindaGusinda Member Posts: 1,915
    @Drago_Darkstorm - one thing to note is that you need to edit the baldur.lua when the game is not running. If you do, on exit, the game will resave the file without the changes...

    If the game is still pausing when trying the keys, try hitting CTRL, keeping it down, then press SPACE. It might only be a timing issue.

    Gus
  • Drago_DarkstormDrago_Darkstorm Member Posts: 18
    Grond0 said:

    It does matter, yes - there are separate LUA files for BGEE and BG2EE. If you want to open the console in the latter you need to change the LUA file in C:\Users\**my username here**\Documents\Baldur's Gate II - Enhanced Edition

    SUCCESS! This was *exactly* what the problem was - I was editing the file in the Baldur's Gate - Enhanced Edition folder and not the one in the Baldur's Gate II - Enhanced Edition folder. I could have sworn I checked to see if there was a separate folder for BGII and didn't find one before I began editing the file. Maybe I can get Jan to whip me up some Glasses of Farseeing...

    Thanks for the help, and good luck in your adventuring!
Sign In or Register to comment.