IMG

 
IMG
IMG   IMG
  Welcome to GTAForums! Be sure to check out the GTA IV Forum.

You are not registered! (If you are, click here to login) Registering is fast, free and easy and allows you to instantly reply to any topic on GTAForums.
Why wait? Click here to register your own unique username and become part of the ever-growing community!


( Log In | Register | Revalidate Validation E-mail )
Quick Log-In:
  IMG
       
>
Forum Rules Attention:

The Mod Showroom is only for posting previews/downloads of completed or near finished mods.
All help topics should be posted in the Editing Discussion forums. Help topics and mod requests posted here will be locked or binned. Thank you.
GTAGarage.com : Free mod hosting, attach your files and screenshots to your topics
GTAModding.com : A wiki for everything related to GTA modding, including documentation and tutorials

Pages: (2) [1] 2   ( Go to first unread post ) Closed TopicStart new topicStart Poll

> Brokenfish's Speedometer, It's midnight here, I'm tired
 
spaceeinstein  
Posted: Jul 15 2005, 04:56
Quote Post


Chocolate
Group Icon
Group: Members
Joined: Jul 17, 2003

cn.gif

Member Award




CONVERTED FOR SAN ANDREAS!

Created by Brokenfish for Vice City. Converted by spaceeinstein for San Andreas. This is a script mod that displays the speed of any vehicles in about miles per hour.

Please download Barton's mission builder using Craig's link. You have to download Hammer89's GXT editor. Find the GXT string "HOSP_1". Edit the text to "MPH". Save the GXT. It should display the speed in numbers next to the MPH.

CODE
004F: create_thread ££SPEED

------------

:SPEED
0001: wait  50 ms
00D6: if  0
00DF:   actor $PLAYER_ACTOR driving
004D: jump_if_false ££SPEEDLAST
03C0: @0 = actor $PLAYER_ACTOR car
00D6: if  0
00DB:   actor $PLAYER_ACTOR in_car @0
004D: jump_if_false ££SPEED
02E3: @1 = car @0 speed
0011: @1 *=  2.25;; floating-point values
008C: @1 = float_to_integer @1
0086: $SPED =  @1;; floating-point values only
04F7: status_text $SPED  0 line  4 'HOSP_1';; MPH
0002: jump ££SPEED

:SPEEDLAST
0001: wait  250 ms
0151: remove_status_text $SPED
0002: jump ££SPEED


This post has been edited by spaceeinstein on Sep 1 2005, 16:05
Users WebsitePM
  Top
 

 
ThAtSgOtTaHuRt  
Posted: Jul 15 2005, 05:12
Quote Post


T_G_H
Group Icon
Group: Members
Joined: Jul 31, 2003

us.gif

XXXXX



sweet, just what I was looking for. good work. rah.gif

although the NRG tops out at 80MPH on your speedo and the HYREA tops out at 120MPH. can ya boost the number up a bit to make it more realistic? - like multiply it by 2.25 then NRG will top out at 180 (sounds about right)

but then again after I did that I end up going 40MPH when the bike is rolling at a jogging pace.

what to do what to do?


This post has been edited by ThAtSgOtTaHuRt on Jul 15 2005, 05:26
Users WebsitePM
  Top
 

 
spaceeinstein  
Posted: Jul 15 2005, 22:41
Quote Post


Chocolate
Group Icon
Group: Members
Joined: Jul 17, 2003

cn.gif

Member Award




It's like that, somehow. It does that in Vice City for the Skimmer only but somehow in San An, it does that in almost any vehicles. I changed the value to 2.0 (original one).

This post has been edited by spaceeinstein on Jul 15 2005, 22:49
Users WebsitePM
  Top
 

 
sighko  
Posted: Jul 15 2005, 23:09
Quote Post


Player Hater
Group Icon
Group: Members
Joined: Dec 23, 2004

XXXXX



works PERFECT been waiting for a digital speedo to put in my script...BIG UPS!
PM
  Top
 

 
RainingAcid  
Posted: Jul 16 2005, 02:48
Quote Post


Hustler
Group Icon
Group: Members
Joined: Mar 28, 2005

XXXXX



Is locks up when I try to add it to SA-Back to reality.
PM
  Top
 

 
spaceeinstein  
Posted: Jul 16 2005, 05:18
Quote Post


Chocolate
Group Icon
Group: Members
Joined: Jul 17, 2003

cn.gif

Member Award




The size limit for the first four segments is 2MB (or 200,00 something), so if you go over that, the game crashes.
Users WebsitePM
  Top
 

 
yfbc.  
Posted: Jul 16 2005, 17:42
Quote Post


Player Hater
Group Icon
Group: Members
Joined: Jun 26, 2005

XXXXX



It worked when i added it to SA - back to reality, although it doesnt always show because of the petrol bar and when it does the petrol bar doesnt
PM
  Top
 

 
The_Grudge  
Posted: Jul 17 2005, 16:45
Quote Post


» The_Grudge «
Group Icon
Group: BUSTED!
Joined: Jan 8, 2005

sd.gif

XXXXX



Any way to make this display KPH?
PMMSN
  Top
 

 
spaceeinstein  
Posted: Jul 17 2005, 16:56
Quote Post


Chocolate
Group Icon
Group: Members
Joined: Jul 17, 2003

cn.gif

Member Award




Change 0011: $SPED2 *= 2.0;; floating-point values.
to this 0011: $SPED2 *= 4.0 ;; floating-point values

O yea, I will update the code to include local instead of global variables later on.


This post has been edited by spaceeinstein on Jul 17 2005, 16:58
Users WebsitePM
  Top
 

 
The_Grudge  
Posted: Jul 17 2005, 18:10
Quote Post


» The_Grudge «
Group Icon
Group: BUSTED!
Joined: Jan 8, 2005

sd.gif

XXXXX



QUOTE (spaceeinstein @ Jul 17 2005, 18:56)
Change 0011: $SPED2 *= 2.0;; floating-point values.
to this 0011: $SPED2 *= 4.0 ;; floating-point values

O yea, I will update the code to include local instead of global variables later on.

Thanks, but I already figured that out.
PMMSN
  Top
 

 
spaceeinstein  
Posted: Jul 17 2005, 18:13
Quote Post


Chocolate
Group Icon
Group: Members
Joined: Jul 17, 2003

cn.gif

Member Award




The speedometer is updated so it can have the same speed as the other speedometer.
Users WebsitePM
  Top
 

 
Opiteilsm  
Posted: Jul 17 2005, 18:52
Quote Post


Jinx Removing
Group Icon
Group: Members
Joined: Jul 16, 2005

en.gif

XXXXX



cool looks great in game
Users WebsitePMMSNPlayStation Network
  Top
 

 
ripple  
Posted: Jul 21 2005, 20:20
Quote Post


Square Civilian
Group Icon
Group: Members
Joined: Jun 13, 2005

XXXXX



Trouble shooting needed smile.gif

I tried to combine this with Greg's SA Opened Up mod. The speedometer works, but.....when I start a new game, I get that big text message on screen which says "When your health reaches 0 you will be sent to the hospital" (or something like that), but the text message does not dissappear--it just stays there. Any ideas?
PM
  Top
 

 
spaceeinstein  
Posted: Jul 22 2005, 23:18
Quote Post


Chocolate
Group Icon
Group: Members
Joined: Jul 17, 2003

cn.gif

Member Award




So terribly sorry about ignoring this. You have to download a GXT Editor and find "HOSP_1". Edit the text to "MPH". I will update first post later today.

Ok post updated. Anyone who installed this mod should install it again since I updated the code also.


This post has been edited by spaceeinstein on Jul 22 2005, 23:47
Users WebsitePM
  Top
 

 
ripple  
Posted: Jul 22 2005, 23:59
Quote Post


Square Civilian
Group Icon
Group: Members
Joined: Jun 13, 2005

XXXXX



No problem Space. Thanks for the update. I edited it to reflect KPH

QUOTE
0011: @1 *=  3.621024;; floating-point values
008C: @1 = float_to_integer @1
0086: $SPED =  @1 ;; floating-point values only
04F7: status_text $SPED  0 line  4 'HOSP_1';; KPH


Is this right?
PM
  Top
 

 
spaceeinstein  
Posted: Jul 23 2005, 14:29
Quote Post


Chocolate
Group Icon
Group: Members
Joined: Jul 17, 2003

cn.gif

Member Award




Change to 4.0

This post has been edited by spaceeinstein on Jul 23 2005, 14:36
Users WebsitePM
  Top
 

 
ripple  
Posted: Jul 23 2005, 17:06
Quote Post


Square Civilian
Group Icon
Group: Members
Joined: Jun 13, 2005

XXXXX



Thanks Space. The reason I was asking was because intially I changed it to 4 as per your previous instructions and....well, CJ was riding on the bicycle and doing 80 kph just cruising, which I thought was fast because I never went that fast on my bike tounge.gif
PM
  Top
 

 
spaceeinstein  
Posted: Jul 24 2005, 04:56
Quote Post


Chocolate
Group Icon
Group: Members
Joined: Jul 17, 2003

cn.gif

Member Award




Yea, I know. GTA is a whacky place. It's normal for the bike to go that fast.
Users WebsitePM
  Top
 

 
akboy  
Posted: Jul 24 2005, 12:27
Quote Post


Player Hater
Group Icon
Group: Members
Joined: Jul 2, 2005

XXXXX



Note: 1 kph = 1,61 mph.

But if your multiplier for mile is 2.0, the multiplier for kph is 3.22 (2.0 * 1.61).

In the handling.cfg, Hydra max speed is 200 kph (I take the hydra because he can take this max speed). Without multiplier, the game draws 75.

-> 200/75 = 2.67 (kph multiplier)
-> 2.67/1.61 = 1.66 (mph multiplier)


What do you think about that?
PM
  Top
 

 
spaceeinstein  
Posted: Jul 24 2005, 15:28
Quote Post


Chocolate
Group Icon
Group: Members
Joined: Jul 17, 2003

cn.gif

Member Award




The speed I have now is based on Spooky's speedometer. Its max speed for the Hydra is 168MPH so I synced it with it.
Users WebsitePM
  Top
 

 
0 User(s) are reading this topic (0 Guests and 0 Anonymous Users)
0 Members:

Topic Options Pages: (2) [1] 2  Closed TopicStart new topicStart Poll
Search topic for posted by (exact match)



 
IMG IMG
     

 
     
Message Boards and Forums Directory