Public OMP server

Status
Not open for further replies.

Artlav

Aperiodic traveller
Addon Developer
Beta Tester
Joined
Jan 7, 2008
Messages
5,790
Reaction score
780
Points
203
Location
Earth
Website
orbides.org
Preferred Pronouns
she/her
Me selfishly wondering, will OMP mix well with [ame="http://www.orbithangar.com/searchid.php?ID=4411"]Asteroids! the game[/ame] ?
 

Face

Well-known member
Orbiter Contributor
Addon Developer
Beta Tester
Joined
Mar 18, 2008
Messages
4,404
Reaction score
581
Points
153
Location
Vienna
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.
 

Artlav

Aperiodic traveller
Addon Developer
Beta Tester
Joined
Jan 7, 2008
Messages
5,790
Reaction score
780
Points
203
Location
Earth
Website
orbides.org
Preferred Pronouns
she/her
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?
 

Face

Well-known member
Orbiter Contributor
Addon Developer
Beta Tester
Joined
Mar 18, 2008
Messages
4,404
Reaction score
581
Points
153
Location
Vienna
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.
 

george7378

DON'T PANIC
Addon Developer
Donator
Joined
Jun 26, 2009
Messages
1,045
Reaction score
0
Points
36
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.
 

TSPenguin

The Seeker
Joined
Jan 27, 2008
Messages
4,075
Reaction score
4
Points
63
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.
 

Fizyk

Member
Joined
Jun 20, 2008
Messages
285
Reaction score
1
Points
18
Location
Warsaw
Website
ebvalaim.net
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).
 

Kriss

Snowman
Donator
Joined
Nov 26, 2009
Messages
54
Reaction score
0
Points
0
Location
Bryne
Website
www.krizoek.com
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 :)
 

tblaxland

O-F Administrator
Administrator
Addon Developer
Webmaster
Joined
Jan 1, 2008
Messages
7,320
Reaction score
25
Points
113
Location
Sydney, Australia
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...
 

Bonanza123d

Time Lord from Gallifrey
Joined
Jun 18, 2010
Messages
269
Reaction score
0
Points
0
i am trying to connect for the first time. Not working.
 

Face

Well-known member
Orbiter Contributor
Addon Developer
Beta Tester
Joined
Mar 18, 2008
Messages
4,404
Reaction score
581
Points
153
Location
Vienna

orb

New member
News Reporter
Joined
Oct 30, 2009
Messages
14,020
Reaction score
4
Points
0
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.
Top