Quantcast
Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
    1. Welcome to GTAForums!   (86,081 visits to this link)

    2. News

    1. GTA Online

      1. Find Lobbies & Players
      2. Guides & Strategies
      3. Vehicles
      4. Content Creator
      5. Help & Support
    2. Crews

      1. Events
      2. Recruitment
    1. Grand Theft Auto Series

    2. GTA Next

    3. GTA V

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

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

    6. GTA Vice City Stories

    7. GTA Liberty City Stories

    8. GTA San Andreas

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

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

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

      1. GTA Advance
      2. GTA 2
      3. GTA
    12. 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

    2. Red Dead Redemption

    3. 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. Forum Support

    2. Site Suggestions

Spooky

[REL|SRC] SCM and DirectX Hooking Source Code

Recommended Posts

Bigun

Hey Spooky, I know all of this conversation is more on the DirectX Hooking thing, but, as a player and not much a developer I am more interested in the mod itself lol.gif

I was wondering if you could change the speedometer so it doesn't show up in cutscences, and make it so you have to push a certain (configurable?) key to turn it on|off (and you can configure it to go auto-on if you get in a car or not (in the .cfg))

 

Other than that, rah.gif

Share this post


Link to post
Share on other sites
Cowpat

 

I was wondering if you could change the speedometer so it doesn't show up in cutscences, and make it so you have to push a certain (configurable?) key to turn it on|off (and you can configure it to go auto-on if you get in a car or not (in the .cfg))

 

If you want a speedo you can toggle on/off get it here (F12 to toggle). Can't help you with cut scenes though.

Share this post


Link to post
Share on other sites
Squiddy
Can't help you with cut scenes though.

You could check 0x7E46F5 (BYTE, VC1.0), it's 1 if the cinema borders are shown.

Share this post


Link to post
Share on other sites
Cowpat

 

Can't help you with cut scenes though.

You could check 0x7E46F5 (BYTE, VC1.0), it's 1 if the cinema borders are shown.

Checked out. Speedometer should now disappear during cut-scenes.

 

Thanks Squiddy!

Share this post


Link to post
Share on other sites
Bigun
If you want a speedo you can toggle on/off get it here (F12 to toggle).

Thanks Cowpat, Squiddy.

 

@Cowpat, maybe you should put it in your site, with the txd and cfg,

anyhows, can you make it so it reads the cfg and is configurable for KMH like Spookys original? I think it just swaps the texture.

Share this post


Link to post
Share on other sites
Tarantulo

Hello guys nice working your are doing in here. But I would like to know were could I download a speedo with kmh and/or with damage and fuel meters.

 

It would be big thanks wink.gif

Share this post


Link to post
Share on other sites
jacob.

1) the default version spooky compiled works off the KMH system.

2) fuel is nonexistent in vice city.

 

as for damage meters, that probably wouldn't be too hard. ask squiddy, he's awesome at doing stuff like that. tounge.gif

Share this post


Link to post
Share on other sites
Luke
2) fuel is nonexistent in vice city.

There are countless SCM fuelmods, furthermore, I believe squiddy made a fuel mod already using the speedo source as a base.

 

There is a such thing as fuel in Vice City.

Share this post


Link to post
Share on other sites
Tarantulo
1) the default version spooky compiled works off the KMH system.

2) fuel is nonexistent in vice city.

 

as for damage meters, that probably wouldn't be too hard. ask squiddy, he's awesome at doing stuff like that. tounge.gif

No matter managed to find it and to make it work on myself tounge.gif

 

Say fuel doen't exist wink.gif read this thread:

 

http://www.gtaforums.com/index.php?showtopic=148505&st=40

 

Well Squidy then could you tell me where could I get that speedo addon the one your were making with damage and fuel and etc.

 

Spooky & Squidy best GTA: VC speedo ever wink.gif

Share this post


Link to post
Share on other sites
Cam

None of those links work (to download the speedo/car health/fuel mod) . sad.gif

Share this post


Link to post
Share on other sites
jacob.
i meant it is nonexistent on the default shipped game files, of course the illusion of fuel can be created with scm/etc. Edited by !cMc! Jacob

Share this post


Link to post
Share on other sites
Cam
i meant it is nonexistent on the default shipped game files, of course the illusion of fuel can be created with scm/etc.

Isnt there a mission at the porn studio which you distribute flyers around the city, with a fuel meter?

Share this post


Link to post
Share on other sites
jacob.
i meant it is nonexistent on the default shipped game files, of course the illusion of fuel can be created with scm/etc.

Isnt there a mission at the porn studio which you distribute flyers around the city, with a fuel meter?

probably another illusion of fuel, but do you honestly think he'd request a fuel meter for this one mission? my point is just that a general fueling system is nonexistent in the default r* shipped files. confused.gif

Share this post


Link to post
Share on other sites
Squiddy
@Cowpat, maybe you should put it in your site, with the txd and cfg,

anyhows, can you make it so it reads the cfg and is configurable for KMH like Spookys original? I think it just swaps the texture.

That would be this one: http://squiddy.marway.org/gta/files/speedo.zip (Might need the dll linker to work, not sure)

If Cowpat doesn't minds, I could include the check for the cutscenes in this version.

 

Concerning the addon, I messed up my source and can't continue working on it at the moment, so it's still the massive-fuel-consuming version. I could upload it later today.

Share this post


Link to post
Share on other sites
Cowpat
That would be this one: http://squiddy.marway.org/gta/files/speedo.zip (Might need the dll linker to work, not sure)

If Cowpat doesn't mind, I could include the check for the cutscenes in this version.

 

Yeah, I thought the KPH version was yours Squiddy. It should read the cfg file anyhows, as I didn't change the ReadConfig code.

 

Please feel free to include the cut scene check.

Share this post


Link to post
Share on other sites
Cowpat

For anyone who is interested, here is the main code file for the VC Mission Loader.

 

Missions.cpp

Share this post


Link to post
Share on other sites
Squiddy

Anyone wants different backgrounds for the loading screen while loading?

 

 

int nLoadScreen=0;float fOldProgress=0.0f;DWORD dwProt;float* fProgress = (float*)0xA0CE94;if (*fProgress>fOldProgress+15.0f){nLoadScreen++;VirtualProtect((void*)0x68E6FA, 1, PAGE_EXECUTE_READWRITE, &dwProt);*(CHAR*)(0x68E6FA) = nLoadScreen+'0';VirtualProtect((void*)0x68E6FA, 1, dwProt, &dwProt);fOldProgress=*fProgress;} else if (*fProgress==0.0f) {VirtualProtect((void*)0x68E6FA, 1, PAGE_EXECUTE_READWRITE, &dwProt);*(CHAR*)(0x68E6FA) = '0';VirtualProtect((void*)0x68E6FA, 1, dwProt, &dwProt);fOldProgress=0.0f;nLoadScreen=0;}

 

 

0x68E6F4 - Texture that is used for the loading screen (proc at 0x4A69D0), default 'LOADSC0'

0xA0CE94 - Progress of loading, usually around 94 maximum

 

As you see this one changes every 15 steps, just shows the idea, do whatever you like to do. tounge2.gif

Share this post


Link to post
Share on other sites
jacob.
Sooo.. anyone have any luck with this method in San Andreas: PC? I could just change every '8' in my project to '9' but god knows how many errors would pop up. biggrin.gif

Share this post


Link to post
Share on other sites
Jarno

Can someone please post a code of using 'drawtext' command.

 

Thanks in advance

(I need to reply for J-Fox)

Edited by Jarno

Share this post


Link to post
Share on other sites
J-Fox.GEMM

Rofl i allready got that a few weeks now tounge.gif

 

uhm yeah - i just tried out the stuff Jacob did in VC - but i tried in SA - what i have to define on top and what must i edit or add maybe remove to let it work ? dozingoff.gif

Share this post


Link to post
Share on other sites
dustcrazy

Sorry for the bump, but does any one still have the source? Seems that spookies website is down confused.gif

Share this post


Link to post
Share on other sites
ceedj

I too am looking for this. Anyone have it? I've got his other (no DX) SCM source, but can't find this one anywhere... confused.gif

 

EDIT: Whoops, found it on the laptop.

 

Spookie's Speedo Source

 

If he asks me to remove it, I will. But until then, there ya go. smile.gif

Edited by ceedj

Share this post


Link to post
Share on other sites
jarjar

Oh good, thanks ceedj, this will be a major help. I've been hoping someone would find it. Thanks smile.gif.

Share this post


Link to post
Share on other sites
Squiddy

You could have asked a second time, I seem to have missed this topic. wow.gif

Share this post


Link to post
Share on other sites
JohnMirror

Hi.

Sorry for my bad english.

And also sorry for "bumping" such an old topic...

 

Thank you very much Spookie for the Vice City speedometer.

2 questions:

1. How can I modify it to show KPH instead of MPH? It would be better if it would exist a setting in speedo.cfg. This way it could change the background image automatically.

2. I'm trying to use it in Vice City Online (www.vicecityonline.com). But in the latest version if I copy d3d8.dll in the Vice City folder, VCO starts the game in single player not multiplayer. A guy explained to me why in http://www.vicecityonline.com/forum/index....sg2717.html#new

Is there something that can be done...?

 

Thank you in advance for any reply.

 

Best regards.

Share this post


Link to post
Share on other sites
Dvt-MedShot

Holy sh*t! You just bumped a 4 f*cking years old topic. mercie_blink.gif

Btw the link is dead on the first page.

Share this post


Link to post
Share on other sites
JohnMirror

 

Holy sh*t! You just bumped a 4 f*cking years old topic.  mercie_blink.gif

Btw the link is dead on the first page.

Sorry again sad.gif

What can I do about the link...?

Share this post


Link to post
Share on other sites
oinkoink

@JohnMirrors...

You need to change the speed multiplier to 3.6 in the source...

Custom.cpp:

 

float fSpeedoMultiplier	= 3.6f;	// Default multiplier to 2.24 (mph)...3.6(kmh)

 

What you need?

- Visual C++ 2008 Express Edition

- DirectX8 SDK

- The good old Speedo-Source

(Yep...I never delete a sourcecode...never...for years!)

 

I can't do it for you, 'cause...I'm a lazy bastard. wink.gif

 

Oh...and don't care about this bump...this speedometer is a classic and should not be forgotten.

Now I wax sentimental... cryani.gif*VC-feeling-missing*

Share this post


Link to post
Share on other sites
JohnMirror
@JohnMirrors...

You need to change the speed multiplier to 3.6 in the source...

Custom.cpp:

 

float fSpeedoMultiplier	= 3.6f;	// Default multiplier to 2.24 (mph)...3.6(kmh)

 

What you need?

- Visual C++ 2008 Express Edition

- DirectX8 SDK

- The good old Speedo-Source

(Yep...I never delete a sourcecode...never...for years!)

 

I can't do it for you, 'cause...I'm a lazy bastard. wink.gif

 

Oh...and don't care about this bump...this speedometer is a classic and should not be forgotten.

Now I wax sentimental... cryani.gif*VC-feeling-missing*

Thank you.

The speed multiplier can be changed also in speedo.cfg smile.gif

This is the content of the file :

 

 

# Speed multiplier#   Use 2.24 for mph.mul_speed 2.24# X Position#   In relation to 1024x768 resolution.#   Speedometer size is 200x200 pixels.#   0 = Left, 412 = Center, 824 = Right.pos_x 824# Y Position#   In relation to 1024x768 resolution.#   Speedometer size is 200x200 pixels.#   0 = Top, 284 = Center, 568 = Bottom.pos_y 568

 

 

So, if I want to display x 1.6 values I can set mul_speed to 3.6.

But this is just a part of the problem. I want that the code could display a different bitmap for background depending of what the user sets in speedo.cfg (like GTA San Andreas speedometer does). For example:

 

 

displ_text KPH

 

 

Plus, on some VCO servers, you can use "speed boost" (or you can increase maxspeed/acceleration of the vehicles in handling.cfg for single player). So, because the speedometer shows only 0..200, in this situation the analog part of the speedometer will be useless... The bitmap should be changed to 0..300 or 0..400.

Share this post


Link to post
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

×

Important Information

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