50p Posted January 30, 2008 Share Posted January 30, 2008 (edited) I made a nice GUI speedometer with status icons of doors lock being locked/unlocked and lights being on/off. I invited AlienX to see it on my server by saying it has a needle, otherwise he wouldn't have come (sorry AlienX, hehe). Anyway, the speedo that AlienX saw is included but not used. This version has got a really nice needle rotating around! The background (I called it a "disc") may be edited in the future version, since this one may be a bit boring. Download: http://files.filefront.com/speedo+discz ... einfo.html Screenshots: http://gallery.filefront.com/50p/126102/ Link to the new resources download (mtabeta.com): http://www.community.multitheftauto.com/index.ph ... tails&id=8 Installation: Paste .zip file to your server's "resources" folder WARNING! It takes long (up to 30 sec.!!!) to create 260 static images (needle's angles)! But after it's been created, it works as hell every time you enter/leave vehicle. Edited February 1, 2008 by Guest Link to comment
Mr.Hankey Posted January 30, 2008 Share Posted January 30, 2008 Sound's nice and i'd like to use it but for me the link is broken... Link to comment
szlend Posted January 30, 2008 Share Posted January 30, 2008 Awesome! But 30 seconds? x.x Link to comment
50p Posted January 30, 2008 Author Share Posted January 30, 2008 Sound's nice and i'd like to use it but for me the link is broken... Link's fixed now. Awesome! But 30 seconds? x.x Needle has 260 images (each different angle). There is for loop which creates 259 images, I missed 1 while exporting images. Link to comment
szlend Posted January 30, 2008 Share Posted January 30, 2008 Just tested and it's awesome! The needle is really smooth Link to comment
DSC-L|Gr00vE[Ger] Posted January 30, 2008 Share Posted January 30, 2008 hey, that looks very nice ! i will download it now and test it... ^^ Link to comment
Argon Posted January 30, 2008 Share Posted January 30, 2008 Can't you just use 2 images? And alter the coordinates? Or make it digital then you need only 11 images. Link to comment
szlend Posted January 30, 2008 Share Posted January 30, 2008 I don't think it's possible for the needle image to rotate at the moment. Link to comment
silent785 Posted January 30, 2008 Share Posted January 30, 2008 Nice one mate, it really looks nice. I made a nice GUI speedometer with status icons of doors lock being locked/unlocked and lights being on/off. Can you make a screenshot of that please? Couldn't find it on the other screenshots. Link to comment
50p Posted January 30, 2008 Author Share Posted January 30, 2008 You can find the icons in speedometer.zip (/images/door_open.png, /images/door_closed.png). Can't you just use 2 images? And alter the coordinates? Or make it digital then you need only 11 images. If there was a function like guiRotate or guiSetRotation I'd use them. Link to comment
DSC-L|Gr00vE[Ger] Posted January 30, 2008 Share Posted January 30, 2008 yeah, please make it digital ! because the speedmeter sooo big and since if uploaded it to my server it´s so slow ... Link to comment
50p Posted January 31, 2008 Author Share Posted January 31, 2008 You should download my older speedometer if you want digital: http://www.mtabeta.com/index.php?p=reso ... tails&id=5 Link to comment
SanZoR Posted January 31, 2008 Share Posted January 31, 2008 Great script! I done a new image to it, if you like it, feel free to use it: Link to comment
joukuna Posted January 31, 2008 Share Posted January 31, 2008 nice work, i think this is best speedometer. Link to comment
SanZoR Posted January 31, 2008 Share Posted January 31, 2008 Hey, It works great, but theres one problem. When the speed is ~65km/h, the needle disappears. But when its 66, its back I checked there is every needle, so i dont know why it does it Do you? Btw, it took about 10s to load the needles for me. Link to comment
DSC-L|Gr00vE[Ger] Posted January 31, 2008 Share Posted January 31, 2008 You should download my older speedometer if you want digital: http://www.mtabeta.com/index.php?p=reso ... tails&id=5 thx for the link, i will test it soonly ! i think it won´t lagg like the analog one with the naddle^^ Edit: At first, it doesn´t lagg, but when we were 5 people, it starts to lagg, almoast like the other one...^^ what can i do? ps: i´ve got a 32 slot server on a v-root server with 256 mb ram, 512 dynamic and 500 mhz prozessor so it´s not a very good root server but it´s only cost 15 euros per month... Link to comment
50p Posted January 31, 2008 Author Share Posted January 31, 2008 Hey,It works great, but theres one problem. When the speed is ~65km/h, the needle disappears. But when its 66, its back I checked there is every needle, so i dont know why it does it Do you? Btw, it took about 10s to load the needles for me. If you checked that all images are there it means that you didn't check it correctly there is "73.png" missing, I new about it because I was exporting all of the images manually! It took me 5 hours (whole night!) to create the gauge and the needles, because I wasn't thinking at that time (tiredness). The next day I made another needle in just 30 minutes. Simply created animation with 260 frames and exported it as a sequence of .png's and now no images are missing. The old needle was quiet heavy (~630kb), new one is half lighter (~330kb) it may speed-up loading all images. Maybe on Sunday (3/02/2008) I'll do an update with a new needle, but for now have fun with the new background: Link to comment
Guest Posted February 2, 2008 Share Posted February 2, 2008 i'm sorry but how do i use this? i typed start speedo_disc says resource can't be found Link to comment
50p Posted February 2, 2008 Author Share Posted February 2, 2008 Have you placed the .zip in your server's "resources" folder? Make sure to "refresh" your resources if the resource was installed while server was running. Just type "refresh" in the console (no quotation marks), you must be logged in as an admin. Then try to "start speedo_disc" again. Link to comment
Guest Posted February 2, 2008 Share Posted February 2, 2008 needle is missing when i'm driving Link to comment
50p Posted February 2, 2008 Author Share Posted February 2, 2008 needle is missing when i'm driving Re-enter the vehicle. Probably you started the speedo when you were in a vehicle. Link to comment
Cloudhunter Posted February 3, 2008 Share Posted February 3, 2008 Just noticed this in the changelog Sat 02/02 - ChrML: Added dxDrawLine and tocolor script function. This is the first part of a set of low-level functions to draw primitives for one frame. Can be used as a lightweight way to make simple and dynamic stuff without hacking it up with heavy gui images. For example a speedometer needle. Seems pretty targeted Cloudy Link to comment
50p Posted February 3, 2008 Author Share Posted February 3, 2008 I'll re-make the speedometer as soon as we'll be able to use that function. Link to comment
DazzaJay Posted February 3, 2008 Share Posted February 3, 2008 Hey 50P nice speedo. (i have been waiting for one this awesome) but there is one small thing about it that im not a fan of. the "Blurry" needle. i dare say it would take forever for you to make a new one, and you probably wont do it because of how long it will take... but how about one of these... also, on first getting in a vehicle in a server running this, the game locks up for about 10 ~15 seconds (prolly while its loading all the images) which makes me wonder, isnt there a way instead of using 260+ images, to instead just use 1 that rotates? Link to comment
ChrML Posted February 3, 2008 Share Posted February 3, 2008 I've noticed the lack of drawing functionality in dp2, so dp3 now contains a way to draw lines, for example a speedometer needle, both on top and below GUI. Link to comment
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now