NosFun source code !

03/03/2014 22:35 Kingrap#1
This code is not the job of my brain and i know that isn't perfect but the author is not a good programmer, only a guy that have written his first server.. a beginner if we want write the perfect term, so.. please, dont kill him for it.. him is only a student like the most of this forum, not all are expert and we can only support their projects..

What's NosFun ? NosFun was a private server maked by Giorigo1, a guy of a forum called bg but that i can't link here..
I haven't never tested it, im sorry but i had not time for try it..

Some Guys of this forum asked me the source code of his world server and i said 'why not ?' so i asked to him and i got this response 'okay, there aren't problems, release the code'..

Requirements:
- Visual studio 2012 or Visual studio 2013
- C++ base

Code uploaded online:
- cryptography.h [Only registered and activated users can see links. Click Here To Register...]
- functions.h [Only registered and activated users can see links. Click Here To Register...]
- main.cpp [Only registered and activated users can see links. Click Here To Register...]
- stdafx.h [Only registered and activated users can see links. Click Here To Register...]
- structures.h [Only registered and activated users can see links. Click Here To Register...]

Download (vs 2012 project, for who want copy manually the code): [Only registered and activated users can see links. Click Here To Register...]

Good luck with it ! :)
03/03/2014 22:59 nikydarklord#2
Giorigo don't asked u for relase this source, u steal and u relase....
03/03/2014 23:41 ernilos#3
Wow nice grammar, anyway what is? There's no description :/
03/03/2014 23:49 Happy Hardcore#4
What in the world is "Nosfun"?
03/03/2014 23:59 Paint3r#5
Thx enigma, good for studiing
but how i change it to the newest client version?
03/04/2014 00:36 Kingrap#6
Quote:
Originally Posted by ernilos View Post
Wow nice grammar, anyway what is? There's no description :/
No problems, im not english and all know it..
I've added now the description, read and tell me if there are errors ^^

Quote:
Originally Posted by Happy Hardcore View Post
What in the world is "Nosfun"?
I don't know but you can run it and see :handsdown: stop to laziness xD

Quote:
Originally Posted by Paint3r View Post
Thx enigma, good for studiing
but how i change it to the newest client version?
Open the project with visual studio and look the code, i think that the project is updated for the new client but im not so sure.. only try and fix problems, a simple replacement of packets :)
03/04/2014 00:38 Paint3r#7
Quote:
Originally Posted by Kingrap View Post
No problems, im not english and all know it..
I've added now the description, read and tell me if there are errors ^^



I don't know but you can run it and see :handsdown: stop to laziness xD



Open the project with visual studio and look the code, i think that the project is updated for the new client but im not so sure.. only try and fix problems, a simple replacement of packets :)
No its on very old client. (first of waat client)
i dont find 0,9.... you understand?
03/04/2014 01:23 Kingrap#8
Quote:
Originally Posted by Paint3r View Post
No its on very old client. (first of waat client)
i dont find 0,9.... you understand?
the true story ? no man, i haven't understood you ahah XD
03/04/2014 14:24 Kubixiorek#9
Why when i running it, game server appear for 1sec and dissapear...
03/04/2014 14:27 Paint3r#10
Quote:
Originally Posted by Kubixiorek View Post
Why when i running it, game server appear for 1sec and dissapear...
nahh its work

enigma i mean the version number 0,9,3,3029 is the newest the server run on the 0,9,3,2958
03/04/2014 14:36 Kubixiorek#11
it work if it dissapearing?
03/04/2014 14:52 Paint3r#12
Quote:
Originally Posted by Kubixiorek View Post
it work if it dissapearing?
No,it must be a console with italian text
03/04/2014 15:05 Kubixiorek#13
Then.. how i can repair it?
03/04/2014 15:07 IceTrailer#14
Getting errors while compiling

Code:
Error	10	error C2446: ':': No conversion from 'std::basic_ostream<char,std::char_traits<char>>' to 'bool'	C:\NosFun Game SERVER\NosFun Game SERVER\main.cpp	25	1	NosFun Game SERVER



Code:
13	IntelliSense: It can't be referred to "Function "std::basic_ostream<_Elem, _Traits>::basic_ostream(const std::basic_ostream<_Elem, _Traits>::_Myt &) [with _Elem=char, _Traits=std::char_traits<char>]" (declared in line 84 from "C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\ostream")" (is a deleted function).	C:\NosFun Game SERVER\NosFun Game SERVER\main.cpp	25	130	NosFun Game SERVER
03/04/2014 15:39 Kingrap#15
For the version you can change it without any problems, not so hard.. Inject packetlogger into che new client and look the last part of login packet ( Send ) >.<

sk8ter08 a moment and i tell you how to solve.. ^^


-- EDIT --

Okay, try to change it:

Code:
err < 0 ? closesocket(Listen) && WSACleanup() && std::cout<<"Errore, impossibile avviare l'ascolto del server!"<<std::endl : std::cout<<"Listen() avviato con successo!"<<std::endl;
With it:

Code:
if(err < 0)
	{
		closesocket(Listen);
		WSACleanup();
		std::cout<<"Errore, impossibile avviare l'ascolto del server!"<<std::endl
	}
	else
	{
		std::cout<<"Listen() avviato con successo!"<<std::endl;
	}
are you using the version 2012 or more ?

4000 = EN
4001 = DE
4002 = FR
4003 = IT
4004 = PL
4005 = ES
4006 = CZ
4007 = RU
4008 = TR