Low FPS on 5165

10/01/2010 21:29 copz1337#1
Okay I really don't know why my fps on 5165 are low. On any other server I play it's never like this, only on 5165. Is the problem maybe cause the source reads the maps twice or something like that (something I heard)? Cause it makes nooo sense. And no FPS unlocker doesn't help.
10/01/2010 21:32 _Vodka#2
Maybe ur spawning too many things or got a bad pc that cant take it.
I never had problems with fps in 5165.
10/01/2010 21:33 copz1337#3
Quote:
Originally Posted by _Vodka View Post
Maybe ur spawning too many things or got a bad pc that cant take it.
I never had problems with fps in 5165.
Bad PC? No, I've said a million times on any other server it's fine except 5165. And what things am I spawning??? On every map its the same!
10/01/2010 21:36 _Vodka#4
well u said, ur spawning maps 2 times.
why?
and where in the source?
10/01/2010 21:39 copz1337#5
Quote:
Originally Posted by _Vodka View Post
well u said, ur spawning maps 2 times.
why?
and where in the source?
I said that maybe that's what's happening. I remember one time the map of like the Space it was REALLY laggy cuz thats what was happening. So maybe something similar is happening.
10/01/2010 22:37 _Vodka#6
maybe u should try remove one of the load?
10/02/2010 00:13 copz1337#7
Quote:
Originally Posted by _Vodka View Post
maybe u should try remove one of the load?
huh??
10/02/2010 00:30 _Vodka#8
u said is loadin 2times and might be the issue, then try make it load one time?
10/02/2010 01:43 copz1337#9
Quote:
Originally Posted by _Vodka View Post
u said is loadin 2times and might be the issue, then try make it load one time?
Idk how
10/02/2010 01:52 .Beatz#10
[Hint]DMap.cs[/Hint]
10/02/2010 02:06 copz1337#11
Code:
using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;

namespace NewestCOServer
{
    public class DMaps
    {
        public static ArrayList MapsNeeded = new ArrayList() {700, 1038,1000, 1001, 1002, 1036, 1037, 1039, 1011, 1015, 1020, 1028, 1785 };
        public static Hashtable H_DMaps = new Hashtable();
        public static bool Loaded = false;
        public static void Load()
        {
            if (Directory.Exists(Program.ConquerPath))
            {
                uint Time = Native.timeGetTime();
                Program.WriteLine("Starting to load DMaps.");
                FileStream FS = new FileStream(Program.ConquerPath + @"ini\GameMap.dat", FileMode.Open);
                BinaryReader BR = new BinaryReader(FS);

                uint MapCount = BR.ReadUInt32();
                for (uint i = 0; i < MapCount; i++)
                {
                    ushort MapID = (ushort)BR.ReadUInt32();
                    string Path = Encoding.ASCII.GetString(BR.ReadBytes(BR.ReadInt32()));
                    if (MapsNeeded.Contains((int)MapID))
                    {
                        DMap D = new DMap(MapID, Path);
                        H_DMaps.Add(MapID, D);
                    }
                    BR.ReadInt32();
                }
                BR.Close();
                FS.Close();
                Loaded = true;
                Program.WriteLine("DMaps loaded successfully in " + (Native.timeGetTime() - Time) + " milliseconds.");
            }
            else
                Program.WriteLine("The specified Conquer Online folder doesn't exist. DMaps couldn't be loaded.");
        }
    }
    public struct DMapCell
    {
        private Boolean _noAccess;
        public Boolean High;
        public DMapCell(Boolean noAccess)
        {
            _noAccess = noAccess;
            High = false;
        }

        public Boolean NoAccess
        {
            get
            {
                return _noAccess;
            }

            internal set
            {
                _noAccess = value;
            }
        }       
    }
    public class DMap
    {        
        private Int32 Width;
        private Int32 Height;
        private DMapCell[,] Cells;

        public DMap(ushort MapID, string Path)
        {
            Program.WriteLine("Loading " + MapID.ToString() + " : " + Program.ConquerPath + Path + "");
            if (File.Exists(Program.ConquerPath + Path))
            {
                FileStream FS = new FileStream(Program.ConquerPath + Path, FileMode.Open);
                BinaryReader BR = new BinaryReader(FS);
                BR.ReadBytes(268);
                Width = BR.ReadInt32();
                Height = BR.ReadInt32();
                Cells = new DMapCell[Width, Height];

                byte[] cell_data = BR.ReadBytes(((6 * Width) + 4) * Height);
                int offset = 0;

                for (int y = 0; y < Width; y++)
                {
                    for (int x = 0; x < Height; x++)
                    {
                        Boolean noAccess = BitConverter.ToBoolean(cell_data, offset) != false;

                        if (MapID == 1002)
                        {
                            if (x >= 606 && x <= 641)
                                if (y >= 674 && y <= 680)
                                    noAccess = false;
                            if (x >= 148 && x <= 194)
                                if (y >= 541 && y <= 546)
                                    noAccess = false;
                        }
                        Cells[x, y] = new DMapCell(noAccess);
                        if (MapID == 1038)
                        {
                            if (x <= 119)
                                Cells[x, y].High = true;
                            if (x >= 120 && x <= 216 && y <= 210)
                                Cells[x, y].High = true;
                        }
                        offset += 6;
                        
                    }
                    offset += 4;
                }
                BR.Close();
                FS.Close();
            }
        }

        public DMapCell GetCell(ushort X, ushort Y)
        {
            return Cells[X, Y];
        }
    }
}
There's my Dmap.cs
10/02/2010 04:29 copz1337#12
Im starting to think it's my clean. Anyone got a clean 5165 with the cracked exe and server dat?
10/03/2010 04:15 copz1337#13
Anyone got a link to a clean 5165 client (not darkside co) with cracked exe and server dat?
10/03/2010 04:18 _Vodka#14
download any client under patch 5165.
download the 5165 patch from tq's website.
then just take ur conquer.exe into the new folder.
10/03/2010 17:29 copz1337#15
THE PROBLEM HAS BEEN SOLVED. DO NOT USE DARKSIDECO CLIENT UNLESS YOU WANT POOR FPS.