INACTIVE [C#] RetroEMU RP Development Project

Would you use PostgreSQL as you're db engine

  • Yes.

    Votes: 0 0.0%
  • No.

    Votes: 4 44.4%
  • It wouldn't be my first choice.

    Votes: 5 55.6%

  • Total voters
    9
Status
Not open for further replies.

TheRealMoonman

I eat babies
Sep 30, 2014
360
74
RetroEMU Development Project
What makes it different?
Well nothing in regards to any other roleplay servers, I am creating this inspired by Plus Emulator, so i devote 80% credits to Plus developers pretty much.
But alot of what differentiates RetroEmu to Plus, and some other emulators, is the way it stores and uses data AND the data engine it uses.
I've chosen to base it upon PostgreSQL, many would probably conflict it against MySQL.

Why choose PostgreSQL?
Well its mainly a learning experience for me, I've never used PostgreSQL in any of my projects, and basing this off PostgreSQL will give me a much more in-depth view of how PostgreSQL works in a practical sense.
Are you copying code from Plus given you've devoted 80% credits to it?
No, I am not, one thing i may do is deobfuscate Plus's algorithm library to have a look and reference off that, which is basically what I'm doing. I think it would be counter-productive if I just modified Plus's classes to be able to run on PostgreSQL.
How far are you into development?
Fuck all, I want to perfect this emulator, I'd rather have a quality product than have a cheap one.
Snippets?
Code:
namespace RetroEMU.Connect
{
    public sealed class GlobalDataSets
    {
        static readonly GlobalDataSets instance = new GlobalDataSets();
        public DataSet Cache { get; private set; }
        public DataTable ConfigData { get; private set; }

        static GlobalDataSets()
        {

        }

        GlobalDataSets()
        {
            this.Cache = new DataSet();
            this.ConfigData = new DataTable();

            Cache.Tables.Add("ConfigData");
            ConfigData.Columns.Add("key");
            ConfigData.Columns.Add("value");


        }
        public static GlobalDataSets Instance
        {
            get
            {
                return Instance;
            }
        }

    }
}
Code:
class Init
    {
        //====Global Vars=============//
        public Program _Program;
        //============================//
        public void Initilize()
        {
            Environment();
            Console.Clear();
            Console.SetCursorPosition(0, 0);
            Console.ForegroundColor = ConsoleColor.Red;
        }
        public void Environment()
        {
            Console.Clear();
            
        }
    }
 

Seriosk

Programmer;
Oct 29, 2016
256
105
Your code is terrible judging by the code snippets. Your calling a method to clear the console, but then clearing it again straight after you've called that method? My only thought is your gonna write to is at the end of that method you're calling, and you're re-clearing it for a clean UI?

This is also worrying, are you expecting errors on startup? If not I would change it from red to something more debug-like, maybe gray or cyan?
Code:
Console.ForegroundColor = ConsoleColor.Red;

The point of this is???
Code:
Console.SetCursorPosition(0, 0);

Why... just why? lol
Code:
this.Cache = new DataSet();
           this.ConfigData = new DataTable();

           Cache.Tables.Add("ConfigData");
           ConfigData.Columns.Add("key");
           ConfigData.Columns.Add("value");

I suggest you revise your code, and sort your code formatting out before attempting such a development.
 

LeChris

github.com/habbo-hotel
Sep 30, 2013
2,734
1,319
Your code is terrible judging by the code snippets. Your calling a method to clear the console, but then clearing it again straight after you've called that method? My only thought is your gonna write to is at the end of that method you're calling, and you're re-clearing it for a clean UI?

This is also worrying, are you expecting errors on startup? If not I would change it from red to something more debug-like, maybe gray or cyan?
Code:
Console.ForegroundColor = ConsoleColor.Red;

The point of this is???
Code:
Console.SetCursorPosition(0, 0);

Why... just why? lol
Code:
this.Cache = new DataSet();
           this.ConfigData = new DataTable();

           Cache.Tables.Add("ConfigData");
           ConfigData.Columns.Add("key");
           ConfigData.Columns.Add("value");

I suggest you revise your code, and sort your code formatting out before attempting such a development.
Wow only post of yours I will agree on.

Seems like you dived into a heavy development without an idea on how to do it. Your snippets are unfinished classes doing nothing..
 

TheRealMoonman

I eat babies
Sep 30, 2014
360
74
Your code is terrible judging by the code snippets. Your calling a method to clear the console, but then clearing it again straight after you've called that method? My only thought is your gonna write to is at the end of that method you're calling, and you're re-clearing it for a clean UI?

This is also worrying, are you expecting errors on startup? If not I would change it from red to something more debug-like, maybe gray or cyan?
Code:
Console.ForegroundColor = ConsoleColor.Red;

The point of this is???
Code:
Console.SetCursorPosition(0, 0);

Why... just why? lol
Code:
this.Cache = new DataSet();
           this.ConfigData = new DataTable();

           Cache.Tables.Add("ConfigData");
           ConfigData.Columns.Add("key");
           ConfigData.Columns.Add("value");

I suggest you revise your code, and sort your code formatting out before attempting such a development.
You're the person that was going to release a closed source product in .NET right? :lol: sorry if my code triggered you, I'm not here to impress anybody.

Update: Close this thread please @JMG , working on a project that doesn't involve C#, which is @Seriosk 's only speciality.
 
Status
Not open for further replies.

Users who are viewing this thread

Top