Post: Get Serverdetails (Host, Map, Gametype) [C# Function]
12-05-2013, 01:29 AM #1
seb5594
Proud Former Admin
(adsbygoogle = window.adsbygoogle || []).push({}); Hey NGU & Activision, (I know Activision will read this lol)

I havn't released anything for a while. Since Enstone released his CCAPI more ppl started making tools. This might help you abit to add more stuff to your Tool Smile
It's not special but i havn't seen it released yet.

Lets start, add this somewhere in your Project..

            //Please give Credits to me (seb5594) if you are going to use it or if you post it on a other Website :=)
private String ReturnInfos(Int32 Index)
{
return Encoding.ASCII.GetString(GetBytes(0x01D7E98B, 0x100)).Replace(@"\", "|").Split('|'Winky Winky[Index];
}
public String getMapName()
{
String Map = ReturnInfos(6);
switch (Map)
{
default: return "Unknown Map";
case "mp_prisonbreak": return "Prison Break";
case "mp_dart": return "Octane";
case "mp_lonestar": return "Tremor";
case "mp_frag": return "Freight";
case "mp_snow": return "Whiteout";
case "mp_fahrenheit": return "Stormfront";
case "mp_hasima": return "Siege";
case "mp_warhawk": return "Warhawk";
case "mp_sovereign": return "Sovereign";
case "mp_zebra": return "Overlord";
case "mp_skeleton": return "Stonehaven";
case "mp_chasm": return "Chasm";
case "mp_flooded": return "Flooded";
case "mp_strikezone": return "Strikezone";
case "mp_fall": return "Free Fall";
}
}
public String getGameMode()
{
String GM = ReturnInfos(2);
switch (GM)
{
default: return "Unknown Gametype";
case "war": return "Team Deathmatch";
case "dm": return "Free for All";
case "sd": return "Search and Destroy";
case "dom": return "Domination";
case "conf": return "Kill Confirmed";
case "sr": return "Search and Rescue";
case "grind": return "Grind";
case "blitz": return "Blitz";
case "cranked": return "Cranked";
case "infect": return "Infected";
case "sotf": return "Hunted";
case "dem": return "Demolition";
case "horde": return "Safeguard";
case "sotf_ffa": return "Hunted FFA";
}
}
public String getHostName()
{
String Host = ReturnInfos(1Cool Man (aka Tustin);
if (Host == "Modern Warfare 3")
return "Dedicated Server (No Player is Host)";
else if (Host == "")
return "You are not In-Game";
else return Host;
}
public Byte[] GetBytes(UInt32 address, Int32 Length)
{
Byte[] buffer= new Byte[Length];
PS3TMAPI.ProcessGetMemory(0, PS3TMAPI.UnitType.PPU, ProcessID, 0, address, ref buffer);
return buffer;
}


If you're using iMCSx PS3Lib v4 for CCAPI support replace the ReturnInfos Function and delete my getBytes Function
                    private String ReturnInfos(Int32 Index)
{
return Encoding.ASCII.GetString(PS3.GetBytes(0x01D7E98B, 0x100)).Replace(@"\", "|").Split('|'Winky Winky[Index];
}


How to use:
Put 3 Labels in your Form as example and then do this in a Timer (to have the newest Infos)
label1.Text = getHostName();
label2.Text = getMapName();
label3.Text = getGameMode();

How it can look
You must login or register to view this content.

Please give credits to me if you are using/Update this Function!
Feel free to visit my new Youtube Channel since Activision closed my old one
You must login or register to view this content.

Credits:
Me (seb5594): Creating this Functions
Choco: GetMemory Function
Activision: Closing my Channel Drack
(adsbygoogle = window.adsbygoogle || []).push({});

The following 18 users say thank you to seb5594 for this useful post:

-JM-, AlexNGU, BaSs_HaXoR, BuC-ShoTz, EdiTzZ, FusionIsDaName, Gendjisan, Harry, ImPiffHD, MegaMister, mog001, Mr.Azoz, Mr.Hutch, Pro !, SnaY, TeRmiiMoDz, therifboy, Fatality
02-13-2014, 12:51 PM #29
RatchetBooty
Former Staff
Originally posted by Winter View Post
I've done that before, It never seems to work for me.


I figured out a way before this update, but when I was trying to do it for hostname whenever there was a different map the offset would have to be different, it was weird. So like I found a offset for host name while on prison break but when i went on octane it would be different.
02-13-2014, 01:24 PM #30
Mango_Knife
In my man cave
Originally posted by SC58 View Post
wow sad how ppl cant update somthing so simple i guess im to much of a tard to go in private match and search name or map name in debugger No thats why yall dont get nothing release worth while


No shit.
I Searched for the map name and the game name
but cant seem to find that.

Seb told me it called sv_hostname...
02-13-2014, 07:35 PM #31
seb5594
Proud Former Admin
Originally posted by Knife View Post
No shit.
I Searched for the map name and the game name
but cant seem to find that.

Seb told me it called sv_hostname...

yes, search for that. it will show your sv_hostname/HOSTNAME/map/mapname something like that. go in debugger before all this text start with /text/text/text, grab the offset and test. if it doesn't work grab the offset from a different location (few bytes +-)
02-13-2014, 08:22 PM #32
jwm614
NextGenUpdate Elite
[ATTACH=CONFIG]29847[/ATTACH]
Originally posted by seb5594 View Post
yes, search for that. it will show your sv_hostname/HOSTNAME/map/mapname something like that. go in debugger before all this text start with /text/text/text, grab the offset and test. if it doesn't work grab the offset from a different location (few bytes +-)


i found the offset but i tryd to go both ways an i cant get it to work
it makes my tool freeze and it say index out range

i got it if you want to update the offset for thiis thread 0x020904AC
02-13-2014, 08:27 PM #33
jwm614
NextGenUpdate Elite
Originally posted by Knife View Post
No shit.
I Seaaaddrched for the map name and the game name
but cant seem to find that.

Seb told me it called sv_hostname...


go to 0x020904AC it works

The following user thanked jwm614 for this useful post:

Mango_Knife
02-13-2014, 08:47 PM #34
Hash847
Purple God
Originally posted by jwm614 View Post
go to 0x020904AC it works but host comes up as 0


I know.
02-14-2014, 05:46 PM #35
Mango_Knife
In my man cave
Originally posted by Winter View Post
I know.


As 0?
Working fine for me.
02-14-2014, 06:34 PM #36
jwm614
NextGenUpdate Elite
Originally posted by Knife View Post
As 0?
Working fine for me.


I was think how aneras tool was host said the clangtag an ur psn name
02-14-2014, 06:43 PM #37
Mango_Knife
In my man cave
Originally posted by jwm614 View Post
I was think how aneras tool was host said the clangtag an ur psn name


its not a problem
i added this into my tool: You must login or register to view this content.
including Hardcore check (It check if you are playing in hardcore match or not)

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo