Introducing: Guild Wars Multi-Launch

9 pages Page 7
K
Killamus
Guest
#121
Quote:
Originally Posted by imkey View Post
The way the system is readied for another guild wars instance is the "kill mutex" button which calls a function that iterates through the nt process list looking at all active guild wars instances. For each instance it finds, it attempts to find/kill the mutex handle which would prevent more gw instances from opening.

Putting the mutex killing functionality in a timer would eat up unnecessary cpu cycles. That mutex does not just get created randomly by guild wars, it only happens during the initialization function when guild wars starts. One just needs to make sure to hit the button once after a new gw instance is created to be ready to launch another.

I would have liked better integration with Texmod but since that is a closed source product and I am not aware of it accepting command arguments, you are correct in assuming that it basically just launches it. It was mainly added as a convenience to the user.

On another note, check out HandleManager.cs. I spent the majority my coding time on that file. Partly due to the fact that it P/invokes into Nt kernel api functions which are not well documented by Microsoft. Had to look at several sources to get the required constants and applicable functions. It contains the core mutex killing code which makes this application possible. All the other code is really just utility and gui.
Wow, that's it? That's... Stupidly simple, lol. I mean, you look at other programs that do this (Matty's, GWx2), which modify the registry and such, and this is such an genius idea. I'm impressed.
I'm also impressed at the neat code, an art form I can't seem to master...
MisterB
MisterB
Furnace Stoker
#122
Thanks for writing this program. This was very easy to setup and use.
i
imkey
Frost Gate Guardian
#123
Well.. it also does set the registry to the right path before launch. This is required since gw.exe uses the registry value to locate gw.dat and gw.exe.

If it is not set to the right value, gw would not be using the right data file for use/updates.

Quote:
Originally Posted by Killamus View Post
Wow, that's it? That's... Stupidly simple, lol. I mean, you look at other programs that do this (Matty's, GWx2), which modify the registry and such, and this is such an genius idea. I'm impressed.
I'm also impressed at the neat code, an art form I can't seem to master...
Snograt
Snograt
rattus rattus
#124
Problem.

I've been using this since you released it with little to no problems, yet today it's just falling down with "Error launching: F:\Games\Guild Wars\Gw.exe!"

Nothing has changed that I know of - I've been using the generated shortcuts to launch it which have never failed until now.
i
imkey
Frost Gate Guardian
#125
That is strange. I do not have access to my build machine at the moment to change some source in Form1.cs to send you a debug exe to get more info on the error.

Will have access tomorrow night.
Snograt
Snograt
rattus rattus
#126
Don't worry, imkey - logged on this morning and everything was fine again.

Maybe a Windows update temporarily threw a spanner in the .net framework or something.
Trollstyle
Trollstyle
Ascalonian Squire
#127
Hi Could anyone help me, I cant log in with two accounts anymore. The first one works but the second one I run using the multi-launch is not able to connet (error058).
i
imkey
Frost Gate Guardian
#128
error 58 is a networking configuration/firewall issue.
Make sure that both copies are allowed to pass thru the firewall.

If you can connect on one but not the other, it is most likely a firewall issue. The firewall software may have exceptions setup to allow one of them to connect but no the other. Just add the other to exceptions list.

Quote:
Originally Posted by Trollstyle View Post
Hi Could anyone help me, I cant log in with two accounts anymore. The first one works but the second one I run using the multi-launch is not able to connet (error058).
K
Killamus
Guest
#129
Quote:
Originally Posted by Trollstyle View Post
Hi Could anyone help me, I cant log in with two accounts anymore. The first one works but the second one I run using the multi-launch is not able to connet (error058).
Or, even more likey, GW is having server problems. That's the error code when their servers crash/reset too, despite not being mentioned anywhere.
s
spamslayer
Ascalonian Squire
#130
Thanks for this; so glad it is open source too, I feel safe
Awex Mafyews
Awex Mafyews
Krytan Explorer
#131
Hey I'm probably missing something simple here but I've made 2 copies of guild wars (from my original one) tried to launch then with GWML and 2 loading boxes appear and then only one opens properly. No error screen for other box it just disappears. I've tried GWx2 before and I've seen on this thread something about replacing exe. file but do you have to replace the original versions exe file too? Also tried running in administrator to no joy. I have windows vista 32 bit as well. Any help on the matter would very welcome

Edit: Failed to mention, I tried GWx2 before finding this and that didn't work either so don't know whether that's related in any way
Awex Mafyews
Awex Mafyews
Krytan Explorer
#132
Ok seems the problem was the exe file, just reinstalled my copy off of the guild wars site, started up GWML and it worked straight away perfectly Thanks a lot for the program.
Star Gazer
Star Gazer
Wilds Pathfinder
#133
excellent program. Thank you!

4 accounts on CoF run......oh the bliss!

also got 3 accounts ran through EotN with my primary. excellent!
c
coil
Krytan Explorer
#134
this thing is awesome, thank you for this.
N
Nida
Ascalonian Squire
#135
tried 4 or 5 times to install /run this but it doesnt appear to work. I extracted the files and installed it, but I get an error every time I try and launch and it shuts down.

oh yeah.. running on XP home..
K
Killamus
Guest
#136
Quote:
Originally Posted by Nida View Post
tried 4 or 5 times to install /run this but it doesnt appear to work. I extracted the files and installed it, but I get an error every time I try and launch and it shuts down.
Do you have the .net framework installed? That looks very similar to the error I get when trying to run my code at school (They're far too "Busy" *cough*lazy*cough* to install it properly)
N
Nida
Ascalonian Squire
#137
Quote:
Originally Posted by Killamus View Post
Do you have the .net framework installed? That looks very similar to the error I get when trying to run my code at school (They're far too "Busy" *cough*lazy*cough* to install it properly)
um.. fresh computer install, had to format a few days ago, but I think I do... how would I check/know?
K
Killamus
Guest
#138
Control Panel -> Add/Remove programs, and look about 1/3rd of the way down. You should see "Microsoft .NET Framework X.X", if you don't, you don't have it installed. If you do have it, post the highest number you see there. You'll see a few, probably.
stretchs
stretchs
Jungle Guide
#139
Just installed this on one of my pc's so I can GM for my new pre character, worked like a champ with no issues in Vista.

Thanks for the great software.
f
firefox74
Ascalonian Squire
#140
Is this Legal to use ?

Thinking of Anet's Emula



Think it's a awesome program and have so many possibilities all rdy know several things I can use this for