Jump to content

madis

Members
  • Posts

    247
  • Joined

  • Last visited

Everything posted by madis

  1. madis

    Two MTA sa clients?

    You can run MTA in window and have virtual machine window next to it, so no, it is not time consuming. EDIT: I assume you thought set-up time. I meant the time when using them. EDIT2: OK, I tested it with VirtualBox. Only supported guest OSs for the new Direct3D support are Windows XP/Vista 32 bit, so I installed my XP SP3 there (legal and free, btw) (host OS is Windows 7 x64). I got it to work, but it's way too slow and resource hungry to render it useful, so atm I would not recommend virtual machine approach.
  2. Wanted to test out the new audio library in MTA 1.1 and updated my radio3d resource a bit. It allows to add radiostreams to playlist now. You could also add simple links to mp3 files hosted on some server, they are then streamed which means as soon as enough is downloaded it starts playing while downloading further. For hosting you can also use external free hosts, I tested some and these seemed to be fast enough: qdrive.net and mediafire.com, I'm sure there are plenty more, but qdrive seemed to be OK (radio3d hosted audiofiles). Maybe someone wants to share some music, so I could put legal music there and they would be in radio3d default playlist. You can put these example sound files to your playlist to test the speed(sample song that comes with Windows 7): <item path="http://download737.mediafire.com/xzkyrmub6kag/qylstl8mpwqcnaq/Kalimba.mp3" title="MediaFire" /> <item path="http://qdrive.net/files/radio3d/156948_Kalimba.mp3" title="QDrive" /> radio3d logic is like this at the momenty: 1) Server sets default playlist. 2) Client can override the server playlist, but only for their own hearing pleasure. This version works with MTA 1.0.4 too, but streams wouldn't and having a lot of downloadable(not streamable) mp3 files wouldn't be nice for your server, so I suggest it for MTA 1.1 only (as the 3d audio also works more accurately than before). CHANGELIST from 0.3 to 0.4 Instead of having one placeholder file server can set playlist instead. Moved file location and title inside playlist to quickly support URLs for streaming Removed radio3d_playlist dependancy as it wasn't actually needed to accomplish client side only files. TODO Add support for others hearing client playlist overrides as well. UPDATE: This might not be good idea, as people might add too noisy stuff. Maybe good only if distance is real low and/or outside volume very low. Get song info from file or stream Add exported functions for other resources to overload the playlist. E.g army themed gamemode could add .mp3 file links for war-era songs or stream for fake propaganda. EDIT: Just adding this here for reference: Minimum - how far do you need to be to start lowering the volume Maximum - how far do you need to be to set volume 0 Scroll down for newer version, this attachment is still here in case there are some regressions in newer ones.
  3. madis

    Two MTA sa clients?

    If you make two accounts you need to switch between them which is kind of time-consuming. I would suggest virtual machine instead - performance might be an issue, though.
  4. Having a configuration setting for it might be OK, but it's so small it doesn't disturb and as others said - a good way to distinguish screenshots and videos as MTA.
  5. madis

    setWaterColor

    You could give import command a shot in map editor. import resourceName
  6. Only released thing I've seen is this: http://iv-multiplayer.com/ and the author of that is sebihunter
  7. madis

    Slow Motion

    If you mean via commands then https://wiki.multitheftauto.com/wiki/AddCommandHandler The first argument to handler function will be the player who executed the command (in case all the code is server-side)
  8. madis

    Slow Motion

    it's not player-specific (or is it if called client-side?)
  9. madis

    Slow Motion

    setGameSpeed doesn't work independently indeed and I think it only changes the "clock" speed. Use setPedGravity and maybe setPlayerBlurLevel would also add a nice effect.
  10. Good idea, youtube illustration.
  11. oh, you touch my tralala, mmm... my ding ding dong.
  12. As a (temporary?) solution you could set ping-limit to your server.
  13. Washing them a bit, not wearing them too often, you know, the usual...
  14. madis

    dx draw

    info.priority is zIndex btw, so that if there are two elements overlapping, you can specify which one will be over other one (e.g on spawnscreen I have grey rectangle as a background for the gun image (so gun image has larger priority (or was it other way around?), and gray rectangle has the func when clicked). Also all the paramaters (font, etc) are optional, as there are default set already. EDIT: Also, by default it changes accordingly to the resolution, if not stated otherwise, and the "workspace" is 800x600, so think in that resolution (if you put somethings' x position to 800 there and your screen resolution is 1024*whatever, the x will be 1024).
  15. madis

    dx draw

    onClientClick Or you could use dxGUIElements functions I have in one of my resources (scripts/client/dxGUI for needed scripts and scripts/client/Spawnscreen.lua for example usage) Example usage: addDXGUIElement({ info = {parent = "aContainer", priority = 2, type = "text", id = "teamTitle"}, normalData = {text = "Team", left = 10, top = 10, color = tocolor(255,255,255), scale = 1.2, font = "default-bold", postGUI = true}, hoverData = {color = tocolor(100,100,100)} -- change colour on mouse hover }) parent is a common parent element, or string of whatever, so you could later do: makeDXGUIVisible("aContainer", true) (true means that cursor is also shown) Also, you could specify activeData, which will be used, when button has been clicked on, or you can manually change DXGUIElement state to active with changeGUIElementActive(info, boolean state), where info is a table containing the parent, priority, type and id keys. If state is true, element will be changed to active state (for whatever reason you want to), or when false then to deactive=normal state. You can also add to normalData func and funcAttributes, so that when "button" is clicked, func(funcAttributes) will be called, btw put the functions you want to use there before making the GUI elements (or add filename before GUI functions in meta.xml), because the func is added by reference (just check the example in Spawnscreen.lua). Also, you can add sound for hover and click events (again, check the example usage in Spawnscreen.lua).
  16. You need to install screen, I'm sure it's in local repositories already, so use whatever command you use to install applications (sudo apt-get install screen, or if I remember correctly Debian used su instead of sudo to run commands with root permissions)
  17. I'm using Ubuntu 10.04 and the precompiled server works. If you want to have OS just for running MTA Server (and maybe other server apps), then maybe some less "bloated" and less desktop-oriented distribution would be better, though.
  18. I'm thinking about pong (and how robhol failed).
  19. madis

    How did you get to MTA?

    Saw gta3:mta, played the first public MTA:VC (I loved the place near Malibu club where everyone spawned and tried to jump over the other side of the nearby river or stunt jumped on the ramp near the nearest bridge, or jacked other players cars while they were actually already driven away), which crashed a lot and couldn't be compared to current MTA (which is way more advanced and cooler), the character selection on the highest building, with buttons moving the golf car was a clever solution for that time too. And now I just like the idea behind MTA itself, though not enjoy playing too much (sometimes I do like to play too, though).
  20. madis

    request

    Using MTA Account system. For anything complex and more reliable using a separate database is also a good idea. Built in (sqlite): https://wiki.multitheftauto.com/wiki/Server_Scrip ... _functions or for MySQL: downloadable module MTA MySQL: https://wiki.multitheftauto.com/wiki/Mysql or https://wiki.multitheftauto.com/wiki/Modules/MySQL
  21. Interesting approach, which doesn't seem to add any heavy layers around existing elements. I'll keep my eye on this topic.
×
×
  • Create New...