Jump to content
The Dark Mod Forums

Changes to player movement


Baal

Recommended Posts

I want to take a look at the code for player movement (leaning and mantling, but also speed or crouching etc.). Where would I best start if I wanted to change something?

Can someone who knows his/her way around the source code of the mod point me in the right direction?

 

Thanks.

Link to comment
Share on other sites

Depending on what exactly you want to do (and if you want to cover some time until you get the SVN version), you could take a look at the file "tdm_player_thief.def". There are some of the basic values like speed, height, etc. Accordingly, they are also easier to manipulate than working on the soure code.

Link to comment
Share on other sites

Thanks. I need SVN access, because the 2.05 source archive doesn't compile on linux, but SVN might have the necessary changes. I already have access, but I forgot my login data. Taaaki will hopefully tell me.

Link to comment
Share on other sites

 

How does it complain, and what version of linux are you using?

Archlinux with a very recent version of GCC. I think someone already encountered the same problems and commited some changes to SVN. I'm going to try it now.

Link to comment
Share on other sites

In file included from game/../idlib/precompiled.h:132:0,
                 from game/precompiled_game.h:28,
                 from game/AF.cpp:20:
game/../idlib/../renderer/qgl.h: Im globalen Gültigkeitsbereich:
game/../idlib/../renderer/qgl.h:211:8: Fehler: »PFNGLBLENDEQUATIONPROC« bezeichnet keinen Typ
 extern PFNGLBLENDEQUATIONPROC    qglBlendEquation;

Glext.h is included in qgl.h. I think the correct one is found (renderer/glext.h), but another one seems to be already inlcuded at this point. The part that defines PFNGLBLENDEQUATIONPROC (inside the GL_VERSION_1_2 guard) is not executed.

Link to comment
Share on other sites

Hmm.

 

I'll take a look, it's probably a redundancy somewhere unless your vendor doesn't support the function?

https://www.khronos.org/registry/OpenGL-Refpages/gl4/html/glBlendEquation.xhtml

 

glBlendEquation shipped with Vanilla Doom 3 but wasn't made "external" in qgl.h

Please visit TDM's IndieDB site and help promote the mod:

 

http://www.indiedb.com/mods/the-dark-mod

 

(Yeah, shameless promotion... but traffic is traffic folks...)

Link to comment
Share on other sites

That might be a good idea. I don't know why that was rolled-back during 2.03 but perhaps there was some contention about having

to maintain glew revisions for different Linux distros.

 

Try adding:

 

 

extern  void ( APIENTRY * qglBlendEquation )(GLenum mode);

 

to qgl.h

Please visit TDM's IndieDB site and help promote the mod:

 

http://www.indiedb.com/mods/the-dark-mod

 

(Yeah, shameless promotion... but traffic is traffic folks...)

Link to comment
Share on other sites

I think no one really looked into linux build after x64 branch merge.

Some files were added, some were removed, and linux make files remained the same.
I have had a feeling that they do not work for all the time from that moment...

I'm afraid they "need some love" now.

Here is at least the file changes since the time I joined back in April:

 

 

removed:
/trunk/game/randomizer
/trunk/renderer/draw_arb.cpp
/trunk/renderer/draw_nv10.cpp
/trunk/renderer/draw_nv20.cpp
/trunk/renderer/draw_r200.cpp
/trunk/sys/linux/sound.cpp
/trunk/sys/linux/sound.h
/trunk/sys/linux/sound_alsa.cpp
/trunk/sys/linux/stack.cpp
/trunk/sys/osx/macosx_sound.cpp
/trunk/sys/stub/openal_stub.cpp
/trunk/sys/win32/win_snd.cpp
/trunk/framework/Unzip.cpp
/trunk/game/MaterialConverter.cpp
/trunk/game/MaterialConverter.h

added:
/trunk/renderer/CinematicFFMpeg.cpp
/trunk/renderer/CinematicFFMpeg.h
/trunk/sound/efxlib.h
/trunk/tdm_update/libtdm_update/ThreadControl.cpp
/trunk/tdm_update/libtdm_update/ThreadControl.h
/trunk/framework/minizip
/trunk/framework/minizip/ioapi.c
/trunk/framework/minizip/ioapi.h
/trunk/framework/minizip/unzip.cpp
/trunk/framework/minizip/unzip.h
/trunk/framework/CompressionParameters.h
/trunk/framework/minizip/zip.cpp
/trunk/framework/minizip/zip.h
/trunk/idlib/math/Line.cpp
/trunk/idlib/math/Line.h
/trunk/idlib/Heap_Embedded.cpp
/trunk/idlib/Heap_Embedded.h
/trunk/renderer/CinematicID.cpp
/trunk/renderer/CinematicID.h

Linking: FFmpeg?

 

 

EDIT: as for the player movement, you should start at idPhysics_Player::MovePlayer in Physics_Player.cpp, just as grayman said.
It seems to be the main function for all the movement, you can reach all the other code from there.
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.

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.

  • Recent Status Updates

    • Ansome

      Turns out my 15th anniversary mission idea has already been done once or twice before! I've been beaten to the punch once again, but I suppose that's to be expected when there's over 170 FMs out there, eh? I'm not complaining though, I love learning new tricks and taking inspiration from past FMs. Best of luck on your own fan missions!
      · 4 replies
    • The Black Arrow

      I wanna play Doom 3, but fhDoom has much better features than dhewm3, yet fhDoom is old, outdated and probably not supported. Damn!
      Makes me think that TDM engine for Doom 3 itself would actually be perfect.
      · 6 replies
    • Petike the Taffer

      Maybe a bit of advice ? In the FM series I'm preparing, the two main characters have the given names Toby and Agnes (it's the protagonist and deuteragonist, respectively), I've been toying with the idea of giving them family names as well, since many of the FM series have named protagonists who have surnames. Toby's from a family who were usually farriers, though he eventually wound up working as a cobbler (this serves as a daylight "front" for his night time thieving). Would it make sense if the man's popularly accepted family name was Farrier ? It's an existing, though less common English surname, and it directly refers to the profession practiced by his relatives. Your suggestions ?
      · 9 replies
    • nbohr1more

      Looks like the "Reverse April Fools" releases were too well hidden. Darkfate still hasn't acknowledge all the new releases. Did you play any of the new April Fools missions?
      · 5 replies
    • The Black Arrow

      Hope everyone has the blessing of undying motivation for "The Dark Mod 15th Anniversary Contest". Can't wait to see the many magnificent missions you all may have planned. Good luck, with an Ace!
      · 0 replies
×
×
  • Create New...