Official 5165 FAQ/Question thread

03/23/2011 18:46 Arco.#1906
Quote:
Originally Posted by snow118 View Post
The code works an helps prevent rollbacks. Arco whatever u say, maybe your a better coder, but I have more experience with 5165. And have had newestCo online with well over 100 people. Something you an others claim is imnpossible. exceptions an crashes. Try askin anyone who played conquer 3.0 or plays my new server ;) Both NewestCo

So guys feel free to listen to any of these guys. But i am currently running 5165 flatfile. I have removed every bug it had. Even the stamina bug, attacking on horses. The rollbacks and relogging. Believe me this code works. Use it. Before you close the server type on the cmd /save and then /exit

Rollbacks are mostly from accounts that are online when server is closed. Trust me ive worked with the source longer than any of the guys tryin to critisize me :) Add new threading and Tidy up character.cs. The socket system it uses is not all that bad. You do that... an remove the bugs it already has an exceptions. U can handle 200 quite comfortably. Ive stress tested.

Arco ill prove it anyday of the week [Only registered and activated users can see links. Click Here To Register...] x
Alright if you're so experienced, riddle me this:
Why are you using hashtables still? .NET is at 4.0 now, the Generics namespace has been introduced for a good while now. Are you needing to hash anything? No. There is really no reason for hashtables, at all. Learn to dictionary.

Why don't you just update variables on change? That would decrease rollbacks to the maximum. Learn to get/set.

In the time you spent on this source, you could have spent this time educating yourself on creating your own source. Learn to Learn.

Dipshit.
03/23/2011 21:48 snow118#1907
Code:
                    }
                    if (Cmd[0] == "/save")
                    {
                        Game.Character[] BaseCharacters = new Character[World.H_Chars.Count];
                        World.H_Chars.Values.CopyTo(BaseCharacters, 0);
                        foreach (Game.Character C in BaseCharacters)
                        {
                            try
                            {
                                Database.SaveCharacter(C, C.MyClient.AuthInfo.Account);
                            }
                            catch { continue; }
                        }
                        Database.SaveKOs();
                        Database.SaveEmpire();
                        Features.Guilds.SaveGuilds();
                        Features.SkillsClass.Save();
                        Console.WriteLine("Server all saved.");
03/24/2011 01:35 Arco.#1908
Quote:
Originally Posted by snow118 View Post
So credits go to Yuki and John aka Paralyzer. Oh an ofcorse stefan. These people know alot about newestco.
Knowing alot about NewestCOServer means shit when it comes to ACTUAL coding. Nullable, good friend of mine, has never once touched that source, yet, I'm willing to bet my left nut, that he would be able to fix all the source's problems in a day. Not saying he's going to, just point out that knowing alot about one source, doesn't mean that's the only way to fix it. I haven't touched that shitty ass source in over a year, and I'm sure I can fix any problem that source has. Dipshit.
03/24/2011 06:43 pro4never#1909
#reported.

Threatening members is not allowed snow.


While arco may be being a tad rude here his point is correct... You're getting all offended cause he's pointing out some (fairly major) flaws in your coding logic.

EG: lets prevent rollbacks by making yet another command to save things vs just saving on modification... or on logout (doing it properly) or when server shuts down (handling the exit console event anyone? :O!)

You're obviously welcome to code any way you want but when someone corrects you (politely or other wise) acting all offended and threatening them is rather... childish.
03/24/2011 10:33 ß|ade#1910
Hmm, I think there are missing steps... I got everything to work right up until login. Just sits there saying logging into the game server, suggestions? :)
03/24/2011 10:34 Syst3m_W1z4rd#1911
Quote:
Originally Posted by Damien112 View Post
Hmm, I think there are missing steps... I got everything to work right up until login. Just sits there saying logging into the game server, suggestions? :)
The fix is on the first page.
03/24/2011 10:56 ß|ade#1912
Quote:
Originally Posted by Syst3m_W1z4rd View Post
The fix is on the first page.
Can't see anything regarding my error, it's not the 127.0.0.1 error, because it's running off Hamachi.

Thanks

**Edit*

This is the log from the "Newest Co Server" cmd prompt


Starting to load DMaps.
Loading 1000 : C:\OldCODB\map/map/desert.DMap
Loading 1001 : C:\OldCODB\map/map/d_antre01.DMap
Loading 1002 : C:\OldCODB\map/map/newplain.DMap
Loading 1011 : C:\OldCODB\map/map/woods.DMap
Loading 1015 : C:\OldCODB\map/map/island.DMap
Loading 1020 : C:\OldCODB\map/map/canyon.DMap
Loading 1028 : C:\OldCODB\map/map/mine-four.DMap
Loading 1036 : C:\OldCODB\map/map/street.DMap
Loading 1037 : C:\OldCODB\map/map/faction-black.DMap
Loading 1038 : C:\OldCODB\map/map/faction.DMap
Loading 1039 : C:\OldCODB\map/map/playground.DMap
Loading 700 : C:\OldCODB\map/map/arena-none.DMap
Loading 1785 : C:\OldCODB\map/map/Halloween2007a.DMap
DMaps loaded successfully in 347 milliseconds.
Mobs loaded 5815

The server is ready for connections.
Always close the server by pressing Enter, or the important data wont't save.
System.BadImageFormatException: An attempt was made to load a program with an in
correct format. (Exception from HRESULT: 0x8007000B)
at NewestCOServer.Native.BF_set_key(IntPtr _key, Int32 len, Byte[] data)
at NewestCOServer.Main.Blowfish.SetKey(Byte[] data) in C:\Users\HP\Desktop\se
rver work\NewestCOServer\Main\Blowfish.cs:line 85
at NewestCOServer.Main.GameCrypto..ctor(Byte[] key) in C:\Users\HP\Desktop\se
rver work\NewestCOServer\Main\Blowfish.cs:line 15
at NewestCOServer.Main.GameClient..ctor(Boolean Robot) in C:\Users\HP\Desktop
\server work\NewestCOServer\Main\GameClient.cs:line 48
System.NullReferenceException: Object reference not set to an instance of an obj
ect.
at NewestCOServer.Main.GameWorker.ConnectionHandler(S tateObj S) in C:\Users\H
P\Desktop\server work\NewestCOServer\Main\GameWorker.cs:line 33
03/24/2011 12:08 Syst3m_W1z4rd#1913
Look on the first page again at the "I got this error" part.
03/27/2011 22:33 $HaDoW#1914
Hello everyone.
Small Question.

How does the DropRates work ?
I mean DropRates.cs and DropRates.ini ?
Do they share the same information or cs adds main info and .Ini adds a x2 to it ?
or something ?


Thank you :)
04/03/2011 04:17 snow118#1915
I am lookin for a coder to help me with newestco source. I have fixed 95 percent of the bugs. My server right now has around 100 online in evenings. Released for only 5 days. Made much money. I just have a few problems been found. I am lookin for a coder known to the community to help me in return for something they want. Yuki ditched me because... well i dunno to be honest lol. But my server aint failing like was said. So anyone who is intrested please message back or add me on msn [Only registered and activated users can see links. Click Here To Register...].

pro4never comon mate
04/03/2011 11:28 otinito#1916
uhmm.. guyz.. i'm new here but maybe i an help.
about that question on how to make npcs talk summat...
well, just try going to ur source then open the NPCdialog.cs with Microsoft C#.
edit the dialogs you want and its link effects..
u can also use CHARMAP in windows to create a summat language....
04/03/2011 11:32 otinito#1917
HEY ß|ade...
i hope this will help...
try running the Newest CO server in debug folder...
coz i bet u run C:/rikardoupdated/release/....., right???
try this one C:/rikardoupdated/debug/.....
maybe that will fix the problem
[/B]
04/03/2011 19:12 $HaDoW#1918
Quote:
Originally Posted by $HaDoW View Post
Hello everyone.
Small Question.

How does the DropRates work ?
I mean DropRates.cs and DropRates.ini ?
Do they share the same information or cs adds main info and .Ini adds a x2 to it ?
or something ?


Thank you :)
Anyone ?

Also why the hell Recall NAME does not work ?

I removed the [PM] Check. still wont work !
Code:
if (Cmd[0] == "/recall")
                        {
                            if (Cmd[1] != "all")
                            {
                                Game.Character C = Game.World.CharacterFromName(Cmd[1]);
                                if (C != null && C != GC.MyChar)
                                    C.Teleport(GC.MyChar.Loc.Map, GC.MyChar.Loc.X, GC.MyChar.Loc.Y);
                            }
                            else
                            {
                                foreach (Game.Character C in Game.World.H_Chars.Values)
                                    C.Teleport(GC.MyChar.Loc.Map, GC.MyChar.Loc.X, GC.MyChar.Loc.Y);
                            }
                        }
04/03/2011 22:27 snow118#1919
Quote:
Originally Posted by $HaDoW View Post
Anyone ?

Also why the hell Recall NAME does not work ?

I removed the [PM] Check. still wont work !
Code:
if (Cmd[0] == "/recall")
                        {
                            if (Cmd[1] != "all")
                            {
                                Game.Character C = Game.World.CharacterFromName(Cmd[1]);
                                if (C != null && C != GC.MyChar)
                                    C.Teleport(GC.MyChar.Loc.Map, GC.MyChar.Loc.X, GC.MyChar.Loc.Y);
                            }
                            else
                            {
                                foreach (Game.Character C in Game.World.H_Chars.Values)
                                    C.Teleport(GC.MyChar.Loc.Map, GC.MyChar.Loc.X, GC.MyChar.Loc.Y);
                            }
                        }

Code:
                        }
                        if (Cmd[0] == "/recall")
                        {
                            {
                                Game.Character C = Game.World.CharacterFromName(Cmd[1]);
                                if (C != null)
                                    C.Teleport(GC.MyChar.Loc.Map, GC.MyChar.Loc.X, GC.MyChar.Loc.Y);
                            }
04/06/2011 01:47 |NeoX#1920
:facepalm:

Quote:
if (Cmd[0] == "/recall")
{
Game.Character C = Game.World.CharacterFromName(Cmd[1]);
if (C != null)
C.Teleport(GC.MyChar.Loc.Map, GC.MyChar.Loc.X, GC.MyChar.Loc.Y);
}