[C# - Development] Jolt Environment

Page 2 of 3 FirstFirst 123 LastLast
Results 16 to 30 of 45
  1. #16
    Proficient Member laurens is offline
    MemberRank
    May 2006 Join Date
    netherlandLocation
    173Posts

    Re: [C# - Development] Jolt Environment

    Nice project, i'm building an 317 server of c#, started a month ego i don't spend much time on it, since i cannot get cryption and stream 100% converted :P

  2. #17
    The next don TheAJ is offline
    DeveloperRank
    May 2007 Join Date
    Toronto, CanadaLocation
    3,946Posts

    Re: [C# - Development] Jolt Environment

    Quote Originally Posted by laurens View Post
    Nice project, i'm building an 317 server of c#, started a month ego i don't spend much time on it, since i cannot get cryption and stream 100% converted :P
    You should try making it by yourself mate, converting may be easy, but what's the point? you're not learning

  3. #18
    Proficient Member laurens is offline
    MemberRank
    May 2006 Join Date
    netherlandLocation
    173Posts

    Re: [C# - Development] Jolt Environment

    The problem is since c# does not support >>>

    to convert i'm using

    k1 ^= l1 >>> 16; to k1 ^= Math.Abs(l1) >> 16;

    only not sure if it works 100% :P is that the correct way to convert it? or i'm screwing it up :P

  4. #19
    The next don TheAJ is offline
    DeveloperRank
    May 2007 Join Date
    Toronto, CanadaLocation
    3,946Posts

    Re: [C# - Development] Jolt Environment

    The "> or <"'s are called shift operators (also called bitwise shifts), and JAVA has one with three(3) shifts which is used for unsigned sifting, which C#'s 2 shifts does automatically (any unsigned field)

    So really,
    Code:
    k1 ^= l1 >> 16; to k1 ^= Math.Abs(l1) >> 16;
    will do the same as it would in JAVA

    please back to topic :P
    Last edited by TheAJ; 07-08-09 at 07:28 PM.

  5. #20
    win CioNide is offline
    MemberRank
    Jun 2008 Join Date
    2,560Posts

    Re: [C# - Development] Jolt Environment

    I plan on adding a lot to this project, when will you have that "directory" set up for me?

  6. #21
    Ginger by design. jMerliN is offline
    MemberRank
    Feb 2007 Join Date
    2,497Posts

    Re: [C# - Development] Jolt Environment

    Quote Originally Posted by King Izu View Post
    Asynchronous .NET sockets inherently use IOCP. This is the .NET framework we're talking about.
    This is not true.

  7. #22
    Ragezone OG FrostElite is offline
    MemberRank
    Sep 2008 Join Date
    United StatesLocation
    1,881Posts

    Re: [C# - Development] Jolt Environment

    Very impressive

  8. #23
    Ginger by design. jMerliN is offline
    MemberRank
    Feb 2007 Join Date
    2,497Posts

    Re: [C# - Development] Jolt Environment

    What's the deal with this codec stuff? This is just the stuff of binary streams... (BinaryReader/BinaryWriter etc).


    And templates would make that over 9000 times nicer :).
    Last edited by jMerliN; 12-08-09 at 07:26 AM.

  9. #24
    The next don TheAJ is offline
    DeveloperRank
    May 2007 Join Date
    Toronto, CanadaLocation
    3,946Posts

    Re: [C# - Development] Jolt Environment

    I knew about the binary reader and writer, just wasn't sure if they're going to do what i wanted them to do

    Also, what do you mean by templates?

  10. #25
    Ginger by design. jMerliN is offline
    MemberRank
    Feb 2007 Join Date
    2,497Posts

    Re: [C# - Development] Jolt Environment

    Quote Originally Posted by TheAJ View Post
    I knew about the binary reader and writer, just wasn't sure if they're going to do what i wanted them to do

    Also, what do you mean by templates?
    Code:
    	template <typename T>
    	T read_basic() {
    		if(!curbuf) return T(0);
    
    		if(sizeof(T)>(size-ptr)) return T(0);		// Teh fail, buffer overflow prevention
    
    		T retval = *((T*)(curbuf+ptr));
    		ptr += sizeof(T);
    
    		return retval;
    	}
    
    	template <typename T>
    	READ_RESULT read_copy(T* t) {
    		if(!curbuf)return READ_NOBUFFER;
    
    		if(sizeof(T)>(size-ptr)) return READ_EOF;		// Teh fail, buffer overflow prevention
    
    		memcpy(t,(curbuf+ptr),sizeof(T));			// Replace with interface copy?
    
    		ptr+=sizeof(T);
    		return READ_SUCCESS;
    	}
    
    	// object reading deserializes an object from the stream, KEWL!
    	READ_RESULT read_object(Deserializable* obj) {
    		return obj->deserialize(this);
    	}
    
    	template <typename T>
    	BinaryReader& operator >>(T& obj){
    		read_copy<T>((T*)&obj);
    		return *this;
    	}
    Etc etc etc.

  11. #26
    The next don TheAJ is offline
    DeveloperRank
    May 2007 Join Date
    Toronto, CanadaLocation
    3,946Posts

    Re: [C# - Development] Jolt Environment

    Alright guys... this might piss you off, but I've started the project from scratch.. again :P
    Reason being is i keep learning more and more, and when i look back at my work, it just loops like a massive dump of shit. So i promise this will be my last restart :)

    You can however download the older version here: http://rapidshare.com/files/267476411/Jolt.zip - Enjoy.

  12. #27
    :-) s-p-n is offline
    DeveloperRank
    Jun 2007 Join Date
    Next DoorLocation
    2,098Posts

    Re: [C# - Development] Jolt Environment

    No, you have a disease many programmers have. It has to do with learning faster then you can complete projects.

    It's all part of being a beginner programmer. I have the same problem with things..

    >.<

  13. #28
    The next don TheAJ is offline
    DeveloperRank
    May 2007 Join Date
    Toronto, CanadaLocation
    3,946Posts

    Re: [C# - Development] Jolt Environment

    Quote Originally Posted by s-p-n View Post
    No, you have a disease many programmers have. It has to do with learning faster then you can complete projects.

    It's all part of being a beginner programmer. I have the same problem with things..

    >.<
    Yeah i regret starting this project so early in my C# learning
    Last edited by TheAJ; 16-08-09 at 04:53 AM.

  14. #29
    Venture Adventure Tyler is offline
    LegendRank
    Nov 2008 Join Date
    United KingdomLocation
    4,443Posts

    Re: [C# - Development] Jolt Environment

    lol.
    Well good luck Aj,
    Hopefully it'll be 10x better this time round. :)

  15. #30
    The next don TheAJ is offline
    DeveloperRank
    May 2007 Join Date
    Toronto, CanadaLocation
    3,946Posts
    Quote Originally Posted by iTyler View Post
    lol.
    Well good luck Aj,
    Hopefully it'll be 10x better this time round. :)
    I know it pisses everyone off, but i guess it's better than a crapy version which everyone will complain about

    anyways, I've done some compatibility improvements, the server comes in 2 version, x86 and x64 bit

    Also there is multi threading (+ thread pooling), and optimize for multiple cores (divides threads and handles on each core using Environment.ProcessorCount)

    I'll do a svn commit later today so you guys can check it out - regardless, the redo is going great, just trying to improve everything that i've already done last version

    Updates:

    Added database handling / storage
    Added multi threading (as said above) with thread pooling
    Improved logging system
    Improved support for x32 and x64 systems (as said above)

    Picture of new console:


    folders are also more organized:


    console now logs all errors to a log file (option to turn it on and off also included in /config/system_console.xml)
    Last edited by CrashOveride; 03-09-09 at 07:05 AM.



Page 2 of 3 FirstFirst 123 LastLast

Advertisement