Reading IP 5165

01/10/2010 20:32 Arcо#1
Well I'm trying to make my ip be read via in source instead of config.ini.
Like example
GameServerIP = MyIP.

Can anyone tell me where in the source it reads config.ini?
01/10/2010 20:35 .Ryu#2
Quote:
Originally Posted by Hepatitis C View Post
Well I'm trying to make my ip be read via in source instead of config.ini.
Like example
GameServerIP = MyIP.

Can anyone tell me where in the source it reads config.ini?
In the source trying searching for
"C:\OldCODB\Config.ini"
Or just Config.ini
01/10/2010 20:35 Arcо#3
Quote:
Originally Posted by Cømbat View Post
In the source trying searching for
"C:\OldCODB\Config.ini"
Or just Config.ini
Lol don't you think I've tried the basic stuff like that?
I just can't find where the server connects if the GameServerIP is right.
01/10/2010 21:43 pro4never#4
If I were you I would find somewhere that the game server ip is referenced and then simply do "find definition" which should show where it was originally set (which would be coming from the .ini file) You could then change that to an ip of your choice without causing any problems as far as I know.
01/10/2010 22:05 Kiyono#5
Program.cs,
Code:
IniFile I = new IniFile(@"C:\Users\Administrator\Documents\Stuffs\Co 'n Stuff\Patch 5165 source\bin\Release\OldCODB\Config.ini");
is where it loads the ini file.
Code:
NewestCOServer.Main.AuthWorker.StartServer(I.ReadString("Database", "GameServerIP"));
Is where it gets the IP.