Anyone knows how to apply these changes if you bought the game through Steam, I cant fin the .ini file and the .lua Or if its even possible on a Steam purchased game..
I have 4 in 1 box set, so BG2 + Throne of Bhaal, and baldur.ini is the one I edited (there is no other).
I did it like this, and tried to place the text ('Program Options', 'Debug Mode', '1', with and without long spaces, however you call it in English) in various places in the page, but I can't get the console work
@Kedine For original BG, just add the line DebugMode=1.
I did this, it did not work, I also tried all tricks that can be found on internet (tried compability mode as WinXP, marked .ini file as "read only" so the game couldn't change it, changed it back when it didn't work and took the defaut setting from the disk and did the stuff again...), but still in game I cannot get CLUACONSOLE working. ctrl+space just pauses and unpauses the game.
I do not have steam version, I have DVD with SOA and Throne of Bhaal, I use Win8
If ctrl-space pauses the game, it sounds like it's not detecting the ctrl button press. Do you have any utility running that does hot-keys? Does things like ctrl-c and ctrl-v work on other Windows programs?
I've set up a spell that has 1% chance of success, then I've locked it beyond four more spell relays of 1% of success (this means it should have to roll 5 separate 1% chances) just so the overall chance of success is extremely rare.
Yet it still works fairly often. Like, it's somewhat rare but it still unbelievably happens regularly. There's no way rolling 5 successive, exponential 1% would happen more than once in a big big while.
This leads me to conclude the "randomness" in this engine is simply bs. This system most likely covers crits and concentration checks aswell.
How does one turn off Debug Mode after it's enabled? I tried deleting the string from Baldur.lua, I've tried setting it from 1 to 0, I only wanted it on long enough to correct for my mistake of talking to Edwin before recruiting Dynaheir (by respawning Edwin with Dynaheir in my party), I didn't intend to actually play with it on!
In BGEE, I've just started a new game and am trying to move (not create clones) all of the canon joinable NPCs to the protagonist at Mouse Position: x=1110, y=600 Area: AR2600. I'm pretty green using complex console commands, but I followed the example of moving Cernd in BG2EE in the OP:
C:Eval("action") : execute a scripting action. Note that any quotes in the action itself need to have a "\" before them. A list of available script actions can be found in the IESDP. Example - C:Eval("ActionOverride(\"Cernd\",MoveGlobal(\"AR0406\",Myself,[1368.1922]))") Will move Cernd to the specified location.
It appears to enter properly, but it does nothing. Can anyone tell me if this even works or guide me in the right direction, please? Thank you.
Edit: I tried the same command with Minsc, instead of Imoen1. and it, also, didn't work. I'm wondering if the command isn't working because the game might spawn the NPCs when the protagonist enters the areas or something.
If I don't want clones, I can use the MoveToArea command, go to each area and recruit the NPCS normally, I suppose, then teleport the party back to AR2600 to actually begin the game, but I'm unsure if that would advance the story or how I could recruit Dynaheir without killing any gnolls. Again, any help is appreciated.
Edit II: Using the MoveToArea command and recruiting the NPCs normally worked fine, but I'm still having trouble with Dynaheir. I moved the party to the Gnoll Fortress (AR5100), then tried the same command line as I did with Imoen1 and Minsc, but with Dynahe, but, again, it did nothing even being in the same area as Dynaheir should be. The Baldur's Gate Wiki shows her at 2470, 1400. Again, I'm pretty green with the more advanced commands, but I thought that there was a MoveToArea command that would jump you to the actual location if entered properly. My Google-Fu just isn't turning up what that command line should be. Thank you.
How can I edit a image I would like to use it as portrait forcing it into the MEDIUM and SMALL formats? Must I draw a square with PAINT and shrink the borders? Is there a smarter way?
I can't seem to get the CLUA Console to work. Every time I edit the .lua and boot up the game, the .lua seems to reset, and the game boots up as though it's my first time starting Baldur's Gate.
Hi @TheWhitefire, I am guessing that you are on Windows here. It sounds like you are using Notepad to edit the file. Depending on setting, Notepad adds .txt to the end of the filename so you need to make sure that you save only as 'baldur.lua' or remove the .txt component after you save. You also could try a different editor like Notepad++. If you are using something like Word to edit, it adds a bunch of metadata to the file that wont be able to be read, so the game would essential delete the file and start again.
The other one is that you have to edit baldur.lua when the game is not running.
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',
Wait a minute - you're asking me to insert code that doesn't even have matching closing parenthesis...?? Nope, this code block didn't do it, in my case. I wonder how it has helped anyone at all???
Here's my Baldur.lua, after following the guideline above. Clearly, it's not syntactically valid:
Hello. I'm having a problem with Bladur's Gate II. I'm trying to access the console commands but the only .ini file or LUA file I'm finding for the game is the engine file. I have the game from GOG.com on an external hard drive set to G:
Hello. I'm having a problem with Bladur's Gate II. I'm trying to access the console commands but the only .ini file or LUA file I'm finding for the game is the engine file. I have the game from GOG.com on an external hard drive set to G:
Have you looked in the "Documents\Baldur's Gate II - Enhanced Edition" folder? Baldur.ini and Baldur.lua should be there in the EEs.
I had two fifferent Documents\Baldur's Gate II - Enhanced Edition" folders. One on the C: drive, and one on te external drive. But now whenever I edit the LUA file it resets when I start the game ):
I think the active Documents folder should be on the same drive where your operating system is (pesumably C). I'm thinking maybe that one overrides and resets the other one every time the game runs, though admittedly I haven't had a lot of experience with external drives and I'm somewhat mystified by why there would be two documents folders to begin with.
Sorry I should have been more clear. The C folder was the only one with a LUA file. The other just has saves. I edit the LUA file, save it, and confirm it is saved but when I start the game the LUA file resets to default somehow.
The latest patch I have is 2.5.16.6. If the version is different I'll have to try and find out how to locate it. GOG Galaxy 2 is taking time to figure out.
Huh, I'm not quite sure what's going on then. Sorry.
I'll try to tag @JuliusBorisov for you, but if it doesn't get a response I'd probably try contacting customer support or messaging Julius or another Beamdog developer on this forum directly.
Comments
Or if its even possible on a Steam purchased game..
I did it like this, and tried to place the text ('Program Options', 'Debug Mode', '1', with and without long spaces, however you call it in English)
in various places in the page, but I can't get the console work
I have Windows 8.
And still should work with ctrl + space?
I can't get it work
I do not have steam version, I have DVD with SOA and Throne of Bhaal, I use Win8
Is there anything I could do?
In Key mapping in the game ctrl is unmapped, space = pause and cannot be changed.
I've set up a spell that has 1% chance of success, then I've locked it beyond four more spell relays of 1% of success (this means it should have to roll 5 separate 1% chances) just so the overall chance of success is extremely rare.
Yet it still works fairly often. Like, it's somewhat rare but it still unbelievably happens regularly. There's no way rolling 5 successive, exponential 1% would happen more than once in a big big while.
This leads me to conclude the "randomness" in this engine is simply bs. This system most likely covers crits and concentration checks aswell.
C:Eval("action") : execute a scripting action. Note that any quotes in the action itself need to have a "\" before them. A list of available script actions can be found in the IESDP.
Example - C:Eval("ActionOverride(\"Cernd\",MoveGlobal(\"AR0406\",Myself,[1368.1922]))") Will move Cernd to the specified location.
The command that I've tried in BGEE:
C:Eval("ActionOverride(\"Imoen1\",MoveGlobal(\"AR2600\",Myself,[1110,600]))")
It appears to enter properly, but it does nothing. Can anyone tell me if this even works or guide me in the right direction, please? Thank you.
Edit: I tried the same command with Minsc, instead of Imoen1. and it, also, didn't work. I'm wondering if the command isn't working because the game might spawn the NPCs when the protagonist enters the areas or something.
If I don't want clones, I can use the MoveToArea command, go to each area and recruit the NPCS normally, I suppose, then teleport the party back to AR2600 to actually begin the game, but I'm unsure if that would advance the story or how I could recruit Dynaheir without killing any gnolls. Again, any help is appreciated.
Edit II: Using the MoveToArea command and recruiting the NPCs normally worked fine, but I'm still having trouble with Dynaheir. I moved the party to the Gnoll Fortress (AR5100), then tried the same command line as I did with Imoen1 and Minsc, but with Dynahe, but, again, it did nothing even being in the same area as Dynaheir should be. The Baldur's Gate Wiki shows her at 2470, 1400. Again, I'm pretty green with the more advanced commands, but I thought that there was a MoveToArea command that would jump you to the actual location if entered properly. My Google-Fu just isn't turning up what that command line should be. Thank you.
Must I draw a square with PAINT and shrink the borders? Is there a smarter way?
The other one is that you have to edit baldur.lua when the game is not running.
Gus
Nope, this code block didn't do it, in my case. I wonder how it has helped anyone at all???
Here's my Baldur.lua, after following the guideline above. Clearly, it's not syntactically valid:
@Loldrup the line you want to insert is SetPrivateProfileString('Program Options','Debug Mode','1')
Have you looked in the "Documents\Baldur's Gate II - Enhanced Edition" folder? Baldur.ini and Baldur.lua should be there in the EEs.
I'll try to tag @JuliusBorisov for you, but if it doesn't get a response I'd probably try contacting customer support or messaging Julius or another Beamdog developer on this forum directly.
The EE has a good solution letting you define the needed folder yourself. See https://forums.beamdog.com/discussion/comment/1111431/#Comment_1111431 for an explanation.
If the Lua file resets to default then you should check permissions in the folder, access to the file, and your Firewall/UAC.