Okay I will do that, but I hope there will be a better way soon
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
Show posts MenuIf you have experience with Java and Python then it should be not a problem as the OOP concepts are the same.
We've tried to write clear code (and put comments where necessary) but the amount of code is indeed very big. You can use Object Browser in Visual Studio to browse the scripting API. There is no documentation provided besides this community-created guide about modding and programming for CryoFall https://steamcommunity.com/sharedfiles/filedetails/?id=1707742469 I highly recommend reading it first as it contains the concepts of modding approach that the game has.
To start experimenting with the code, I would suggest installing CryoFall Editor from Steam, unpacking the Core.cpk (there is a script), and using Visual Studio 2019 to load the C# project. Then you can edit the code and save the changes ΓÇö CryoFall Editor supports live editing so it will automatically recompile changed code. This way you can experiment with ComponentPlayerInputUpdater as you wish.
When you're happy with the result of your experiment you can create a mod that will override ComponentPlayerInputUpdater file with your version.
Regards!
Quote from: ai_enabled on May 02, 2021, 03:37:26 AM
Alas, we cannot help with this further. We have provided the game source code and modding tools (including CryoFall Editor) so anyone can learn and experiment with the game code.
If you're not familiar with C#, I would suggest learning about C# basics firstΓÇöwithout it, your attempts to modding will be really hard as C# is a relatively complex programming language.
Regards!
Quote from: ai_enabled on May 02, 2021, 03:14:03 AM
Hello!
As the game code is available in open source, you can see how exactly the player input is read on the client side and applied:
https://github.com/AtomicTorchStudio/CryoFall/blob/master/Core.cpk/Scripts/Characters/Input/ComponentPlayerInputUpdater.cs#L134
Regarding PvP servers, please note that client modifications are forbidden (and mods are automatically disabled) when joining any official PvP servers to ensure fair gameplay for everyone, with no players gaining advantage through the mods usage.
Regards
ComponentPlayerInputUpdater.SetInput();
Page created in 0.249 seconds with 12 queries.