Jump to content
    1. Welcome to GTAForums!

    1. GTANet.com

    1. GTA Online

      1. The Criminal Enterprises
      2. Updates
      3. Find Lobbies & Players
      4. Guides & Strategies
      5. Vehicles
      6. Content Creator
      7. Help & Support
    2. Red Dead Online

      1. Blood Money
      2. Frontier Pursuits
      3. Find Lobbies & Outlaws
      4. Help & Support
    3. Crews

    1. Grand Theft Auto Series

      1. Bugs*
      2. St. Andrews Cathedral
    2. GTA VI

    3. GTA V

      1. Guides & Strategies
      2. Help & Support
    4. GTA IV

      1. The Lost and Damned
      2. The Ballad of Gay Tony
      3. Guides & Strategies
      4. Help & Support
    5. GTA San Andreas

      1. Classic GTA SA
      2. Guides & Strategies
      3. Help & Support
    6. GTA Vice City

      1. Classic GTA VC
      2. Guides & Strategies
      3. Help & Support
    7. GTA III

      1. Classic GTA III
      2. Guides & Strategies
      3. Help & Support
    8. Portable Games

      1. GTA Chinatown Wars
      2. GTA Vice City Stories
      3. GTA Liberty City Stories
    9. Top-Down Games

      1. GTA Advance
      2. GTA 2
      3. GTA
    1. Red Dead Redemption 2

      1. PC
      2. Help & Support
    2. Red Dead Redemption

    1. GTA Mods

      1. GTA V
      2. GTA IV
      3. GTA III, VC & SA
      4. Tutorials
    2. Red Dead Mods

      1. Documentation
    3. Mod Showroom

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

      1. Design Your Own Mission
      2. OpenIV
      3. GTA: Underground
      4. GTA: Liberty City
      5. GTA: State of Liberty
    1. Rockstar Games

    2. Rockstar Collectors

    1. Off-Topic

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

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

    2. Support

    3. Suggestions

*DO NOT* SHARE MEDIA OR LINKS TO LEAKED COPYRIGHTED MATERIAL. Discussion is allowed.

GTA V Minimap to GTA IV


DRUZZRIN12296
 Share

Recommended Posts

DRUZZRIN12296

I'm currently trying to make a GTA V HUD for GTA IV. I have made the border rectangle just like GTA V but now I have no idea how to change the health and armour bars into the linear ones shown in GTA V. I also need the radar map to fit in the rectangle also. Wondering whether I would have to make my own script, or if I can just rewrite what they have in the game. There must be something there to say:

"Hey! The game wants the radar to be round not square. and we want the health and armour to fit around"

but I simpy can not find it. I've looked in almost every nook and cranny. I'd say I've overturned around 80% of the game's files opening .dat's some .sco's... Just can not locate where to find this. My next option was to find out how they made a GTA IV HUD mod for SA and see if I could reverse engineer. The health and armour bars in GTA V are much like previous GTAs so what tells those games to have the health and armour bars linear!! Someone for the love of all that is holy, help me!! I'm going mad, this is pretty much the last thing I need to publish this mod for the public :'(

 

NOTE: If someone could also tell me why my TBOGT and TLAD crosshairs are huge!!? That'd be great.

Link to comment
Share on other sites

Michael Wojtanis

Well, nobody know where is the information about radar sphere.

If You want make HUD You should copy of GTA 4 map or load texture and then with player position X,Y make sure to pleace it. Then write about blocking rectangle [borders] and also write the drawing rectangle of Player Health. That is all. I can make the health bar, armor and "special" but... i self do not know exactly how to do minimap. I know how to make map in one direction, but without rotation... sad.gif

Link to comment
Share on other sites

DRUZZRIN12296

Are you interested in helping me get this done? Haha

Ps nice job on The weapon wheel. I don't know much at all about scripting

 

Alexander made a GTA IV radar mod for San Andreas and I've messaged him about this asking how he did it.

Link to comment
Share on other sites

Michael Wojtanis

If he answer, please, share with us the solution what he did.

Link to comment
Share on other sites

DRUZZRIN12296

 

If he answer, please, share with us the solution what he did.

If he does then I will make sure to tell you smile.gif us Michaels have to stick together hahaha. Now scripting:

Before I go to sleep, 0:30am here, would you be willing to give me some code structure Icould write to get the health and armour bars? Tell me what you would need to be able to help me

Link to comment
Share on other sites

Michael Wojtanis

You just need to know about DrawingPerFrame, getting from Player.Character.health and Player.Character.Armor and that is all.

Next just do some matematic of screen... To work perfect on wide, on 3:4 etc.

Link to comment
Share on other sites

DRUZZRIN12296

Too bad I don't. Hahaha. Is it like GET_CHAR_HEALTH and GET_CHAR_ARMOUR? How will that all link to health bar and armour bar? :S would you be able to make a basic example and send me it?

Link to comment
Share on other sites

Michael Wojtanis

int playerHealth = Player.Character.Health;

int playerArmor = Player.Character.Armor;

 

This is beggining... i write now my script, sorry sad.gif

Link to comment
Share on other sites

Well, nobody know where is the information about radar sphere.

If You want make HUD You should copy of GTA 4 map or load texture and then with player position X,Y make sure to pleace it. Then write about blocking rectangle [borders] and also write the drawing rectangle of Player Health. That is all. I can make the health bar, armor and "special" but... i self do not know exactly how to do minimap. I know how to make map in one direction, but without rotation... sad.gif

C'mon man I'm sure you can find out how to rotate the map. BTW excelent work with the V Weapon HUD, funny enought I had the exact same idea when I saw the V preview video.

 

So give a search on how to rotate that and take hands on job, if I find a way I will post it here. I would love to see that mod from you.

Link to comment
Share on other sites

Michael Wojtanis

First i must end the weapon hud and switcher players mod. Then i will see what i can do with minimap.

Link to comment
Share on other sites

First i must end the weapon hud and switcher players mod. Then i will see what i can do with minimap.

biggrin.gif. Call it 'GTA IV + I' mod pack. Good work mate.

Link to comment
Share on other sites

DRUZZRIN12296

 

int playerHealth = Player.Character.Health;

int playerArmor = Player.Character.Armor;

 

This is beggining... i write now my script, sorry sad.gif

Thanks a lot man. Just got a reply from Alexander. I'm not sure if he knows

 

 

Hi , it needs different approach with GTA IV , this isn't typical modding and requires many things to patch in exe .

 

confused.gif I'll try learn some more about scripting. I am supposed to be writing a seminar this week... Hahaha

Link to comment
Share on other sites

DRUZZRIN12296

PROGRESS:

Hazah!

 

I made a script that loads the border for map and bars

user posted image

user posted image

Now just for the Health bars. And making map rectangle :S

And making the script hide the game radar

I'm thinking that I could get the amount of health the player has and relate it to a percentage of bar?

Edited by DRUZZRIN12296
Link to comment
Share on other sites

 

PROGRESS:

Hazah!

 

I made a script that loads the border for map and bars

*SNIP*

*SNIP*

Now just for the Health bars. And making map rectangle :S

And making the script hide the game radar

I'm thinking that I could get the amount of health the player has and relate it to a percentage of bar?

Nice, this will go well with the GTA V Weapon HUD mod that was released recently. I'm actually trying to work out how to do a "Character Switching" Mechanic on GTA IV right now, I should probably start it on it soon before GTA V's release.

 

I've written my basic idea down into Pseudo code:

 

1. Start

1.1 Set Player Model to Niko

1.1.1 Save Player Niko Location

 

1.2 Push Switch Button To Luis

1.2.1 Pull Camera down Y Axis

1.2.2 Move Camera Up X Axis

1.2.3 Move Camera Along Z Axis to Teleport location

 

1.3 Set Teleport location to random

1.3.1 Set Player Model to Luis

 

1.4 Save Player Luis Location

1.4.1 Push Button to Johnny

1.4.2 Pull Camera Down Y Axis

1.4.3 Move Camera Up X Axis

1.4.4 Move Camera Along Z Axis to Teleport location

1.5 Set Teleport location to random

1.5.1 Set Player model to Johnny

Edited by Wheatley
Link to comment
Share on other sites

DRUZZRIN12296

Yeah man cool, but I think M. Wojtanis is already scripting his, but you should go ahead. It's always good to see a little competition, stops people from getting lazy wink.gif

 

Once we have a few GTA V themed mods in place we will make a joint pack for them.

 

Weapon Wheel - M.Wojtanis

Character Switcher - M.Wojtanis

Radar - DRUZZRIN12296

Middle finger mouse cursor - DRUZZRIN12296

 

Also I have some GTA V police cars and weapons smile.gif

 

Inbetween my radar mod I am also making a sniper scope, just like the one they use to kill the deer haha.

 

I am also trying to make a spawn Bugstars Van via telephone haha

Link to comment
Share on other sites

DRUZZRIN12296

I am writing script for this too.

 

user posted image

 

And this is the deer one that is almost done:

 

user posted image

Link to comment
Share on other sites

Michael Wojtanis

You make a model of deer?

You should look at "GTA IV" in "other" in modding page. There is instructions to make animation.

Just add new animation with OpenIV, in one file i remeber You can put this name and viola - we have a deer with original animation.

 

 

Link to comment
Share on other sites

DRUZZRIN12296
You make a model of deer?

You should look at "GTA IV" in "other" in modding page. There is instructions to make animation.

Just add new animation with OpenIV, in one file i remeber You can put this name and viola - we have a deer with original animation.

No... I am making the Crosshair for the sniper hahaha

Link to comment
Share on other sites

PROGRESS:

Hazah!

 

I made a script that loads the border for map and bars

user posted image

user posted image

Now just for the Health bars. And making map rectangle :S

And making the script hide the game radar

I'm thinking that I could get the amount of health the player has and relate it to a percentage of bar?

for the bar :

 

 

Rectangle(X, Y, (currentValue * (barWidth)) / maxValue, barHeight)

 

 

for health for instance, just change currentValue to Players health, and maxValue to 100.

you may have to tweak some points from the calculation to make sure it fits corectly.

 

But any way it does what you need. Given a maximum it makes it fit in the available space.

Link to comment
Share on other sites

This is something i made now (C++):

 

 

u32 health;f32 max=1500.0f; //make bigger if you want a smaller (x-width) health bar.GetCharHealth(ped, &health);health-=100; //max=200, dead=100if(health<=200 && health>=0){}else health=0; //health value is non-existing when player is dead. check for it.//         x pos,            y pos,  x width,   y width, r,  g,  b,  alphaDrawRect(0.1f+health/(max*2), 0.96f, health/max, 0.01f, 0, 175, 100, 200); 

 

 

works for me smile.gif

 

user posted image

Link to comment
Share on other sites

DRUZZRIN12296

 

ops tounge.gif

http://puu.sh/3Nb9O.png

 

when i made the made yellow bar i just had to make some special abilities, so the screen is from in-car slow motion ability smile.gif

That's not fair you're already ahead of me wink.gif

That's good work. Shame that i don't know how to code really haha. But nice work. Any idea on the map?

Edited by DRUZZRIN12296
Link to comment
Share on other sites

Oh, nice progress, keep it up, guys.

HHnErXC.png


Link to comment
Share on other sites

  • 2 weeks later...

Looks amazing, When do you think it will be finished? I will be happy to get it first thing biggrin.gif

Link to comment
Share on other sites

What if I use a sprite instead, would that work?

For the map itself ?

 

Yes it should be the best option, and should not be difficult at all. I will try to post some snippets for that soon.

 

The blip display, is the real hassle. But still possible.

 

I wished I had time to work on this stuff, but I'm quite limited at the moment.

 

Nice progress thought.

Link to comment
Share on other sites

What if I use a sprite instead, would that work?

For the map itself ?

 

Yes it should be the best option, and should not be difficult at all. I will try to post some snippets for that soon.

 

The blip display, is the real hassle. But still possible.

 

I wished I had time to work on this stuff, but I'm quite limited at the moment.

 

Nice progress thought.

how would you draw the sprites so that they dont exceed the radar area? i mean, when you draw the map sprites for the area youre in, the sprites dosnt perfectly match the size of the radar, some of them will be outside the radar area. how would you cut that part out? that is the problem I've been having while trying to make this.

The blips could be done somewhat easily, with some GetAllBlipsOfType and some arrays with blip textures linked to blipsprite number.

Link to comment
Share on other sites

I'm not sure if this helps, but the guy in this video has a lot of the HUD set up:

 

The map isn't very useful though tounge.gif

Link to comment
Share on other sites

 

What if I use a sprite instead, would that work?

If it is only a solid color, why using a sprite ? It will not work with the exact code I've sent you, but it is possible with a bit more code.

 

EDIT: Lol, I may have miss read something

Edited by pedro2555
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
 Share

  • 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.