To Lax regarding Auth

A forum for the general posts relating to MacroQuest. *DEPRECATED: This forum is no longer in public use, but remains here for your reading pleasure. Enjoy

Moderator: MacroQuest Developers

Zxeses
a ghoul
a ghoul
Posts: 103
Joined: Tue Jan 07, 2003 4:17 pm

To Lax regarding Auth

Post by Zxeses » Fri Nov 21, 2003 12:18 am

Lax,

I have 4 computers here at my home, I will certainly be compiling for all 4 machines based on your new auth code (great idea btw)

Could you perhaps develop a "keyring", so that I can make 1 binary that works on those 4 machines?

Perhaps you could make the keyring limited in size, so that you can only put 6 computers max into a ring. Then I can take my "authorized" machines keyring, drop it in to save some time (since we aparently will have to compile more often now as well).

-Zx

Lax
We're not worthy!
We're not worthy!
Posts: 3524
Joined: Thu Oct 17, 2002 1:01 pm
Location: ISBoxer
Contact:

Post by Lax » Fri Nov 21, 2003 12:23 am

Feel free to keep a copy of the .h for each machine, though we may opt to change it from time to time so I can't guarantee that'll work forever
Lax Lacks
Master of MQ2 Disaster
Purveyor of premium, EULA-safe MMORPG Multiboxing Software
* Multiboxing with ISBoxer: Quick Start Video
* EQPlayNice, WinEQ 2.0

Zxeses
a ghoul
a ghoul
Posts: 103
Joined: Tue Jan 07, 2003 4:17 pm

Post by Zxeses » Fri Nov 21, 2003 11:40 am

Keeping a copy of the .h isnt the problem though. Sitting there copying four .h files in, recompile, take the results out, copy them to the target machine. Now do that 4 times. That is the problem.

I would like 1 binary that works on all four machines.

bob_the_builder
a hill giant
a hill giant
Posts: 275
Joined: Tue Jul 22, 2003 1:22 pm

Post by bob_the_builder » Fri Nov 21, 2003 12:00 pm

But I only need to create the .h file from the Auth one time, keep a copy of the .h for each of my machines and just compile it for each different machine?

Sounds easy enough... If I only need to make a .h one time...

Now, what if my machines are all identical, same hardware, same OS, same OS key.. do I still need different .h files for each?

Bob

Mckorr
Developer
Developer
Posts: 2326
Joined: Fri Oct 18, 2002 1:16 pm
Location: Texas

Post by Mckorr » Fri Nov 21, 2003 12:05 pm

The .h is machine specific. You need to make one ON each machine, then compile FOR each machine. Compiling can be done on any comp, but the build will be machine specific.

Pain for me too since I'm using 3 comps, but nothing that can't be dealt with.

bob_the_builder
a hill giant
a hill giant
Posts: 275
Joined: Tue Jul 22, 2003 1:22 pm

Post by bob_the_builder » Fri Nov 21, 2003 12:21 pm

And I can keep the .h file run from each machine indefintly or do I need to create a new .h file for each machine everytime a new MQ2 is released for compile?

Correct, a "pain", but worth the effort.

Zxeses
a ghoul
a ghoul
Posts: 103
Joined: Tue Jan 07, 2003 4:17 pm

Post by Zxeses » Fri Nov 21, 2003 12:24 pm

Yes, like Mckorr said, nothing that cant be dealt with, but still annoying, I mean Macroquest is supposed to save us time right?

I suppose I could come up with some sorta batch script, to copy the .h file in and compile, copy out the results, then copy in the next .h but I thought we left batch scripts when we ditched DOS and that a keyring would be more elegant.

I cant see how this would be hard either, you have 1 key file with all the computers you use, and just let your binary work with all those keys...

It would be easy to code, not worth a major debate over, and it will make MQ2 perform a little more like a robust program.
Last edited by Zxeses on Fri Nov 21, 2003 12:28 pm, edited 1 time in total.

Zxeses
a ghoul
a ghoul
Posts: 103
Joined: Tue Jan 07, 2003 4:17 pm

Post by Zxeses » Fri Nov 21, 2003 12:26 pm

Bob, just need to make your .h file 1 time on the machine, you can keep it forever, or until you die whichever comes first.

Mckorr
Developer
Developer
Posts: 2326
Joined: Fri Oct 18, 2002 1:16 pm
Location: Texas

Post by Mckorr » Fri Nov 21, 2003 12:33 pm

Even with a keyring you'd still have to go to each machine to generate the .h file initially.

I'm sure something can be worked out along those lines though, so you would only have to recompile once after a patch, instead of once for every machine. Correction, you'd have to recompile MQ2Main. Lax is quiet today, so I assume he's busy with work. Give him a chance to consider it.

As for batch files, you could probably come up with a macro in VS to handle all that for you if you don't want a console batch file to do it.

User avatar
dont_know_at_all
Developer
Developer
Posts: 5450
Joined: Sun Dec 01, 2002 4:15 am
Location: Florida, USA
Contact:

Post by dont_know_at_all » Fri Nov 21, 2003 12:52 pm

Zxeses wrote:I suppose I could come up with some sorta batch script, to copy the .h file in and compile, copy out the results, then copy in the next .h but I thought we left batch scripts when we ditched DOS and that a keyring would be more elegant.
Ha, ha.

Perl

JavaScript

VB Script

DOS

One of these thing is not like others, one of these things just doesn't belong.

Learn the ways of nmake, Grasshopper, and add scripting to your resume..

Lax
We're not worthy!
We're not worthy!
Posts: 3524
Joined: Thu Oct 17, 2002 1:01 pm
Location: ISBoxer
Contact:

Post by Lax » Fri Nov 21, 2003 1:27 pm

Hmmm... I can make it work the way you want.
Lax Lacks
Master of MQ2 Disaster
Purveyor of premium, EULA-safe MMORPG Multiboxing Software
* Multiboxing with ISBoxer: Quick Start Video
* EQPlayNice, WinEQ 2.0

TI994a
a ghoul
a ghoul
Posts: 87
Joined: Mon Oct 13, 2003 12:25 pm

Another solution

Post by TI994a » Fri Nov 21, 2003 2:08 pm

Rather than playing with nmake and scripting, and still having to keep up with 2 separate compiles, modify the source to accept up to 5 different machine defines in the mq2auth.h file. You'd still have to produce the mq2auth.h file for each machine, and then modify the file in the source directory to include the define for each one according to the dev's specification, but that would be a one time process, which would allow that binary to work on the 5 or less machines who's machine hash's are in the code.

This is particularly attractive, as MQ2 is still being changed, quite often, and is sometimes being compiled several times a day. Not having to recompile for each machine separately because each machine is already defined in the .h file would be a big help :)

- TI

[40oz]
a hill giant
a hill giant
Posts: 156
Joined: Tue Nov 12, 2002 12:14 pm

Post by [40oz] » Fri Nov 21, 2003 2:55 pm

my only complaint is that i don't want to have to install VS.net on 5 more machines.

TI994a
a ghoul
a ghoul
Posts: 87
Joined: Mon Oct 13, 2003 12:25 pm

THANKS LAX!!!

Post by TI994a » Fri Nov 21, 2003 2:57 pm

You don't have to. You didn't have to under the original authorization scheme either. You only had to run the mq2auth.exe on the 2nd machine to generate the .h file, which could be copied back to the compile machine.

Thanks for adding in keyring support Lax!!! Will be huge benefit for those of us with multiple machines!

- TI

Lax
We're not worthy!
We're not worthy!
Posts: 3524
Joined: Thu Oct 17, 2002 1:01 pm
Location: ISBoxer
Contact:

Post by Lax » Fri Nov 21, 2003 2:59 pm

40oz, you dont have to install VS.net on any more machines, read the instructions for compiling for friends / other computers.

Secondly, the system has been updated this morning to address the concerns presented in this thread and elsewhere. Please read the new instructions for compiling for friends / other computers.

The instructions are found here: http://macroquest2.com/phpBB2/viewtopic.php?t=4132
Lax Lacks
Master of MQ2 Disaster
Purveyor of premium, EULA-safe MMORPG Multiboxing Software
* Multiboxing with ISBoxer: Quick Start Video
* EQPlayNice, WinEQ 2.0