question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[BUG] Issue with config.ini and update bug

See original GitHub issue

Newly install or upgrade will give wrong config.ini.

P/s: For first time after install, the launcher will working correctly even with wrong config.ini. But after restart it, the launcher won’t work as expected.

  • Normal config.ini (This is a backup file from old version):
[launcher]
channel=1
cps=
game_version=5.8.0
sub_channel=1
sdk_version=
game_install_path=D:\GAME\CollapseFolder\Hi3SEA
game_start_name=BH3.exe
is_first_exit=False
exit_type=2

  • Wrong config.ini (Can be obtain by newly install or update game via normal path or delta patch):
[General]
channel=1
cps=
game_version=6.0.0
sub_channel=1
sdk_version=

Update issue:

I get this issue after apply the fix config.ini, in this case is above one. When start launcher, it recognizes the game but requires me to update the game once again. Do the update and the first issue (above one) happens

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:12 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
KorewaLidesucommented, Sep 25, 2022

Thanks. Seem like working correctly now. I will check out if there is anything else to do. Closed by Li - Cause: Issue resolve

0reactions
neon-nyancommented, Sep 25, 2022

Hi there,

Just give you an update. Seems like I’m being able to reproduce your issue.

image

The issue occurred while the game_install_path in Launcher Scope’s config.ini is empty.

image

I will make a mechanism to relocate your game if the config is missing in the next version.

So, here’s a plan for you.

  1. Make a new folder named Games in D:\GAME\CollapseLauncher\Hi3SEA path.
  2. Move all the files in this D:\GAME\CollapseLauncher\Hi3SEA path to a new created D:\GAME\CollapseLauncher\Hi3SEA\Games folder.
  3. Make a new config.ini file in this D:\GAME\CollapseLauncher\Hi3SEA path.
  4. Write all the section for config.ini file in this D:\GAME\CollapseLauncher\Hi3SEA path with this one:
[launcher]
cps=
channel=1
sub_channel=1
game_install_path=D:/GAME/CollapseFolder/Hi3SEA/Games
game_start_name=BH3.exe
is_first_exit=False
exit_type=2

  1. Save the file and re-run your launcher.
Read more comments on GitHub >

github_iconTop Results From Across the Web

[Bug] Saving a Config (INI) File Should Not Replace Original File
When saving a config (INI) file, the original file is "replaced" (deleted and then a new file created in its place, as opposed...
Read more >
BUG: astro add could not update config file safely #3071
I am willing to submit a pull request for this issue.
Read more >
[SOLVED] "Error saving config.ini" upon choosing 'Create a ...
This error is shown when the game can't write to the config.ini file. Normally it is allowed to write to your documents folder...
Read more >
[Bug?] Config files not always updating
Hi, I edited the Default ini files present inside my project folder, it appears that Rocket read them randomly.
Read more >
Problem with auto update, get fatal error while ...
The error is thrown when I try to read a Configuration file in the Updater class and line config = Configuration.read(in);. Can someone...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found