Jump to content

The_GTA

Helpers
  • Posts

    822
  • Joined

  • Last visited

  • Days Won

    86

Everything posted by The_GTA

  1. The_GTA

    [HELP]Molotov

    Thank you for bringing up that MTA GitHub issue! It even looks like that code is equal to the one you posted, making me believe that you could be the same person. But I think that you should continue the correspondence inside of that GitHub issue because you insist on the crashfix. The crash seems to happen inside of GTA_SA.EXE executable space but I don't have the time to investigate at the moment.
  2. The_GTA

    [HELP]Molotov

    I don't understand the conflict situation that you describe. do you want help to solve this setPedOnFire issue? in what situation is the function not working? what is that tool you are mentioning? does it have any kind of public name? is it your own tool?
  3. The_GTA

    [HELP]Molotov

    Hello erisP, have you tried calling the cancelEvent function inside of the onClientVehicleDamage event handler? You should check that the "theWeapon" parameter is the ID 37 which is the damage type ID for burning damage. This is very interesting. What did you do to make the game crash? Have you simply spawned the Infernus vehicle and thrown a molotov at it?
  4. Hello DaaNN, you have posted in the Spanish forums just 8 hours ago. Next time try waiting a little longer before double-posting, okay? To answer your question, the variable "id_vehicle" does not appear to be defined in your script. Try using getElementModel(veh) instead.
  5. Hello DogukanUcan, I assume you are talking about this resource, right? Open an issue on their public GitHub. You are more likely to get an answer to your question that way.
  6. You have to wait for somebody who is in charge of maintaining the Linux version of the MTA server. Since you are experiencing a server set-up related error this is not a scripting problem, hence the place to put this topic is wrong. Putting topics into wrong categories does impede the ability to answer your support request properly.
  7. Hello unkn0wnus333r, it looks like you are using an Unix based operating system to run the MTA server on. Have you tried following the steps as recommended by the MTA wiki? GNU/Linux: Installing and Running MTASA Server on GNU Linux - Multi Theft Auto: Wiki Server Installation Steps: Server Manual - Multi Theft Auto: Wiki
  8. You should not really underestimate the work of Rockstar North when they developed this game. Since you have doubted the collision loading for mission entities here is a quick proof I have dug up (you made me go through many hoops to look it up!): I am not going to explain a lot since talking about these topics has become risky, but I did dig a lot into this code and mission entities do trigger map loading if they are configured in a very specific way. It should not take a lot of effort to patch this code so that it loads collisions for arbitrary points or even arbitrary MTA entities.
  9. Do you know how scripted mission entities inside of the GTA SA engine have the map loaded underneath of them? Since I have my hands tied at the moment maybe you could look into that code inside of the engine and utilize it to help OP, in case he needs those collisions.
  10. Welcome back, amirmahdi. If you want to search for a player B who is closest to player A but A should not be equal to B then you have to tell the code that it should skip A when looking for closest players. Otherwise it will always find A because A is always closest player to A. ... for m,veh in ipairs(vehicles) do if not (veh == elem) then -- exclude the player whose closest players we want to find local veh_x, veh_y, veh_z = getElementPosition(veh); ... Please rename the variables inside of the function so that they match the element type to prevent confusion.
  11. Hello SKYNET174, it does not make sense to ask about round render targets because they are merely color buffers and those are stored as 2D memory arrays. Instead you want to ask how to draw a render-target with a round cut-out. For that you can utilize a special pixel shader (PS) in combination with the dxDrawImage function. Simply attach the render-target as texture to the PS and use custom math that clips the pixels outside of the circle using the HLSL clip function. In the PS you obtain texture coordinates ranging from inclusive 0 to exclusive 1 for each dimension. We want to put a circle with radius 0.5 at the texture coordinate (0.5, 0.5) which is the middle. Thus in the PS we calculate the euler distance ED from the middle coordinate to the current texture coordinate of the drawing pixel. clip_x = 0.5 - ED Then we call the HLSL clip function with clip_x as parameter. Since clip_x is smaller than 0 for every coordinate outside of the circle the pixels outside of the circle will not be rendered. Thus we display the render-target in a very finely approximated circular shape! Hints: Make sure to pass quadratic width and height parameters to the dxDrawImage call which should render the circle shape using the PS. Otherwise your circle might look wonky. Good luck. ?
  12. Hello NoviceWithManyProblems, how about you render your text on a texture/render-target and then use dxDrawMaterialPrimitive3D to render that color buffer into 3D space? This way you can draw only the closest pixels, obstructing any behind depth-enabled triangles. Please mind that GTA SA collisions are only very roughly approximated to visible triangles.
  13. I would like to add that enabling or disabling the MTA streamer is not equivalent to streaming in or out an entity. You can simulate the MTA streamer by just creating MTA entities that you disable "streaming" on using setElementStreamable. The creation of such entities would be equivalent to streaming them in, the destruction equivalent to streaming them out.
  14. Do I understand you correctly that you want to create n buckets where each bucket stands for a server. Then you want to fill these buckets with player accounts that belong to the server that is represented by the bucket. By sooner you mean ordering, not related to time?
  15. Hello M.Wizard, I want to ask you some questions in order to fully understand your intentions. Your text appears to be a written in strange, possible non-native way. But we can clarify all doubts with answers to my questions: What do you exactly mean with "sooner" or "less"? If you have two numbers a and b, how much sooner should the one that qualifies be written? What do you mean by "text"? What kind of "Clientside panel" are you talking about?
  16. You can either request a new feature on the MTA GitHub issue tracker or respect the fact that MTA is working with a closed source engine that has big limitations to begin with, making the new features difficult to mature out. I wish you good luck ?
  17. Hello Xwad, you are probably fighting against the custom MTA SA element streamer in this situation that you describe. The MTA streamer does have it's own streaming distance settings. I am not sure how to adjust such properties or whether the MTA team did intend to have you look at vehicles from 1200 meters far away.
  18. I don't think that is a good idea at the moment. Just gonna leave it at that note.
  19. Hello M.Wizard, have you tried using the xmlNodeGetChildren function? It should return a table of all child nodes. Child nodes are inside of their parent nodes.
  20. It does not because one part of the resource is on the server-side and another on the client-side. In such a scenario where you want to call client-side code from the server-side you need to trigger another client-side event. It looks like you just want the player to know whether his bullet setting is enabled. -- CLIENTSIDE addEvent("onClientReportBulletSetting", true) addEventHandler("onClientReportBulletSetting", root, function(is_on) if (is_on) then guiSetText ( label , "On" ) end end ); -- SERVERSIDE ... if (getServerConfigSetting( "bullet_sync" ) == "1" ) then triggerClientEvent(client, "onClientReportBulletSetting", true) end Also triggering server-events each frame from each connected client is effectively self-DDoSing your server. Here: function aapp () local tee = guiSetText ( label , "On" ) triggerServerEvent("Me",localPlayer) -- DDOS end addEventHandler ( "onClientRender", root, aapp ) -- WTF? called each game frame
  21. OK. Then let me try to help you by asking you about this faulty code excerpt. It has been pointed at by the error message so it should be no suprise to you. By having one year of experience you should be able to formulate some basic ideas. if (getServerConfigSetting( "bullet_sync" ) == "1" ) then tee end What did you mean by these code lines? Especially, what is the reason behind putting the "tee" specifier into your code which is a parameter of the event handler?
  22. Hello AmirHzz, glad to see you ask for support on our MTA scripting forums! I would like to know more about yourself in order to give you proper support. Do you know Lua scripting and how much experience would you say you have in programming in general? Did you create the script that you have posted just now? If not then who has helped you create it? Are you willing to improve your Lua skills?
  23. Hey @thisdp, what are your thoughts about an actual layout system for DGS like HTML element arrangement? I have looked through the documentation but could not find anything like it. This could be achieved through a plugin that parses HTML and creates DGS elements according to the HTML document. Do you think such a system would be important for DGS, maybe to make it more popular to web developers?
  24. The_GTA

    Hi

    Hello yasinkenzo, due to the weird physics system of GTA:SA I do not recommend enlarging ped elements. Peds are using a fixed internal collision mesh, the same one for every ped, and I don't think that changing that one even works. Feel free to prove me wrong though! Increasing the size of the visible triangle mesh might work by scaling both the ped model vertices as well as bone structure. You might try doing that with the help of GTA modelling tools. Not sure how the ped model file format looks like so I don't feel like creating an automatic tool for it, also under the assumption that you would not be satisfied with the result anyway.
  25. You're welcome! I see that you are not opening up new threads for your inquiries. Personally I do not mind it.
×
×
  • Create New...