-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
launch problem #2
Comments
Update: If I'm right it, see this line " If I understand this right, the your launcher tries to get a value from: HKEY_LOCAL_MACHINE\SOFTWARE\NCWest\NCLauncher So I tried to find this folder in regedit and didn't find it, could this be the problem why the launcher does not want to start? |
BNSBoost uses the registry to find your NCLauncher location, so if you have a non-typical install (i.e., copied your game directories to/from another drive or something), it won't be able to find it. To solve this, I'd propose having fallback methods like:
I think that should handle most scenarios gracefully. I would submit a PR to do this but unfortunately I'm working something else right now. Hope this helps. Edit: Just reviewed the new commits with the UI. You should be able to manually select the path to NCLauncherR.exe? Some of what I said is still applicable though, for automatic detection of the location. |
I created ncwest and nclauncher directories in registry with my installpath data and problem was solved. |
Whew, I didn't expect so many people to be using the launcher from a non-default location... this is the fifth report of this issue 😁 @Svarogue is correct in that the easiest way to permanently fix this at the moment is to fix up your registry. @meguminrn you should be able to specify the launch path in the UI, if you don't want to edit your registry. Better logging is definitely on the TODO, as is, of course, setting persistence. Could you also check out if running Failing that, the rest of @zeffy's methods would likely eliminate most of these issues. |
Regarding ed9e861 you may want to use Also you could try checking So could be something like this: private void Form_Load(object sender, EventArgs e)
{
string defaultLauncherPath = "unknown, please specify NCLauncherR.exe path";
string[] searchDirs = {
(string) Registry.GetValue("HKEY_LOCAL_MACHINE\\SOFTWARE\\NCWest\\NCLauncher", "BaseDir", null),
Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.ProgramFilesX86), "NCWest\\NCLauncher"),
AppDomain.CurrentDomain.BaseDirectory,
Environment.CurrentDirectory
};
foreach(string dir in searchDirs)
{
string path = Path.Combine(dir, "NCLauncherR.exe");
if (File.Exists(path))
{
defaultLauncherPath = path;
break;
}
}
LauncherPathTextBox.Text = defaultLauncherPath;
} |
Hi Xyene, Thanks to the new commit the launcher starts and works again, only problem is the dps meter, do I need to make another folder like this: https://imgur.com/a/xDygm and them put the xml inside it? xD. because I don't get it and I cant see in your code where its trying to read the xml from this folder. -megumin |
@meguminrn BNSBoost doesn't do anything directly with the .dat files, it just redirects the official launcher to check inside the So you make a copy of the original (unmodified) .dat files in the |
Ohhh. I understand it now thanks for explaining! |
update, for some reason when I start bnsboost launch, the game starts but it goes into Repairing modes? From what I understand is I can put my modified XML into the data folder and put the original XML file into unpatched folder which I created in Data folder, it should work then? |
Yes, that is correct. Although I haven't used the latest build yet, so I can't guarantee that it works as described. There was a bug that was present at the time I forked my steam_api build where the unpatched file path it looks for got built out of order (it was something like |
@zeffy thanks, I'll add those additional search path sometime soon. @meguminrn here's an image I posted in the bnsdojo thread that may confirm your understanding: If you've done that and enabled the DPS meter with e.g. BNSBuddy and it still enters repairing mode, could you please upload your |
hi, Can you share the topic link of bnsdojo? |
@meguminrn I believe I've fixed the issue causing your client to start repairing in a new release, could you check it out? |
Only just updated to version 1.2 from 1.0.1 and clicking launch does not work for me, I tried with 1.1 but it still would not, I have the launcher in the default location |
I have the same problem as DarkhShadow...version 1.2 is still not working , i have everything in defaut directory (launcher and BNS) |
Same is happening here, I'm looking into this. |
I think I may have fixed this, but I'd like to wait for @Xyene to review my changes before a new release is pushed. |
@DarkhShadow @Kayo99 @Oberleutnant I just posted a new release, could you try it and let me know if it fixes the issue? https://github.com/Xyene/BNSBoost/releases |
@zeffy After clicking Launch:
|
Is Injector.dll in the same directory as BNSBoost.exe? That shouldn't be happening. |
Of course it is. |
Yes, I am getting the same thing. |
I think that exception was probably happening before, then (hence why the launcher never opened). Before the changes I made, any exceptions that happened when invoking Launch() were suppressed because it was ran in a separate thread. |
Out of curiosity, how are you running BNSBoost? Like directly from its own directory, with a shortcut, etc? |
@xKratosx @Oberleutnant I'm having issues getting the dlls to compile/work correctly in Release mode, so @Xyene will need to figure this out when he gets back. Sorry you guys are having trouble getting it working. |
@zeffy no worries, thanks for trying! |
@xKratosx Maybe if you downlaod https://www.visualstudio.com/vs/whatsnew/ it will work like @zeffy explained. |
It may, but I don't think downloading a huge IDE like Visual Studio is a viable solution to this issue for most people! 😛 |
Yeah, roughly 10+GB, i'll have to pass and hope for a release mode zip. |
Yea i have same errors as @xKratosx |
I try to compile it but meh doesn't work: http://prntscr.com/f1zqps @zeffy You have the same problem or is it just me? |
@meguminrn Yes that happened to me, but I fixed that by changing the Windows SDK Version version to 10.0.14393.0 because I have VS 2017. I think it was on 8.1 because Xyene has VS 2015. I also had to change the linker additional dependencies to include Shlwapi.lib, but even then when I got it to compile under Release mode it still made NC Launcher crash when I pressed launch. |
Wait... not everybody has debug libs installed? /shy Sorry about that @xKratosx @Kayo99 @Oberleutnant and anyone else affected by this issue, I've updated the release to include a release build that should not be linking any debug libs. Make sure to download the I've also set up AppVeyor to build artifacts on every commit. |
@Xyene Working as intended the RELEASE archive v1.2.1 , Thank you |
Works great! Thanks @Xyene |
Working for me as well, but will there be an option to re-add the unattended option? (I use a sound pack) |
@Xyene still got the same problem here on -RELEASE version, when i click launch a debug message appears |
@DarkhShadow What does -UNATTENDED do for sound packs? Does it disable the popup messages when you open BnS or something? Edit: Well, I'll be damned, it does! I'll add it back. |
I added it as a default flag, so no check box is needed to enable it. Perhaps at some point we could make it optional, but I'm not really sure why that would be necessary tbh. |
@Gourxis could you provide us with the text of the message? Additionally, it would be helpful if you could paste the contents of your @DarkhShadow you can pick up a new binary with @zeffy's change from AppVeyor. |
@Xyene ************** Exception Text ************** em System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) |
@Xyene Working now, thanks. |
Hey there. Everything seems to be working well except for the BnS client is still repairing my edited xml files (want to enable DPS meter). I did the unpatched folder (with the UNedited) and replaced all of the original ones with the edited ones. Any ideas? |
You need to create a folder called: unpatched like this: http://prntscr.com/f27h0s You need to put the original config.dat and xml.dat in this folder, after you did this, |
@iluvlamastaf if you've followed @meguminrn's advice and it continues to not work, could you provide me with the |
after pressing "launch" nothing happens, the ncsoft launcher does not seem to start, it does start without using bnsboost. Maybe its better to intergrate Log4net for better error handling.
The text was updated successfully, but these errors were encountered: