FagNet Debugging

12/01/2015 09:01 Gokumvm#1
Hello, I optimized FagNet a little bit but I can't really manage to Debug and Compile it.... Everytime I press F5 to Debug it says there were build errors do you want to continue from the last successful build? When I press yes it runs the FagNetGame.exe but there are no changes at all, How can I tell? Because I changed the Ready for Connections! message to see if it would change. But it doesn't... Can anyone help me please?
12/01/2015 12:35 golle12#2
You need to look which error the compiler throow out...
12/01/2015 12:40 Gokumvm#3
Quote:
Originally Posted by golle12 View Post
You need to look which error the compiler throow out...
Thanks for replying thomas, but there are alot of errors... I added you on Skype


EDIT: Fixed most errors, all errors I have now is FagNetCore.exe could not be found, ( I dont have it so) and some IPAdress errors..
12/01/2015 16:45 golle12#4
FagNetCore is a dll not an exe :/
12/01/2015 16:48 Gokumvm#5
Quote:
Originally Posted by golle12 View Post
FagNetCore is a dll not an exe :/
I know! Thats why I am freaking out. I only have the .dll and not the exe!
12/01/2015 16:54 Apasp®#6
Quote:
Originally Posted by Gokumvm View Post
I know! Thats why I am freaking out. I only have the .dll and not the exe!
:rtfm: :facepalm: :facepalm: :facepalm:

you need no exe "FagNetCore"
12/01/2015 17:00 Gokumvm#7
Quote:
Originally Posted by Apasp® View Post
:rtfm: :facepalm: :facepalm: :facepalm:

you need no exe "FagNetCore"
[Only registered and activated users can see links. Click Here To Register...] Then what is this idiot?
12/01/2015 17:05 golle12#8
The problem is you changed the project settings from dll into exe... . But if you really want to write a private server, than rewrite it completly and write it by your own maybe in c++ because it is faster and better, but if you want to stay in c# you can use it. I´m still writing on a pre-season 1 server in c++ and i know what I´m telling, because the performance from FagNet is really bad and, if you write it by your own, you know what you want to do and you understand it better instead you use an open source from people who said that you need to rewrite it, so you should think about, if you can programming and reversing, if this is not given, then you should learn the basics from both of them and you can continue your project anyway you could get some problems in the future.
12/01/2015 17:21 Gokumvm#9
Quote:
Originally Posted by golle12 View Post
The problem is you changed the project settings from dll into exe... . But if you really want to write a private server, than rewrite it completly and write it by your own maybe in c++ because it is faster and better, but if you want to stay in c# you can use it. I´m still writing on a pre-season 1 server in c++ and i know what I´m telling, because the performance from FagNet is really bad and, if you write it by your own, you know what you want to do and you understand it better instead you use an open source from people who said that you need to rewrite it, so you should think about, if you can programming and reversing, if this is not given, then you should learn the basics from both of them and you can continue your project anyway you could get some problems in the future.
Well idk how I changed it from DLL into exe but maybe you're right, I don't have the C# Requierements to write my own emulator dude. Neither can I Reverse or Program, I'm just editing the source because I'm learning and trying to understand the Language. I think It's a good starter exercise though.. Can we talk on Skype instead of epvp?
12/01/2015 17:21 -PinkiWinki-#10
I suggest you to give up. A project like this is not for people who don't know how to code and i'm not talking about "yes i can code. i wrote a hello world program".
A project like this needs a lot of experience and knowledge.

Also everyone who tries to work with FagNet and fix it is just stupid. The source is terrible and should be only used as a documentation for the s4 protocol.
Even i didn't use the source for my newer emulator versions.

Quote:
Originally Posted by golle12 View Post
maybe in c++ cause its faster and better
I bet 100€ that my C# code is atleast 3 times faster than your C++ code. C++ doesn't make unoptimized and terrible code magically faster.
12/01/2015 17:26 golle12#11
I guess you are right the performance is dependant from the skills of the coder, but I set the condition on the FagNet Source not on your writing skill so sorry for wrong intension...
12/01/2015 17:35 Terrat#12
C# was slower than C++, this had changed over time and both are at the same level. But that your code will run 100 time´s faster is crap. Golle is using pretty sneak and fast code, yes it is still way optimizable but not it wont fit for 100 times.
12/01/2015 17:51 Gokumvm#13
Quote:
Originally Posted by Terrat View Post
C# was slower than C++, this had changed over time and both are at the same level. But that your code will run 100 time´s faster is crap. Golle is using pretty sneak and fast code, yes it is still way optimizable but not it wont fit for 100 times.
Could you be more specific? I can't really understand what you're saying. Except for the fact that C# and C++ are both good And that in C++ the code will run faster is bullshit.
12/01/2015 17:56 -PinkiWinki-#14
Terrat, you're just thinking about small projects. There is not much to talk about "speed" there.

We can come back to this topic when golle and i have a complete emulator. Would be actually interesting to compare them :)
12/01/2015 17:59 golle12#15
this could take a long time and i am not the only one who write a pre- season 1 Emulator...