Jump to content

[GTAIV|REL] A l i c e


Alexander Blade
  • Replies 1.5k
  • Created
  • Last Reply

Top Posters In This Topic

  • aceship

    107

  • Alexander Blade

    94

  • Marcin6

    63

Top Posters In This Topic

Recommended Posts

 

Is it hard to make toggleable drunk mode? If not, make it NOW

Either stop being so demanding, or make it yourself.

LOL owned

Lol I haven't been owned yet.

Make that mod that you so badly want and prove yourself true then.

 

And just out of curiosity, could someone list the possibilities we have now? Like main ones, just to let me know where this is going to lead GTAIV modding?

Link to comment
Share on other sites

Nice work integrating LUA into GTA IV, too bad it's not like Gmod LUA, it's more like assembler with LUA syntax, but awesome anyway, keep it up.

 

Also could you possibly make some sort of documentation for this so it would be easier for other users to make their own scripts.

Link to comment
Share on other sites

Superman mod works with multiplayer ?

AWESOME...

I just tested this - it worked in an unranked, Free Mode match, but not in a ranked DM.

Link to comment
Share on other sites

And just out of curiosity, could someone list the possibilities we have now? Like main ones, just to let me know where this is going to lead GTAIV modding?

Look in the two text files in additional files, where native functions and parameters are listed.

 

 

Link to comment
Share on other sites

Someone is going to make this eventually, so why not now. anuj_cop.gif

 

 

PLAYER_ID, PLAYER_INDEX, PLAYER_CHAR = 0function InitScript() Wait(10000)endfunction WaitForPlayerPoolCreation() while (IsPlayerPoolCreated() == 0) do   Wait(2000) endendfunction WaitForValidPlayer() PLAYER_CHAR = 0 repeat    CallNative("GET_PLAYER_ID")PLAYER_ID = GetIntResult()if (PLAYER_ID >= 0) then  PushInt(PLAYER_ID)  CallNative("CONVERT_INT_TO_PLAYERINDEX")  PLAYER_INDEX = GetIntResult()  PushInt(PLAYER_INDEX)     PushVarPtr()	  CallNative("GET_PLAYER_CHAR")  PLAYER_CHAR = GetIntParam(1)  if (PLAYER_CHAR <= 0) then    Wait(1000)  end  end  until (PLAYER_CHAR > 0)  end	function DoAchievements() for i = 0, 79, 1 do   PushInt(i)   CallNative("AWARD_ACHIEVEMENT") endendfunction main() InitScript() while true do   if (IsKeyPressed(9) == 1) then  WaitForPlayerPoolCreation()     WaitForValidPlayer()      if (IsKeyPressed(9) == 1) then    DoAchievements()    Wait(2000)  end   end   Wait(300) end	end-- startmain();

 

Link to comment
Share on other sites

 

And just out of curiosity, could someone list the possibilities we have now? Like main ones, just to let me know where this is going to lead GTAIV modding?

Look in the two text files in additional files, where native functions and parameters are listed.

Yes but explain in simple terms for idiots like me who don't fully understand coding and scripting.

 

@~Rick, I do not understand how to implement that code into the game.

Could you explain it to me please?

Edited by SaintJimmy
Link to comment
Share on other sites

rick what does this script does?

i dont have a clue about .lua

Awards every achievement.

Didn't work for me confused.gif

It uses the same code base as the saveme script, you need to press TAB once in-game.

Link to comment
Share on other sites

Killuminati91
Superman mod works with multiplayer ?

AWESOME...

I just tested this - it worked in an unranked, Free Mode match, but not in a ranked DM.

nno need to lie, idiots will try it anyways

Link to comment
Share on other sites

sorry,my internet error sometimes,Iam downloading the patch

sorry for the trouble

 

 

 

Link to comment
Share on other sites

Superman mod works with multiplayer ?

AWESOME...

I just tested this - it worked in an unranked, Free Mode match, but not in a ranked DM.

nno need to lie, idiots will try it anyways

I'm not lying. It honestly didn't work for me. Maybe it's because I went straight to the DM after the Free Mode?

Link to comment
Share on other sites

Superman mod works with multiplayer ?

AWESOME...

I just tested this - it worked in an unranked, Free Mode match, but not in a ranked DM.

nno need to lie, idiots will try it anyways

I'm not lying. It honestly didn't work for me. Maybe it's because I went straight to the DM after the Free Mode?

it seems that its only working in the first multiplayer game u join, after that u need to restart game to make it work agian.

Link to comment
Share on other sites

Someone is going to make this eventually, so why not now. anuj_cop.gif

 

 

awesome script

 

Hahaha thats sick biggrin.gif

 

Btw my log (if still needed)

 

// -- GTA IV ASI LOADER LOG -- ////-- © Alexander Blade 2008 -- //binkhooked.dll is loaded, address 0x18000000Hooking binkw32 proc named "_BinkSetMemory@8""_BinkSetMemory@8" hooked, address 0x1800DBB0Hooking binkw32 proc named "_BinkGetError@0""_BinkGetError@0" hooked, address 0x18009DF0Hooking binkw32 proc named "_BinkClose@4""_BinkClose@4" hooked, address 0x1800C5F0Hooking binkw32 proc named "_BinkGetSummary@8""_BinkGetSummary@8" hooked, address 0x1800CB80Hooking binkw32 proc named "_BinkSetVolume@12""_BinkSetVolume@12" hooked, address 0x1800D5E0Hooking binkw32 proc named "_BinkSetSoundSystem@8""_BinkSetSoundSystem@8" hooked, address 0x18009E00Hooking binkw32 proc named "_BinkRegisterFrameBuffers@8""_BinkRegisterFrameBuffers@8" hooked, address 0x1800A610Hooking binkw32 proc named "_BinkNextFrame@4""_BinkNextFrame@4" hooked, address 0x1800C170Hooking binkw32 proc named "_BinkOpenDirectSound@4""_BinkOpenDirectSound@4" hooked, address 0x1800F150Hooking binkw32 proc named "_BinkShouldSkip@4""_BinkShouldSkip@4" hooked, address 0x1800C080Hooking binkw32 proc named "_BinkWait@4""_BinkWait@4" hooked, address 0x1800C830Hooking binkw32 proc named "_BinkGoto@12""_BinkGoto@12" hooked, address 0x1800C420Hooking binkw32 proc named "_BinkGetFrameBuffersInfo@8""_BinkGetFrameBuffersInfo@8" hooked, address 0x1800A560Hooking binkw32 proc named "_BinkGetKeyFrame@12""_BinkGetKeyFrame@12" hooked, address 0x1800C340Hooking binkw32 proc named "_BinkOpen@8""_BinkOpen@8" hooked, address 0x1800A630Hooking binkw32 proc named "_BinkPause@8""_BinkPause@8" hooked, address 0x1800CA50Hooking binkw32 proc named "_BinkDoFrame@4""_BinkDoFrame@4" hooked, address 0x1800BAA0Loading ASI F:\Games\gta4\Grand Theft Auto IV\Alice.asiASI loaded : F:\Games\gta4\Grand Theft Auto IV\Alice.asi, Address 0x032F0000Loading ASI F:\Games\gta4\Grand Theft Auto IV\FileCheckFix.asiASI loaded : F:\Games\gta4\Grand Theft Auto IV\FileCheckFix.asi, Address 0x03330000

 

Link to comment
Share on other sites

Found SET_DRUNK_CAM=3, False. But how to know what params to pass? I guess thats the trick? Damn sarcasm.gif

 

I guess, player_id, 1, and something else?

Edited by Intosia
Link to comment
Share on other sites

spaceeinstein

You are allowed to post these scripts in the Mission Coding/Mission Mods forums. So if anyone wants to release something and be more noticed, you can post there.

Link to comment
Share on other sites

Press TAB and your wanted level is clear.

http://ifolder.ru/9703915

there is no download button sad.gif I tried looking after google translate after and still couldn't find it.

 

---------- GTA IV Alice "Clear Wanted Level" script example ---------- ---------- © -TR45e- 2008 ---------- -- Save key is TAB--global variables PLAYER_ID, PLAYER_INDEX, PLAYER_CHAR, SAVEDONE, TIMER = 0function InitScript() -- blah-blah-blah Wait(10000)endfunction WaitForPlayerPoolCreation() while (IsPlayerPoolCreated() == 0) do   Wait(2000) endendfunction WaitForValidPlayer() PLAYER_CHAR = 0 repeat    CallNative("GET_PLAYER_ID")PLAYER_ID = GetIntResult()if (PLAYER_ID >= 0) then  PushInt(PLAYER_ID)  CallNative("CONVERT_INT_TO_PLAYERINDEX")  PLAYER_INDEX = GetIntResult()  PushInt(PLAYER_INDEX)     PushVarPtr()	  CallNative("GET_PLAYER_CHAR")  PLAYER_CHAR = GetIntParam(1)  if (PLAYER_CHAR <= 0) then    Wait(1000)  end  end  until (PLAYER_CHAR > 0)  end	function clearwanted() SAVEDONE = 0 TIMER = 0 CallNative("CLEAR_WANTED_LEVEL") Wait(1000) while (SAVEDONE == 0) and (TIMER < 10000) do   TIMER = TIMER + 100Wait(100)SAVEDONE = GetIntResult() endendfunction main() InitScript() while true do   if (IsKeyPressed(9) == 1) then  WaitForPlayerPoolCreation()     WaitForValidPlayer()      if (IsKeyPressed(9) == 1) then    clearwanted()    Wait(2000)  end   end   Wait(300) end	end-- startmain();

 

Link to comment
Share on other sites

I want to toggle gravity, can you tell me what is wrong with this, it doesn't work. All I done was change some stuff on TRACE's script:

 

 

---------- GTA IV Alice "Clear Wanted Level" script example -------------------- © -TR45e- 2008 ------------ Save key is TAB--global variablesPLAYER_ID, PLAYER_INDEX, PLAYER_CHAR, SAVEDONE, TIMER = 0function InitScript()-- blah-blah-blahWait(10000)endfunction WaitForPlayerPoolCreation()while (IsPlayerPoolCreated() == 0) do  Wait(2000)endendfunction WaitForValidPlayer()PLAYER_CHAR = 0repeat  CallNative("GET_PLAYER_ID")PLAYER_ID = GetIntResult()if (PLAYER_ID >= 0) then PushInt(PLAYER_ID) CallNative("CONVERT_INT_TO_PLAYERINDEX") PLAYER_INDEX = GetIntResult() PushInt(PLAYER_INDEX)    PushVarPtr() CallNative("GET_PLAYER_CHAR") PLAYER_CHAR = GetIntParam(1) if (PLAYER_CHAR <= 0) then   Wait(1000) end  enduntil (PLAYER_CHAR > 0)  endfunction gravity()SAVEDONE = 0TIMER = 0CallNative("SET_GRAVITY_OFF")Wait(1000)while (SAVEDONE == 0) and (TIMER < 10000) do  TIMER = TIMER + 100Wait(100)SAVEDONE = GetIntResult()endendfunction main()InitScript()while true do  if (IsKeyPressed(9) == 1) then WaitForPlayerPoolCreation()    WaitForValidPlayer()    if (IsKeyPressed(9) == 1) then   gravity()   Wait(2000) end  end  Wait(300)endend-- startmain();

 

Link to comment
Share on other sites

Can we please stop posting full scripts for help? Ask for specific help, don't ask people to fix your scripts.

 

SET_GRAVITY_OFF takes one int argument, presumably 1 for gravity is off, 0 for gravity is on.

Edited by ~Rick
Link to comment
Share on other sites

Can we please stop posting full scripts for help? Ask for specific help, don't ask people to fix your scripts.

 

SET_GRAVITY_OFF takes one int argument, presumably 1 for gravity is off, 0 for gravity is on.

dontgetit.gif can you type it out on that script? I'd learn alot!!

 

Thank you RICK

 

 

 

Rick

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • 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.