You are viewing our Forum Archives. To view or take place in current topics click here.
#11. Posted:
Status: Offline
Joined: Feb 27, 201014Year Member
Posts: 662
Reputation Power: 41
Status: Offline
Joined: Feb 27, 201014Year Member
Posts: 662
Reputation Power: 41
Mk14Boss wroteBotch wrote The only reason those menus work online is because The Tesseract is host only, and Nuke 2.0 doesn't have verification. All other members have verification, which sets the host to client 0 (usually). But online, the host isn't always client 0.
Don't worry, people are working on a working getHost System.
Alright that's good to hear:D
Well there are many ways to find the host.
Simple way you could do it is get all the client names into a array.
Example of use:
Create a Function - (string)GetClientName(int index), to do this in TU7(may work on TU8, if Not someone correct me) it was PlayerState(int index) + 0x3208 for a length of 16.
When the game starts you need another function - (int)Host(), this will loop threw all possible clients to find the host.
/* Lets say you have "Tom" and "Ho oker" in the game.
Use GetClientName and loop that 18 times putting the names into your array. ex:AllClientNames
Then it searches through all the names and then if its the same as the host it returns the host index or -1 if there isn't anyone in the game matching GamerTag. */
static const char * GamerTag = "Ho oker";//Host Gamertag you put in
const char *AllClientNames[] = {"Tom","Ho oker"};
int Host()
{
for (int i = 0; i <= 17; i++)
if (GamerTag == AllClientNames[i])
return i;
return -1;
}
- 1useful
- 0not useful
#12. Posted:
Status: Offline
Joined: Jan 07, 201312Year Member
Posts: 98
Reputation Power: 5
Status: Offline
Joined: Jan 07, 201312Year Member
Posts: 98
Reputation Power: 5
Just gonna post this here for a Working Get Host. I Posted on 7s so now ill post here. ENjoy
int getHost()
{
for (int Host = 0; Host < 18; Host++)
if (strstr(Dvar_GetString("sv_hostname"), GetGamertag(Host)))
return Host;
}
ENJOY!!!
int getHost()
{
for (int Host = 0; Host < 18; Host++)
if (strstr(Dvar_GetString("sv_hostname"), GetGamertag(Host)))
return Host;
}
ENJOY!!!
- 1useful
- 0not useful
#13. Posted:
Status: Offline
Joined: Apr 14, 201212Year Member
Posts: 569
Reputation Power: 23
ImJtagModz wrote Just gonna post this here for a Working Get Host. I Posted on 7s so now ill post here. ENjoy
int getHost()
{
for (int Host = 0; Host < 18; Host++)
if (strstr(Dvar_GetString("sv_hostname"), GetGamertag(Host)))
return Host;
}
ENJOY!!!
Why don't you just make it easy and set the verification system to client1??
- 0useful
- 0not useful
#14. Posted:
Status: Offline
Joined: Jan 07, 201312Year Member
Posts: 98
Reputation Power: 5
Status: Offline
Joined: Jan 07, 201312Year Member
Posts: 98
Reputation Power: 5
Mk14Boss wroteImJtagModz wrote Just gonna post this here for a Working Get Host. I Posted on 7s so now ill post here. ENjoy
int getHost()
{
for (int Host = 0; Host < 18; Host++)
if (strstr(Dvar_GetString("sv_hostname"), GetGamertag(Host)))
return Host;
}
ENJOY!!!
Why don't you just make it easy and set the verification system to client1??
because when your online your clientID changes all the time and i know that GetHost works so that is the easiest way
- 1useful
- 0not useful
#15. Posted:
Status: Offline
Joined: Apr 14, 201212Year Member
Posts: 569
Reputation Power: 23
ImJtagModz wroteMk14Boss wroteImJtagModz wrote Just gonna post this here for a Working Get Host. I Posted on 7s so now ill post here. ENjoy
int getHost()
{
for (int Host = 0; Host < 18; Host++)
if (strstr(Dvar_GetString("sv_hostname"), GetGamertag(Host)))
return Host;
}
ENJOY!!!
Why don't you just make it easy and set the verification system to client1??
because when your online your clientID changes all the time and i know that GetHost works so that is the easiest way
It changes if your in the same private match the whole time????
- 0useful
- 0not useful
#16. Posted:
Status: Offline
Joined: Feb 08, 201212Year Member
Posts: 885
Reputation Power: 48
Ok thanks man very much now i no
- 0useful
- 0not useful
#17. Posted:
Status: Offline
Joined: Apr 14, 201212Year Member
Posts: 569
Reputation Power: 23
ImJtagModz wrote Just gonna post this here for a Working Get Host. I Posted on 7s so now ill post here. ENjoy
int getHost()
{
for (int Host = 0; Host < 18; Host++)
if (strstr(Dvar_GetString("sv_hostname"), GetGamertag(Host)))
return Host;
}
ENJOY!!!
I tried it and whenever I boot the default_mp.xex it says fatal crash intercepted. Help??????
Is there a way to fix the fatal crash intercepted error? It's very frustrating and I have no menus even loaded right now:/
- 0useful
- 0not useful
You are viewing our Forum Archives. To view or take place in current topics click here.