Jump to content

GetMotionMode crash core


Recommended Posts

  • Replies 6
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

37 minutes ago, WeedHex said:

this=0x0 

rip XD

 

Btw seem you made a wrong gdb with a newer file.

I know that there is nullptr but why if i didn't change that function. Btw I updated gdb and nothing change so

Reading symbols from game...
[New LWP 101185]
[New LWP 100449]
[New LWP 100457]
[New LWP 100471]
Core was generated by `./ch11'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0  CHARACTER::IsPolymorphed (this=0x3a) at ./char.h:810
810     ./char.h: No such file or directory.
[Current thread is 1 (LWP 101185)]
(gdb) bt full
#0  CHARACTER::IsPolymorphed (this=0x3a) at ./char.h:810
No locals.
#1  CHARACTER::GetMotionMode (this=0x3a) at char.cpp:2773
        dwMode = <error reading variable dwMode (Cannot access memory at address 0x0)>
        pkItem = <optimized out>
#2  CHARACTER::GetMoveMotionSpeed (this=0x3a) at char.cpp:2812
        dwMode = <optimized out>
        pkMotion = <optimized out>
#3  0x000000a0 in ?? ()
No symbol table info available.
#4  0x0000003a in ?? ()
No symbol table info available.
#5  0x0000002b in ?? ()
No symbol table info available.
#6  0x429066f8 in ?? ()
No symbol table info available.
#7  0x43e0fff9 in ?? ()
No symbol table info available.
#8  0x127f1e7f in ?? ()
No symbol table info available.
#9  0x00000000 in ?? ()
No symbol table info available.
(gdb)

 

Link to comment
Share on other sites

Which gcc version did you use on working core

btw

Quote

To avoid run-time errors that are difficult to detect and diagnose, we recommend that you never statically link to binaries that were compiled by using different versions of the compiler. Also, when you upgrade an EXE or DLL project, make sure to upgrade the libraries that it links to. If you're using CRT (C Runtime) or STL (Standard Template Library) types, don't pass them between binaries (including DLLs) that were compiled by using different versions of the compiler.

You can of course replace keyworks like EXE to ELF DLL to shared object regardless

Additionally you dont have correctly setuped flags for producting debug builds in you makefile.

Edited by IceShiva
Link to comment
Share on other sites

22 minutes ago, IceShiva said:

Which gcc version did you use on working core

btw

You can of course replace keyworks like EXE to ELF DLL to shared object regardless

Additionally you dont have correctly setuped flags for producting debug builds in you makefile.

GCC 4.8.3. I'm using GetMoveMotionSpeed in that function

bool CHARACTER::SetSyncPosition(long x, long y)
{
	long mx = GetX();
	long my = GetY();

	float fDist = DISTANCE_SQRT(mx - x, my - y);
	float motionSpeed = GetMoveMotionSpeed();
	DWORD mduration = CalculateDuration(GetLimitPoint(POINT_MOV_SPEED), (int)((fDist / motionSpeed) * 1000.0f));
	DWORD mstart = get_dword_time();

	sync_hack = mstart + mduration;
}

Maybe there is something wrong?

Edited by avertuss
Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

Announcements



  • Similar Content

  • Activity

    1. 0

      Moving server from FreeBSD 11.2 to 13.2 - lib needed

    2. 0

      I just implemented some costumes and they are not visible

    3. 0

      Skill Tree Problem

    4. 97

      Ulthar SF V2 (TMP4 Base)

    5. 5

      Client Crashes through Offline Shop (Ikarus)

    6. 5

      VIVY-WORLD2 - FARM TO THE TOP

    7. 0

      ToolTip Bug?

    8. 0

      Skill tree build erorr

  • Recently Browsing

    • No registered users viewing this page.
×
×
  • 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.