Jump to content

ixjf

Members
  • Posts

    647
  • Joined

  • Last visited

Posts posted by ixjf

  1. There are tons of reports of problems like this one around the forum. What happens between the two communities is of no concern to the MTA team. It's unlikely they will get involved in this, especially to global ban anyone.

  2. It seems that either the port 2003 isn't open for TCP connections on your network or the server isn't responding. Considering you have already restarted the server, I think it's safe to say it's the former. Make sure it isn't being blocked by a firewall. As I said in your bug report, the big HTML message you see is likely the output of the response from the master server on timeout due to CloudFlare.

  3. MTA 0.5/0.6 currently doesn't have a working integrated server browser. You can check out the list of servers that are online here instead.

    Hmm, i've MTA 0.5r2, can you give me the link please of the 0.6 version?

    https://forum.multitheftauto.com/viewtopic.php?f=136&t=92137

    It's not a final release, however, and development has been frozen for a while. It will continue sooner or later, but it's complicated right now to find enough time to dedicate to the project.

  4. I put the aftermarket cooler because of two factors.

    1. The temperature which is about 28 degrees maximum and 22 minimum during an average day.

    2. Because this PC will be running during 8 hours a day with a possible break of 2 hours. And kind of outdoors

    I don't really know how hot it can get. Could you estimate?

    I can't tell but I'd rather wait and see how it performs first.

    Upgrading to Skylike costs more and I'm trying to keep things as cheap as possible. Not being enthusiasts about this build.

    It doesn't though. You can get an i5-6600 for the same price as that CPU, DDR4 RAM for the same price, and same for a B150 motherboard.

  5. ixjf, got it now! Yes, I don't understand so much things about event-based style, which makes me see less clearly some situations. But your last suggestion looks the same gave by Miki, right?

    Anyway, at the end of all, I followed steps indicated by anumaz. I didn't know about shared type, and seems it is enough for me in this specific situation. Can you give me some more advice? I don't know, maybe it isn't the best way to take.

    By the way, thanks to everybody who answered me. I got a lof of knowledge with these posts.

    I wasn't thinking of it the same way as MIKI, but it is more or less similar, yes.

    Could you perhaps explain what you're trying to do, why you need all the data from the XML file on both sides in the first place? Placing it in an XML file might not be as good of an option as, say, a Lua table, if it's static content, or a JSON file, which can be easily mapped to Lua. Depends on what you're trying to do.

  6. I wouldn't follow Saml1er's suggestion as it's totally inappropriate.

    Just one question: what do you mean with "only required"? Which type of situations?

    I mean that you should do it manually, for example, triggering a sync event when an action happens, and not when an individual setting is changed. You should also only sync info that is actually required in the client (and avoid element data to sync info that is specific to one element and not needed to be accessible by all players - as that information is sent to all players).

    Rereading your original post, it looks more like you can't get your head around programming with events. In your specific case, instead of having a function which requests the data from the server, and returns that, refactor it to simply trigger an event on the server to fetch the data, and listen to another event for the result, and only then continue. You could even use coroutines to put it all nicely in one single function, but that's just a random idea.

  7. But Miki, how do you deal with this? If I create a function in client-side returning the table and call it using triggerClientEvent, I won't get the function return because triggerClientEvent has its own return (a boolean indicating successful state). Or am I wrong?

    Could you post a code explaining how do?

    Edit

    Also, I tried to create the table in the client-side and pass it into the parser function as argument (in server-side), because I heard that, in Lua, every table is a pointer. But it didn't work.

    Tables are passed as references. But that doesn't mean you can pass them to other Lua VMs. The thing that has to be understood is that the server doesn't run in the same Lua VM instance as the client, and especially not on the same server.

    As for the actual question, I would say the most efficient way to sync the data here is to do so manually, only when required.

×
×
  • Create New...