sailro / EscapeFromTarkov-Trainer

Escape from Tarkov (EFT) Trainer - Internal
MIT License
612 stars 138 forks source link

Disabled features. #396

Closed yeetmans closed 1 year ago

yeetmans commented 1 year ago

When compiling the source using the universal installer, is there a way to get it to not disable features on a failed compilation? id like to get every feature here, as im using it for testing, but i cant verify if the feature does what i need it to do because it automatically disables hits, quests, health, ammunition, and quickthrow.

i understand im using a more recent version of SPT than what is currently supported, but it is working for me and im not having any glaring issues reguarding the software.

would I have to compile it on my own and remove the flags for disabled features being pulled to compile without having it automatically diable these "faulting features" image

solareon commented 1 year ago

Yeah you would need to install Visual Studio and compile that way to see why each feature is being disabled. When you do this though visual studio is just going to fail compilation for whatever the errors are. Unfortunately I'm away from my main development machine so I can't do too much testing on the new spt but I should have better access in about a week or so.

sailro commented 1 year ago

The installer is disabling features because we are not even able to compile them. We can keep other working thanks to the way we try to design each feature as self-contained. (so we just try to remove all our types with compilation errors)

Often this is caused by obfuscated types/properties/methods. spt-aki is patching EFT assemblies to restore proper names and we are using this to keep a consistent source code, trying to avoid all those risky obfuscated members.

When we cannot, and we really need access to those members, we use Reflection.

yeetmans commented 1 year ago

Amazing, ill try to reinstall visual studio today and see if i cant compile it and see what its saying, if it fails trying to find methods for altering them, could i theoretically update the offsets or structs to them to update them to the most recent version?

solareon commented 1 year ago

Yep you can try and fix them to get it to compile with all features. Next week I should be back at my main pc and I can troubleshoot it further to see why it's not detecting the SPT-AKI install and to fix the missing features.

yeetmans commented 1 year ago

Youre the best, ill see what i can do on my end in the mean time, thank you!