Jump to content

madis

Members
  • Posts

    247
  • Joined

  • Last visited

Everything posted by madis

  1. Do these events happen on the same time or is there any difference (other than arguments)? OnClientVehicleEnter OnClientPlayerVehicleEnter
  2. Wiki doesn't say is deprecated, but from the wiki discussion this seems like an alternative: https://wiki.multitheftauto.com/wiki/GetResourceConfig
  3. Is it possible to run 2+ instances of MTA, so that I could properly test a resource in development? EDIT: Creating a new user account in Windows XP helped in that way that I could switch users while having both instances running... that's quite sufficient, though too bad Run as... wouldn't do the trick. Also, there are some sync problems while running 2 instances like that...
  4. Yes, with highering SetSoundMaxDistance and SetSoundMinDistance values, the audio can be heared to greater distance. I usually don't like to ask too much... but still, I just haven't figured out following. I've implemented a song selector for players when they are in vehicles. Now, there are two possibilities, as eAi pointed out, I could check vehicles or players. I would actually prefer vehicles - which means: Every player can set a musicfile playing in his/her vehicle and optionally leave it playing when leaving vehicle (by default this would be off, though) - which means that every vehicle needs to be checked, instead of players and their vehicles. So, I have this: 1) On every frame, play3DSound element needs to be repositioned, so it follows a vehicle. This is done by clientside script: function reposition3DSound(soundSource, x, y, z) setElementPosition(soundSource, x, y, z) end function vehiclesWithDriver() -- getElementsWithinColShape might be better in future local vehicles = getElementsByType("vehicle") for theKey, aVehicle in ipairs(vehicles) do vehicleOccupant = getVehicleOccupant(aVehicle, 0) -- if someone is driving the vehicle if vehicleOccupant then local songId = getElementData(playerVehicle, "song_id") local songPosition = getElementData(playerVehicle, "song_pos") if songId then local x, y, z = getElementPosition(aVehicle) reposition3DSound(musicSound, x, y, z) end end end end addEventHandler("onClientRender", root, function() vehiclesWithDriver() end ) It's a bit messy code... When a client is in vehicle and starts a song, it will set element data for that vehicle setElementData(playerVehicle, "song_id", "a") setElementData(playerVehicle, "song_pos", false) where, song_id is the song I'm playing (in this example "a" and song_pos is the seeking position of song (so that it would be synced) Okay, I can't understand my post either... well my problem is: How should/could I sync the playing sound, so that when someone starts a song for a vehicle, others would hear it, included players who join the server when the song is already playing. One of the problems is that in one case I need to initialize the sound and later on update the position. EDIT: nvm, I guess I've figured it out... I'll get back when it's done.
  5. Assume I have included resource B in my resource A by meta.xml In resource B meta.xml there is for example (the file is in resource B as well) Is there a way to use that file in resource A? The reason I'm separating data, is because it's atm ~200 MB which makes restarting the resource in server slow (~15 seconds) while developing and refreshing and restarting a resource if very often. (Actually the original idea was, that I hoped that B (which itself is not updated) was not always restarted when I restart A - unfortunately it does). EDIT: In case there isn't a simple way, this should do it: https://wiki.multitheftauto.com/wiki/Call EDIT2: Btw using the short version exports.resource:exportedFunction([argument1[, argument...]]) didn't work for me, however call worked. Great!
  6. Thanks for the reply. Also, I guess this is a good place to also use the collision functions, as audio isn't heared to unlimited area anyway.
  7. Another question, maybe a bit off topic, but needed for the same reason... What is the best method to get a race spawnpoint element via lua script (by what I actually mean the moving vehicle) which is defined in .map? Edit: Oh I guess I found it https://wiki.multitheftauto.com/wiki/Writing_Gamemodes EDIT2: Mhm, yeah, of course, the spawnpoint itself isn't updated, so I need to get the vehicle or ped (player) position instead. Any help on that ?
  8. Thank you, 50p, for the quick answer!
  9. Is it possible to attach playSound3D to vehicle? Idea would be that people would hear whatever player is listening in a vehicle (probably some song from server side selection of music). I have an idea to make a resource similar to Battlefield Vietnam (yeah, there is battlefield69 or something but it doesn't work with latest MTA and I actually want to do it myself - which probably means I'll never get it done).
  10. There is no second argument for engineLoadTXD.
  11. I've always wanted to have the possibility to choose a real radio station as a radio station in GTA. It was actually possible in single player with some application that streamed and saved the stream in two small mp3 files, so that both are in music tracks folder, and after first .mp3 is played the second one will be played, meanwhile, the first one will be recorded over with continuation from the second one etc. Anyway, that method would not suite to multiplayer of course. First search for a good free audio library with lot of features was OpenAL (the link shows how many games use it.) However, there are probably some bugs and other more important stuff to be fixed first in MTA.
  12. function warpMe in freeroam resouce, file fr_server.lua
  13. Just try to give as much information you can and report the bug to the mantis.
  14. madis

    slow jump

    It usually happens if some other thing (running or sth else) uses shift too, or jump uses some alternative key too. Try to set the Binds again and apply them.
  15. Or by Intel. Anyway, I guess more information is needed... not that I know which kind of information.
  16. Also install the latest DirectX Runtime.
  17. Try to uninstall MTA, delete the whole MTA folder manually and then install it back again.
  18. I was glad to see that õ, ä, ö, ü etc umlaut letters support was added to the chat/console. Runs smooth and doesn't crash. Also found one bug (should be minor if not making maps), which I will report some day.
  19. madis

    2 Major Issues

    Single Player works, right?
  20. My little suggestion. You have developed it 5 years, so this is a big event. I suggest having a splash screen as the first page on mtasa.com, where is nothing else than big announcement of release of 1.0 with download etc and link to continue to the site if wanted.
  21. All that I am asking is that wouldn't it be less time consuming to make MTA:SA work with GTA:VC? As a lot of stuff GTA:SA added to GTA:VC could just be ignored and other parts seem to be in most parts the same. I'm sorry if I've got wrong image of possible compatibility of MTA:SA and GTA:VC.
  22. Screenshots of released 1.0 funs. I forgot to make any other than race ones, but anyway. (You can make screenshots with F12)
  23. The latest nightly gives the error: exception processing message c0000135 parameters 75b6bf7c And after that the "Network module could not be located". Tried copying the dll file it from MTA to SA main dir, didn't help. But it's the wrong place to report it anyway... EDIT: Using Windows XP SP3
  24. Try using lower resolution of game, so the window will be smaller.
×
×
  • Create New...