Jump to content

Functor

Members
  • Posts

    351
  • Joined

  • Last visited

  • Days Won

    26

Posts posted by Functor

  1. 14 hours ago, Cepphei said:

    Do you know how to make it so it only affects players tho?

    	if (sd != NULL) {
    		//Increases move speed according to agility
    		if (sd->status.agi > 100) {
    			speed -= 10;
    		} else {
    			speed -= (sd->status.agi / 10);
    		}
    
    		//Increases move speed according to base level
    		if (sd->status.base_level > 100) {
    			speed -= 10;
    		} else { 
    			speed -= (sd->status.base_level / 10);
    		}
    	}

     

  2. 28 minutes ago, Cepphei said:

    I've seen people advising the use of GDB to see stacktrace and coredumps of the server crashes, but I don't think I can use it on windows.

    http://herc.ws/wiki/MSVC_Crash_Debugging

    28 minutes ago, Cepphei said:

    I also have made many source code modifications, but I don't think any of them are the cause.

    I'm pretty sure that the problem is in your modifications of "src".

  3. 17 minutes ago, hendra814 said:

    using HEX EDITOR?

    By using debugger.

    17 minutes ago, hendra814 said:

    could you show which hex number and change into what number.

    This info will not be useful for you. Because different EXE versions need unique replacement.

    Maybe I will create the patch of NEMO for it. But not anytime soon. I have a lot of work.

  4. 10 hours ago, Seirei said:

    Edited: After I see the output on the visual studio I saw some warnings about PACKETVER. Is it ok?

    There are many errors like this:
    3>d:\rathena2018\01_emulator\rathena_renewal\src\custom\defines_post.hpp(12): warning C4005: 'PACKETVER': macro redefinition
    3>d:\rathena2018\01_emulator\rathena_renewal\src\config\packets.hpp(16): note: see previous definition of 'PACKETVER'

    Because you had to add definition of PACKETVER to the "src\custom\defines_pre.hpp". Not to "src\custom\defines_post.hpp".

×
×
  • Create New...