PDA

View Full Version : Yet Another Dedicated Co-Op Server App - SturmiCom



WB_Outlaw
09-12-2006, 09:41 PM
First off, thanks to rnzoli for his work, mine is simply building on his knowledge.

For those that don't want to read all the garbage below...

Server Host Name: coop.sturmicom.net
Server IP:209.11.242.114
I don't have TS installed yet but it should be there by this weekend.
This is a 4.05m server, but the app will run on any version as long as the menus and button locations don't change.

A new mission starts at the top of every hour and lasts for 50 minutes. There is then a 10 minute join period and then the next mission starts. This is strictly timed, so if you aren't on time, you have to wait. On the plus side, you know when every mission is going to start.

On the negative side, there are only two crappy missions in place right now but I'm workin' on it.

There is nothing up there now but watch www.sturmicom.net (http://www.sturmicom.net) for more info.



Now, here's the long explanation...

A long time ago I tried to do what rnzoli did with his DSC. I never got past the prototype stages b/c I couldn't get the sendinput API function to send the ESC key the way IL-2 wanted it. The only way I could get the right sequence (WM_KEYDOWN, WM_CHAR, WM_KEYUP) with all the flags right was to do a postmessage directly to the window. Naturally it was ignored but it was my last hope. I gave up after that as the ten hours I had spent already was too much.

After reading that rnzoli's DSC required Java, 10 seconds of googling brought up the Robot class documentation and it was almost easy from there. Another kicker was the mouse. I just happened to be reading another post about dual monitors and rnzoli was there again passing on that setting mouseuse=1 in the [RTS] section of conf.ini will release the mouse from the game window when it is running in windowed mode.

Two 3 line C programs later, one to minimize the game window and one to maximize and put it in the upper left corner of the desktop, and I was up and running. The hardest part of that was finding where to download Spy++ so I could get the name of the game window.

Anywho, SturmiCom is up and running on a 3+ Ghz P4 server with 2 Gig of RAM, runnin' Win2003 Server, plugged into an alleged kick-a$s connection at a data center in LA. There are only two missions on it as of now, one is a rip-off of the stock "Gulf Escort" and another is a carrier based Hellcat strike against an airfield on Okinawa.

I added additional P-40 escorts and the server aircraft (I use the Soviet rocket) to the stock Gulf Escort mission. The server automatically occupies this aircraft so there is no issue with players grabbing it. The server aircraft is sittin' all alone somewhere on the map with no fuel and no waypoints so it ain't going anywhere. If you see it, feel free to blow it up as it won't hurt anything.

The concept is real simple, the Robot class just mimics the user clicking the mouse here and there to start the game and it's currently all timed so it's pretty easy to break. The server only tries to "fly" once so if not all pilots are "readied up" it breaks and has to be reset. The event log has the information I need to determine if the game started when the fly button was clicked and I'm in the process of writing a file watcher thread to monitor if the file size changes after the fly button is clicked (this indicates that the game started).

Mine lacks all of the nice features of rnzoli's in that it does not monitor the chat console so you can't type in any commands. Once again I'm in the process of writing another thread to handle the console and issue alerts and messages. The lack of a console monitor also means that there are no stats.

As I said before, the one thing it has going for it is that it's sitting on a monster connection waiting for lots of pilots to join and load test it. So test away.

--Outlaw.

WB_Outlaw
09-12-2006, 09:41 PM
First off, thanks to rnzoli for his work, mine is simply building on his knowledge.

For those that don't want to read all the garbage below...

Server Host Name: coop.sturmicom.net
Server IP:209.11.242.114
I don't have TS installed yet but it should be there by this weekend.
This is a 4.05m server, but the app will run on any version as long as the menus and button locations don't change.

A new mission starts at the top of every hour and lasts for 50 minutes. There is then a 10 minute join period and then the next mission starts. This is strictly timed, so if you aren't on time, you have to wait. On the plus side, you know when every mission is going to start.

On the negative side, there are only two crappy missions in place right now but I'm workin' on it.

There is nothing up there now but watch www.sturmicom.net (http://www.sturmicom.net) for more info.



Now, here's the long explanation...

A long time ago I tried to do what rnzoli did with his DSC. I never got past the prototype stages b/c I couldn't get the sendinput API function to send the ESC key the way IL-2 wanted it. The only way I could get the right sequence (WM_KEYDOWN, WM_CHAR, WM_KEYUP) with all the flags right was to do a postmessage directly to the window. Naturally it was ignored but it was my last hope. I gave up after that as the ten hours I had spent already was too much.

After reading that rnzoli's DSC required Java, 10 seconds of googling brought up the Robot class documentation and it was almost easy from there. Another kicker was the mouse. I just happened to be reading another post about dual monitors and rnzoli was there again passing on that setting mouseuse=1 in the [RTS] section of conf.ini will release the mouse from the game window when it is running in windowed mode.

Two 3 line C programs later, one to minimize the game window and one to maximize and put it in the upper left corner of the desktop, and I was up and running. The hardest part of that was finding where to download Spy++ so I could get the name of the game window.

Anywho, SturmiCom is up and running on a 3+ Ghz P4 server with 2 Gig of RAM, runnin' Win2003 Server, plugged into an alleged kick-a$s connection at a data center in LA. There are only two missions on it as of now, one is a rip-off of the stock "Gulf Escort" and another is a carrier based Hellcat strike against an airfield on Okinawa.

I added additional P-40 escorts and the server aircraft (I use the Soviet rocket) to the stock Gulf Escort mission. The server automatically occupies this aircraft so there is no issue with players grabbing it. The server aircraft is sittin' all alone somewhere on the map with no fuel and no waypoints so it ain't going anywhere. If you see it, feel free to blow it up as it won't hurt anything.

The concept is real simple, the Robot class just mimics the user clicking the mouse here and there to start the game and it's currently all timed so it's pretty easy to break. The server only tries to "fly" once so if not all pilots are "readied up" it breaks and has to be reset. The event log has the information I need to determine if the game started when the fly button was clicked and I'm in the process of writing a file watcher thread to monitor if the file size changes after the fly button is clicked (this indicates that the game started).

Mine lacks all of the nice features of rnzoli's in that it does not monitor the chat console so you can't type in any commands. Once again I'm in the process of writing another thread to handle the console and issue alerts and messages. The lack of a console monitor also means that there are no stats.

As I said before, the one thing it has going for it is that it's sitting on a monster connection waiting for lots of pilots to join and load test it. So test away.

--Outlaw.

-HH-Quazi
09-13-2006, 02:12 AM
Created a shortcut to the PF forum to help spread the news. Thanks alot m8 for the new server! Bump!!

BBB_Hyperion
09-13-2006, 03:36 AM
Welcome to the Club .)

BBB_Hyperion
09-13-2006, 03:46 AM
BTW when someone already created a .net assembly coop module pt me .

dbillo
09-13-2006, 07:40 AM
You didn't mention what version you are running...apparently it's 4.05m (I just tried to join with 4.04m http://forums.ubi.com/images/smilies/bigtears.gif)

A big thanks to you, though, and to rnzoli, for doing these Coop Servers! I think they are marvellous! http://forums.ubi.com/images/smilies/11.gif

WB_Outlaw
09-13-2006, 09:13 AM
'Doh!!!

The server broke, was restarted, and the next mission will start at 11:00am CDT.

The same mission file name is used for every mission so the system is supposed to delete that mission (actually it deletes all mission files) so that it can copy the new one into the right place. The delete failed b/c the app was waiting for user input on the "confirm file overwrite" message. I'll have to add a flag to my file copy routine to force overwrite. Of course, I will also have to double check my file deletion routine. I'm thinking that the game had not released the mission files when it tried to delete them so the delete failed.

I won't be able to do that today but it did successfully run missions all night long so hopefully it's just a fluke.

--Outlaw.

rnzoli
09-13-2006, 11:35 AM
the more coop servers, the better http://forums.ubi.com/groupee_common/emoticons/icon_smile.gif

i am looking forward to the time when there will be so many servers, that no waiting time will be required - if you can't join an ongoing mission on one server, you may join a mission about to be launched on another one

there is a huge variety of very good missions out there, on mission4today, from previous online wars, from squad nights etc.

moreover making missions is really fun, so hopefully these coop servers can hold not dozens, but literally hundreds of high quality coop missions in the future

online flying will never be quite the same again after that http://forums.ubi.com/groupee_common/emoticons/icon_smile.gif

WB_Outlaw
09-13-2006, 10:23 PM
I installed the teamspeak server a few minutes ago. It's running on the lowest bandwidth codec which may not be a good thing. The last time I installed TS you had to use dixie cups and a lot of string so if anyone has suggestions for codecs, feel free to speak up.

TS is running on the same machine as the server, ie coop.sturmicom.net and there is no password for now.

--Outlaw.

WB_Outlaw
09-13-2006, 10:29 PM
Thanks for the tip on the missions RZ.

I nabbed a couple of coop missions off m4t but they were all too short for my tastes. My target audience is the hardcore sim crowd willing to fly for 15 or so minutes to and from the target. As I perfect the server I plan to turn off enemy icons and leave friendly icons at 100 yards or so. I may also increase the missions to over an hour but that depends on whether or not I can find a crowd that wants that.

I also hope to be able to turn off the map icons and still have some pretty long flights. This will require smart mission building, detailed briefings, and a pretty hardcore crowd so I'm not sure if that's possible.

Although I can, and will, go through all the missions on m4t, can anyone suggest some of the longer ones so I don't have to look through each one? Also, I'd like at least 12-32 playable aircraft as the whole point of this exercise is to determine if it's possible to run a large co-op server.

Any help would be appreciated.

--Outlaw.

Aviar
09-13-2006, 10:53 PM
I have a longish 1943 New Guinea coop. You are welcome to use it.

If it meets your needs, I can always make some changes that you think are necessary.

Let me know.

Aviar