elitepvpers

elitepvpers (https://www.elitepvpers.com/forum/)
-   DarkOrbit (https://www.elitepvpers.com/forum/darkorbit/)
-   -   [Collection Thread] Private Server Info and Support Thread (https://www.elitepvpers.com/forum/darkorbit/2830133-private-server-info-support-thread.html)

olitis1 03/09/2017 13:32

Quote:

Originally Posted by steppdroid (Post 35810178)
Hi guys, what's the package that pushes the level of enemies in minimap on Maps basics? (the yellow bars in the minimap)

It should be:
Code:

"0|n|w|" + lvl_of_warning; //(from 0 to 5)

steppdroid 03/09/2017 14:34

Mmmm how improve this shi*?
Code:

            //test warning level
            if(Id == 1 || Id == 5 || Id == 9){
                if (Users[userId].GetMap().FactionId != Users[userId].Ship.FactionId)
                {
                    level_warning++;
                }
                if (Users[userId].GetMap().FactionId == Users[userId].Ship.FactionId)
                {
                    Users[userId].Send("0|n|w|" + level_warning);
                }
            }


olitis1 03/09/2017 14:47

Quote:

Originally Posted by steppdroid (Post 35810732)
Mmmm how improve this shi*?
Code:

            //test warning level
            if(Id == 1 || Id == 5 || Id == 9){
                if (Users[userId].GetMap().FactionId != Users[userId].Ship.FactionId)
                {
                    level_warning++;
                }
                if (Users[userId].GetMap().FactionId == Users[userId].Ship.FactionId)
                {
                    Users[userId].Send("0|n|w|" + level_warning);
                }
            }


You should calculate level_warning before sending the packet.
In your code, if there's an enemy at the last of the iteration, lvl_warning won't be 1 to the others.

steppdroid 03/09/2017 15:23

Quote:

Originally Posted by olitis1 (Post 35810772)
You should calculate level_warning before sending the packet.
In your code, if there's an enemy at the last of the iteration, lvl_warning won't be 1 to the others.

Can you put a example? :confused: :handsdown:
Is a little hard for me..

My bugged code for calculate enemy

Code:

        if (Id == 1 || Id == 5 || Id == 9)
            {
                var map = Users[userId].MapId;
             
                    if (Users[userId].GetMap().FactionId != Users[userId].Ship.FactionId)
                    {

                        var x = Program.GameManager.Maps[map].Users.Count;

                        if (x == 1)
                        {
                            level_warning = 1;
                        }
                        else if (x == 2)
                        {
                            level_warning = 2;
                        }
                        else if (x == 3)
                        {
                            level_warning = 3;
                        }
                        else if (x == 4)
                        {
                            level_warning = 4;
                        }
                        else if (x >= 5)
                        {
                            level_warning = 5;
                        }
                    }
               
            }


Moonsteroid 03/09/2017 15:38

Quote:

Originally Posted by steppdroid (Post 35810876)
Can you put a example? :confused: :handsdown:
Is a little hard for me..

My bugged code for calculate enemy

Code:

        if (Id == 1 || Id == 5 || Id == 9)
            {
                var map = Users[userId].MapId;
             
                    if (Users[userId].GetMap().FactionId != Users[userId].Ship.FactionId)
                    {

                        var x = Program.GameManager.Maps[map].Users.Count;

                        if (x == 1)
                        {
                            level_warning = 1;
                        }
                        else if (x == 2)
                        {
                            level_warning = 2;
                        }
                        else if (x == 3)
                        {
                            level_warning = 3;
                        }
                        else if (x == 4)
                        {
                            level_warning = 4;
                        }
                        else if (x >= 5)
                        {
                            level_warning = 5;
                        }
                    }
               
            }


Just truncated the checking part xD
Code:

        if (Id == 1 || Id == 5 || Id == 9)
            {
                var map = Users[userId].MapId;
             
                    if (Users[userId].GetMap().FactionId != Users[userId].Ship.FactionId)
                    {

                        level_warning  = Program.GameManager.Maps[map].Users.Count;
                    }
               
            }


steppdroid 03/09/2017 15:50

Quote:

Originally Posted by lı. IGnoXX .ıl (Post 35810921)
Just truncated the checking part xD
Code:

        if (Id == 1 || Id == 5 || Id == 9)
            {
                var map = Users[userId].MapId;
             
                    if (Users[userId].GetMap().FactionId != Users[userId].Ship.FactionId)
                    {

                        level_warning  = Program.GameManager.Maps[map].Users.Count;
                    }
               
            }


the main problem is that I have to count only users with different factionid from the map

NoCheatImPGM 03/09/2017 15:59

Quote:

Originally Posted by steppdroid (Post 35810951)
the main problem is that I have to count only users with different factionid from the map

Something like
Code:

var user = Users[userId];
var map = Users[userId].GetMap();

var ennemiesCount = map.Users.Count(u=>u.Ship.FactionId != map.FactionId);
user.Send("0|n|w|" + (ennemiesCount > 5) ? 5 : ennemiesCount);


steppdroid 03/09/2017 19:59

Why, when I use this method, I send the message as many times as there are users in chat?? :confused:

Code:

public void MsginChat(string MSG, string Name)
        {
            foreach (var pair in Program.chatUsers)
            {
                if (pair.Value.ChatsJoined.Contains(Convert.ToInt32(250)))
                {
                    pair.Value.Send("j%250@" + Name + "@" + MSG + "#");
                }
            }
        }

I'm new to programming , sorry

manulaiko3.0 03/09/2017 20:53

Quote:

Originally Posted by steppdroid (Post 35811837)
Because when I use this method, I send the message as many times as there are users in chat?? :confused:

Code:

public void MsginChat(string MSG, string Name)
        {
            foreach (var pair in Program.chatUsers)
            {
                if (pair.Value.ChatsJoined.Contains(Convert.ToInt32(250)))
                {
                    pair.Value.Send("j%250@" + Name + "@" + MSG + "#");
                }
            }
        }

I'm new to programming , sorry

Instead of checking it every time, why not updating it when the enemy enters the map?

Code:

if(!user.isInEnemyMap() && !map.isStarter()) {
    return;
}

enemies.add(user);

StarterMapEnemyCount packet = new StarterMapEnemyCount(enemies.count());

map.broadcastPacket(packet);


steppdroid 03/09/2017 20:58

Quote:

Originally Posted by manulaiko3.0 (Post 35812058)
Instead of checking it every time, why not updating it when the enemy enters the map?

Code:

if(!user.isInEnemyMap() && !map.isStarter()) {
    return;
}

enemies.add(user);

StarterMapEnemyCount packet = new StarterMapEnemyCount(enemies.count());

map.broadcastPacket(packet);


Hi manulaiko3.0 i sloved with:
Code:

//in patchfinder
                        if (_user.GetMap().IsStarterMap)
                        {
                            _user.GetMap().CalculWarningmap(_userId);

                            if (_user.GetMap().FactionId == _user.Ship.FactionId)
                            {
                                if (_user.GetMap().FactionId == 1) _user.Send("0|n|w|" + Map.level_warningmmo);
                                else if(_user.GetMap().FactionId == 2)_user.Send("0|n|w|" + Map.level_warningeic);
                                else if (_user.GetMap().FactionId == 3) _user.Send("0|n|w|" + Map.level_warningvru);
                            }
                        }
                        else
                        {
                            _user.Send("0|n|w|0");
                        }


public void CalculWarningmap(uint userId)
        {
            var user = Program.GameManager.Users[userId];
            var map = Users[userId].GetMap();

            if (map.IsStarterMap)
            {
                if (user.Ship.FactionId == 1) { level_warningmmo = map.Users.Count(u => u.Value.Ship.FactionId != map.FactionId); }
                else if (user.Ship.FactionId == 2) { level_warningeic = map.Users.Count(u => u.Value.Ship.FactionId != map.FactionId); }
                else { level_warningvru = map.Users.Count(u => u.Value.Ship.FactionId != map.FactionId); } 
            }
        }

This MsginChat is another problem.. "when I use this method, I send the message as many times as there are users in chat"

Code:

public void MsginChat(string MSG, string Name)
        {
            foreach (var pair in Program.chatUsers)
            {
                if (pair.Value.ChatsJoined.Contains(Convert.ToInt32(250)))
                {
                    pair.Value.Send("j%250@" + Name + "@" + MSG + "#");
                }
            }
        }


Arie$ 03/12/2017 23:07

Can someone help me ?

Warning: require(/KERNEL-DOCMS/Init.php): failed to open stream: No such file or directory in C:\xampp\htdocs\index.php on line 2

Fatal error: require(): Failed opening required '/KERNEL-DOCMS/Init.php' (include_path='C:\xampp\php\PEAR') in C:\xampp\htdocs\index.php on line 2

Im using 1.0 files

-Real- 03/12/2017 23:28

Quote:

Originally Posted by Arie$ (Post 35821534)
Can someone help me ?

Warning: require(/KERNEL-DOCMS/Init.php): failed to open stream: No such file or directory in C:\xampp\htdocs\index.php on line 2

Fatal error: require(): Failed opening required '/KERNEL-DOCMS/Init.php' (include_path='C:\xampp\php\PEAR') in C:\xampp\htdocs\index.php on line 2

Im using 1.0 files

The problem is the file Doesn't exists or your File Directory is incorrect.

darkorbit26410 03/13/2017 01:49

in hangar add configuration 2
 
Hello all I try make old client! I use pack server final I am the my final step! I add in hangar configuration 2 because in hangar have 1 but in spacemap have 1-2 configuration.
Something help me Add configuration I pay!! Or I give my new client files free!! I have all ready my new client style have full npc bosst lf5 and more!

Arie$ 03/13/2017 20:37

Can someone tell me how to move bases.
skype - yuliniki1

45the45 03/18/2017 16:16

-

Arie$ 03/18/2017 19:18

Quote:

Originally Posted by 45the45 (Post 35838083)
just remove with phpmyadmin

Any solution? Pls help i can't get acces to phpmyadmin :(
[IMG=expandable: 1]http://image.prntscr.com/image/a14db2e0a4ff4109a04a19c768fd500c.png[/IMG]

Try with old version of xampp.
I cant find my sources of bases in my phpmyadmin.

45the45 03/18/2017 21:49

Quote:

Originally Posted by Arie$ (Post 35838632)
I cant find my sources of bases in my phpmyadmin.

Try to edit with notepad this file (for move asteroids, I think bases too...): C:\xampp\htdocs\spacemap\xml\maps.php

Nommo 03/18/2017 23:01

Maybe you have opened skype?
Skype does work on port 80 unless you change it. Than apache cant turn on, cuz port is already used.

Regards,
Nommo.

45the45 03/19/2017 17:38

Anybody know why this doesn't work?
[IMG=expandable: 1]http://image.prntscr.com/image/24c178c7c913409bbb175e6937a5a34e.png[/IMG]

thx

Arie$ 03/19/2017 20:43

Call to a member function prepare() on null in C:\xampp\htdocs\index.php on line 87 I dont understand what to do ....

darkorbit26410 03/21/2017 01:19

Aries I fix this problem with 5 people here team and page!
I give you tomorrow xammp version ;-) relax it's easy!
Add me fb Dimitris Shredder

LEJYONER(DS) 03/21/2017 18:19

What's problem in here guys?

[IMG=expandable: 1]http://i.epvpimg.com/aQgufab.jpg[/IMG]

manulaiko3.0 03/21/2017 19:07

Quote:

Originally Posted by LEJYONER(DS) (Post 35846742)
What's problem in here guys?

[IMG=expandable: 1]http://i.epvpimg.com/aQgufab.jpg[/IMG]

Wrong JRE version.

LEJYONER(DS) 03/21/2017 19:40

Quote:

Originally Posted by manulaiko3.0 (Post 35846892)
Wrong JRE version.

Thanks for information...

YURI-ELIADE.ITALY 03/21/2017 20:55

excuse me a simple question I do not understand why my login icon does not move to the right where I'm wrong

[Only registered and activated users can see links. Click Here To Register...]

[Only registered and activated users can see links. Click Here To Register...]

darkorbit26410 03/22/2017 00:34

Quote:

Originally Posted by YURI-ELIADE.ITALY (Post 35847252)
excuse me a simple question I do not understand why my login icon does not move to the right where I'm wrong

[Only registered and activated users can see links. Click Here To Register...]

[Only registered and activated users can see links. Click Here To Register...]

Change weight!

Arie$ 03/22/2017 20:44

[Only registered and activated users can see links. Click Here To Register...]

Notice: Trying to get property of non-object in C:\xampp\htdocs\index.php on line 10
Someone ?

evrything looks good
Spoiler:
if($query->num_rows === 1):

SF_suchti 03/24/2017 10:45

ich hab noch ein paar alte server files und ein emulator, leider ist bei der website ein fehler vorhanden und der emulator will nicht so ganz. wer könnte mir dabei helfen? anfragen bitte per PN, schicke zur not die files etc zu

~Skyfall~ 03/26/2017 16:23

Hello im new here and need me some help.
I have files of 4.2. Can someone help me with them ?
Skype : yuliniki1
Regards ~Skyfall~

steppdroid 03/26/2017 19:49

Hi guys , how select double lootid in this array?

Code:

$myLaser['array'] = PlayerAllItems::find()->where(['lootid'=>'equipment_weapon_laser_lf-3'])
I Would Select lf3 and lf4.. Thanks
Sloved

~Skyfall~ 03/27/2017 00:04

Emulator doesnt work :/
[Only registered and activated users can see links. Click Here To Register...]

kralll66 03/27/2017 13:22

Someone have a cms 9.0 to send me pls

steppdroid 03/27/2017 15:03

How View Php display error on load equipment? :confused:

Freshek 03/27/2017 15:13

Quote:

Originally Posted by steppdroid (Post 35864394)
How View Php display error on load equipment? :confused:

Code:

ini_set('display_errors', 1);
ini_set('display_startup_errors', 1);
error_reporting(E_ALL);


steppdroid 03/27/2017 15:48

Quote:

Originally Posted by Freshek (Post 35864419)
Code:

ini_set('display_errors', 1);
ini_set('display_startup_errors', 1);
error_reporting(E_ALL);


I not get error in inventory... Only "An unknown error occurred. Click Restart to reload the equipment area."

kralll66 03/27/2017 15:50

Spacebattles 9.0 cms send me pls

nckrnckr 03/27/2017 16:08

Quote:

Originally Posted by steppdroid (Post 35864534)
I not get error in inventory... Only "An unknown error occurred. Click Restart to reload the equipment area."

Which server are you using?

Quote:

Originally Posted by ~Skyfall~ (Post 35863243)
Emulator doesnt work :/
[Only registered and activated users can see links. Click Here To Register...]

go to htdocs/spacemap/xml/maps.php and change server ip:127.0.0.1
If the problem still persists:
your database wrong.

Destiny 03/27/2017 17:10

Quote:

Originally Posted by nckrnckr (Post 35864613)
Which server are you using?



go to htdocs/spacemap/xml/maps.php and change server ip:127.0.0.1
If the problem still persists:
your database wrong.

this is dark planets just look by cryz

by_soul 03/27/2017 17:49

In_OrbitV1 CMS?

I have the emulator, but not the files
Can anyone pass me The Files?

~Skyfall~ 03/27/2017 20:33

Quote:

Originally Posted by nckrnckr (Post 35864613)
Which server are you using?



go to htdocs/spacemap/xml/maps.php and change server ip:127.0.0.1
If the problem still persists:
your database wrong.

Everything is ok but idk why emu dont work at all. :/


All times are GMT +2. The time now is 17:23.

Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.