Smartlaunch Forum
Home      Members   Calendar   Who's On
Welcome Guest ( Login | Register )
      



Call Of Duty 2 License IssueExpand / Collapse
Author
Message
Posted 21-02-2006 19:57:19
Junior Member

Junior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior Member

Group: Forum Members
Last Login: 29-09-2006 22:00:40
Posts: 20, Visits: 44
Anyone have a way of getting the max license feature to work ?  Since this game uses 2 exe's, if you launch the game from one exe it's fine, but if the user chooses to go to the "other" mode via the game menu, SL looses track of the game "thinking it's closed" because that exe is no longer in use.....

Anyone have any solutions ?

Thanks,
Art

Post #4494
Posted 21-02-2006 22:07:12


Supreme Being

Supreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme Being

Group: Administrators
Last Login: Yesterday @ 21:13:52
Posts: 1.382, Visits: 11.998
There is no active solution for that yet . But it would be possible to poll the processes and close them so the user would need to go to menu and start the game from there . Say somebody starts Cod2_sp.exe and then switches to Cod2_mp.exe a message could popup informing user that he must start the game from the menu and closes the cod2_mp.exe.

------------------------------------------------------------------------------------------------
Gizmo Application Management Platform
------------------------------------------------------------------------------------------------
Web / Signup:
http://www.gizmopowered.net
Support: http://support.gizmopowered.net
Forum : http://forum.gizmopowered.net
FaceBook - Blog: http://blog.gizmopowered.net
------------------------------------------------------------------------------------------------
Post #4499
Posted 22-02-2006 03:14:00
Junior Member

Junior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior Member

Group: Forum Members
Last Login: 29-09-2006 22:00:40
Posts: 20, Visits: 44
Indeed.  I've thought of that, but it would require a seperate app launched at the same time one of the exe's are launched, say from a bat file, to monitor when and if the other exe is started right after the other closes.  Unless ofcourse something gets built into smartlaunch to monitor this.
Post #4511
Posted 22-02-2006 08:57:47


Supreme Being

Supreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme Being

Group: Administrators
Last Login: Yesterday @ 21:13:52
Posts: 1.382, Visits: 11.998
I can talk with devs about this , its also possible to have one launcher.exe that will either launch cod2_mp or cod2_sp i . I can write one as soon as i can find time .

------------------------------------------------------------------------------------------------
Gizmo Application Management Platform
------------------------------------------------------------------------------------------------
Web / Signup:
http://www.gizmopowered.net
Support: http://support.gizmopowered.net
Forum : http://forum.gizmopowered.net
FaceBook - Blog: http://blog.gizmopowered.net
------------------------------------------------------------------------------------------------
Post #4526
Posted 22-02-2006 16:20:41
Junior Member

Junior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior Member

Group: Forum Members
Last Login: 29-09-2006 22:00:40
Posts: 20, Visits: 44
Yea it doesn't have to be built into smartlaunch.  Just a seperate exe to launch sp or mp and monitor it so the other is not launched from in game.  Hmm I just thought of something.  Easy solution.

For instance......

Have 2 links on menu, one to launch sp, and one to launch MP.  If you launch SP, right before the game is launched, the bat file can RENAME MP so that when you try to launch it from in game, it will just close out back to smartlaunch, allowing the bat file to continue it's operation after the exe it has launched closes and have another line to rename the file back to it's original name.  Ofcourse if the game crashes, this will leave your EXE renamed, thus won't launch from menu anymore.  So the very first thing in the COD2 bat files should be to rename files back to their original state, then rename them again later in the batch

Example.....

@echo off
D:
cd "D:\games\Activision\Call of Duty 2"
rename CoD2SP_s.bak CoD2SP_s.exe
rename CoD2MP_s.bak CoD2MP_s.exe
set RAR=-as -dh -ep3 -ilog -inul -m5 -ms -r -s

set ARCHIVE=cod2

if exist U:\cfg\%ARCHIVE%.rar rar.exe x -o+ -y U:\cfg\%ARCHIVE%.rar
set START_DIR=D:\games\Activision\Call of Duty 2

set PROGRAM=D:\games\Activision\Call of Duty 2\CoD2SP_s.exe
set PARAMETERS=
CLS
C:
cd "C:\Windows\System32"
sd4hide -hide
D:
cd "D:\games\Activision\Call of Duty 2"
rename CoD2MP_s.exe CoD2MP_s.bak
start "cod2" /d"%START_DIR%" /wait "%PROGRAM%" %PARAMETERS%
C:
cd "C:\Windows\System32"
sd4hide -restore
CLS
set FILES="D:\games\Activision\Call of Duty 2\main\players\*"
rar.exe u U:\cfg\%ARCHIVE%.rar %FILES%
CLS
Exit

Post #4539
Posted 22-02-2006 16:37:07
Junior Member

Junior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior Member

Group: Forum Members
Last Login: 29-09-2006 22:00:40
Posts: 20, Visits: 44
I just tested this and it worked perfect, only thing is it's a little ugly when you try to switch game modes.  It tries to launch then gives an error in game, and doesn't exit out.  So it's a little ugly, but will solve the problem.  Users will then have to manually exit out of the game to switch modes.  I expected it to crash back to smartlaunch, but I guess they thought of everything except hiding the cdkeys

Art
Post #4544
Posted 23-02-2006 09:57:25


Smartlaunch Support

Smartlaunch Support

Group: Forum Members
Last Login: 12-08-2008 05:24:57
Posts: 459, Visits: 368
Here is a program I just wrote for this purpose, but it is general enough to work for any such situation where you'd want to launch an application with Smartlaunch that could result in various processes.

Usage:

LaunchAndWait.exe Program.exe [process1] [process2] [process3] ...

where Program.exe is the program to launch and each process is a process name that LaunchAndWait won't exit until it doesn't detect running for 5 seconds.

Example setup:

1) Place LaunchAndWait.exe in the CoD2 directory

In Smartlaunch server application profile for Call of Duty 2 - Multiplayer:
2) Set executable path: C:\Program Files\Activision\Call of Duty 2\LaunchAndWait.exe
3) Set arguments: cod2mp_s.exe cod2mp_s cod2sp_s
4) Set working directory: C:\Program Files\Activision\Call of Duty 2

Notice the process names are the exe's filenames without the .exe extension.

Now when the client launches CoD2 - Multiplayer it will actually be launching LaunchAndWait.exe, which will in turn launch cod2mp_s.exe but stay open as long as cod2mp_s or cod2sp_s is running (with a 5 second hard-coded tolerance). Smartlaunch will think Call of Duty is running for as long as LaunchAndWait doesn't exit.

Chris Alfano

US Support



Email: Chris@smartlaunch.net

Phone: +1 (267) 918-6166

  Post Attachments 
LaunchAndWait.zip (689 views, 1,41 KB)
Post #4565
Posted 27-02-2006 22:25:43
Forum Member

Forum MemberForum MemberForum MemberForum MemberForum MemberForum MemberForum MemberForum Member

Group: Forum Members
Last Login: 29-01-2007 17:52:18
Posts: 33, Visits: 139
Sorry to highhack your thread, but i also have some cod2 issues.
The game _sometimes_ gives the error, "Invalid key" (or something)
The strange thing is that it only does that sometimes =)
Post #4660
Posted 28-02-2006 12:05:56


Smartlaunch Support

Smartlaunch Support

Group: Forum Members
Last Login: 12-08-2008 05:24:57
Posts: 459, Visits: 368
That might indicate that one of your keys wasn't entered properly or the license data got bugged somehow. When you get the "Invalid key" message, take a look in the adminitrator log to see which license was issued to the machine. Determine if it is the same license failing every time or all of them at random.

Chris Alfano

US Support



Email: Chris@smartlaunch.net

Phone: +1 (267) 918-6166
Post #4674
Posted 28-02-2006 13:09:41
Forum Member

Forum MemberForum MemberForum MemberForum MemberForum MemberForum MemberForum MemberForum Member

Group: Forum Members
Last Login: 29-01-2007 17:52:18
Posts: 33, Visits: 139
haha, today they are all working =)

well, as long as they work =)

// Hansen

Post #4682
« Prev Topic | Next Topic »


Reading This TopicExpand / Collapse
Active Users: 0 (0 guests, 0 members, 0 anonymous members)
No members currently viewing this topic.
Forum Moderators: Adam [SL], Ralf [SL], infidel [GIZMO], Thomas [SL], Daniel [SL]

PermissionsExpand / Collapse

All times are GMT +1:00, Time now is 12:31

Powered by InstantForum.NET v4.1.4 © 2012
Execution: 0,109. 8 queries. Compression Enabled.