Tampilkan postingan dengan label iv. Tampilkan semua postingan
Tampilkan postingan dengan label iv. Tampilkan semua postingan

TUT Finding native functions usage and parameters GTA IV

Lets say that you found a native method on the GTA IV native functions list but dont know how to use it, what you can do is download and extract this file and use windows search to search inside the file contents for the native method, this way you will see how R* used the method in GTA IV/EFLC.

The big problem is understand the parameters because great part of them are variables with numbers that dont make much sense hehe, so, you can try finding the param elsewhere in the code to have an idea of what it can be.

In any case, this decompiled SCO files are the best way to see how some things are made in GTA IV or EFLC :)

Let me demonstrate how to find and understand for example the call of DRAW_CHECKPOINT.

First i find the method on site but it dont have a definition, so, i open the SCO files folder and use windows search to find that word:



If the result show some files i open them and search for the method inside it:



Now that i have the method call i try to find from where the parameters came or what are their type:


The param "uVar12" is previously used as reference (ref) in a method that will result in coordinates, so, i assume that the first three uses of this param is the coordinate of the checkpoint, Now we need to find out what are the other parameters: 12, 230, 110, 0

A good way to understand what they are is try in a code and see the result, in this case for example if you call the DRAW_CHECKPOINT and pass player position as the position and let the other params as they are in the SCO you will find out that the other params are the diameter (12) and color in RGB format, red (230), green (110) and blue (0). But, in this specific case the param diameter need to be used as float (12.0) or the command will fail, this is the result:


Read More..

Iron Man IV Installation guide based on last version

This post is outdated, check the last version of this mod here


***


Last version of Iron Man IV may need some different steps to be installed, i will describe the installation step by step here.

Tip: If you installed first version and replaced some common street peds, you can use the pack of this post to restore those peds :)



If you wanna make videos of this mod or share it anywhere, please use the following links in the post, this will help me a lot :)




Installing the basic

You have two options: Download the OpenIV package file and use OpenIV Package Installer for easy install, or download the files for manual setup.


OpenIV Package (recommended)

To see how to install .oiv files click here, after installing the .oiv file, come back here to see how to install the armors (last step)



Files for manual setup :

1-Download the files for manual setup FreakShare, FileFactory, Survey, MEGA (outdated)
2-Extract all files to an folder (you may need WinRar to extract), you will have this files:


3-Copy all files to your GTAIV.exe folder (or EFLC.exe folder if you are installing in EFLC) and overwrite everything (files and folders):



Now lets see if the script is loading, open the game and press " (or for some keyboards ~) an black window should appear, the text "Iron Man IV script loaded" should appear:


Press Esc to close the console window then press number 0 (not the numpad0) an menu should appear at left top corner:


If you can see the mod menu we can proceed with the installation of the other mod parts, if not lets see what can be wrong:


Problems section

Game crash and/or closes at loading screen:
  • This can happen if you are using patch 1.0.4.0, in this case you need to copy ScriptHook.dll from folder "DLL for 1.0.4.0" to your gtaiv.exe folder and overwrite the old one.
  • Or this can happen if you forget to copy Microsoft.Xna.Framework or NAudio dll to gtaiv.exe folder.
Game opens but when you press " or ~ no black window appears:
  • Your ASI loader or Scripthook is not loading :(, i cant help you in this case, you need to find out why this is happening, maybe you need another version of ASI loader or scripthook.
Game loads but the message: "Error in script Iron Man" appears at left top corner:
  • This can happen in result of incompatibility with other mods, press " and type the command reloadscripts, if error happens again you can try to temporary remove other mods and test.
  • For some reason you computer can have some kind of incompatibility with XNA Dll, in this case you can try the Iron Man.net.dll file from folder "no XBox 360 Control support version", paste it on Scripts folder and overwrite the old one.
Getting this error message when launching the game:


Probably related to Administrator rights.
  • Solution one: Right click game icon and click in Run as Administrator
  • Solution two: Download this file and put inside GTAIV.exe folder (or EFLC.exe folder)
Source of those last two solutions: http://www.gtaforums.com/index.php?showtopic=400482


If you installed first version of the mod and replaced common street peds maybe you want restore they visual, in this case take a look here.



Installing the animations (EFLC dont need this step)

1-First of all, close the game ^^
2-Open the OpenIV, choose Grand Theft Auto IV, open the folder anim, open the file anim.img then click in Edit mode:


3-You can drag and drop the file parachute.wad from Animation folder or use the OpenIV menu Edit > Add:


*If you cant install the animations in GTA IV using OpenIV, you can try replacing original game anims with this one, please, rename the original to something like anims.img.original before replacing :)
(press ctrl+s to download the file):


The anims.img folder commonly is: C:Program FilesRockstar GamesGrand Theft Auto IVpcanim
Always change game files with game closed.




Installing the armors

Now we will install the armors, you have two indicated options now, one is use the add peds method of the all-in-one pack or use the replace mission characters method, i recommend the second.

Lets say that you choose the replace method:

Close the game first :)

1-Download it here
2-Extract all files to an folder, you will have this:


3-Open the folder "armors (replacing mission char.)" then open the folder "to drag to Iron Man IV Armors folder", select all files right click them and Copy:


4-Open your Iron Man Armors folder (created at gtaiv.exe folder on first steps) delete everything that can be there and paste the previous copied files:


5-Now open the folder "to drag to componentPeds.img with OpenIV" we will insert those files using OpenIV. Open the OpenIV, choose Grand Theft Auto IV, open the folder models, then folder cdimages then open file componentpeds.img, click in Edit mode:


6-Now you can drag and drop all the files from the folder "to drag to componentPeds.img with OpenIV" or use the OpenIV menu Edit > Add and select all files:


The OpenIV will freeze for some seconds, its normal.


The main armor (MK III) will replace the player, with this pack you have two options:
  • One to replace player but keep player original visual
  • And one to replace player and replace Nikos head with Tony Starks head


Choose the one that you want, open the OpenIV and open the folders modelscdimages, now use the menu Edit > Add and select the desired playerped.rpf (or drag and drop the chosen playerped.rpf file). Dont forget to enable the Edit mode


Done! Everything is installed, open the game and try to equip each armor to see if they work fine.
Read More..

Script Air Combat IV AC IV

This script makes possible to spawn Jets with custom number of engines, flaps/elevators, gears, cannons, rockets with lock on target feature, bombs and flares. Also you can spawn enemies in jets to combat

Download: GTA 4 Mods

This one im really proud of, really complex script, started with an request of CORE.MAX2010 to create engine fire and jet sound for jets, when i finished this task i tested the idea of using AI drivers in jets and worked very well, then the real complex script started.





Controls:
To control the jet:
W (accel.)
S (desaccel.)
A (or numpad 4)
D (or numpad 6)
Shift (or numpad 8)
Control (or numpad 5)
numpad 7 - turn left
numpad 9 - turn right
X - Switch cam
Right click - Follow missile/bomb with camera
Space shoot missiles
Numpad0 - Shoot cannon
Q - Drop bomb
E - Release flare to avoid missiles (hold to release one by one)
F - Enter Jet / Exit Jet / Eject (if flying)
Left/Right help "drive" the jet while in the ground
0 - Spawn menu
Enter - Spawn select Jet in spawn menu, hold shift to spawn and start flying
2 - Spawn enemy
3 - Spawn fugitive
When on ground:
Left/Right (or numpads 7/9) - turn left or right
S - Break


XBox 360 controller controls:
Hold left and right Shoulders to see/hide jet spawn menu, use A to spawn on air or use X to spawn on ground
A - Shoot rockets
X - Shoot cannon
Y - Release flares
DPad Down - Drop bombs
B - Eject/Exit/Enter jet
Left Thumb stick - Pitch and Roll
Left/Right Shoulder - Turn left or right
Left Trigger - slow down
Right Trigger - Accelerate








In this one i used a lot of custom classes to be used in lists, this helped a lot and make the script more easy to modify.

You can have one list of jets to spawn, each one with custom configuration for weapons, engines, flaps, etc

Also its possible to set jet spawn/aquirement points

To create the rocket lock feature i must list the possible targets in a list of vehicles, then use this calc to see if the object is close to center of aiming position:


Dim tmpDist As Double = v.Position.DistanceTo(Game.CurrentCamera.Position)
Dim tmpPos As Vector3 = Game.CurrentCamera.Position + Game.CurrentCamera.Direction * tmpDist

If v.Position.DistanceTo(tmpPos) < (tmpDist / 3) Then

mark the vehicle as an locked target...
end if

obs.: "v" is one vehicle in the possible targets list

The use of classes made easy to make the enemy jets do the same rocket lock on the player and control they flight
Read More..

The Elder Scrolls IV Oblivion


The Elder Scrolls 4: Oblivion

  • Publisher: 2K Games
  • Developer: Bethesda Softworks
  • Release Date: March 20, 2006
  • Genre: RPG

About The Elder Scrolls 4: Oblivion

After the mysterious and untimely death of the Emperor, the throne of Tamriel lies empty. With the Empire ready to crumble, the gates of Oblivion open and demons march upon the land - laying waste to everything in their path. To turn the tide of darkness, you must find the lost heir to the throne and unravel the sinister plot that threatens to destroy all of Tamriel.
In development since 2002, Oblivion is another leap forward in role-playing with its combination of freeform gameplay and cutting-edge graphics for the world under The Elder Scrolls.

Minimum System Requirements

  • OS: Windows XP
  • Processor: Pentium 4 @ 2 GHz or Equivalent
  • Memory: 512 MB
  • Hard Drive: 4.7 GB Free
  • Video Memory: 128 MB
  • Sound Card: DirectX Compatible
  • DirectX: 9.0c
  • Keyboard & Mouse
  • DVD Rom Drive

Recommended System Requirements

  • OS: Windows XP
  • Processor: Pentium 4 @ 3 GHz or Equivalent
  • Memory: 1 GB
  • Hard Drive: 4.7 GB Free
  • Video Memory: 256 MB
  • Sound Card: DirectX Compatible
  • DirectX: 9.0c
  • Keyboard & Mouse
  • CD/DVD Rom Drive

The Elder Scrolls IV: Oblivion - MedieFire Links

DOWNLOAD

www.elj-games.blogspot.com

Read More..