Public OMP server

Status
Not open for further replies.
Me selfishly wondering, will OMP mix well with [ame="http://www.orbithangar.com/searchid.php?ID=4411"]Asteroids! the game[/ame] ?
 
Me selfishly wondering, will OMP mix well with Asteroids! the game ?

I didn't try it yet, but I guess not. Asteroids are created on the fly, aren't they?
OMP client will not automatically forward on-the-fly created objects. It may crash with on-the-fly deleted objects, too.
 
Asteroids are created on the fly, aren't they?
OMP client will not automatically forward on-the-fly created objects. It may crash with on-the-fly deleted objects, too.
Yes, they are. Can it be helped? Creating/destroying the vessels is a common trick in Orbiter.
In the least, can one client be designated game master, and control the creating/deletion of whatever vessels needed?

It might not only be enemy generation, what about checkpoints, random events, etc?
 
Yes, they are. Can it be helped? Creating/destroying the vessels is a common trick in Orbiter.
In the least, can one client be designated game master, and control the creating/deletion of whatever vessels needed?

It might not only be enemy generation, what about checkpoints, random events, etc?

I know about the creating/destroying thing... but there is simply no detection for added (or deleted) vessels in OMP yet. You can "register" new objects by means of the %list and %add command, but that is user initiated, not automated.

It should not be a huge problem to make an API ala OS-SDK for vessel creation and deletion, though. E.g. ompRegisterVessel(OBJHANDLE) and ompUnregisterVessel(OBJHANDLE)...

A "game-master" mode would be needed anyway, otherwise all Asteroids modules will create objects - overcrowding the space.
 
Hi - how do you use the Hamachi client? I have downloaded and installed it, joined the server, and joined using the hairpining option with OMP, but I still get the timewarp problem.
 
You have to join the group in hamachi and then connect to the hamachi IP Kriss posted earlier (The one starting with 5).
However, any personal firewall you might have can still interfere with properly sending and recieving UDP packets.
 
And don't forget to enter the Hamachi address of the server, that is the one starting with 5.xx.xx.xx (not 81.xx.xx.xx).
 
A code in development

As I'm focusing on other things, perhaps the next server admin would continue the project with coding a helpful tool:

PHP:
<?php
$host = '127.0.0.1';
$port = 1515;
$trigger1 = 1;
$omppass = testpass;
$now =  gmdate("F j, Y, g:i a");
$omplogfile = 'omplog.txt';
$omplogging = fopen($omplogfile, 'r+');
$newline = "\r\n";

if(!$omp = pfsockopen($host, $port, $errno, $error_str)) {
    $omp = pfsockopen($host, $port, &$err_no, &$err_msg, 10)
    or die ("Could not open a connection to host <i>$host</i> on port <i>$port</i>.
        The error message returned was '<i>$err_msg</i>'.");
} else {
    fputs($omp, "assign admin $omppass\r");
    fputs($omp, "dump connections\r");
    echo "<b>Users Online $now:</b> <p>";
    while(!feof($omp)) {
        $clients = fgets($omp, 1024);
        if (preg_match("/---------/i", $clients) && $trigger2)  {
            $omplogging = fopen($omplogfile, 'r+');
            echo "<p>Logged idles at datetime:";
            while(!feof($omplogging)) {
                $logline = fgets($omplogging);
                echo "<br> $logline";
            }
            echo "</p>";
            fclose($omplogging);
            break;
        }
        if ($trigger2) 
        {
            preg_match("/\(.*\)/",$clients,$idleclient);
            $idleclient[0] = preg_replace("/\(|\)/", "", $idleclient[0]);
            echo " $idleclient[0] <br>";
            fwrite($omplogging, "$idleclient[0] $now");
            fputs($omp, "leave $idleclient[0] $omppass $newline \r\n");
        }
        if (preg_match("/Idle Users/i", $clients)) 
        {
            $trigger1 = 1;
            $trigger2 = 1;
            echo "</p>Idling Users:<br>";
        }
        if (!$trigger1) {
            if (preg_match("/TCP/i", $clients))  {
                echo "$clients";
            }
            elseif (preg_match("/ + /i", $clients)) 
            {
                echo "/ $clients <br>";
            }
        }
        if (preg_match("/Active users/i", $clients)) 
        {
            echo "Acrive Users: <br>";
            unset($trigger1);
        }
    }
}
?>


---------- Post added at 22:49 ---------- Previous post was at 22:30 ----------

I didn't try it yet, but I guess not. Asteroids are created on the fly, aren't they?
OMP client will not automatically forward on-the-fly created objects. It may crash with on-the-fly deleted objects, too.

I have noticed that sometimes OMP doesn't really crash, it only freeze for a moment. Especially with DGIV. It's just to wait.

Would it be possible to use a clients ship as references in the future for the clients extra added objects? It's just an idea :)
 
As I'm focusing on other things, perhaps the next server admin would continue the project with coding a helpful tool:
You forgot the most important line: the one starting with "//" stating what the goal of the project is...
 
i am trying to connect for the first time. Not working.
 
O-F Staff Note: Thread locked.

This OMP Server is down, and there are no other public servers active at this time.

If someone sets one up, they are free to start a new thread on it.
 
Status
Not open for further replies.
Back
Top