Jump to content

AWACS-like script; response from Dreyou


Recommended Posts

Hi peeps.

 

On the website http://lockon.but.ru you can in realtime see all types of informations regarding AWACS-like functionality for lo-mac 1.1. I have had contact with the developer of the scripts. Her is reply to me.

 

groet,

Michiel

 

 

-----------------------

I can give my code to anybody who want to dig into my raw source :-). BUT:

1. Code is not complete and finished at this moment

2. Code witten for my specific environment, i.e. -

this little project divide into 3 part:

a) simple export.lua which only push data to collect server;

b) perl daemon which collect and store raw information from export.lua and mp_log into database

(working on different computer)

c) php web site (php+xml+xsl) which get data from database and calculate/dispalay map and stats.

 

I can give you any part of my code, but bit later (need some time for polish and testing).

 

With best regards

 

Andrey Gordeev aka Dreyou.

met vriendelijke groet,

Михель

 

"умный, спортсмен, комсомолетс"

 

[sIGPIC]159th_pappavis.jpg[/sIGPIC]

 

[TABLE]SPECS: i9-9900K 32gigs RAM, Geforce 2070RTX, Creative XFi Fata1ity, TIR5, Valve Index & HP Reverb, HOTAS Warthog, Logitech G933 Headset, 10Tb storage.[/TABLE]

Link to comment
Share on other sites

Hi peeps.

 

On the website http://lockon.but.ru you can in realtime see all types of informations regarding AWACS-like functionality for lo-mac 1.1. I have had

 

 

UPDATE:

I have gladly received the code from dreyou. SPAZIBA!! :)

 

You can get it from my website at http://pappavis.netwerke.biz/spelen/lomac/download or try http://www.lomacfiles.com/modules.php?name=Downloads&d_op=viewdownloaddetails&cid=138&lid=269&ttitle=lo-mac_export_multiplayer#dldetails.

met vriendelijke groet,

Михель

 

"умный, спортсмен, комсомолетс"

 

[sIGPIC]159th_pappavis.jpg[/sIGPIC]

 

[TABLE]SPECS: i9-9900K 32gigs RAM, Geforce 2070RTX, Creative XFi Fata1ity, TIR5, Valve Index & HP Reverb, HOTAS Warthog, Logitech G933 Headset, 10Tb storage.[/TABLE]

Link to comment
Share on other sites

I was so far unable to get this script operational, sohere is more info from dreyou about his code. Included a transcript of e-mails i have sent/received from dreyou.

 

 

On Thu, 21 Apr 2005 00:22:44 +0200

"Michiel Erasmus" <pappavis@hotmail.com> wrote:

> Privet Andrey,

>

> Thanx for sending me your code. Now, a few questions because I am

>unable to get it working.

>

> This is what I have done on windowsXP machine.

> 1. Installed apache2triad (apache, perl, php, postgresSQL) all-in-one

>package http://apache2triad.net/.

> 2. Created in postgresSQL a database named lockon, created the tables

>needed using the SQL-script.

> 3. Open a DOS window then and changed directory to start

>"l_server.pl".

> 4. Then I get errors:

> * missing Date-Handler perl-module

> * Something still wrong because forks is not found.

>

> ERRORMESSAGE:

> D:\Utils\apache2triad\htdocs\lomac\lserver>l_server.pl

> Can't locate loadable object for module forks in @INC (@INC

>contains:

> D:/Utils/a

> pache2triad/perl/lib D:/Utils/apache2triad/perl/site/lib .) at

>D:/Utils/apache2t riad/perl/site/lib/forks.pm line 79 Compilation

>failed in require at D:\Utils\apache2triad\htdocs\lomac\lserver\l_se

> rver.pl line 24.

> BEGIN failed--compilation aborted at

> D:\Utils\apache2triad\htdocs\lomac\lserver\

> l_server.pl line 24.

>

> 5. I thought perhaps that apache2triad doesn't have perl5 which you

>specify is needed, so I proceeded to download ActivestatePerl -->

>http://www.activestate.com/Products/ActivePerl.

> 6. However, after installing ActivestatePerl I get an error with

>Forks..

> Which is found here http://search.cpan.org/~elizabeth/forks-0.16 but

>that doesn't seem to help.

> 7. So this didn't help.. Then I downloaded the complete Linux Red Hat

>9.0 and installed (a near complete setup) it on a computer -- and

>tried to run the "l_server.pl" which didn't help. I got once again

>errors of mising perl modules.

>

> All-in-all I have spent about 5 hours to get the pieces together,

>without any results.

>

> You could try to see if my setup is running, on

>http://lelystad.dyndns.info:8080/lockon, if there is no connection then

>my apache server is (temporary) disabled.

>

> Could you please tell me:

> 1. What do I need to run your script?

> 2. How did u figure out to positions of airplanes onto the map

>projection?

> 3. Any chance / possibi;ities, or guidelines of rewriting the

>perl-code to use microsoft dotnet..???

>

> I am anyways gratefull for your code, but if I could get it running

>(easily)

> then the need for a dotnet version is not needed. I program

>exclusivley on M$ dotnet with SQL-Server and Biztalk Server.

>

> I am much anticipatin your reply.

>

> Groetjes,

> Michiel Erasmus

>

>

>

>> -----Oorspronkelijk bericht-----

>> Van: Andrey G [mailto:dreyou@bladie23234.ru]

>> Verzonden: vrijdag 15 april 2005 11:10

>> Aan: pappavis@wanadoo.nl

>> Onderwerp: Lock-On export, etc.

>>

>> Hi !

>>

>> Sry, sry, sry :-), for delaying.

>>

>>

>> With best regards Andrey Gordeev aka Dreyou

>>

>

 

Hi Michiel!

 

Sry, never runnnig this script under Windows. I used specific environment to make this project, used part of codes from other my projects,and never thought about distribution of this scripts. (I prefer to use free software to make noncommercial projects :-)

 

> Could you please tell me:

> 1. What do I need to run your script?

 

About installing additional perl modules in RedHat (i'm using FedoraCore FC3):

 

1. You must have internet connection

2. Login as root and enter command :

 

perl -MCPAN -eshell

 

At first time this CPAN modules installation script whill ask some questions (give default answers)

 

3. Next, you can install any additional modules by command:

 

install MODULE::NAME

 

for example:

 

install forks

 

then, this shell download, compile and install module

 

Here is the complete list of perl modules for l_server.pl:

 

LWP::Simple

Date::Handler

Date::Handler::Delta

Error

forks

Getopt::Simple

IPC::ShareLite

XML::Simple

XML::LibXSLT

XML::LibXML

 

Also, you must use Apache2,php5 to work web part, if you whant to use another versiosn of apache and php you need to rewrite code.

 

If you want I can give you links to linux rpm modules for php5 and so.

 

> 2. How did u figure out to positions of airplanes onto the map

>projection?

 

In version 1.1 LockOn export objects coordinates as Lat(mean Y) and Long (mean X) (may be it can export this values in another format, but I don't know how) . This values represented in floating point format, for example:

Lat = 44.556688 - where 44 - degrees and 556688 - min(') and sec(") convertend to decimal format. In normal way this coordinate may be shown (not real conversion, just for

exmaple) as 44.34'77". I.e. we have linear map coordinates, and can conver it to picture coordinates. To do this I make the mission with 2 objecst, placed in opposite cornerns of map region(left/top - right/bottom). Then, I started misson, get coordinates of this objects (using export.lua), and make screenshot (where this object shown both).

 

Next, now we have coordinates and map picture. From picture we can get pixel coordinates of objects, and calculate coefficients to convert real coordinates to picture coordinates.

 

P0 - object 0

P1 - object 1

 

Lat,Long - real coord

y,x - pix coord

0 1 2

3 4 5 6 7

So, we have constants - P0Lat, P0y, P0Long, P0x, P1Lat, P1y, P1Long, P1x

 

cfY = (P0y-P1y) / (P0Lat-P1Lat);

cfX = (P0Long- P1x) / (P0Long-P1Long);

 

Next, convert current real coordinates to current map pix coordinates

 

Lat - current Lat

Long - current Long

posy - current posy

posx - current posx

 

posy (((Lat-P0Lat)*cfY)+P0y)

posx (((Long- P0Long)*cfX)+P0x)

 

 

> 3. Any chance / possibi;ities, or guidelines of rewriting the

>perl-code to use microsoft dotnet..???

 

No comments :-))), really, have the plans to make smth. Not now, but bit later. About guidelines, not shure, please ask, and I try to answer.

 

 

 

 

Sry for my bad english.

 

With best regards Andrey Gordeev aka Dreyou

 

 

 

met vriendelijke groet,

Михель

 

"умный, спортсмен, комсомолетс"

 

[sIGPIC]159th_pappavis.jpg[/sIGPIC]

 

[TABLE]SPECS: i9-9900K 32gigs RAM, Geforce 2070RTX, Creative XFi Fata1ity, TIR5, Valve Index & HP Reverb, HOTAS Warthog, Logitech G933 Headset, 10Tb storage.[/TABLE]

Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...