arsunt / tr2main Goto Github PK
View Code? Open in Web Editor NEWTomb Raider II Injector Dynamic Library
License: GNU General Public License v3.0
Tomb Raider II Injector Dynamic Library
License: GNU General Public License v3.0
Hello Arsunt,
FMV cant launch but in option the FMV option is unchecked.
Summary:
I have observed that when I run the game with Bluetooth headphones plugged in, whenever music plays ingame, it is heavily distorted and stuttering. This issue only occurs with bluetooth headphones plugged in. It does not occur when using laptop's speakers or headphones connected to jack output.
The issue didn't occure to me when using Vanilla TR2. When I installed TR2main it started occuring, but even if I run vanilla TR2 again after using tr2main, I get sound distortion anyway. Hard for me to say if it's releated to the tr2main then.
The issue seems to affect music only, it does not affect sound samples.
It is very much possible that it is either an issue caused by Windows 11 (which apparently changed how sound works) or Nahimic drivers (which are known to cause troubles, especially with bluetooth headphones). I have also noticed similar issue in a different game (Tomb Raider Legend) which might point that the issue is caused by something external and TR2Main is just suffering from it. Still decided to report this just to raise awareness.
Repro steps:
Observed issue:
Music stutters when using headphones.
Expected results:
Music is plays smooth using different sound devices.
Specs:
Lenovo Legion 15ACH6H
Windows 11 Home 22621
AMD Ryzen 5 5600H with Raden GPU (12 CPUs) ~3.3.GHz
NVIDIA GeForce RTX 3060 GPU
Realtek HD Audio with audio driver 4.7.2 + Nahimic 1.9.17
Attachments:
There's lots of stuff in the changelog that's not in the current release. Any chance you could do a new release, please? Or alternatively provide instructions on how to build ourselves, as I have no clue how to do that :)
heya, realy appreciate your mod!
weird thing is, it enables using custom FMVs in the mp4-format, but if you use certain reg-tweaks in the ExtraOptions-folder, no videos at all will play (even after removing the custom ones).
any idea?
also, I still don't get custom soundtracks to work on the GoG-version (it seems to want to use ogg-files from the "music"-folder, but doesn't do so. when you rename/delete the "audio"-folder, no music at all anymore).
tried to follow this forum-post. but no cigarino.
Hello Arsunt, I tried to launch the Golden mask extension with:
Tomb2.exe -gold
but I obtained a black screen instead of the main menu.
I copied all files and renamed them as you described:
TOMBPCg.DAT in main game golder
and the others in DATA folder.
I use TR2main 0.8.2 release may 2019
Thank you for your help.
I see this had been brought up before and you had even responded: https://discord.com/channels/218414493355606016/394838132643725314/756351112444903504
Would be nice to have them included if that's possible. I'm also running into this issue.
Many thanks!
Hello.
In tr2 main it's possible use fly mode?
If Yes whats the command?
it's at:
TR2Main/specific/init_input.cpp
Line 462 in 5bec0d7
hello arsunt,
i love this project because tr2 is really bugged in pc,
the development is aborded or too long ?
praticaly sure that is school or life cause it but impossible to escape :x
Hello,
I saw in changelog you added a new feature: if I start the exe with "-gold" option, it could start the gold version. But how and where to add necessary files? Is it possible to have the two version in the same tree?
Since DxWnd is not working with TR2Main (it crashes the game), I'm using the built-in windowed mode. But it renders a distracting Windows titlebar. It should be possible to have windowed fullscreen, i.e. hide both titlebar and possibly Windows taskbar.
An option to rebind the function keys would be nice as I usually use f12 for screenshots but the game uses this to toggle windowed mode.
I decompiled Display_Inventory and i'm intending to decompile all function in inventory.cpp,
i need some help about item text that dont update when inventory moving, and fix some think like variable with "vXX" (replace XX with number) before i send you a PR ;)
updated repo, new added branch develop: TokyoSU/TR2Main/DevelopBranch
There is considerable amount of prerelease, demo and regional versions of levels, including other platforms ones which currently can't be played with TR2Main project. OpenLara project by @XProger has implementations of some of the formats described above. After Discord discussion with @rr- we concluded that there would be better to create a separate level converter rather than expand TRXMain projects codebase with additional versions of levels reading. So I propose to create a converter for the levels from PS1, Demo and Prerelease formats to T2M PC ones.
As for demos, there should be an option to disable level end trigger to allow more exploration.
I created similar request for TR1-related levels on T1M project GH page so whoever decides to start such converter might consider to unite his efforts with other TRXMain developers to support their TR(1, 2 ,3, 4, 5) levels as well.
Some work been done towards it as far as I know
Hello,
I just tested TR2Main more recent version available here: https://www.tombraiderforums.com/showpost.php?p=8206492&postcount=7
I saw TR2Main now uses directx9 that is fully supported on Linux with Wine/DXVK.
I would like to know what did you change for playing cinematics cause with DXVK they do not play correctly: I obtain black screen and I can hear audio. I do not know if it is a DXVK bug. Do you have a more recent build so I can test if I can reproduce this issue with latest TR2Main code.
Thank you for your help.
Could Textures pages increase for levelbuilders importing 3ds into .tr2 level file via TRviewer? The default is too low
When setting a lower resolution (1280x720) than the desktop resolution (1920x1080), the game switches to the window in the upper left corner of the screen when playing fmv sequences. After the fmv ends, the game switches to fullscreen again
Hey, my game doesn't seem to launch using TR2Main. I download the latest release, simply put everything into my steam TR2 folder, and when everything from 0.9.0 is put there... the game will flat-out not launch.
I cannot figure out what I'm misunderstanding, but I keep trying different things and none of them work.
(My TR2 is in D: drive if that matters?)
The setup is also not functional.
It's a fresh install of TR2.
Hello. I just installed the most recent version of the patch (0.9.0, on GOG Tomb 2), and using the 8BitDo Pro 2 controller all but the d-pad/thumb stick work. I tried messing with the configuration but did not manage to make it work. All other buttons/commands work (jump/menus/shooting/etc).
I tested other joypad (an generic one) and it worked fine.
I could use the other controller to play, but feels really bad to not be able to use this specific controller (is one of the best/feels really good to use).
Hi Arsunt,
i'm working at CreatureFunction to help you,
but some info is missing like camera.flags id ?
It's at:
TR2Main/specific/init_input.cpp
Line 167 in 5bec0d7
I'm working on inventory.cpp
Inv_RingRotateLeft_425300 and Inv_RingRotateRight_425330 have name inversed or it's just me ?!
an example:
if (InputStatus & IN_RIGHT && ring.objCount > 1)
{
Inv_RingRotateRight(&ring);
PlaySoundEffect(0x6Cu, 0, SFX_ALWAYS);
continue;
}
move to left !
if (InputStatus & IN_LEFT && ring.objCount > 1)
{
Inv_RingRotateLeft(&ring);
PlaySoundEffect(0x6Cu, 0, SFX_ALWAYS);
continue;
}
move to right !
IN_RIGHT is for left and same for IN_LEFT that are right ?
in the database, Inv_RingRotateLeft is in IN_RIGHT and Right is in IN_LEFT !
PS: GFF_Unknown is GFF_HOME_ENABLED ;)
Is it possible to patch Italian version of TR2? If I share italian tr2 executable can I have it patched?
I'm using the latest release
The PaulD Audio Solution audio is out of sync on Wine/Proton and often parts of another audio track will play together with the current one.
There is also a bug in the first level where picking up the statue will cause the background audio to loop.
Edit: Update on this bug - ANY music change will cause the length of any following CD audio to change. In the case of picking up a secret, it will cause the length of ALL following music to be really short, causing loop bugs and cutting off the tracks too early.
Any possible workarounds?
I was playing normal on steam + steam gampad input and overlay with DS4Windows on windows 10.
screen went black for 1 second then everything was upside down :D
It happened at the map temple of xian
I was using developer build 20200902
Fixed the audio delay by installing quartz_feb2010 and d3dx9_43. Otherwise I am still dealing with the game's audio looping oddly after picking up a secret or otherwise changing the music loop length.
It also crashes after a while on Proton 7 Wine releases.
Originally posted by @Alyxx88 in #43 (comment)
maximum available view distance is not long enough
https://www.vogons.org/download/file.php?id=99829&mode=view
I've been doing a run with all secrets and no medipacks and have made to near the end of the snow levels. I noticed once I got the orange dragon secret that it never gave the bonus items you normally get when you acquire all of the secret in a given level. I checked the statistics and the white dragon secret just disappears. I noticed it when I went back through and got the green dragon secret, the slot where the white one is supposed to be is indented out but empty. And it doesn't acknowledge it when you finish the level, it's just empty. So far this has been then only level to do this.
Hello,
I just tested TR2main on Linux with Wine, replaced tomb2.exe and copy TR2main.dll to the TR2 main folder.
First issue: like many other tomb2.exe executable, it doesn't interact with winmm.dll, so it doesn't play soundtracks. I had the same issue with TR2 Gog edition, they changed the way TR2 play soundtracks, they doesn't seem to use winmm with music folder containing OGG/MP3 tracks. They now use an audio folder with two files: "cdaudio.dat" and "cdaudio.mp3". This new solution does not work with Wine.
I verified TR2main was active: I imported the animated background regedit file, it worked ok, very nice effect.
The widescreen and FOV looked nice and compatible with DGVoodoo2.
Thank you for your help.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.