Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 06/30/23 in all areas

  1. This is such a minor tweak that I don't even really think it's worth creating a topic for, but my testers reported that this makes the game feel significantly smoother. This change attempts to address a desync issue when attacking. When clicking on a monster that is hostile and is also moving towards you, sometimes your character will fail to begin attacking because the client thinks it is within range to attack, but the character is actually too far away to attack on the server side. It's especially common with monsters that move fast. With this tweak, this situation should no longer happen. The change is in unit.cpp: Find this comment: // Player tries to attack but target is too far, notify client Add this line immediately afterwards: clif_fixpos(src); // synchronize the player's position with the client Don't change anything else. The finished code block should look like this. if(sd && !check_distance_client_bl(src,target,range)) { // Player tries to attack but target is too far, notify client clif_fixpos(src); // synchronize the player's position with the client clif_movetoattack(sd,target); return 1; Then just recompile the code and test it out. Everyone I had test it said it felt instantly noticeable. This does increase the number of packets being sent so this may cause a very minor increase to network traffic, but based on the number of packets that are typically sent back and forth I don't think the effect is very significant.
    1 point
  2. Well, the error itself isn't too helpful. 0x8b3 is clif_showscript. So one of the possible cause is a script sending "showscript" (a script command) to a player too many times, probably in an infinity loop would be my guess. Though, the error message only shows the last packet that exceeded the length of the connection buffer, so a prior packet could be responsible too. It's hard to know for sure. If the error is somewhat new, then you should know if this rings a bell or not. If you still can't figure it out, then you could dump the last packet in your console (in socket.cpp): ShowDump(s->wdata + s->wdata_size, len); ShowError("WFIFOSET: Maximum write buffer size for client connection %d exceeded, most likely caused by packet 0x%04x (len=%" PRIuPTR ", ip=%lu.%lu.%lu.%lu).\n", fd, WFIFOW(fd,0), len, CONVIP(s->client_addr)); Then you can see what the string used by showscript was and track down the issue a bit more easily. If nothing else, then you'd have to dump the entire write butter, but hopefully you won't have to do that. Goodluck!
    1 point
  3. Hello people, its been a long time huh? Well I've been away from RO community for some years already, but recently I've been requested to work on some hairstyles, the idea was to rework some of the janky still beloved custom hairstyles, however things happened and this project will not go further, so I'm here to share what was done so far. Keep in mind that those are the spr and act files with the palette adapted for a specific server use, so I do not assure that it will fully work on your server, I'll leave the pngs public on my DeviantArt soon, so you can grab the heads and pack yourself if you know how to use the ACT Edtior. Also I want to note that the heads are not all mine since I've worked to fix the work of other authors, you don't need my permission to use it on your server, but as always, don't put a paywall behind the work posted here and don't try to sell or claim the job done yours. Now lets go for the screenshots and files. Here a sample of every hairstyle: Some Comparisons (New on the top, Old on the bottom): (here the new is on the bottom and the old on the top) Anf of course the DOWNLOAD: data.zip < This is a Data folder with the hairs inside, remember to rename the number to the macthing hair on your server or you'll replace the wrong ones! The names on the folder does not match with the 84 pack, so even if you use it, make sure to give the proper ids. And to finish, thank you for passing by and checking out my work, I barely visit this forum anymore so keep in mind that I'll not give support by this topic or DMs here. I also got permission to make these files public so please lets avoid the drama. See ya!
    1 point
  4. As you can see in your windows CMD . It's already say the problem . On your server file NPC Script the original race script is still ON you need to put "//" to Disable it. Because in the error it says duplicate name
    1 point
  5. Dont forget to ./configure --with-maxconn=4096 then make clean server also chmod a+x login-server && chmod a+x char-server && chmod a+x map-server && chmod a+x athena-start Goodluck! I'm using Debian 9 Be sure rathena is not running ./athena-start stop First nano /etc/sysctl.conf then add this below fs.file-max = 360000 net.ipv4.ip_local_port_range = 1024 65000 Second nano /etc/security/limits.conf add this file below # End of file * hard nofile 65535 * soft nofile 65535 root hard nofile 65535 root soft nofile 65535 Third ./configure --with-maxconn=4096 Fourth make clean server Fifth chmod a+x login-server && chmod a+x char-server && chmod a+x map-server && chmod a+x athena-start Last ./athena-start start Good luck
    1 point
×
×
  • Create New...