| | | Junior 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 |
| | | | 
Supreme 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 ------------------------------------------------------------------------------------------------ |
| | | | Junior 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. |
| | | | 
Supreme 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 ------------------------------------------------------------------------------------------------ |
| | | | Junior 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 |
| | | | Junior 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 |
| | | | 
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
|
| | | | Forum 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 =) |
| | | | 
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 |
| | | | Forum 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 |
| |
|
|