Jump to content

Speachless

Premium
  • Posts

    683
  • Joined

  • Last visited

  • Days Won

    8
  • Feedback

    0%

Posts posted by Speachless

  1. On 1/22/2024 at 6:06 PM, Amun said:

    [EDITED OUT] Corky will update his message, no point in writing the same thing twice.

    Will update the repository and the archive in a few min.

     

    Edit: Topic, repository and archive are up to date

    Edit2: In case it helps any of you.

    Speachless answered and said he can still get it to freeze in the very beginning, but it's because he's loading some things before the window is fully loaded, which means it's a custom problem that I will not handle for you. Not exactly a problem if you ask me, but his fix was to only enable the window moving part after the player logged in(should be fine if you enable it right before the game ::Loop() starts as well).

    In my case it was that the click ramained locked on the client and you can't unclick it so everywhere you will move the mouse, the client will follow. Happens if you try to drag the client before it's fully opened.

  2. Just now, nmeyo said:

    Oof, that’s fucked to say the least as he’s highly associated with it, if what you are saying is correct, which until proven different seems to be the case.

    Go talk to him. He's about to make this things clear. He hoped at least they will pay him eventually, but looks like he was just used so no reason to keep things like that.

  3. 3 minutes ago, nmeyo said:

    You are implying Zenaris is not his (Jettyx’s) server?

    No, he just created that graphics and made the Zenaris server known. currently he hasn't made even 1 euro from it. They still refuse to pay him 🙂 He has no access to the server as an admin etc.

    • Good 1
  4. There is one guy on my server pretending to be friend with the other old players and asks to borrow some yang then sells it for real money. And you won't believe how many people actually gave high amounts of yang to the supposed "friend" while being on a level 1 character!

    2023...

    • Cry 1
  5. Be aware of what lordzokarum said. Nobody ever should develop a website-game item or yang data transfer. Simply because you can duplicate the items. For every action you do in game like item drop, add into a shop or something you need to add a function that blocks other actions and etc and that's an workaround. I don't see how this can be safely made.

    • Good 1
  6. The dungeon can't run any set quest flag while you have a quest open so you can even bug the dungeon and have to remake it. One simple way to avoid this was to disable damage while having a quest open so no monster die doing this and no being able to open any quest if you attacked any monster in the last 2-3 seconds. You can even make the boss to respawn for unlimited times in some dungeons. Most owners have no ideea about this bug and it's present on their servers since forever.

    • Love 1
  7. You don't need to attack me with that because my intention here was not to attack you. Wanted just to say this is possible to make with cpanel for everyone who wants to do it with cpanel. Just because you spend time to configure a centos or bsd vps in a complicated way won't make the download faster or the vps better protected to attacks and i don't want to say you shouldn't do it just because cpanel exists, i used to configure vps like you explained here in the past. Contabo, ovh sells vps with weak internet bandwidth something like 100 mbps, 250 mbps. Speaking from my experience when i visited Spain i had really good download speed from my romanian hosted patcher. I'm not saying romanian's the best, but for me, after trying so many other countries romania provided the best download speeds for the patcher, but not the most stable internet for a hosted server.

    "So it's great that Cloudflare caters to people like you and make a business out of it, some of us like to have control over our infrastructure and pay only for the metal it's running in. "  = i am not paying anything to cloudflare. It simply allows me to change fast to which ip a domain points, which is great.

    "Also your thinking that changing a DNS in CF when your host goes down is cutting edge technology is so ridiculous I won't even comment of it."  = You should think twice. There will be 2-3 momments in years in which it will for any reason go down (host issue, strong ddos attack), remember the fire that happened to OVH where lots of vps were lost ? So if my vps/host goes down shouldn't i be able to change the ip the domain points ? with CF i can do it in seconds.

    Let's also put a strong point on high bandwidth servers too and where we can find them at a low price

    And i shouldn't have started this subject from the first so let's end it because i'm not here to say you do it wrong or whatever. You better ask a moderator to clear the comments.

    Example:

    In your patcher config xml, make it point to this torrent_config.php file

    h64L4L8.png

    Then this is the website part

    c3vcbgz.png

    Or with redirect:

    <?php
    $rand = rand(1,3);
    
    if ($rand == 1)
    	header("Location: http://patcher.yourwebsite.com/torrent.config.xml");
    elseif ($rand == 2)
    	header("Location: http://patcher.yourwebsite.com/torrent.config2.xml");
    else
    	header("Location: http://patcher.yourwebsite.com/torrent.config3.xml");
    ?>

    If people don't know what torrent.config.xml contains:

    8fM12F7.png

    I think it's better i am displaying directly the xml content rather than redirecting to it. Anyway, this is how you can easily do it in php. Tested and working fine, however your method is very good in having the ability to create your own firewall rules. On that i can agree.

    • Facepalm 1
    • Scream 1
  8. On 9/10/2022 at 10:37 AM, Shogun said:

    Care to elaborate on your answer? Nginx is not "a webhost" and neither is cPanel. Cloudflare does not do load balancing in free accounts, certainly not with "simple redirects" and "quickly changing the IP" (what kind of insanity is that). Neither does sending people to a redirect based on their country qualify as "load balancing", unless the amount of users per country is predictable but still, it's a weird idea, unless we're talking about geographically better located hosts, which still isn't load balancing.

    Bottom line this is a developer forum, I would expect "people who don't want to deal with this tech part" to find their entertainment elsewhere.

    That's far from what i wanted to say. Simply said: All your complicated tutorial can be easily done by pointing the patcher to domain.com which then he redirects you to one of his domains s1.mydomain.com s2.mydomain.com who are pointing to different ips(hosts). In case one goes down, using cloudflare you can change the ip it points in seconds without the traffic to actually pass through cloudflare's ips. Is that hard to understand ? Jesus christ. And can be done with any webhost, cpanel, plesk whatever is there. You just need a simple redirect not using freebsd or centos. Sorry, but cpanel is still superior to any manual workaround. The time you spend configuring a centos server or whatever, or as you say freebsd, is not worth for me (though i used to have patcher on centos vps). I think everyone is free to chose what kind of solution they want. Why you get triggered ? Ps: Romanian cpanel webhosts, especially cloud ones are cheap, come with high internet speed, no bandwidth limit and with good cpu/ram/space resources. I am aware other countries doesn't have this options, but anyone can rent a romanian host and see actually what a good speed they have all over Europe. If not, a vps with freebsd, centos or whatever is cheaper and the only option. I won't give any other answers here.

  9. On 9/10/2022 at 6:42 AM, Shogun said:

    they can have let's say main.mydomain.com which at every patchload randomly redirects to s1.mydomain.com s2.mydomain.com who are hosted on different hosts

    That's literally what I just described? I'm not sure what you mean with your message.

    All i wanted to say is you can do it with simple redirects even in cpanel and how they can do it even for different locations. Europe, Asia, America whatever. Your post is about nginx/freebsd, but this load balancing can be done with any type of webhost.

  10. And for the people who don't want to deal with this tech part, maybe for some of them it's complicated they can have let's say main.mydomain.com which at every patchload randomly redirects to s1.mydomain.com s2.mydomain.com who are hosted on different hosts. (you can use cloudflare to update the ips in short time), but without activating the cloudflare dns otherwise you will have that patcher error (and as far as i know cloudflare doesnt allow high bandwidth usage). Also patchers do not require high ram / high cpu hosts. just average normal hosts. it's all about internet here. Want to redirect also based on their location ? You can activate the cloudflare dns on the main subdomain where the redirect happens, and use the $_SERVER["HTTP_CF_IPCOUNTRY"] to get their language.

  11. I want to say something aditional about what Amun said. When it comes to cpu, it's not about how many core it has and more about how high the cpu freq is. So a 16 core of 3 ghz, can perform less than a 8 core of 5 ghz. This is because m2 has multiple cores and mostly only 2-3 cores have high cpu usage like the map1 especially if you have map1 on a general channel. Most of the other cores requires almost no cpu power. I never used vps or vds, only dedicated server because i was affraid of not having a stable network, but other than that i guess a vds can be good. Also if your server has high mysql usage some optimisations can reduce it to almost nothing (i have like 0.54% usage on a big old server)

    When you start for the first time, never go for the most expensive dedicated just to feel safe. This game has very small usage if your source code is properly written. Most of servers have lagg because of bad code not because of the host. Run some tests make sure your systems don't use lot of cpu when more people do the same request in the same time / or when they have to run through lot of data especially if you have something that doesn't use cached data (and better update the code to use some form of cached data). Add some cooldowns on your server's commands too so nobody can spam them, and even on the packets.

    Use index on tables, otherwise anybody can lagg your game directly from the website. Better add google recaptcha on any request that uses direct query on your website. (like login, register). On the user panel you can use cached data (you load it on login, you don't use direct query to get the email, username and other details). And avoid direct query on every page refresh. When it comes to players ranking, make a script to generate the list in a .txt file using a cronjob, and the page only displays the .txt file instead. The same you do for the online players statistics. 

    Shogun has a topic about mysql 8 or something, that has a good my.cnf example of how to tune your mysql for the best speed. (but this require to have plenty of ram though, however ram is cheap everywhere) and most of the things there are ok for older mysql versions.

  12. You need to check what functions are called when you teleport (char.cpp ::WarpSet / intrologin.cpp ::EnterGame). It is probably in EnterGame. However depends also on your machine power. If it's a very weak virtual machine then even something easy may look like uses cpu power more than normal, but it can be actually just a weak cpu.

×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.