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

    • Petike the Taffer  »  DeTeEff

      I've updated the articles for your FMs and your author category at the wiki. Your newer nickname (DeTeEff) now comes first, and the one in parentheses is your older nickname (Fieldmedic). Just to avoid confusing people who played your FMs years ago and remember your older nickname. I've added a wiki article for your latest FM, Who Watches the Watcher?, as part of my current updating efforts. Unless I overlooked something, you have five different FMs so far.
      · 0 replies
    • Petike the Taffer

      I've finally managed to log in to The Dark Mod Wiki. I'm back in the saddle and before the holidays start in full, I'll be adding a few new FM articles and doing other updates. Written in Stone is already done.
      · 4 replies
    • nbohr1more

      TDM 15th Anniversary Contest is now active! Please declare your participation: https://forums.thedarkmod.com/index.php?/topic/22413-the-dark-mod-15th-anniversary-contest-entry-thread/
       
      · 0 replies
    • JackFarmer

      @TheUnbeholden
      You cannot receive PMs. Could you please be so kind and check your mailbox if it is full (or maybe you switched off the function)?
      · 1 reply
    • OrbWeaver

      I like the new frob highlight but it would nice if it was less "flickery" while moving over objects (especially barred metal doors).
      · 4 replies
×
×
  • Create New...