Skip to content

Help to get into the root of this problem - baldur.lua file on Windows XP

JuliusBorisovJuliusBorisov Member, Administrator, Moderator, Developer Posts: 22,714
@Cerevant

I made a report some time ago - http://redmine.beamdog.com/issues/20954 - the options I choose are not remembered when I again start my BG2EE beta program.

It turned out that the problem involves ANY options, not only graphical ones, for example, gameplay options.

For several days, I've been testing how it works and this is what I've found.

I use it on the example of SetPrivateProfileString('Game Options','Maximum HP','1') line - exactly the same happens to any other options, including "Sprite Outlines", "Highlight Selected sprites", Greyscale on Pause etc.

I use Windows XP. This is what I do:

Before I run the Baldur.exe of the beta I open my baldur.lua file. This is what I see:

image

I close the baldur.lua file.

Then I run the Baldur.exe of the beta. Go into options - gameplay and turn off the Max HP on level up option.

Click Done and Back.

Then I minimize the game and open the baldur.lua file. This is what I see now:

image

I close the baldur.lua file, open the minimized game, click Back and Quit.

Then I open the baldur.lua file again.

image

I close the baldur.lua file.

As you see, my choice is remembered.

Then I run the Baldur.exe. After getting to the main menu, I minimize the game and open the baldur.lua file.

image

Suddenly, the choice has been forgotten and the game has returned to the default option. I close the baldur.lua file, open the minimized game, click Options and of course see the Max HP on level up option turned ON.

So, it looks like every time I run the Baldur.exe, all lines in the baldur.lua file become as they were when the game was downloaded, and all options turn to default.

It basically doesn't let me save any options, including turning off "Sprite Outlines", "Highlight Selected sprites".

Do you have any ideas?

If you google "LUA file windows xp" you can see some pages describing some problems with lua. files working on Windows XP.
«1

Comments

  • TressetTresset Member, Moderator Posts: 8,262
    I have an idea, but it probably won't work...

    Try to rename baldur.ini or move it somewhere else.
    JuliusBorisov
  • cmk24cmk24 Member Posts: 605
    I work around might be to make the LUA file read only after you configure it, at least until and official fix comes out.
    JuliusBorisov
  • JuliusBorisovJuliusBorisov Member, Administrator, Moderator, Developer Posts: 22,714
    edited March 2016
    @Tresset
    Didn't help. I even tried to delete the whole "Baldur's Gate 2 - Enhanced Edition" folder from My documents (so that it could be created again) but it didn't help either.

    @cmk24
    Amazingly, but that didn't help as well, even in the read-only file as soon as I ran the game for the second time all the options went to default.
    Post edited by JuliusBorisov on
  • JuliusBorisovJuliusBorisov Member, Administrator, Moderator, Developer Posts: 22,714
    Just an update - the problem is the same in the new build (2.0.60.0).
  • DurenasDurenas Member Posts: 508
    Sounds to me like Windows XP is overwriting your files with backup copies. Just for experimentation, try disabling the Volume Shadow Copy service.
  • CerevantCerevant Member Posts: 2,314
    edited March 2016
    Doesn't look like it is XP specific - I can't reproduce the problem. We'll keep digging.

    Question: if you quit, and change a setting in baldur.lua, then load the game, are those settings recognized?
  • JuliusBorisovJuliusBorisov Member, Administrator, Moderator, Developer Posts: 22,714
    Cerevant said:

    Doesn't look like it is XP specific - I can't reproduce the problem. We'll keep digging.

    Question: if you quit, and change a setting in baldur.lua, then load the game, are those settings recognized?

    Thank you for letting me know you're digging into it! It means a lot, because I guess I'll experience the same with SoD, which is ... not ideal.

    Just tested it. I changed the setting in baldur.lua, saved it then loaded the game - and nope, it changed back again, without recognizing my changing.

    I have to add, that for the 1.3 version, any change in baldur.ini works and I haven't experienced anything similar pre-beta.
  • CerevantCerevant Member Posts: 2,314
    Can you post or send me the full path to your Baldur.lua?
  • JuliusBorisovJuliusBorisov Member, Administrator, Moderator, Developer Posts: 22,714
    Cerevant said:

    try: rename Baldur.ini (hang on to a copy)

    This was the first @Tresset 's idea but it didn't work. I even tried to delete the Baldur.ini file altogether.

    But, but!!!
    Cerevant said:

    Try this: Change a setting in Baldur.ini and see if it has an effect (for example debug mode)

    (Technical detail: if there is a Baldur.ini, 2.0 will try to recreate those settings before creating Baldur.lua)

    CAN YOU BELIEVE THAT WHEN I CHANGED SETTINGS IN THE BALDUR.INI (for example, 'Game Options', 'Maximum HP', '0',) IN ADDITION TO THE BALDUR.LUA, IT WORKS!

    I had to add the following lines in the Baldur.ini:

    'Graphics', 'Greyscale On Pause', '0',
    'Graphics', 'Use Sprite Outlines', '0',
    'Graphics', 'Use Character Highlights', '0',
    'Game Options', 'HP Over Head', '0',

    AND NOW I'VE GOT IT TO WORK!

    @Cerevant :love::love::love::love::love::love::love::love::love::love::love::love:

    I've tried to play with it a bit and these are the results:

    1. After I manually change and or add lines into the baldur.ini, these changes are shown in the game and are always recognized. Changing the Baldur.lua is not needed here.
    2. If I change something in the game, then close it (at this point I can open the Baldur.lua and see that the changes are there) and run again, the changes are not recognized.
    3. If I change something in the game, then close it, manually change the lines in the Baldur.ini, and run the game again, the changes are not recognized.
    4. If I remove or rename the Baldur.ini file, I can't make my game recognize the changes.
    5. I had to add missing lines into the Baldur.ini (without the "SetPrivateProfileString" phrase, just the following text).

    Now, could you tell me why others didn't go through the same situation? Why did this situation happen? How can I break the game's dependability on the baldur.ini file so that I could have a situation everyone else has - the changes are recognized from the baldur.lua file?
    Tresset
  • CerevantCerevant Member Posts: 2,314
    We're getting closer, but we still don't know :)

    For whatever reason, the game is not able to read your Baldur.lua, so it is creating a new one based on Baldur.ini. Then it writes out the new Baldur.lua which for some reason it can't find.

    Now the puzzle goes to the devs to figure out why...
    JuliusBorisov
  • CerevantCerevant Member Posts: 2,314
    Ok, we'd like you to run the game from the command line to see what the debug output is:

    From the Beamdog Client, right-click and choose "open game location". That will show you which directory the game is in.

    Start / Run / cmd.exe
    Click on the upper left icon, choose properties, Layout, window size height 100
    Then at the propmpt, type "cd" followed by the path you found for the game,
    Type baldur.exe

    Then screen cap / copy what is in the console window
    JuliusBorisov
  • Gate70Gate70 Member, Developer Posts: 3,870
    uh, quick question. It looks like you have hide common file name extensions enabled and the file is shown as baldur instead of baldur.lua. Is it worth disabling the hide function while investigating.

    Also, after editing your baldur.ini file did you check to see these lines were in the lua file - your statement above says they were recognised in-game but doesn't mention if they were in the file
    'Graphics', 'Greyscale On Pause', '0',
    'Graphics', 'Use Sprite Outlines', '0',
    'Graphics', 'Use Character Highlights', '0',
    'Game Options', 'HP Over Head', '0',

    (I don't have xp so not certain on the above, e.g. does xp wordpad hide the extension)
    JuliusBorisov
  • JuliusBorisovJuliusBorisov Member, Administrator, Moderator, Developer Posts: 22,714
    Thanks a lot for your suggestions.

    I'll report on your guesses later, probably closer to Monday.
  • luskanluskan Member Posts: 269
    I have an issue that's related in a way. For BG2EE, and only BG2EE, I can't turn auto pause on hit off. It's not selected in the auto pause menu, it doesn't matter if I turn it off or on. Other things like enabling the console and font size is fine. This is in Windows 8.1. Does anyone else have the same issue?
  • CerevantCerevant Member Posts: 2,314
    @luskan can you look in your Baldur.lua and tell me what the value of AutoPauseState is set to?
  • luskanluskan Member Posts: 269
    @Cerevant 1165

    The full file:
    SetPrivateProfileString('Program Options','Cloud Saves Enabled','0')
    SetPrivateProfileString('Program Options','Active Campaign','0')
    SetPrivateProfileString('Program Options','Double Byte Character Support','0')
    SetPrivateProfileString('Program Options','Drop Capitals','1')
    SetPrivateProfileString('Program Options','Path Search Nodes','32000')
    SetPrivateProfileString('Program Options','Disable Cosmetic Attacks','1')
    SetPrivateProfileString('Program Options','Volume Music','40')
    SetPrivateProfileString('Program Options','Volume Voices','100')
    SetPrivateProfileString('Program Options','Volume Ambients','40')
    SetPrivateProfileString('Program Options','3D Acceleration','1')
    SetPrivateProfileString('Program Options','Volume SFX','80')
    SetPrivateProfileString('Program Options','Translucent Shadows','1')
    SetPrivateProfileString('Program Options','Font Name','')
    SetPrivateProfileString('Program Options','Maximum Frame Rate','30')
    SetPrivateProfileString('Program Options','Sprite Mirror','0')
    SetPrivateProfileString('Program Options','Tooltips','60')
    SetPrivateProfileString('Program Options','Volume Movie','90')
    SetPrivateProfileString('MOVIES','LOGO','1')
    SetPrivateProfileString('MOVIES','INTRO15F','1')
    SetPrivateProfileString('Fonts','Zoom','75')
    SetPrivateProfileString('Fonts','ja_JP','MEIRYO')
    SetPrivateProfileString('Fonts','zh_CN','SIMSUN')
    SetPrivateProfileString('Fonts','ru_RU','PTSERIF')
    SetPrivateProfileString('Fonts','uk_UA','PERMIAN')
    SetPrivateProfileString('Fonts','ko_KR','NANUM')
    SetPrivateProfileString('Window','Full Screen','1')
    SetPrivateProfileString('Window','Maximized','0')
    SetPrivateProfileString('Graphics','renderer','Intel(R) HD Graphics 4600')
    SetPrivateProfileString('Graphics','Backend','0')
    SetPrivateProfileString('Graphics','version','OpenGL version 4.2.0 - Build 10.18.10.3355 - build XXXX')
    SetPrivateProfileString('Graphics','Use Character Highlights','1')
    SetPrivateProfileString('Graphics','vendor','Intel')
    SetPrivateProfileString('Graphics','Zoom Lock','0')
    SetPrivateProfileString('Graphics','Scale UI','1')
    SetPrivateProfileString('Graphics','Hardware Mouse Cursor','1')
    SetPrivateProfileString('Graphics','Use Sprite Outlines','1')
    SetPrivateProfileString('Graphics','Greyscale On Pause','1')
    SetPrivateProfileString('Game Options','Render Actions','0')
    SetPrivateProfileString('Game Options','Duplicate Floating Text','1')
    SetPrivateProfileString('Game Options','Terrain Hugging','0')
    SetPrivateProfileString('Game Options','Critical Hit Screen Shake','1')
    SetPrivateProfileString('Game Options','Always Dither','1')
    SetPrivateProfileString('Game Options','Tiles Precache Percent','100')
    SetPrivateProfileString('Game Options','Journal Popups','1')
    SetPrivateProfileString('Game Options','Subtitles','1')
    SetPrivateProfileString('Game Options','Mouse Scroll Speed','36')
    SetPrivateProfileString('Game Options','Weather','1')
    SetPrivateProfileString('Game Options','Last Save SOA','000000013-Blayde')
    SetPrivateProfileString('Game Options','Color Circles','1')
    SetPrivateProfileString('Game Options','3E Thief Sneak Attack','0')
    SetPrivateProfileString('Game Options','Suppress Extra Difficulty Damage','0')
    SetPrivateProfileString('Game Options','Effect Text Level','63')
    SetPrivateProfileString('Game Options','Attack Sounds','1')
    SetPrivateProfileString('Game Options','Render Explored Map','0')
    SetPrivateProfileString('Game Options','Selection Sounds Frequency','3')
    SetPrivateProfileString('Game Options','Show Message Box Hint','1')
    SetPrivateProfileString('Game Options','Nightmare Bonus XP','0')
    SetPrivateProfileString('Game Options','Locator Feedback Level','3')
    SetPrivateProfileString('Game Options','Over Confirm Everything','0')
    SetPrivateProfileString('Game Options','Filter Games','1')
    SetPrivateProfileString('Game Options','Combat UI','1')
    SetPrivateProfileString('Game Options','Infravision','1')
    SetPrivateProfileString('Game Options','Nightmare Mode','0')
    SetPrivateProfileString('Game Options','Hotkeys On Tooltips','1')
    SetPrivateProfileString('Game Options','Difficulty Level','2')
    SetPrivateProfileString('Game Options','Render Travel Regions','0')
    SetPrivateProfileString('Game Options','Auto Pause Center','1')
    SetPrivateProfileString('Game Options','No Difficulty Based XP Bonus','1')
    SetPrivateProfileString('Game Options','HP Over Head','0')
    SetPrivateProfileString('Game Options','Extra Feedback','0')
    SetPrivateProfileString('Game Options','Pausing Map','0')
    SetPrivateProfileString('Game Options','Story Mode','0')
    SetPrivateProfileString('Game Options','Cleric Ranger Spells','1')
    SetPrivateProfileString('Game Options','Auto Pause State','1165')
    SetPrivateProfileString('Game Options','Command Sounds Frequency','2')
    SetPrivateProfileString('Game Options','GUI Feedback Level','5')
    SetPrivateProfileString('Game Options','Maximum HP','1')
    SetPrivateProfileString('Game Options','Message Box Top','116')
    SetPrivateProfileString('Game Options','Keyboard Scroll Speed','37')
    SetPrivateProfileString('Game Options','Quick Item Mapping','1')
    SetPrivateProfileString('Game Options','Area Effects Density','100')
    SetPrivateProfileString('Game Options','Memory Level','1')
    SetPrivateProfileString('Game Options','Tutorial State','1')
    SetPrivateProfileString('Game Options','Nightmare Bonus Gold','0')
    SetPrivateProfileString('Game Options','Show Character HP','1')
    SetPrivateProfileString('Game Options','Bored Timeout','3000')
    SetPrivateProfileString('Game Options','Show Learnable Spells','1')
    SetPrivateProfileString('Game Options','Confirm Dialog','0')
    SetPrivateProfileString('Game Options','Ranged Weapon Switching','1')
    SetPrivateProfileString('Game Options','All Learn Spell Info','0')
    SetPrivateProfileString('Game Options','Footsteps','1')
    SetPrivateProfileString('Game Options','Environmental Audio','1')
    SetPrivateProfileString('Game Options','Classic Selection Circles','0')
    SetPrivateProfileString('Game Options','Heal Party on Rest','1')
    SetPrivateProfileString('Multiplayer','Disable Banters','1')
    SetPrivateProfileString('Multiplayer','Enable Chat Menu','1')
  • CerevantCerevant Member Posts: 2,314
    edited March 2016
    Turn off all the auto pause options and tell me what that number is.
    You can also try setting it to 141
  • luskanluskan Member Posts: 269
    edited March 2016
    Turning everything off makes is 12. I got paused when hit.
    Closing the game, changing it to 141, loading the game shows Weapon Unusable and Enemy Sighted selected. But I still get paused when hit.

    edit: okay, weird. I delete my old baldur.ini, no change. I delete both .ini and .ula and I'm no longer paused when hit. Here's what was created after I played (no options changed by me)
    SetPrivateProfileString('Graphics','vendor','Intel')
    SetPrivateProfileString('Graphics','renderer','Intel(R) HD Graphics 4600')
    SetPrivateProfileString('Graphics','version','OpenGL version 4.2.0 - Build 10.18.10.3355 - build XXXX')
    SetPrivateProfileString('MOVIES','LOGO','1')
    SetPrivateProfileString('MOVIES','INTRO15F','1')
    SetPrivateProfileString('Fonts','ko_KR','NANUM')
    SetPrivateProfileString('Fonts','uk_UA','PERMIAN')
    SetPrivateProfileString('Fonts','zh_CN','SIMSUN')
    SetPrivateProfileString('Fonts','ja_JP','MEIRYO')
    SetPrivateProfileString('Fonts','Zoom','112')
    SetPrivateProfileString('Fonts','ru_RU','PTSERIF')
    SetPrivateProfileString('Program Options','Volume Music','40')
    SetPrivateProfileString('Program Options','Active Campaign','0')
    SetPrivateProfileString('Program Options','Volume SFX','80')
    SetPrivateProfileString('Program Options','Tooltips','15')
    SetPrivateProfileString('Program Options','Volume Ambients','40')
    SetPrivateProfileString('Program Options','Volume Voices','100')
    SetPrivateProfileString('Program Options','Path Search Nodes','32000')
    SetPrivateProfileString('Program Options','Maximum Frame Rate','30')
    SetPrivateProfileString('Program Options','3D Acceleration','1')
    SetPrivateProfileString('Program Options','Sprite Mirror','0')
    SetPrivateProfileString('Program Options','Volume Movie','90')
    SetPrivateProfileString('Program Options','Translucent Shadows','1')
    SetPrivateProfileString('Program Options','Drop Capitals','1')
    SetPrivateProfileString('Program Options','Font Name','')
    SetPrivateProfileString('Window','Full Screen','1')

    I change the options to what I like, try again, and the pause on hit is gone.
    Here's the new .ula
    SetPrivateProfileString('Graphics','Zoom Lock','0')
    SetPrivateProfileString('Graphics','Scale UI','1')
    SetPrivateProfileString('Graphics','Hardware Mouse Cursor','1')
    SetPrivateProfileString('Graphics','vendor','Intel')
    SetPrivateProfileString('Graphics','Use Character Highlights','1')
    SetPrivateProfileString('Graphics','Backend','0')
    SetPrivateProfileString('Graphics','version','OpenGL version 4.2.0 - Build 10.18.10.3355 - build XXXX')
    SetPrivateProfileString('Graphics','renderer','Intel(R) HD Graphics 4600')
    SetPrivateProfileString('Graphics','Greyscale On Pause','1')
    SetPrivateProfileString('Graphics','Use Sprite Outlines','1')
    SetPrivateProfileString('MOVIES','LOGO','1')
    SetPrivateProfileString('MOVIES','INTRO15F','1')
    SetPrivateProfileString('Window','Full Screen','1')
    SetPrivateProfileString('Window','Maximized','0')
    SetPrivateProfileString('Program Options','Volume Movie','90')
    SetPrivateProfileString('Program Options','Active Campaign','0')
    SetPrivateProfileString('Program Options','Tooltips','15')
    SetPrivateProfileString('Program Options','Font Name','')
    SetPrivateProfileString('Program Options','3D Acceleration','1')
    SetPrivateProfileString('Program Options','Volume Voices','100')
    SetPrivateProfileString('Program Options','Disable Cosmetic Attacks','1')
    SetPrivateProfileString('Program Options','Sprite Mirror','0')
    SetPrivateProfileString('Program Options','Translucent Shadows','1')
    SetPrivateProfileString('Program Options','Volume Ambients','40')
    SetPrivateProfileString('Program Options','Path Search Nodes','32000')
    SetPrivateProfileString('Program Options','Drop Capitals','1')
    SetPrivateProfileString('Program Options','Cloud Saves Enabled','0')
    SetPrivateProfileString('Program Options','Maximum Frame Rate','30')
    SetPrivateProfileString('Program Options','Volume Music','40')
    SetPrivateProfileString('Program Options','Volume SFX','80')
    SetPrivateProfileString('Fonts','ja_JP','MEIRYO')
    SetPrivateProfileString('Fonts','uk_UA','PERMIAN')
    SetPrivateProfileString('Fonts','Zoom','112')
    SetPrivateProfileString('Fonts','zh_CN','SIMSUN')
    SetPrivateProfileString('Fonts','ko_KR','NANUM')
    SetPrivateProfileString('Fonts','ru_RU','PTSERIF')
    SetPrivateProfileString('Game Options','Maximum HP','1')
    SetPrivateProfileString('Game Options','Extra Feedback','0')
    SetPrivateProfileString('Game Options','Show Learnable Spells','1')
    SetPrivateProfileString('Game Options','Hotkeys On Tooltips','1')
    SetPrivateProfileString('Game Options','Bored Timeout','3000')
    SetPrivateProfileString('Game Options','Tutorial State','1')
    SetPrivateProfileString('Game Options','Infravision','0')
    SetPrivateProfileString('Game Options','Render Actions','0')
    SetPrivateProfileString('Game Options','Difficulty Level','2')
    SetPrivateProfileString('Game Options','Weather','1')
    SetPrivateProfileString('Game Options','Confirm Dialog','0')
    SetPrivateProfileString('Game Options','Command Sounds Frequency','2')
    SetPrivateProfileString('Game Options','Critical Hit Screen Shake','1')
    SetPrivateProfileString('Game Options','Memory Level','1')
    SetPrivateProfileString('Game Options','Area Effects Density','100')
    SetPrivateProfileString('Game Options','Quick Item Mapping','1')
    SetPrivateProfileString('Game Options','Combat UI','1')
    SetPrivateProfileString('Game Options','Tiles Precache Percent','100')
    SetPrivateProfileString('Game Options','No Difficulty Based XP Bonus','1')
    SetPrivateProfileString('Game Options','Ranged Weapon Switching','1')
    SetPrivateProfileString('Game Options','Render Explored Map','0')
    SetPrivateProfileString('Game Options','Show Message Box Hint','0')
    SetPrivateProfileString('Game Options','Message Box Top','500')
    SetPrivateProfileString('Game Options','Classic Selection Circles','0')
    SetPrivateProfileString('Game Options','Cleric Ranger Spells','1')
    SetPrivateProfileString('Game Options','3E Thief Sneak Attack','0')
    SetPrivateProfileString('Game Options','Selection Sounds Frequency','3')
    SetPrivateProfileString('Game Options','Over Confirm Everything','0')
    SetPrivateProfileString('Game Options','Nightmare Bonus XP','0')
    SetPrivateProfileString('Game Options','Show Character HP','1')
    SetPrivateProfileString('Game Options','GUI Feedback Level','5')
    SetPrivateProfileString('Game Options','Suppress Extra Difficulty Damage','0')
    SetPrivateProfileString('Game Options','All Learn Spell Info','0')
    SetPrivateProfileString('Game Options','Filter Games','1')
    SetPrivateProfileString('Game Options','Auto Pause Center','1')
    SetPrivateProfileString('Game Options','Pausing Map','0')
    SetPrivateProfileString('Game Options','Render Travel Regions','0')
    SetPrivateProfileString('Game Options','Effect Text Level','63')
    SetPrivateProfileString('Game Options','Nightmare Mode','0')
    SetPrivateProfileString('Game Options','Color Circles','1')
    SetPrivateProfileString('Game Options','Environmental Audio','1')
    SetPrivateProfileString('Game Options','Nightmare Bonus Gold','0')
    SetPrivateProfileString('Game Options','Auto Pause State','1153')
    SetPrivateProfileString('Game Options','Mouse Scroll Speed','40')
    SetPrivateProfileString('Game Options','Heal Party on Rest','1')
    SetPrivateProfileString('Game Options','Journal Popups','1')
    SetPrivateProfileString('Game Options','Always Dither','1')
    SetPrivateProfileString('Game Options','Footsteps','1')
    SetPrivateProfileString('Game Options','Attack Sounds','1')
    SetPrivateProfileString('Game Options','Story Mode','0')
    SetPrivateProfileString('Game Options','Duplicate Floating Text','1')
    SetPrivateProfileString('Game Options','Terrain Hugging','0')
    SetPrivateProfileString('Game Options','Subtitles','1')
    SetPrivateProfileString('Game Options','Keyboard Scroll Speed','37')
    SetPrivateProfileString('Game Options','Locator Feedback Level','3')
    SetPrivateProfileString('Game Options','HP Over Head','0')
    SetPrivateProfileString('Multiplayer','Enable Chat Menu','1')
    SetPrivateProfileString('Multiplayer','Disable Banters','1')


    So it seems it was picking up something from my old .ini file (even when it was called baldur.bak) when creating the .ula, that didn't go away no matter if the old .ini file was still there or not. Hopefully I provided enough info to troubleshoot this.
    Post edited by luskan on
  • FranpaFranpa Member Posts: 637
    edited March 2016
    Cerevant said:

    Ok, we'd like you to run the game from the command line to see what the debug output is:

    From the Beamdog Client, right-click and choose "open game location". That will show you which directory the game is in.

    Start / Run / cmd.exe
    Click on the upper left icon, choose properties, Layout, window size height 100
    Then at the propmpt, type "cd" followed by the path you found for the game,
    Type baldur.exe

    Then screen cap / copy what is in the console window

    Shift Right-Click a blank space inside the games installation folder to have an option to open a Command Prompt Window at that location (Simpler than typing the "CD path-name" stuff that can confuse the uninitiated), however the window won't have elevated privileges if UAC is enabled.

    Unsure if this works under Windows XP.
  • JuliusBorisovJuliusBorisov Member, Administrator, Moderator, Developer Posts: 22,714
    Cerevant said:

    Ok, we'd like you to run the game from the command line to see what the debug output is:

    From the Beamdog Client, right-click and choose "open game location". That will show you which directory the game is in.

    Start / Run / cmd.exe
    Click on the upper left icon, choose properties, Layout, window size height 100
    Then at the propmpt, type "cd" followed by the path you found for the game,
    Type baldur.exe

    Then screen cap / copy what is in the console window

    Hmm, this is what I've managed to screenshot:

    image

    image
    Gate70 said:

    uh, quick question. It looks like you have hide common file name extensions enabled and the file is shown as baldur instead of baldur.lua. Is it worth disabling the hide function while investigating.

    Also, after editing your baldur.ini file did you check to see these lines were in the lua file - your statement above says they were recognised in-game but doesn't mention if they were in the file
    'Graphics', 'Greyscale On Pause', '0',
    'Graphics', 'Use Sprite Outlines', '0',
    'Graphics', 'Use Character Highlights', '0',
    'Game Options', 'HP Over Head', '0',

    (I don't have xp so not certain on the above, e.g. does xp wordpad hide the extension)

    Yes, those lines are in the baldur.lua file. I have disabled the hide function but still switching oprions in the game isn't remembered the next time I run the game.
  • argent77argent77 Member Posts: 3,431
    It looks like non-Ascii characters in the path name cannot be resolved correctly by some of the Lua-related functions in the game executable. You can easily trigger it by renaming the "engine_name" entry in the engine.lua from engine_name = "Baldur's Gate II - Enhanced Edition" to engine_name = "Baldur's Gäte II - Enhanced Edition" or similar (using UTF-8 encoding).

    The game appears to be able to load options from an existing baldur.ini or create the home folder if it doesn't exist yet, but it can't access an existing baldur.lua for read operations. (Tested on Windows 7)
    JuliusBorisovhook71lolien
  • JuliusBorisovJuliusBorisov Member, Administrator, Moderator, Developer Posts: 22,714
    argent77 said:

    It looks like non-Ascii characters in the path name cannot be resolved correctly by some of the Lua-related functions in the game executable.

    I was suspecting of something like this. Anyway, changing from engine_name = "Baldur's Gate II - Enhanced Edition" to engine_name = "Baldur's Gäte II - Enhanced Edition" didn't help. Maybe it should be written differently?
  • argent77argent77 Member Posts: 3,431
    Your Documents folder name already contains russian characters. You have to rename it by using Ascii-only characters to make the game work correctly. It can probably be done by tinkering with the registry (or by installing an english version of Windows XP).
  • TressetTresset Member, Moderator Posts: 8,262
    If that is the problem then perhaps it is something the developers can fix...
    JuliusBorisov
  • JuliusBorisovJuliusBorisov Member, Administrator, Moderator, Developer Posts: 22,714
    argent77 said:

    Your Documents folder name already contains russian characters. You have to rename it by using Ascii-only characters to make the game work correctly. It can probably be done by tinkering with the registry (or by installing an english version of Windows XP).

    Hmm, I'm not a programmer. And I don't think that such a thing that the game recognizing changes in game options should need reinstalling Windows.
  • FranpaFranpa Member Posts: 637
    bengoshi said:

    argent77 said:

    It looks like non-Ascii characters in the path name cannot be resolved correctly by some of the Lua-related functions in the game executable.

    I was suspecting of something like this. Anyway, changing from engine_name = "Baldur's Gate II - Enhanced Edition" to engine_name = "Baldur's Gäte II - Enhanced Edition" didn't help. Maybe it should be written differently?
    Wrong way around.

    "Baldur's Gäte II - Enhanced Edition" to engine_name = "Baldur's Gate II - Enhanced Edition"
  • JuliusBorisovJuliusBorisov Member, Administrator, Moderator, Developer Posts: 22,714
    Franpa said:

    bengoshi said:

    argent77 said:

    It looks like non-Ascii characters in the path name cannot be resolved correctly by some of the Lua-related functions in the game executable.

    I was suspecting of something like this. Anyway, changing from engine_name = "Baldur's Gate II - Enhanced Edition" to engine_name = "Baldur's Gäte II - Enhanced Edition" didn't help. Maybe it should be written differently?
    Wrong way around.

    "Baldur's Gäte II - Enhanced Edition" to engine_name = "Baldur's Gate II - Enhanced Edition"
    It was engine_name = "Baldur's Gate II - Enhanced Edition" from the start.
  • argent77argent77 Member Posts: 3,431
    Franpa said:

    bengoshi said:

    argent77 said:

    It looks like non-Ascii characters in the path name cannot be resolved correctly by some of the Lua-related functions in the game executable.

    I was suspecting of something like this. Anyway, changing from engine_name = "Baldur's Gate II - Enhanced Edition" to engine_name = "Baldur's Gäte II - Enhanced Edition" didn't help. Maybe it should be written differently?
    Wrong way around.

    "Baldur's Gäte II - Enhanced Edition" to engine_name = "Baldur's Gate II - Enhanced Edition"
    That's right. "Baldur's Gäte II - Enhanced Edition" can be used trigger this bug on English Windows systems.
Sign In or Register to comment.