Quantcast
Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
    1. Welcome to GTAForums!

    1. Red Dead Redemption 2

      1. Gameplay
      2. Missions
      3. Help & Support
    2. Red Dead Online

      1. Gameplay
      2. Find Lobbies & Outlaws
      3. Help & Support
    1. Crews & Posses

      1. Recruitment
    2. Events

    1. GTA Online

      1. Arena War
      2. After Hours
      3. Find Lobbies & Players
      4. Guides & Strategies
      5. Vehicles
      6. Content Creator
      7. Help & Support
    2. Grand Theft Auto Series

    3. GTA Next

    4. GTA V

      1. PC
      2. Guides & Strategies
      3. Help & Support
    5. GTA IV

      1. Episodes from Liberty City
      2. Multiplayer
      3. Guides & Strategies
      4. Help & Support
      5. GTA Mods
    6. GTA Chinatown Wars

    7. GTA Vice City Stories

    8. GTA Liberty City Stories

    9. GTA San Andreas

      1. Guides & Strategies
      2. Help & Support
      3. GTA Mods
    10. GTA Vice City

      1. Guides & Strategies
      2. Help & Support
      3. GTA Mods
    11. GTA III

      1. Guides & Strategies
      2. Help & Support
      3. GTA Mods
    12. Top Down Games

      1. GTA Advance
      2. GTA 2
      3. GTA
    13. Wiki

      1. Merchandising
    1. GTA Modding

      1. GTA V
      2. GTA IV
      3. GTA III, VC & SA
      4. Tutorials
    2. Mod Showroom

      1. Scripts & Plugins
      2. Maps
      3. Total Conversions
      4. Vehicles
      5. Textures
      6. Characters
      7. Tools
      8. Other
      9. Workshop
    3. Featured Mods

      1. DYOM
      2. OpenIV
      3. GTA: Underground
      4. GTA: Liberty City
      5. GTA: State of Liberty
    1. Red Dead Redemption

    2. Rockstar Games

    1. Off-Topic

      1. General Chat
      2. Gaming
      3. Technology
      4. Programming
      5. Movies & TV
      6. Music
      7. Sports
      8. Vehicles
    2. Expression

      1. Graphics / Visual Arts
      2. GFX Requests & Tutorials
      3. Writers' Discussion
      4. Debates & Discussion
    1. News

    2. Forum Support

    3. Site Suggestions

Sign in to follow this  
maro_hannover

Phone Checks

phone checks  

5 members have voted

  1. 1. Do you care about Phone Checks

    • Yes
      3
    • No
      2


Recommended Posts

maro_hannover

Phone Checks Only Work In XP right?

then there is a reason that something is missing from another operating systems.

In GTA IV:SA i used Windows 7 and it was working. Later i've used Windows 8 and i could not update and if i do the exe will not work again. i tried to play in the settings and i found that Microsoft Framework 3 is disabled. (It is disabled always by default) so i enabled it. and i ran GTA IV:SA and It Worked!!.

Then There is something that prevents the phone checks in Scripthookdotnet, We can look at scripthookdotnet source and check the word

INFO: PHONE CHECKS ARE NOT AVAILABLE. and see which Condition is it set. So we Together can Fix the Phone Checks together.

It maybe a NET Framework or Direct X,etc version.

Come Together We Fix Phone Checks and we make the GTA V Phone Mod in c#.

I'me sure there is a solution. guys. think about it


Here is HazardX ScriptDotNetScriptHook Source


Found This !!! I am continuing.

//c++[system::Runtime::ExceptionServices::HandleProcessCorruptedStateExceptions]	void NetHook::CheckPhone() {		if (bPhoneError) return;		String^ num;		try {			num = unmanaged::MemoryAccess::GetPhoneNumber();		//} catchErrors ("Error during GetPhoneNumber (Phone checks will be disabled)", num = String::Empty; bPhoneError = true; )		} catch(...) {			num = String::Empty;			bPhoneError = true;			GTA::NetHook::Log( "INFO: Phone number checks are not available!" );		}

Share this post


Link to post
Share on other sites
maro_hannover

Guys I found The Reason

num = String::Empty;            bPhoneError = true;            GTA::NetHook::Log( "INFO: Phone number checks are not available!" );

Do you think i am right?

Share this post


Link to post
Share on other sites
leftas

 

 

Best regards,

Paul.

Share this post


Link to post
Share on other sites
maro_hannover

 

 

Best regards,

Paul.

About What?

Share this post


Link to post
Share on other sites
Wiebrendh

 

 

 

Best regards,

Paul.

About What?

 

 

That means you did not find the problem

Share this post


Link to post
Share on other sites
maro_hannover

Very Sorry To Hear. i will try more :(

Share this post


Link to post
Share on other sites
leftas
String^ MemoryAccess::GetPhoneNumber() {		//if (ADDRESS_PHONENUMBER == 0) return String::Empty;		//char* pPhoneNumberPtr = (char*)(ADDRESS_PHONENUMBER);		//return gcnew String(pPhoneNumberPtr);		//GTA::NetHook::Log("Phone1");		int adr = GetGlobalAddress(91);		if (adr == 0) return String::Empty;		if (adr == 364) throw gcnew Exception("Accessing Globals failed!");		//GTA::NetHook::Log("Phone2 " + adr.ToString());		sPhoneInfo pi = *(sPhoneInfo*)(adr);		//GTA::NetHook::Log("Phone3");		if ( (pi.lastCalledNumber == 0) || (pi.lastCalledNumber[0] == 0) ) return String::Empty;		//GTA::NetHook::Log("Phone4");		return gcnew String(pi.lastCalledNumber);	}

Here

 

Best regards,

Paul.

Share this post


Link to post
Share on other sites
Noox

Guys I found The Reason

num = String::Empty;            bPhoneError = true;            GTA::NetHook::Log( "INFO: Phone number checks are not available!" );

Do you think i am right?

Completely unrelated

 

String^ MemoryAccess::GetPhoneNumber() {		//if (ADDRESS_PHONENUMBER == 0) return String::Empty;		//char* pPhoneNumberPtr = (char*)(ADDRESS_PHONENUMBER);		//return gcnew String(pPhoneNumberPtr);		//GTA::NetHook::Log("Phone1");		int adr = GetGlobalAddress(91);		if (adr == 0) return String::Empty;		if (adr == 364) throw gcnew Exception("Accessing Globals failed!");		//GTA::NetHook::Log("Phone2 " + adr.ToString());		sPhoneInfo pi = *(sPhoneInfo*)(adr);		//GTA::NetHook::Log("Phone3");		if ( (pi.lastCalledNumber == 0) || (pi.lastCalledNumber[0] == 0) ) return String::Empty;		//GTA::NetHook::Log("Phone4");		return gcnew String(pi.lastCalledNumber);	}

Here

 

Best regards,

Paul.

 

What's "^" ? I've never seen it.

Share this post


Link to post
Share on other sites
leftas

This language named C++/CLI, it's pointer if I remember correctly.

 

Best regards,

Paul.

Share this post


Link to post
Share on other sites
maro_hannover
String^ MemoryAccess::GetPhoneNumber() {		//if (ADDRESS_PHONENUMBER == 0) return String::Empty;		//char* pPhoneNumberPtr = (char*)(ADDRESS_PHONENUMBER);		//return gcnew String(pPhoneNumberPtr);		//GTA::NetHook::Log("Phone1");		int adr = GetGlobalAddress(91);		if (adr == 0) return String::Empty;		if (adr == 364) throw gcnew Exception("Accessing Globals failed!");		//GTA::NetHook::Log("Phone2 " + adr.ToString());		sPhoneInfo pi = *(sPhoneInfo*)(adr);		//GTA::NetHook::Log("Phone3");		if ( (pi.lastCalledNumber == 0) || (pi.lastCalledNumber[0] == 0) ) return String::Empty;		//GTA::NetHook::Log("Phone4");		return gcnew String(pi.lastCalledNumber);	}

Here

 

Best regards,

Paul.

 

Where i will put this to get it working?

Share this post


Link to post
Share on other sites
leftas

I think I post solution for you why it's not working ?

If you take a look you would see that in your posted code there is try and catch, so we definitely(if I am not wrong) looking for exception and you can see (in code that I posted) there is only one sentence where is throwing error

if (adr == 364) throw gcnew Exception("Accessing Globals failed!");

I don't know why this happens, but my speculation would be, that for win 7 and vista there is different global for mobile number(not sure, though). Because @MulleDK19 made phones numbers available in his shdn.

 

Best regards,

Paul.

Edited by leftas

Share this post


Link to post
Share on other sites
Noox

 

String^ MemoryAccess::GetPhoneNumber() {		//if (ADDRESS_PHONENUMBER == 0) return String::Empty;		//char* pPhoneNumberPtr = (char*)(ADDRESS_PHONENUMBER);		//return gcnew String(pPhoneNumberPtr);		//GTA::NetHook::Log("Phone1");		int adr = GetGlobalAddress(91);		if (adr == 0) return String::Empty;		if (adr == 364) throw gcnew Exception("Accessing Globals failed!");		//GTA::NetHook::Log("Phone2 " + adr.ToString());		sPhoneInfo pi = *(sPhoneInfo*)(adr);		//GTA::NetHook::Log("Phone3");		if ( (pi.lastCalledNumber == 0) || (pi.lastCalledNumber[0] == 0) ) return String::Empty;		//GTA::NetHook::Log("Phone4");		return gcnew String(pi.lastCalledNumber);	}

Here

 

Best regards,

Paul.

 

Where i will put this to get it working?

 

that's scripthookdotnet source code.

Share this post


Link to post
Share on other sites
Silent

Wasn't it related to different IV patches rather than the OS?

Share this post


Link to post
Share on other sites
NTAuthority

Wasn't it related to different IV patches rather than the OS?

rather /DYNAMICBASE on GTAIV.exe not being taken into account

 

also >retarded 'This reply has not been added as it has been posted too quickly' error that means nothing meaningful again

Share this post


Link to post
Share on other sites
leftas

Not sure, but I remember correctly Hazardx wrote that phone numbers works on xp but not on 7/vista. You can check on shin discussion.

 

Best regards,

Paul.

Share this post


Link to post
Share on other sites
Silent

ah so it's just like TTDISA which assumed a fixed ntdll address, resulting in a crash on VirtualProtect when using anything newer than XP

Share this post


Link to post
Share on other sites
NTAuthority

ah so it's just like TTDISA which assumed a fixed ntdll address, resulting in a crash on VirtualProtect when using anything newer than XP

no, because TTDISA also fixed the address inside ntdll, whereas this is static per-patch but not static per-session on Vista+

Share this post


Link to post
Share on other sites
maro_hannover

I think I post solution for you why it's not working ?

If you take a look you would see that in your posted code there is try and catch, so we definitely(if I am not wrong) looking for exception and you can see (in code that I posted) there is only one sentence where is throwing error

if (adr == 364) throw gcnew Exception("Accessing Globals failed!");

I don't know why this happens, but my speculation would be, that for win 7 and vista there is different global for mobile number(not sure, though). Because @MulleDK19 made phones numbers available in his shdn.

 

Best regards,

Paul.

 

 

 

String^ MemoryAccess::GetPhoneNumber() {		//if (ADDRESS_PHONENUMBER == 0) return String::Empty;		//char* pPhoneNumberPtr = (char*)(ADDRESS_PHONENUMBER);		//return gcnew String(pPhoneNumberPtr);		//GTA::NetHook::Log("Phone1");		int adr = GetGlobalAddress(91);		if (adr == 0) return String::Empty;		if (adr == 364) throw gcnew Exception("Accessing Globals failed!");		//GTA::NetHook::Log("Phone2 " + adr.ToString());		sPhoneInfo pi = *(sPhoneInfo*)(adr);		//GTA::NetHook::Log("Phone3");		if ( (pi.lastCalledNumber == 0) || (pi.lastCalledNumber[0] == 0) ) return String::Empty;		//GTA::NetHook::Log("Phone4");		return gcnew String(pi.lastCalledNumber);	}

Here

 

Best regards,

Paul.

 

Where i will put this to get it working?

 

that's scripthookdotnet source code.

 

 

Wasn't it related to different IV patches rather than the OS?

 

 

Wasn't it related to different IV patches rather than the OS?

rather /DYNAMICBASE on GTAIV.exe not being taken into account

 

also >retarded 'This reply has not been added as it has been posted too quickly' error that means nothing meaningful again

 

 

ah so it's just like TTDISA which assumed a fixed ntdll address, resulting in a crash on VirtualProtect when using anything newer than XP

 

 

ah so it's just like TTDISA which assumed a fixed ntdll address, resulting in a crash on VirtualProtect when using anything newer than XP

no, because TTDISA also fixed the address inside ntdll, whereas this is static per-patch but not static per-session on Vista+

 

o.O

It Means it is impossible to make phonebinds or make player get a call from a contact?

That is why i want to learn SCO Scripting

Share this post


Link to post
Share on other sites
Silent

It should be an easy fix. This scripthook is open source, right?

 

Oh. and quoting every post from the topic wasn't needed.

Share this post


Link to post
Share on other sites
maro_hannover

 

It should be an easy fix. This scripthook is open source, right?

 

Share this post


Link to post
Share on other sites
maro_hannover

So,

Where is the fix?

Share this post


Link to post
Share on other sites
Jitnaught

So,

Where is the fix?

Just because someone says that it should be easy, doesn't mean that it has been released online.

MulleDK19 fixed it, but he has not released it.

Share this post


Link to post
Share on other sites
maro_hannover

I will PM him

Edited by maro_hannover

Share this post


Link to post
Share on other sites
Noox

You said it's an easy fix, why don't you fix it yourself then?

Share this post


Link to post
Share on other sites
maro_hannover

You said it's an easy fix, why don't you fix it yourself then?

Silent Said This. Not Me.

Share this post


Link to post
Share on other sites
Noox

You replied saying yes.

Share this post


Link to post
Share on other sites
Jitnaught

You replied saying yes.

I think he replied the "Yes!" video because he was happy that it was an easy fix.

Share this post


Link to post
Share on other sites
maro_hannover

I replied YES! because i am very happy that there is a fix

Share this post


Link to post
Share on other sites
maro_hannover

MulleDK19 is not answering. Oooh! when this will be fixed!

Share this post


Link to post
Share on other sites
InfamousSabre

It'll be fixed eventually. Until then, unless you have the ability to fix it yourself, work with what you have.

Share this post


Link to post
Share on other sites
Guest
This topic is now closed to further replies.
Sign in to follow this  

  • 1 User Currently Viewing
    0 members, 0 Anonymous, 1 Guest

×
×
  • Create New...

Important Information

By using GTAForums.com, you agree to our Terms of Use and Privacy Policy.