Leaderboard
Popular Content
Showing content with the highest reputation on 30/12/21 in all areas
-
Wow, I'm very happy to see my scripts are still relevant, thanks! But it can be a negative thing as well, I mean it wasn't supposed to end up this way, back then I tried to improve the script, then I tried to make a new, a more advanced ped system from scratch but didn't have enough time, and to make things even worse, the code I wrote then looks horrible to me now So happy to feel appreciated, yet the fact that everyone's focused on my work that still wasn't satisfying enough to myself, gives me this unpleasant feeling that I gotta clean up this mess, gotta finish the work I once started but I don't know when I'm going to try scripting on MTA again Conversion of game paths to my path format sounds interesting, but making my own paths instead of converting the ones from the game was the reason I came up with my format and traffic editor to begin with. I was having trouble understanding some things in the game's format, and the paths have things like multiple nodes in a straight line, which needlessly uses more data. Now, to the documentation details. node_conns tells the connection ID from node IDs. That is, node_conns[node1_id][node2_id] = connection_id. Also, node coordinates are decimal fixed-point numbers, not floats, and RX/RY each takes 2 bytes as opposed to 4. Reading the value as integer and dividing it by 1000, you get the actual value. I had some problems converting between bytes and floats, and integers were faster to process. Finally, traffic lights. The value 3: "PED" means red for all cars, and that's when the peds cross the road. Normally it would work according to pedestrian traffic lights, but as far as I know, those are neither synced, nor scriptable - at least they weren't when I made the resource.4 points
-
You're right. But I already could tell there was something wrong with the code even then. Which is why I always considered it an unresolved matter from the beginning. Never stopped thinking it would be nice to make a better ped system. You could say it's not pressure, but motivation. In addition, by making the resource I wanted to demonstrate that ped scripting is not really that hard, and encourage more people to try it, hoping that after a while we would have more ped/traffic resources. That didn't come true to the extent that I was hoping3 points
-
You're right, that's a issue, I'll keep that in mind, definitely go with my own. maybe those projects are probably best to go with study purpose, e.g. what elements are there in traffic, like when the game first comes out, people are researching & investigate how the TXDs & DFFs structure laid out, and come up with their own code to parse the file.2 points
-
We cannot answer your personal support request due to lacking technical specifications or user manuals. A quick search on the internet has led to no results, not even on the manufacturer's website. Thus it is a risk to try this controller. Relying on an imaginary "industry standard" is not a good idea.2 points
-
Well, there is a freeroam that made their own version of the traffic system + police and gangs. And I think there is other server that also has an NPC system but I am not so sure about it. Because of the developer of Prime Freeroam things like doing enter_exit on peds is now trivial, when before it needed to be scripted. Maybe the reason for these systems not being more popular is because they are not open source and are very hard to create (or time consuming) / are great performance destroyers for some users. Anyway, if you are motivated then go for it, a lot of people would probably appreciate it and maybe even use it on a moderate scale. Who knows.2 points
-
Happy Holidays & New Year everyone! Thank you all for your continous support and contributions towards this project!2 points
-
hi david1231237, upon your request i am sharing you the download link of superman mod If you have a different request, you can make more descriptive comments and i can help you. https://community.multitheftauto.com/index.php?p=resources&s=details&id=2201 point
-
Yes, peds are more popular than they used to be, it's just that I was expecting them to be even more popular. Not that I have any particular plans to return to scripting, but it's a possibility. I love these videos! I might have gotten some things right, but my goal was to make ped scripting easy so that even beginners could do it. Didn't come close enough because I only implemented very basic tasks. Was thinking of implementing pathfinding but never did. Analyzing how the game does it may help getting the peds behave the way they do in original game, but I'm not a fan of this approach. Reimplementing original behavior wouldn't be satisfying enough, I always wanted peds to perform complex tasks regardless of how the game does it. I'm not sure if I understood what you're saying. I mean I didn't do anything special regarding that. But you're making it sound like I did something that I didn't actually do. When I was playing around with nodes from original game, I found that there were many redundant nodes (or so it looked). But I created my own paths in the end (which is what I created npchlc_traffic_editor for), and obviously, I wouldn't create nodes that I find redundant. So Rockstar created more nodes in their paths than I created in mine. That's it. If I remember correctly, it's just a vector that tells lane position relative to the node position. When you drag while creating a node in the editor, that's when you set RX and RY.1 point
-
Yes, I think that this practice of "creating (...) own code" along with documentation does teach the developers the respect for other people's work. For example, let's take a look at my Magic.TXD which has a parser for just about all the commercial RW TXD file formats. The code and parsing models inside of that tool which are related to TXD files are essentially my work, with the help of accredited third party code as side contribution. Of course, much of the data layout is fixed due to expectations of the target architectures but there was a lot of ingenuity involved at connecting the dots. From reading your post I think that you get the idea. I am a big fan of good-founded binary file formats, such as @Reyomin's node file format as discussed in this thread. The advantage of binary file formats is their nativity to the platform as well as the deterministic structure (you know the file contents by hard). There is no room for unnecessary ambiguity. And from what I gather Reyomin has even potentially improved the mathematical structure by compressing multiple nodes in one line into a two-node minimal representation. The science does shine through, which is splendid! ?1 point
-
any* controller with standard bind layout should be working with MTA, if the driver manages to send input to the OS then you should be good. I assume it'll be sending them as the xbox layout.1 point
-
It is quite a shame how certain projects were handled and that the code was released to the public in such a complete form, claiming to be the original but lacking the DRM protections of the originals, just giving room for the most misunderstanding, emotionally childish people to abuse the GTA modding situation. Every GTA modder was hurt by the grievous IP rights breach. Since most of you hard working MTA engineers know reverse engineering from the "expose the necessities, tie together with the original game being present" you are not likely to breach the core principles of respectful IP rights handling. But those people even tried to establish their own funding-based IP rights touching product were they had no permission. Please be careful about mentioning reverse engineering projects because one of them I quite disagree with. I know, this situation has gone quite out-of-hand in this passing year and you might not have followed the situation as closely as I did. Going into these source codes is risky. I would like to give you an example of how risky other people that touch other IP works see it. The ReactOS project disallows contributors if they even worked for Microsoft, let alone took a look into the original source code. Quite the extreme stand-point, but I guess they had quite the breaches based on their many years of experience with random newcomers trying to contribute code they could not faithfully trace back to the real origin. Just be careful and put in your own work after all, alright? ?1 point
-
I'd say the extensibility of the resources at least is good enough, you have seperate the NPC controls and traffic, there's does some rushes code in there though, but i woundn't consider it's wrong there, like @Platin - xNikoXD said you just geting better over time and that you are more experienced. but at least the npchlc did a good job, it's easy to extend, i've made some experiment on that, like cops chasing, arrest,gangs, actually it works pretty smooth. Speaking in terms of considering refactoring, I suggest we can take a look at how the original game traffic's code is designed, there are several reverse engineering projects available, RE3, GTASA-Reversed, see if we can do something based on them, I think this is the most accurate approach to simulate the original game traffic. But in overall, it's you did a relly good job @Reyomin1 point
-
Can confirm there may exist some issue in dxCreateTexture. I have also encountered the same situation.1 point
-
Everyone thinks about their past work like this sometimes. It just means that you got better over time and that you are more experienced. There is nothing wrong about it. Of course it would be nice to see you working again on great MTA:SA Resources, but please don't feel pressured to do so.1 point
-
Isso não está funcionando pelos seguintes motivos, você não deve usar isObjectInACLGroup no client-side; sua função para o command handler deve receber o parâmetro do jogador que o acionou; getLocalPlayer não pode ser usado no server-side, por isso é nulo; Acompanhe o código abaixo, no documento server-side: addCommandHandler("on", function(playerSource) if (isObjectInACLGroup("user." ..getAccountName(getPlayerAccount(playerSource)), aclGetGroup("Staff"))) then outputChatBox("Ei "..getPlayerName(playerSource).." Você é um staff!") end end ) Para entender melhor como funciona o addCommandHandler, acesse https://wiki.multitheftauto.com/wiki/AddCommandHandler.1 point
-
Hello gubi, you are mixing tabs with spaces. You can fix it by converting tabs to a sequence of 4 spaces or the other way round. The SciTE text editing program can do that for you very easily...1 point
-
Great recap, keep up the good work guys! Happy New Year to you all.1 point
-
1 point
-
Wish you all have a lovely holiday ! Happy new year guys1 point
-
1 point
-
Happy new year! And thanks so many developers who bring interesting projects.1 point
-
Damn,been playing MTA for like 11 years now and i never expected to be featured on one of this post,thanks a lot for that and i wanna also say thanks to my fellow teammates for making this thing possible. I wish you guys a happy new year.1 point
-
Merry Christmas to the ones who celebrate it! Happy holidays or just a generally nice time at the end of 2021 to everyone. We had quite the ride until today and we shall continue having much fun and strength as community.1 point
-
Thank you for everything. For me it's been 10 years since I started playing MTA. It changed my life! May this continue forever @Tut @Haxardous@turret001 @The_GTA @Dutchman101 @patrik You guys are awesome!!1 point
-
1 point
-
1 point
-
1 point
-
Happy holidays guys, been loving MTA ever since I first started playing it in 2013.1 point
-
1 point
-
I happened to stumble on this message Happy holidays everyone!1 point
-
1 point
-
Happy New Year everyone, hoping yall enjoying your best times! ? - Thanks for mentioning my list -1 point
-
1 point
-
1 point
-
This is amazing! It was because of lack of scripts like this that I created the traffic script. Except maybe that if peds aren't synced, I would still have created it. My logic was that MTA deserved to have traffic, and since no one was making it, I had to do it. It is heavy indeed, because it's not optimized well. But yours looks great, even if it's not synced. At least peds are much more interactive - something I had planned but didn't find time to do. I remember wondering why the hell no one makes use of peds in MTA. It was this kind of thing that I was looking for1 point
