FortressCraft Evolved

FortressCraft Evolved

Achievements With Mods
39 Comments
NathanHoltBeader 9 Jul, 2020 @ 2:47pm 
I'll have to keep looking for it. I found a web link to it last night, but it didn't go through.
Wariat117  [author] 8 Jul, 2020 @ 10:44pm 
I'm using program called "dnspy"
NathanHoltBeader 8 Jul, 2020 @ 9:14pm 
When you wrote "-Press L.CTRL + L.Shift + K
-type "doorbit" (by default it's not case sensitive)
-select second one (it has written local playerscript on the right)
"

What application were you starting from? I've been trying to find out how to edit these dll's, but I've been having trouble finding something I can use.
JeSuisPret 23 Mar, 2020 @ 8:02pm 
Wariat, this simple mod has been very useful. Thanks for uploading it.
Wariat117  [author] 17 Mar, 2020 @ 1:26pm 
oh, the building system from planet explorers
I totally didn't think about that
Stinosko 17 Mar, 2020 @ 1:03pm 
This is what I'm working on: https://1drv.ms/v/s!AtVxQ5uCvqhtl9lXm7sXpTziSyrDeg?e=hxunAO

It's a old video, it has improved quite a bit now but no newer video yet :-)
Wariat117  [author] 17 Mar, 2020 @ 12:54pm 
oki
Stinosko 17 Mar, 2020 @ 11:51am 
By now, i can mod myself and I'm trying to do it on my own :)
Wariat117  [author] 17 Mar, 2020 @ 3:24am 
What;s your idea of mod?
Stinosko 23 Oct, 2019 @ 12:38pm 
Let me know when you do accept requests again: got another idea too! (easier one) :steamhappy:
Stinosko 23 Oct, 2019 @ 12:37pm 
I know the CPH loading but that happens when someone joins the game on the server, unfortunately...
Wariat117  [author] 23 Oct, 2019 @ 12:17pm 
Currently I don't accept requests, I'm catching up anime stuff.

But:
I have once tried to mess around with loading but game ignored me ;D
Also no idea how is the "loading" done on multi... but on singleplayer first the CPH loads and then everything "connected" to the CPH (aka conveyors going from the CPH to the place you want to load)

By any chance... Is this ore vein disconnected from CPH?
Many people had the problem with Climate Control Centre not loading at the start of game because they didn't connect it to CPH ;D
Stinosko 23 Oct, 2019 @ 10:52am 
Do you still accept mod requests?

I noticed on my server that after a reboot the world doesn't get fully loaded until someone joins the server. I have a iron ore vein (closest i found) at location -62 -60 124 but it doens't get loaded after reboot... (I reboot the server every 24h to avoid weird bugs)

Is there a possibilty for a mod to force the loading? Maybe by spawning in a fake character on the server side?
Wariat117  [author] 8 Jun, 2019 @ 11:27pm 
Because API doesn't really cover plugins (.dll) files

If you really want to mod plugins then it's better idea to download one of the existing mods which does this (the smaller the better), see what it does and google "Harmony Modding", it should explain a least a little how it works, "0Harmony.dll" is special plugin which is used to override existing plugins, you need to input it into the folder of mod next to your plugin (in the API you will need to find how to upload the mod)

That's why editting directly is better because you just open file, edit it, save, play ;D


The file is:
*steam location*\Steam\SteamApps\common\FortressCraft\64\FC_64_Data\Managed\Assembly-CSharp.dll

You need some program for the plugins tho
I use "dnspy" so I will explain how it looks like inside of this program, after you open file I advise to use search function:
Wariat117  [author] 8 Jun, 2019 @ 11:27pm 
-Press L.CTRL + L.Shift + K
-type "doorbit" (by default it's not case sensitive)
-select second one (it has written local playerscript on the right)
-somewhere under the line "public void DoOrbit(LocalPlayerScript.MovementResolutionData data)" press right mouse button and "edit method (C#)"
-edit the code for the bind (the one mentioned in previous comments)
-once you finish, press F6 (it will point out errors if something was wrong)
-in the left top corner of program press "File" and "Save Module...", now press "OK"
-you can close the program and start the game


Without search function you would need to:
-In the left panel press on "Assembly-CSharp"
-Press on "Assembly-CSharp.dll"
-Press on "{ } -"
-Manually search those classes for LocalPlayerScript (they are listed alphabetically so it's not that bad)
-Once you find the good Class, you have to manually find DoOrbit function (it's not listead alphabetically)
-And no you do the edit method etc
NathanHoltBeader 8 Jun, 2019 @ 7:16pm 
I've looked a little into modding, and I've found some info on updating XML files and on adding new code, but nothing about existing code that can be modified.
Wariat117  [author] 6 Jun, 2019 @ 11:34pm 
Actually if it's only for you then you can freely edit the game files.
Such changes work even on multiplayer (if you make everything free in your files then it eill be free on any server too)
NathanHoltBeader 6 Jun, 2019 @ 7:29pm 
That's awesome! I should really look into learning how to mod the game.
Wariat117  [author] 5 Jun, 2019 @ 11:48am 
Anyway if you ever get interested in it, it's in the:
Class: public class LocalPlayerScript : MonoBehaviour
Function: public void DoOrbit(LocalPlayerScript.MovementResolutionData data)

Code (fragment you look for):
if (Input.GetKeyDown(KeyCode.U) && !Holobase.mbBaseActive)
{
this.ToggleMinecart(data);
}
You just need to change KeyCode.U into other, like KeyCode.LeftShift

In order to use more than 1 button you need to extend it, for CTRL+U it would be:
if (Input.GetKey(KeyCode.LeftControl)&&Input.GetKeyDown(KeyCode.U) && !Holobase.mbBaseActive)
{
this.ToggleMinecart(data);
}
Only last button is "GetKeyDown", all previous buttons have to be "GetKey"
Wariat117  [author] 4 Jun, 2019 @ 9:05am 
I have found it and it's moddable fragment of game.
But at best I can just change it to one certain bind. (like press "X" or press "shift+u" or whatever)
I don't know how to allow people to use their own binds.
NathanHoltBeader 3 Jun, 2019 @ 5:41pm 
If you press the U key near a freight cart, you'll teleport to the freight cart instead of whatever you mapped the U key to. I don't know of any way to remap that.
Wariat117  [author] 2 Jun, 2019 @ 9:51pm 
Well, the game doesn't block achievements, it's dev who made it in artifical way.
Mod just cuts off this artifical thingie.
And what does "hardcoded U key" even mean?
NathanHoltBeader 2 Jun, 2019 @ 8:14pm 
It's interesting that this mod is possible. If it's possible, is it possible to make a mod that fixes the hard coded U key? I had to switch controls to the default because of that.
Wariat117  [author] 28 May, 2019 @ 12:49pm 
Tell dev to add option "max 1 mod and others don't work" ;D
Surely I can't do anything like that
Kleadron 28 May, 2019 @ 9:51am 
I mean that this mod should be the only mod enabled, just to fix the broken achievements
Wariat117  [author] 27 May, 2019 @ 9:31pm 
Standalone mod wouldn't work because would disable achevements
Kleadron 27 May, 2019 @ 9:04pm 
Just a heads up, the developer of FC:E heard about this mod, and he is NOT happy.
Kleadron 27 May, 2019 @ 9:03pm 
I really think that this should be recommended as a fix only as a standalone mod, because there is a reason the game has achievements disabled when mods are active.

Mods can literally unlock all of your achievements for you.

Stinosko 21 Apr, 2019 @ 1:39am 
I deletd my posts as there might be sensitive data of my server in it... ;-)
Stinosko 21 Apr, 2019 @ 1:38am 
A tsnk you to you for my personal mod and everything you do for the modding here :D
Wariat117  [author] 20 Apr, 2019 @ 3:41pm 
Thanks for you help with this.
I have uploaded fix to all 4 achievement mods.
Other mods don't require steam connection, so if they break on dedicated then the bug won't be as big as in this one.
Wariat117  [author] 20 Apr, 2019 @ 3:29pm 
Woah...
The "better" code worked, in order to know which one triggered I have forced it to add info into log...
No idea how long the server was up but it spammed log with information that better code won over 5k times... Didn't it cause lags?

*Now I will remove the log fragment so it should be good*

Also yeah... Having achievements makes it hard to check if anything works in this mod ;D
Wariat117  [author] 20 Apr, 2019 @ 1:25pm 
I think I found the code to check if it's dedicated. (or even 2 codes)
Before you try local only, could you update mod and try if it works on server?
(dedicated doesn't automatically update mods and you have to do it manually, right?)

If the codes work then I would like you to share the log again, I would like to know which code actually worked. (one of them seems to be better)

Also if it works then I will have to put it into other achievement mods, because they require steam connection to unlock the achievements.
Stinosko 20 Apr, 2019 @ 10:21am 
I test it tommorow as i can't access my laptop today :D
Wariat117  [author] 20 Apr, 2019 @ 9:36am 
Hmmm I didn't even think that dedicated might cause problems.

Dev made weird check for local/not local, I have no idea if the mod can be local only. (texture mods can't be local only for example...)

If you have running server then you can test it.
You would have to go into
*steam location*\Steam\SteamApps\workshop\content\254200\1695060333\mod.config
And change "<IsLocalMod>false</IsLocalMod>" into "<IsLocalMod>true</IsLocalMod>"
then see if the game allows you to join a server when you use this mod (remove this mod from server tho)

limit of words per comment... again
Wariat117  [author] 20 Apr, 2019 @ 9:35am 
From the log I see:
Dev disconnects dedicated from the steam -> mod tries to check your steam achievements (to see which ones were completed) -> it finds no steam connection -> steam throws error -> game crashes.
To fix it I would need to find code saying "It's dedicated server", but I have no idea where it might be. (this way I could make it so dedicated doesn't connect to steam)


Also... In the log I found small bug in the "Rapid Vein Sizes" mod... I have made small typo and one thing doesn't work (size of non-crystal-deposit-ores in cold caverns), I will fix it before I get the screenshots
Wariat117  [author] 6 Apr, 2019 @ 6:32am 
I couldn't test it because I have most of achievements, report any bugs.
Wariat117  [author] 2 Apr, 2019 @ 3:17pm 
Any ideas for more small fixes?
Dedicated server doesn't have steam workshop so there is not much I can help with this one.
Wariat117  [author] 1 Apr, 2019 @ 12:43am 
Don't use it with cheat mods :P