Skip to content
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

Multiple Hooked Processes #170

Closed
MazeEQ opened this issue Sep 17, 2022 · 18 comments
Closed

Multiple Hooked Processes #170

MazeEQ opened this issue Sep 17, 2022 · 18 comments

Comments

@MazeEQ
Copy link

MazeEQ commented Sep 17, 2022

Cannot launch multiple processes with the same DDRAW.

@FunkyFr3sh
Copy link
Owner

Can you give some more details? Are you trying to start the same game multiple times? What game is it?

@MazeEQ
Copy link
Author

MazeEQ commented Sep 17, 2022

It's called NexusTK.

Yes I am attempting to open multiple clients.

@FunkyFr3sh
Copy link
Owner

It's quite common on old games that they're checking the window title and disallow to start another instance if there's already a window with the given title. It's easy to change the title but I'm not sure if this is really something cnc-ddraw should "fix", would probably be something a separate game patch should be doing

@MazeEQ
Copy link
Author

MazeEQ commented Sep 17, 2022

It's entirely due to cnc-draw, as natively I can launch as many as I want, and also with Dxwnd I can launch as many as I want.

It's not a mutex lock on the application, it's a lock in cnc.

@FunkyFr3sh
Copy link
Owner

Ah okay, cool... Will have a look soon.

I run games multiple times with cnc-ddraw just fine (There isn't any lock in cnc-ddraw), but I will debug it and maybe I'll find out what's wrong with it

@FunkyFr3sh
Copy link
Owner

Works fine for me:

image

@MazeEQ
Copy link
Author

MazeEQ commented Sep 17, 2022

Weird, it seems to lock for me. Maybe it's one of my settings on cnc?

@MazeEQ
Copy link
Author

MazeEQ commented Sep 17, 2022

Using an older version, I am still unable to open multiple clients.

It will also close the main folder if it is open.

Using the latest release.

Could you post your .ini?

@FunkyFr3sh
Copy link
Owner

I've been using all default settings, only enabled windowed mode.

Maybe try the debug build and let it generate a debug log? #44

@MazeEQ
Copy link
Author

MazeEQ commented Sep 17, 2022

cnc-ddraw.log

Attached.

Ran it windowed for first open, then 2nd open it never actually opens, cursor just changes to load

@FunkyFr3sh
Copy link
Owner

Nothing too useful in it, but you seem to have compatibility modes enabled. Try to disable them. (It says Windows 7 Ultimate, but the build says windows 11)

@MazeEQ
Copy link
Author

MazeEQ commented Sep 17, 2022

cnc-ddraw.log

Oh oops. was trying different things.

New log here.

If you'd like me to upload my game version somewhere, let me know and I can.

@FunkyFr3sh
Copy link
Owner

The first log was showing a dirty exit (you clicked on the X button), this one here is showing a clean exit.

I guess the logs you uploaded were both from the working instance and not from the second non-working one.

Yeah, maybe upload your game and I'll try with it

@MazeEQ
Copy link
Author

MazeEQ commented Sep 17, 2022

https://drive.google.com/file/d/1x5HZTlUjEDi6hPZ7PglbJBerfyE-994I/view?usp=sharing

This is the client with the debug ddraw

@FunkyFr3sh
Copy link
Owner

image

@FunkyFr3sh
Copy link
Owner

FunkyFr3sh commented Sep 17, 2022

Copy the game exe, modify the "Nexon.SingleInstance" string in one of them, then it'll work

image

@MazeEQ
Copy link
Author

MazeEQ commented Sep 17, 2022

Ahhh, okay so it does force single instance .thanks!

@MazeEQ MazeEQ closed this as completed Sep 17, 2022
@MazeEQ
Copy link
Author

MazeEQ commented Oct 11, 2022 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants