Private Server Info and Support Thread

11/20/2016 18:30 YURI-ELIADE.ITALY#2611
Quote:
Originally Posted by darkli View Post
Hello to all !
Excuse my English but I'm French ^^

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

I would need a little help for my private server. I set up my server about 1 week ago, all well I know how to play on the map .. But one day
To the other without understanding for what, I am blocked when connecting to the map, the loading has no end ... I read on the forum to configure the file "map.php", I
I put my address address lan, I also opened port 8080 on my router. During an attempted connection, my emulator tells me that I am
Connected to the server .. My emulator is pachequiin, I have windows 10, can you help me on this problem please?
hello because the emulator also happened to me in your case you should set on the PM and change the date from 20/11/2016 to 11.20.2016 and you'll see that will start emulator I did not understand why it works just as well but you will see that will work:handsdown::handsdown:
11/21/2016 10:56 darkli#2612
Hello YURI-ELIADE.ITALY!

It worked ! Thanks a lot for your help!
11/21/2016 12:33 steppdroid#2613
Hi guys , i write the code for radiation, but the ship go in negative hp!!! Why?!?!? :confused:

Code:
if (_user.Ship.Radiation && _user.Ship.Hp > 1)
                {

                    if (_user.Ship.Hp - 20000 < 1 || _user.Ship.Hp < 0)
                    {
                        _user.Ship.Hp = 0;
                        
                        foreach (var ship in Program.GameManager.Users.Values)
                        {
                            ship.Send("0|K|" + _userId);
                            ship.Send("0|A|STD|You've been destroyed by Radiation!");
                        }
                        Program.GameManager.Users.Remove(_userId);
                        _user.DiscconectUser(1);
                    

                    }
                    else
                    {
                        _user.Ship.Hp -= 20000;
                    }
                    
                    _user.Send("0|Y|" + _userId + "|" + _userId + "|L|" + _user.Ship.Hp + "|" + _user.Ship.Config.Shield + "|20000|100|100");                
                    _user.Send("0|A|HPT|" + _user.Ship.Hp + "|" + _user.Ship.MaxHp + "|" + _userId);
                               
                    await Task.Delay(2000);
                }
11/23/2016 03:17 Requi#2614
Quote:
Originally Posted by steppdroid View Post
Hi guys , i write the code for radiation, but the ship go in negative hp!!! Why?!?!? :confused:

Code:
if (_user.Ship.Radiation && _user.Ship.Hp > 1)
                {

                    if (_user.Ship.Hp - 20000 < 1 || _user.Ship.Hp < 0)
                    {
                        _user.Ship.Hp = 0;
                        
                        foreach (var ship in Program.GameManager.Users.Values)
                        {
                            ship.Send("0|K|" + _userId);
                            ship.Send("0|A|STD|You've been destroyed by Radiation!");
                        }
                        Program.GameManager.Users.Remove(_userId);
                        _user.DiscconectUser(1);
                    

                    }
                    else
                    {
                        _user.Ship.Hp -= 20000;
                    }
                    
                    _user.Send("0|Y|" + _userId + "|" + _userId + "|L|" + _user.Ship.Hp + "|" + _user.Ship.Config.Shield + "|20000|100|100");                
                    _user.Send("0|A|HPT|" + _user.Ship.Hp + "|" + _user.Ship.MaxHp + "|" + _userId);
                               
                    await Task.Delay(2000);
                }
Code:
var ship => _user.Ship;
var manager => Program.GameManager;
if(ship.Radiation /*InRadiation would be a better name*/ && ship.Hp > 0 /*Health would be a better name*/)
{
	ship.Hp -= 20000;
	if(ship.Hp < 1) /*Other check redundant as checking for above 1 before means it can't be below 0*/
	{
		ship.Hp = 0;
		
		foreach(var user in manager.Users.Values) /*They are users. Not ships.*/
			user.Send("0|K|" + _userId);
		
		/*What the hell is that for loop? Do you want to tell every user they've been destroyed?!*/
		ship.Send("0|A|STD|You've been destroyed by the radiation zone!");
		manager.Users.Remove(_userId);
		_user.Disconnect(1); /*Spelling hard, yes?*/
		
	}
	
	_user.Send("0|Y|" + _userId + "|" + _userId + "|L|" + ship.Hp + "|" + ship.Config.Shield + "|20000|100|100");
	_user.Send("0|A|HPT|" + ship.Hp + "|" + ship.MaxHp + "|" + _userId);
	
	await Task.Delay(2000);
}
I REALLY need to make a good server example. This is horrible.

I don't know anymore what parameter does what, but wasn't Y the laser shot? I don't know. But this should be fine if your packets are correct.

AND GUYS. C# 6.0 FFS!
11/24/2016 10:50 manulaiko3.0#2615
Quote:
Originally Posted by steppdroid View Post
Hi guys , i write the code for radiation, but the ship go in negative hp!!! Why?!?!? :confused:

Code:
if (_user.Ship.Radiation && _user.Ship.Hp > 1)
                {

                    if (_user.Ship.Hp - 20000 < 1 || _user.Ship.Hp < 0)
                    {
                        _user.Ship.Hp = 0;
                        
                        foreach (var ship in Program.GameManager.Users.Values)
                        {
                            ship.Send("0|K|" + _userId);
                            ship.Send("0|A|STD|You've been destroyed by Radiation!");
                        }
                        Program.GameManager.Users.Remove(_userId);
                        _user.DiscconectUser(1);
                    

                    }
                    else
                    {
                        _user.Ship.Hp -= 20000;
                    }
                    
                    _user.Send("0|Y|" + _userId + "|" + _userId + "|L|" + _user.Ship.Hp + "|" + _user.Ship.Config.Shield + "|20000|100|100");                
                    _user.Send("0|A|HPT|" + _user.Ship.Hp + "|" + _user.Ship.MaxHp + "|" + _userId);
                               
                    await Task.Delay(2000);
                }
Do something like
Code:
while(_user.isAlive()) {
    _user.Ship.Hp -= 20000;
    _user.Send("0|Y|" + _userId + "|" + _userId + "|L|" +  _user.Ship.Hp + "|" + _user.Ship.Config.Shield + "|20000|100|100");
    _user.Send("0|A|HPT|" + _user.Ship.Hp + "|" + _user.Ship.MaxHp + "|" + _userId); 
     await Task.Delay(2000);
}
_user.destroy();
Obviusly, you'll have to implement isAlive and destroy methods.
11/24/2016 11:58 steppdroid#2616
Quote:
Originally Posted by manulaiko3.0 View Post
Do something like
Code:
while(_user.isAlive()) {
    _user.Ship.Hp -= 20000;
    _user.Send("0|Y|" + _userId + "|" + _userId + "|L|" +  _user.Ship.Hp + "|" + _user.Ship.Config.Shield + "|20000|100|100");
    _user.Send("0|A|HPT|" + _user.Ship.Hp + "|" + _user.Ship.MaxHp + "|" + _userId); 
     await Task.Delay(2000);
}
_user.destroy();
Obviusly, you'll have to implement isAlive and destroy methods.
Hi,Thanks for your advice, but unfortunately I still have the same problem!!! locally(locahost) is working well, but loaded on the server, the life of the ships going in reverse! :confused::confused:
11/24/2016 12:36 Requi#2617
Quote:
Originally Posted by steppdroid View Post
Hi,Thanks for your advice, but unfortunately I still have the same problem!!! locally(locahost) is working well, but loaded on the server, the life of the ships going in reverse! :confused::confused:
Then debug it. Make a program to check which packets the client actually receives.
11/24/2016 16:23 steppdroid#2618
Hi, I would be interested in buying an old client based server 2008, does anyone have it? Thank you.
11/26/2016 20:03 lollo900#2619
Is there someone selling complete and fixed files for creating an own server? I have a VPS and I would like to use it for a DO Private server :)
12/09/2016 03:43 porra123456#2620
who can send source of last version before 3D d.o
12/11/2016 07:51 nykomc#2621
Hi all.
Please help.How to add new ships in my CMS.Where i change CMS?How ro add extra slot for goly example 20 laser slot?
12/13/2016 05:41 stars093#2622
Hello everyone I have the emulator spacebattle anyone knows where can I get me diri DB and CMS ??
12/16/2016 20:27 YURI-ELIADE.ITALY#2623
Quote:
Originally Posted by stars093 View Post
Hello everyone I have the emulator spacebattle anyone knows where can I get me diri DB and CMS ??
hello better if you buy one in the frame and the spacebattle simulator you put in and you look at what is the worst server I've ever seen the best pvp server 2003 version etc. will now suno makes them always make the latest versions and people get tired and closing off them for lack of players :D
12/17/2016 18:21 mann77#2624
I have a "little" issue. Part of it is my fault, and is a lesson WELL learnt.

I've been all over these forums, looking for a DO Private server. I managed to get a couple working, but no NPCs. I seem to always get the same error also. Doesnt matter what repack i download, i get a xajax error, trying to get info from bigpoints website. I can only assume it is for graphic reasons (looking at the php files, calling image src)

So, i figured since most repacks were from 2013, alot has change since then.

Heres my mistake, I google "DO private server 2016" Stumbled on this youtube video done by Angels vs Royals, or seriosdark. Had to contact him for files. He wanted $$. He Showed me a test server, seemed very nice. so i offered less and he accepted. Which was reasonable. He sent me the CMS and SQL, Turns out, no emulator. so i scounge the net for seriousdark emulator. Thats when i realize, hes been banned here. Second, threads about that emulator has keyloggers. Now im out a few bucks and glad i didnt get the emu now lol.

So go ahead, get a laugh in.... I deserve that lol

So heres my question

I downloaded every repack in this thread, and many others (that the links were there).

Which one would you forum vets recommend i go with. I would like a pve server.
For the record, Im not asking for anyone to help me code stuff, i just need advice on which one i should use to begin with. ( i hate to spend weeks trying to fix one tht simply isnt worth it lol ) And this server will most like not go public, only for a few friends that want to bring back memories.

Thanks for reading, and hope you had a good laugh!

Mann
12/19/2016 01:40 0wnix#2625
Anyone working on a python server atm?