Jump to content

[Solved] Character Controller Is Broken


Shard
 Share

Recommended Posts

I just did an update minutes ago and the character controller won't work anymore.

 

I've attach a picture with the Run Time Failure and it has something to do with the Function Pointers in Engine.cpp

 

Code

TController player = CreateController(1.8,0.4,0.5,45); //<------ Breaks after executing this
EntityType(player,1);
SetBodyDamping(player,0.0);
SetBodyMass(player,100);

post-26-12712774233239_thumb.jpg

simpleSigPNG.png

 

Programmer/Engineer/Student

www.reikumar.com

 

2.6 GHz Intel Core Duo - nVidia GeForce 8600 GT - Windows 7 64-bit - 4 Gigs RAM

C++ - Visual Studio Express - Dark GDK - Leadwerks SDK

Link to comment
Share on other sites

You managed to hide the only important functions with your error dialog box, so it's hard to tell if you have the wrong header file ;)

But you probably are using the wrong header file, since the last parameter should be crouchheight.

Ryzen 9 RX 6800M ■ 16GB XF8 Windows 11 ■
Ultra ■ LE 2.53DWS 5.6  Reaper ■ C/C++ C# ■ Fortran 2008 ■ Story ■
■ Homepage: https://canardia.com ■

Link to comment
Share on other sites

My apologies.

 

I was being silly. I forgot to move the new engine files to my project folder :/

 

Sorry about that all.

 

/thread

simpleSigPNG.png

 

Programmer/Engineer/Student

www.reikumar.com

 

2.6 GHz Intel Core Duo - nVidia GeForce 8600 GT - Windows 7 64-bit - 4 Gigs RAM

C++ - Visual Studio Express - Dark GDK - Leadwerks SDK

Link to comment
Share on other sites

You shouldn't put engine files into your project folder, but rather change your include directories to point to the SDK folder.

 

 

Thanks, I should have definitely done this a long time ago.

simpleSigPNG.png

 

Programmer/Engineer/Student

www.reikumar.com

 

2.6 GHz Intel Core Duo - nVidia GeForce 8600 GT - Windows 7 64-bit - 4 Gigs RAM

C++ - Visual Studio Express - Dark GDK - Leadwerks SDK

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...