Register for your free account! | Forgot your password?

Go Back   elitepvpers > Other Online Games > Browsergames > DarkOrbit
You last visited: Today at 16:06

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



Private Server Info and Support Thread

Discussion on Private Server Info and Support Thread within the DarkOrbit forum part of the Browsergames category.

Reply
 
Old 03/09/2017, 13:32   #2761
 
elite*gold: 0
Join Date: Apr 2012
Posts: 182
Received Thanks: 128
Quote:
Originally Posted by steppdroid View Post
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)
olitis1 is offline  
Thanks
1 User
Old 03/09/2017, 14:34   #2762
 
steppdroid's Avatar
 
elite*gold: 0
Join Date: Sep 2014
Posts: 280
Received Thanks: 42
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);
                }
            }
steppdroid is offline  
Old 03/09/2017, 14:47   #2763
 
elite*gold: 0
Join Date: Apr 2012
Posts: 182
Received Thanks: 128
Quote:
Originally Posted by steppdroid View Post
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.
olitis1 is offline  
Old 03/09/2017, 15:23   #2764
 
steppdroid's Avatar
 
elite*gold: 0
Join Date: Sep 2014
Posts: 280
Received Thanks: 42
Quote:
Originally Posted by olitis1 View Post
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?
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;
                        }
                    }
                
            }
steppdroid is offline  
Old 03/09/2017, 15:38   #2765
 
Moonsteroid's Avatar
 
elite*gold: 21
Join Date: Feb 2012
Posts: 941
Received Thanks: 708
Quote:
Originally Posted by steppdroid View Post
Can you put a example?
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;
                    }
                
            }
Moonsteroid is offline  
Old 03/09/2017, 15:50   #2766
 
steppdroid's Avatar
 
elite*gold: 0
Join Date: Sep 2014
Posts: 280
Received Thanks: 42
Quote:
Originally Posted by lı. IGnoXX .ıl View Post
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
steppdroid is offline  
Old 03/09/2017, 15:59   #2767
 
elite*gold: 0
Join Date: Jan 2012
Posts: 1,996
Received Thanks: 3,420
Quote:
Originally Posted by steppdroid View Post
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);
NoCheatImPGM is offline  
Thanks
1 User
Old 03/09/2017, 19:59   #2768
 
steppdroid's Avatar
 
elite*gold: 0
Join Date: Sep 2014
Posts: 280
Received Thanks: 42
Why, 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 + "#");
                }
            }
        }
I'm new to programming , sorry
steppdroid is offline  
Old 03/09/2017, 20:53   #2769
 
manulaiko3.0's Avatar
 
elite*gold: 0
Join Date: May 2014
Posts: 662
Received Thanks: 1,154
Quote:
Originally Posted by steppdroid View Post
Because 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 + "#");
                }
            }
        }
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);
manulaiko3.0 is online now  
Old 03/09/2017, 20:58   #2770
 
steppdroid's Avatar
 
elite*gold: 0
Join Date: Sep 2014
Posts: 280
Received Thanks: 42
Quote:
Originally Posted by manulaiko3.0 View Post
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 + "#");
                }
            }
        }
steppdroid is offline  
Old 03/12/2017, 23:07   #2771
 
Arie$'s Avatar
 
elite*gold: 2
Join Date: Sep 2015
Posts: 82
Received Thanks: 191
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
Arie$ is offline  
Thanks
1 User
Old 03/12/2017, 23:28   #2772
 
elite*gold: 0
Join Date: Jul 2015
Posts: 102
Received Thanks: 95
Quote:
Originally Posted by Arie$ View Post
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.
-Real- is offline  
Thanks
1 User
Old 03/13/2017, 01:49   #2773
 
elite*gold: 0
Join Date: Nov 2012
Posts: 32
Received Thanks: 1
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!
darkorbit26410 is offline  
Old 03/13/2017, 20:37   #2774
 
Arie$'s Avatar
 
elite*gold: 2
Join Date: Sep 2015
Posts: 82
Received Thanks: 191
Can someone tell me how to move bases.
skype - yuliniki1
Arie$ is offline  
Thanks
2 Users
Old 03/18/2017, 16:16   #2775
 
45the45's Avatar
 
elite*gold: 0
Join Date: Sep 2014
Posts: 540
Received Thanks: 158
-
45the45 is offline  
Reply

Tags
2018, darkorbit, emulator, private, server


Similar Threads Similar Threads
Private private server :P READ FOR MORE INFO
12/01/2010 - SRO Private Server - 12 Replies
hey guys im wondering if there is anyway to make a real private server like ZSZC or SWSRO or MYSRO but to where i can only play and level a character and as if it was a real private server. but just for me, not like an emulator where im already lvl 90 or 120 or whatever. i mean one where i set the rates and i level. if not then ok u can close this. but i was just wondering.



All times are GMT +2. The time now is 16:06.


Powered by vBulletin®
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2024 elitepvpers All Rights Reserved.