Post: [C#] cl_ingame loop causing game to crash upon loading?
05-09-2016, 08:17 AM #1
(adsbygoogle = window.adsbygoogle || []).push({}); Hey, so in my tool (written in C#) i have a loop that's continuously looping (cl_ingame) like the example shown below:
    static void ExampleForNGUQuestion()
{
for(;Winky Winky
{
if(RPC.Call(0x1CB68ECool Man (aka Tustin)==1)
{
//ingame
}
else
{
//notingame
}
Threading.Sleep(100);
}
}

The problem is, that if this
    RPC.Call(0x1CB68ECool Man (aka Tustin)
is called before game loads the game will crash upon loading, the loading bar gets all the way to the end but that's when console freezes.. Any suggestions?
(adsbygoogle = window.adsbygoogle || []).push({});
05-09-2016, 02:02 PM #2
B777x
Hurah!
Originally posted by MemoryPointers View Post
Hey, so in my tool (written in C#) i have a loop that's continuously looping (cl_ingame) like the example shown below:
    static void ExampleForNGUQuestion()
{
for(;Winky Winky
{
if(RPC.Call(0x1CB68ECool Man (aka Tustin)==1)
{
//ingame
}
else
{
//notingame
}
Threading.Sleep(100);
}
}

The problem is, that if this
    RPC.Call(0x1CB68ECool Man (aka Tustin)
is called before game loads the game will crash upon loading, the loading bar gets all the way to the end but that's when console freezes.. Any suggestions?


"RPC.Call" is wrong because the address (0x01CB68ECool Man (aka Tustin) is for a dvar not a function
the right way to do it
    

static bool IsInGame()
{
return PS3.Extension.ReadBool(0x01CB68C0 + 0x1Cool Man (aka Tustin);
}


and then you could do
    

if (IsInGame())
// or
if (PS3.Extension.ReadBool(0x01CB68C0 + 0x1Cool Man (aka Tustin))

The following user thanked B777x for this useful post:

MemoryPointers
05-09-2016, 09:35 PM #3
Originally posted by B777x View Post
"RPC.Call" is wrong because the address (0x01CB68ECool Man (aka Tustin) is for a dvar not a function
the right way to do it
    

static bool IsInGame()
{
return PS3.Extension.ReadBool(0x01CB68C0 + 0x1Cool Man (aka Tustin);
}


and then you could do
    

if (IsInGame())
// or
if (PS3.Extension.ReadBool(0x01CB68C0 + 0x1Cool Man (aka Tustin))



Ohhh, thanks alot bro Smile
05-09-2016, 09:39 PM #4
Originally posted by MemoryPointers View Post
Hey, so in my tool (written in C#) i have a loop that's continuously looping (cl_ingame) like the example shown below:
    static void ExampleForNGUQuestion()
{
for(;Winky Winky
{
if(RPC.Call(0x1CB68ECool Man (aka Tustin)==1)
{
//ingame
}
else
{
//notingame
}
Threading.Sleep(100);
}
}

The problem is, that if this
    RPC.Call(0x1CB68ECool Man (aka Tustin)
is called before game loads the game will crash upon loading, the loading bar gets all the way to the end but that's when console freezes.. Any suggestions?


Question answered. Closed.

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo