|
Page 21 of 63 |
|
Posted: Sat, 6th Mar 2010 02:25 Post subject: |
|
 |
Pey wrote: | Can you post that cracked exe -if allowed? It´s a demo after all. |
posted it on WBB
|
|
Back to top |
|
 |
|
Posted: Sat, 6th Mar 2010 02:30 Post subject: |
|
 |
Would someone for the love of god explain to me how to install the demo download via RS? It's an ISO which contains all the files. Now when I launch it's .exe it logs me into Steam and starts downloading the whole game again. WTF?
|
|
Back to top |
|
 |
|
Posted: Sat, 6th Mar 2010 02:59 Post subject: |
|
 |
stop the d/l from steam. Leave the folder intact, extract all the files from the ISO, put them in the folder in your steam/common/just cause2 folder. then start it .
|
|
Back to top |
|
 |
|
Posted: Sat, 6th Mar 2010 06:49 Post subject: |
|
 |
How do you keep the grappling hook connected to those canisters that fly off or connect them to enemys?
|
|
Back to top |
|
 |
Epsilon
Dr. Strangelove
Posts: 9240
Location: War Room
|
Posted: Sat, 6th Mar 2010 06:52 Post subject: |
|
 |
dickybob26 wrote: | How do you keep the grappling hook connected to those canisters that fly off or connect them to enemys? |
Hit the top of the canister with the hook.
|
|
Back to top |
|
 |
|
Posted: Sat, 6th Mar 2010 07:17 Post subject: |
|
 |
Is anyone running this on an ATI?
I'm downloading it now, but I wonder if it will run:
core I5 2.27
4gb ram
ATI HD 5650
|
|
Back to top |
|
 |
segobi
Posts: 1565
Location: FBI Cybercrime div.
|
Posted: Sat, 6th Mar 2010 07:26 Post subject: |
|
 |
does NOT work. Crashes back to desktop before it even starts. unmodified exe works fine though. x86 w7.
|
|
Back to top |
|
 |
|
Posted: Sat, 6th Mar 2010 07:27 Post subject: |
|
 |
UnrealDrUiD wrote: | Is anyone running this on an ATI?
I'm downloading it now, but I wonder if it will run:
core I5 2.27
4gb ram
ATI HD 5650 |
It will run for sure, but you'll probably need to play at low-medium settings.
|
|
Back to top |
|
 |
JBeckman
VIP Member
Posts: 35037
Location: Sweden
|
Posted: Sat, 6th Mar 2010 07:33 Post subject: |
|
 |
|
|
Back to top |
|
 |
segobi
Posts: 1565
Location: FBI Cybercrime div.
|
|
Back to top |
|
 |
|
Posted: Sat, 6th Mar 2010 09:23 Post subject: |
|
 |
|
|
Back to top |
|
 |
|
Posted: Sat, 6th Mar 2010 09:45 Post subject: |
|
 |
dickybob26 wrote: | How do you keep the grappling hook connected to those canisters that fly off or connect them to enemys? |
to do so, you will have to shoot the hook (press and hold f key) into enemy, and while f still hold down, choose this gass baloon or what ever you want, and release the f key and then you can shoot the gass baloon and...your enemy will fly away like you put a hot peper into he's back hole
also wanted to say a really good word about the water...amaizing water effects that looks from some angles photo realistic and to think that when half life 2 came out, they use to speak alot about the water in the game and for 2004 it was amaizing too, but 6 years after (wich is quite some time), you can really feel finaly that you fly above water and not just blue texture with some filters, way to go.
|
|
Back to top |
|
 |
Csokis
Posts: 52
Location: Hungary
|
Posted: Sat, 6th Mar 2010 10:01 Post subject: |
|
 |
I found this.
Quote: | Instructions:
Install Autoit.
Run the demo.
When you get to the main menu:
Launch Scite (autoit editor).
Paste this:
Code: | ;;================================================================================
;; Includes
;;================================================================================
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
#RequireAdmin
#NoTrayIcon
;;================================================================================
;; Main
;;================================================================================
Opt("WinTitleMatchMode", 4)
SetPrivilege("SeDebugPrivilege", 1)
Global $ProcessID = WinGetProcess("Just Cause 2 Demo", "")
Dim $ProcessFound = 0
While $ProcessFound = 0
If $ProcessID = -1 Then
MsgBox(4096, "Error", "No process found.")
Exit(1)
EndIf
$ProcessFound = 1
WEnd
WinActivate("Just Cause 2 Demo")
$wc = WinGetPos("Just Cause 2 Demo")
$x = $wc[0] + ($wc[2] / 2) - 149/2
$y = $wc[1] + ($wc[3] / 2) - 42/2
GUICreate("BOLOPatch", 149, 42, $x, $y, BitOR($WS_SYSMENU,$WS_CAPTION,$WS_POPUP,$WS_POPUPWINDOW,$WS_BORDER))
GUICtrlCreateLabel("Status:", 0, 0, 37, 17, $SS_CENTER)
$status = GUICtrlCreateLabel("", 40, 0, 107, 17, $SS_CENTER, $WS_EX_CLIENTEDGE)
GUICtrlCreateLabel("Coding by G&H Productions", 0, 24, 148, 17, BitOR($SS_CENTER,$SS_NOPREFIX), $WS_EX_CLIENTEDGE)
GUISetState()
Patch()
While 1
$msg = GUIGetMsg()
Switch $msg
Case $GUI_EVENT_CLOSE
Exit
EndSwitch
WEnd
;;================================================================================
;; Patch
;;================================================================================
Func Patch()
$DLL = _MemoryOpen($ProcessID)
If @Error Then
GUICtrlSetData($status, "Patching failure.")
EndIf
_MemoryWrite(0x004FE17D, $DLL, 0x90, "byte");;;
_MemoryWrite(0x004FE17E, $DLL, 0x90, "byte");;; TIME LIMIT DISABLE
_MemoryWrite(0x004FE17F, $DLL, 0x90, "byte");;;
_MemoryWrite(0x007F2C95, $DLL, 0x90, "byte");;;
_MemoryWrite(0x007F2C96, $DLL, 0x90, "byte");;;
_MemoryWrite(0x007F2C97, $DLL, 0x90, "byte");;; MAP LIMIT DISABLE
_MemoryWrite(0x007F2C98, $DLL, 0x90, "byte");;;
_MemoryWrite(0x007F2C99, $DLL, 0x90, "byte");;;
_MemoryClose($DLL)
GUICtrlSetData($status, "Patching success!")
EndFunc
;;;
;; NOMADMEMORY EXTRACT
;;;
Func _MemoryOpen($iv_Pid, $iv_DesiredAccess = 0x1F0FFF, $iv_InheritHandle = 1)
If Not ProcessExists($iv_Pid) Then
SetError(1)
Return 0
EndIf
Local $ah_Handle[2] = [DllOpen('kernel32.dll')]
If @Error Then
SetError(2)
Return 0
EndIf
Local $av_OpenProcess = DllCall($ah_Handle[0], 'int', 'OpenProcess', 'int', $iv_DesiredAccess, 'int', $iv_InheritHandle, 'int', $iv_Pid)
If @Error Then
DllClose($ah_Handle[0])
SetError(3)
Return 0
EndIf
$ah_Handle[1] = $av_OpenProcess[0]
Return $ah_Handle
EndFunc
Func _MemoryWrite($iv_Address, $ah_Handle, $v_Data, $sv_Type = 'dword')
If Not IsArray($ah_Handle) Then
SetError(1)
Return 0
EndIf
Local $v_Buffer = DllStructCreate($sv_Type)
If @Error Then
SetError(@Error + 1)
Return 0
Else
DllStructSetData($v_Buffer, 1, $v_Data)
If @Error Then
SetError(6)
Return 0
EndIf
EndIf
DllCall($ah_Handle[0], 'int', 'WriteProcessMemory', 'int', $ah_Handle[1], 'int', $iv_Address, 'ptr', DllStructGetPtr($v_Buffer), 'int', DllStructGetSize($v_Buffer), 'int', '')
If Not @Error Then
Return 1
Else
SetError(7)
Return 0
EndIf
EndFunc
Func _MemoryClose($ah_Handle)
If Not IsArray($ah_Handle) Then
SetError(1)
Return 0
EndIf
DllCall($ah_Handle[0], 'int', 'CloseHandle', 'int', $ah_Handle[1])
If Not @Error Then
DllClose($ah_Handle[0])
Return 1
Else
DllClose($ah_Handle[0])
SetError(2)
Return 0
EndIf
EndFunc
Func SetPrivilege( $privilege, $bEnable )
Const $MY_TOKEN_ADJUST_PRIVILEGES = 0x0020
Const $MY_TOKEN_QUERY = 0x0008
Const $MY_SE_PRIVILEGE_ENABLED = 0x0002
Local $hToken, $SP_auxret, $SP_ret, $hCurrProcess, $nTokens, $nTokenIndex, $priv
$nTokens = 1
$LUID = DLLStructCreate("dword;int")
If IsArray($privilege) Then $nTokens = UBound($privilege)
$TOKEN_PRIVILEGES = DLLStructCreate("dword;dword[" & (3 * $nTokens) & "]")
$NEWTOKEN_PRIVILEGES = DLLStructCreate("dword;dword[" & (3 * $nTokens) & "]")
$hCurrProcess = DLLCall("kernel32.dll","hwnd","GetCurrentProcess")
$SP_auxret = DLLCall("advapi32.dll","int","OpenProcessToken","hwnd",$hCurrProcess[0], _
"int",BitOR($MY_TOKEN_ADJUST_PRIVILEGES,$MY_TOKEN_QUERY),"int*",0)
If $SP_auxret[0] Then
$hToken = $SP_auxret[3]
DLLStructSetData($TOKEN_PRIVILEGES,1,1)
$nTokenIndex = 1
While $nTokenIndex <= $nTokens
If IsArray($privilege) Then
$priv = $privilege[$nTokenIndex-1]
Else
$priv = $privilege
EndIf
$ret = DLLCall("advapi32.dll","int","LookupPrivilegeValue","str","","str",$priv, _
"ptr",DLLStructGetPtr($LUID))
If $ret[0] Then
If $bEnable Then
DLLStructSetData($TOKEN_PRIVILEGES,2,$MY_SE_PRIVILEGE_ENABLED,(3 * $nTokenIndex))
Else
DLLStructSetData($TOKEN_PRIVILEGES,2,0,(3 * $nTokenIndex))
EndIf
DLLStructSetData($TOKEN_PRIVILEGES,2,DllStructGetData($LUID,1),(3 * ($nTokenIndex-1)) + 1)
DLLStructSetData($TOKEN_PRIVILEGES,2,DllStructGetData($LUID,2),(3 * ($nTokenIndex-1)) + 2)
DLLStructSetData($LUID,1,0)
DLLStructSetData($LUID,2,0)
EndIf
$nTokenIndex += 1
WEnd
$ret = DLLCall("advapi32.dll","int","AdjustTokenPrivileges","hwnd",$hToken,"int",0, _
"ptr",DllStructGetPtr($TOKEN_PRIVILEGES),"int",DllStructGetSize($NEWTOKEN_PRIVILEGES), _
"ptr",DllStructGetPtr($NEWTOKEN_PRIVILEGES),"int*",0)
$f = DLLCall("kernel32.dll","int","GetLastError")
EndIf
$NEWTOKEN_PRIVILEGES=0
$TOKEN_PRIVILEGES=0
$LUID=0
If $SP_auxret[0] = 0 Then Return 0
$SP_auxret = DLLCall("kernel32.dll","int","CloseHandle","hwnd",$hToken)
If Not $ret[0] And Not $SP_auxret[0] Then Return 0
return $ret[0]
EndFunc |
Save it as anyfilenameyouwant.au3
Press F5 to run the script.
Now you won't have the time / map limit.
Enjoy. |
|
|
Back to top |
|
 |
|
Posted: Sat, 6th Mar 2010 10:01 Post subject: |
|
 |
|
|
Back to top |
|
 |
|
Posted: Sat, 6th Mar 2010 10:36 Post subject: |
|
 |
Last edited by Yondaime on Mon, 2nd Dec 2024 15:53; edited 1 time in total
|
|
Back to top |
|
 |
|
Posted: Sat, 6th Mar 2010 11:04 Post subject: |
|
 |
Csokis wrote: | I found this.
Quote: | Instructions:
Install Autoit.
Run the demo.
When you get to the main menu:
Launch Scite (autoit editor).
Paste this:
Code: | ;;================================================================================
;; Includes
;;================================================================================
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
#RequireAdmin
#NoTrayIcon
;;================================================================================
;; Main
;;================================================================================
Opt("WinTitleMatchMode", 4)
SetPrivilege("SeDebugPrivilege", 1)
Global $ProcessID = WinGetProcess("Just Cause 2 Demo", "")
Dim $ProcessFound = 0
While $ProcessFound = 0
If $ProcessID = -1 Then
MsgBox(4096, "Error", "No process found.")
Exit(1)
EndIf
$ProcessFound = 1
WEnd
WinActivate("Just Cause 2 Demo")
$wc = WinGetPos("Just Cause 2 Demo")
$x = $wc[0] + ($wc[2] / 2) - 149/2
$y = $wc[1] + ($wc[3] / 2) - 42/2
GUICreate("BOLOPatch", 149, 42, $x, $y, BitOR($WS_SYSMENU,$WS_CAPTION,$WS_POPUP,$WS_POPUPWINDOW,$WS_BORDER))
GUICtrlCreateLabel("Status:", 0, 0, 37, 17, $SS_CENTER)
$status = GUICtrlCreateLabel("", 40, 0, 107, 17, $SS_CENTER, $WS_EX_CLIENTEDGE)
GUICtrlCreateLabel("Coding by G&H Productions", 0, 24, 148, 17, BitOR($SS_CENTER,$SS_NOPREFIX), $WS_EX_CLIENTEDGE)
GUISetState()
Patch()
While 1
$msg = GUIGetMsg()
Switch $msg
Case $GUI_EVENT_CLOSE
Exit
EndSwitch
WEnd
;;================================================================================
;; Patch
;;================================================================================
Func Patch()
$DLL = _MemoryOpen($ProcessID)
If @Error Then
GUICtrlSetData($status, "Patching failure.")
EndIf
_MemoryWrite(0x004FE17D, $DLL, 0x90, "byte");;;
_MemoryWrite(0x004FE17E, $DLL, 0x90, "byte");;; TIME LIMIT DISABLE
_MemoryWrite(0x004FE17F, $DLL, 0x90, "byte");;;
_MemoryWrite(0x007F2C95, $DLL, 0x90, "byte");;;
_MemoryWrite(0x007F2C96, $DLL, 0x90, "byte");;;
_MemoryWrite(0x007F2C97, $DLL, 0x90, "byte");;; MAP LIMIT DISABLE
_MemoryWrite(0x007F2C98, $DLL, 0x90, "byte");;;
_MemoryWrite(0x007F2C99, $DLL, 0x90, "byte");;;
_MemoryClose($DLL)
GUICtrlSetData($status, "Patching success!")
EndFunc
;;;
;; NOMADMEMORY EXTRACT
;;;
Func _MemoryOpen($iv_Pid, $iv_DesiredAccess = 0x1F0FFF, $iv_InheritHandle = 1)
If Not ProcessExists($iv_Pid) Then
SetError(1)
Return 0
EndIf
Local $ah_Handle[2] = [DllOpen('kernel32.dll')]
If @Error Then
SetError(2)
Return 0
EndIf
Local $av_OpenProcess = DllCall($ah_Handle[0], 'int', 'OpenProcess', 'int', $iv_DesiredAccess, 'int', $iv_InheritHandle, 'int', $iv_Pid)
If @Error Then
DllClose($ah_Handle[0])
SetError(3)
Return 0
EndIf
$ah_Handle[1] = $av_OpenProcess[0]
Return $ah_Handle
EndFunc
Func _MemoryWrite($iv_Address, $ah_Handle, $v_Data, $sv_Type = 'dword')
If Not IsArray($ah_Handle) Then
SetError(1)
Return 0
EndIf
Local $v_Buffer = DllStructCreate($sv_Type)
If @Error Then
SetError(@Error + 1)
Return 0
Else
DllStructSetData($v_Buffer, 1, $v_Data)
If @Error Then
SetError(6)
Return 0
EndIf
EndIf
DllCall($ah_Handle[0], 'int', 'WriteProcessMemory', 'int', $ah_Handle[1], 'int', $iv_Address, 'ptr', DllStructGetPtr($v_Buffer), 'int', DllStructGetSize($v_Buffer), 'int', '')
If Not @Error Then
Return 1
Else
SetError(7)
Return 0
EndIf
EndFunc
Func _MemoryClose($ah_Handle)
If Not IsArray($ah_Handle) Then
SetError(1)
Return 0
EndIf
DllCall($ah_Handle[0], 'int', 'CloseHandle', 'int', $ah_Handle[1])
If Not @Error Then
DllClose($ah_Handle[0])
Return 1
Else
DllClose($ah_Handle[0])
SetError(2)
Return 0
EndIf
EndFunc
Func SetPrivilege( $privilege, $bEnable )
Const $MY_TOKEN_ADJUST_PRIVILEGES = 0x0020
Const $MY_TOKEN_QUERY = 0x0008
Const $MY_SE_PRIVILEGE_ENABLED = 0x0002
Local $hToken, $SP_auxret, $SP_ret, $hCurrProcess, $nTokens, $nTokenIndex, $priv
$nTokens = 1
$LUID = DLLStructCreate("dword;int")
If IsArray($privilege) Then $nTokens = UBound($privilege)
$TOKEN_PRIVILEGES = DLLStructCreate("dword;dword[" & (3 * $nTokens) & "]")
$NEWTOKEN_PRIVILEGES = DLLStructCreate("dword;dword[" & (3 * $nTokens) & "]")
$hCurrProcess = DLLCall("kernel32.dll","hwnd","GetCurrentProcess")
$SP_auxret = DLLCall("advapi32.dll","int","OpenProcessToken","hwnd",$hCurrProcess[0], _
"int",BitOR($MY_TOKEN_ADJUST_PRIVILEGES,$MY_TOKEN_QUERY),"int*",0)
If $SP_auxret[0] Then
$hToken = $SP_auxret[3]
DLLStructSetData($TOKEN_PRIVILEGES,1,1)
$nTokenIndex = 1
While $nTokenIndex <= $nTokens
If IsArray($privilege) Then
$priv = $privilege[$nTokenIndex-1]
Else
$priv = $privilege
EndIf
$ret = DLLCall("advapi32.dll","int","LookupPrivilegeValue","str","","str",$priv, _
"ptr",DLLStructGetPtr($LUID))
If $ret[0] Then
If $bEnable Then
DLLStructSetData($TOKEN_PRIVILEGES,2,$MY_SE_PRIVILEGE_ENABLED,(3 * $nTokenIndex))
Else
DLLStructSetData($TOKEN_PRIVILEGES,2,0,(3 * $nTokenIndex))
EndIf
DLLStructSetData($TOKEN_PRIVILEGES,2,DllStructGetData($LUID,1),(3 * ($nTokenIndex-1)) + 1)
DLLStructSetData($TOKEN_PRIVILEGES,2,DllStructGetData($LUID,2),(3 * ($nTokenIndex-1)) + 2)
DLLStructSetData($LUID,1,0)
DLLStructSetData($LUID,2,0)
EndIf
$nTokenIndex += 1
WEnd
$ret = DLLCall("advapi32.dll","int","AdjustTokenPrivileges","hwnd",$hToken,"int",0, _
"ptr",DllStructGetPtr($TOKEN_PRIVILEGES),"int",DllStructGetSize($NEWTOKEN_PRIVILEGES), _
"ptr",DllStructGetPtr($NEWTOKEN_PRIVILEGES),"int*",0)
$f = DLLCall("kernel32.dll","int","GetLastError")
EndIf
$NEWTOKEN_PRIVILEGES=0
$TOKEN_PRIVILEGES=0
$LUID=0
If $SP_auxret[0] = 0 Then Return 0
$SP_auxret = DLLCall("kernel32.dll","int","CloseHandle","hwnd",$hToken)
If Not $ret[0] And Not $SP_auxret[0] Then Return 0
return $ret[0]
EndFunc |
Save it as anyfilenameyouwant.au3
Press F5 to run the script.
Now you won't have the time / map limit.
Enjoy. |
|
Thanks.. Worked like a charm, no boundry and no time limit
|
|
Back to top |
|
 |
|
Posted: Sat, 6th Mar 2010 11:10 Post subject: |
|
 |
Csokis wrote: | I found this.
Quote: | Instructions:
Install Autoit.
Run the demo.
When you get to the main menu:
Launch Scite (autoit editor).
Paste this:
Spoiler: | Code: | ;;================================================================================
;; Includes
;;================================================================================
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
#RequireAdmin
#NoTrayIcon
;;================================================================================
;; Main
;;================================================================================
Opt("WinTitleMatchMode", 4)
SetPrivilege("SeDebugPrivilege", 1)
Global $ProcessID = WinGetProcess("Just Cause 2 Demo", "")
Dim $ProcessFound = 0
While $ProcessFound = 0
If $ProcessID = -1 Then
MsgBox(4096, "Error", "No process found.")
Exit(1)
EndIf
$ProcessFound = 1
WEnd
WinActivate("Just Cause 2 Demo")
$wc = WinGetPos("Just Cause 2 Demo")
$x = $wc[0] + ($wc[2] / 2) - 149/2
$y = $wc[1] + ($wc[3] / 2) - 42/2
GUICreate("BOLOPatch", 149, 42, $x, $y, BitOR($WS_SYSMENU,$WS_CAPTION,$WS_POPUP,$WS_POPUPWINDOW,$WS_BORDER))
GUICtrlCreateLabel("Status:", 0, 0, 37, 17, $SS_CENTER)
$status = GUICtrlCreateLabel("", 40, 0, 107, 17, $SS_CENTER, $WS_EX_CLIENTEDGE)
GUICtrlCreateLabel("Coding by G&H Productions", 0, 24, 148, 17, BitOR($SS_CENTER,$SS_NOPREFIX), $WS_EX_CLIENTEDGE)
GUISetState()
Patch()
While 1
$msg = GUIGetMsg()
Switch $msg
Case $GUI_EVENT_CLOSE
Exit
EndSwitch
WEnd
;;================================================================================
;; Patch
;;================================================================================
Func Patch()
$DLL = _MemoryOpen($ProcessID)
If @Error Then
GUICtrlSetData($status, "Patching failure.")
EndIf
_MemoryWrite(0x004FE17D, $DLL, 0x90, "byte");;;
_MemoryWrite(0x004FE17E, $DLL, 0x90, "byte");;; TIME LIMIT DISABLE
_MemoryWrite(0x004FE17F, $DLL, 0x90, "byte");;;
_MemoryWrite(0x007F2C95, $DLL, 0x90, "byte");;;
_MemoryWrite(0x007F2C96, $DLL, 0x90, "byte");;;
_MemoryWrite(0x007F2C97, $DLL, 0x90, "byte");;; MAP LIMIT DISABLE
_MemoryWrite(0x007F2C98, $DLL, 0x90, "byte");;;
_MemoryWrite(0x007F2C99, $DLL, 0x90, "byte");;;
_MemoryClose($DLL)
GUICtrlSetData($status, "Patching success!")
EndFunc
;;;
;; NOMADMEMORY EXTRACT
;;;
Func _MemoryOpen($iv_Pid, $iv_DesiredAccess = 0x1F0FFF, $iv_InheritHandle = 1)
If Not ProcessExists($iv_Pid) Then
SetError(1)
Return 0
EndIf
Local $ah_Handle[2] = [DllOpen('kernel32.dll')]
If @Error Then
SetError(2)
Return 0
EndIf
Local $av_OpenProcess = DllCall($ah_Handle[0], 'int', 'OpenProcess', 'int', $iv_DesiredAccess, 'int', $iv_InheritHandle, 'int', $iv_Pid)
If @Error Then
DllClose($ah_Handle[0])
SetError(3)
Return 0
EndIf
$ah_Handle[1] = $av_OpenProcess[0]
Return $ah_Handle
EndFunc
Func _MemoryWrite($iv_Address, $ah_Handle, $v_Data, $sv_Type = 'dword')
If Not IsArray($ah_Handle) Then
SetError(1)
Return 0
EndIf
Local $v_Buffer = DllStructCreate($sv_Type)
If @Error Then
SetError(@Error + 1)
Return 0
Else
DllStructSetData($v_Buffer, 1, $v_Data)
If @Error Then
SetError(6)
Return 0
EndIf
EndIf
DllCall($ah_Handle[0], 'int', 'WriteProcessMemory', 'int', $ah_Handle[1], 'int', $iv_Address, 'ptr', DllStructGetPtr($v_Buffer), 'int', DllStructGetSize($v_Buffer), 'int', '')
If Not @Error Then
Return 1
Else
SetError(7)
Return 0
EndIf
EndFunc
Func _MemoryClose($ah_Handle)
If Not IsArray($ah_Handle) Then
SetError(1)
Return 0
EndIf
DllCall($ah_Handle[0], 'int', 'CloseHandle', 'int', $ah_Handle[1])
If Not @Error Then
DllClose($ah_Handle[0])
Return 1
Else
DllClose($ah_Handle[0])
SetError(2)
Return 0
EndIf
EndFunc
Func SetPrivilege( $privilege, $bEnable )
Const $MY_TOKEN_ADJUST_PRIVILEGES = 0x0020
Const $MY_TOKEN_QUERY = 0x0008
Const $MY_SE_PRIVILEGE_ENABLED = 0x0002
Local $hToken, $SP_auxret, $SP_ret, $hCurrProcess, $nTokens, $nTokenIndex, $priv
$nTokens = 1
$LUID = DLLStructCreate("dword;int")
If IsArray($privilege) Then $nTokens = UBound($privilege)
$TOKEN_PRIVILEGES = DLLStructCreate("dword;dword[" & (3 * $nTokens) & "]")
$NEWTOKEN_PRIVILEGES = DLLStructCreate("dword;dword[" & (3 * $nTokens) & "]")
$hCurrProcess = DLLCall("kernel32.dll","hwnd","GetCurrentProcess")
$SP_auxret = DLLCall("advapi32.dll","int","OpenProcessToken","hwnd",$hCurrProcess[0], _
"int",BitOR($MY_TOKEN_ADJUST_PRIVILEGES,$MY_TOKEN_QUERY),"int*",0)
If $SP_auxret[0] Then
$hToken = $SP_auxret[3]
DLLStructSetData($TOKEN_PRIVILEGES,1,1)
$nTokenIndex = 1
While $nTokenIndex <= $nTokens
If IsArray($privilege) Then
$priv = $privilege[$nTokenIndex-1]
Else
$priv = $privilege
EndIf
$ret = DLLCall("advapi32.dll","int","LookupPrivilegeValue","str","","str",$priv, _
"ptr",DLLStructGetPtr($LUID))
If $ret[0] Then
If $bEnable Then
DLLStructSetData($TOKEN_PRIVILEGES,2,$MY_SE_PRIVILEGE_ENABLED,(3 * $nTokenIndex))
Else
DLLStructSetData($TOKEN_PRIVILEGES,2,0,(3 * $nTokenIndex))
EndIf
DLLStructSetData($TOKEN_PRIVILEGES,2,DllStructGetData($LUID,1),(3 * ($nTokenIndex-1)) + 1)
DLLStructSetData($TOKEN_PRIVILEGES,2,DllStructGetData($LUID,2),(3 * ($nTokenIndex-1)) + 2)
DLLStructSetData($LUID,1,0)
DLLStructSetData($LUID,2,0)
EndIf
$nTokenIndex += 1
WEnd
$ret = DLLCall("advapi32.dll","int","AdjustTokenPrivileges","hwnd",$hToken,"int",0, _
"ptr",DllStructGetPtr($TOKEN_PRIVILEGES),"int",DllStructGetSize($NEWTOKEN_PRIVILEGES), _
"ptr",DllStructGetPtr($NEWTOKEN_PRIVILEGES),"int*",0)
$f = DLLCall("kernel32.dll","int","GetLastError")
EndIf
$NEWTOKEN_PRIVILEGES=0
$TOKEN_PRIVILEGES=0
$LUID=0
If $SP_auxret[0] = 0 Then Return 0
$SP_auxret = DLLCall("kernel32.dll","int","CloseHandle","hwnd",$hToken)
If Not $ret[0] And Not $SP_auxret[0] Then Return 0
return $ret[0]
EndFunc |
|
Save it as anyfilenameyouwant.au3
Press F5 to run the script.
Now you won't have the time / map limit.
Enjoy. |
|
thankssss its working 
|
|
Back to top |
|
 |
LMLM
Posts: 825
Location: Meta Cortechs
|
Posted: Sat, 6th Mar 2010 11:29 Post subject: |
|
 |
Can modifying the demo executable (even while running) potentially get us in trouble with STEAM? I presume they can revoke our STEAM games if we are caught? Just wondering..
Last edited by LMLM on Sat, 6th Mar 2010 11:31; edited 1 time in total
|
|
Back to top |
|
 |
|
Posted: Sat, 6th Mar 2010 11:30 Post subject: |
|
 |
The Autoit-workaround works to some point, but it seems it brings some problems, if I use the script, the game ctd's with no errors when I try to blow up the oilpipes. I can do this without the script.
|
|
Back to top |
|
 |
OchoBits
Posts: 717
Location: In Unknown Kadath
|
Posted: Sat, 6th Mar 2010 15:26 Post subject: |
|
 |
LMLM wrote: | Can modifying the demo executable (even while running) potentially get us in trouble with STEAM? I presume they can revoke our STEAM games if we are caught? Just wondering.. |
It's a fucking demo - why would they do that?
|
|
Back to top |
|
 |
|
Posted: Sat, 6th Mar 2010 16:18 Post subject: |
|
 |
I love this demo! So i think i gonna pre-order the game on steam.
|
|
Back to top |
|
 |
NeHoMaR
Posts: 855
Location: In my house.
|
Posted: Sat, 6th Mar 2010 16:40 Post subject: |
|
 |
When this game will be released?
Release date in the first page of this thread is 2008, lol.
I used to be a knee like you. Then I took an adventurer in the arrow.
|
|
Back to top |
|
 |
|
Posted: Sat, 6th Mar 2010 16:54 Post subject: |
|
 |
|
|
Back to top |
|
 |
|
Posted: Sat, 6th Mar 2010 17:03 Post subject: |
|
 |
Another shit hot game this.
Jesus I'm going to turn into a computer game the way things are going 
Ryzen 5 3600 cpu@3.60 Mhz.
hyper x 32 gb ddr 4 memory.
Msi Carbon gaming pro ac motherboard.
Evga 600 psu.
Msi Armour rx 8 gb 5700 Graphic card.
Ps4 Standard 500gb.
Lg 4k 42 inch tv.
Oculus Quest 2.
|
|
Back to top |
|
 |
|
Posted: Sat, 6th Mar 2010 17:31 Post subject: |
|
 |
Last edited by Yondaime on Mon, 2nd Dec 2024 15:53; edited 1 time in total
|
|
Back to top |
|
 |
NeHoMaR
Posts: 855
Location: In my house.
|
Posted: Sat, 6th Mar 2010 17:34 Post subject: |
|
 |
Well, the game look good, BUT .. it could be really bad. I mean, everybody talk about how big is the map, and so on; never read anything about missions, and what things you can do apart of driving vehicles and killing random people.
I used to be a knee like you. Then I took an adventurer in the arrow.
|
|
Back to top |
|
 |
LeoNatan
☢ NFOHump Despot ☢
Posts: 73256
Location: Ramat HaSharon, Israel 🇮🇱
|
Posted: Sat, 6th Mar 2010 17:35 Post subject: |
|
 |
Holy shit, I did a long run with the parachute, and it added 30 seconds to the demo timer lmao. I was like "WTF!?"
There is also a possibility to climb a very tall antenna, and he says "Doesn't look that bad from here" or something similar. I was wondering if something would happen after climbing. 
|
|
Back to top |
|
 |
|
Posted: Sat, 6th Mar 2010 17:35 Post subject: |
|
 |
whats this game about anyhow, never read up on it yet, is it just a free for all gun totting fest of destruction of anything anywhere? or is there some purpose to the game other than that? 
|
|
Back to top |
|
 |
|
|
Back to top |
|
 |
NeHoMaR
Posts: 855
Location: In my house.
|
|
Back to top |
|
 |
Page 21 of 63 |
All times are GMT + 1 Hour |
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB 2.0.8 © 2001, 2002 phpBB Group
|
|
 |
|