Install Steam
login
|
language
简体中文 (Simplified Chinese)
繁體中文 (Traditional Chinese)
日本語 (Japanese)
한국어 (Korean)
ไทย (Thai)
Български (Bulgarian)
Čeština (Czech)
Dansk (Danish)
Deutsch (German)
Español - España (Spanish - Spain)
Español - Latinoamérica (Spanish - Latin America)
Ελληνικά (Greek)
Français (French)
Italiano (Italian)
Bahasa Indonesia (Indonesian)
Magyar (Hungarian)
Nederlands (Dutch)
Norsk (Norwegian)
Polski (Polish)
Português (Portuguese - Portugal)
Português - Brasil (Portuguese - Brazil)
Română (Romanian)
Русский (Russian)
Suomi (Finnish)
Svenska (Swedish)
Türkçe (Turkish)
Tiếng Việt (Vietnamese)
Українська (Ukrainian)
Report a translation problem
-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.
I totally didn't think about that
It's a old video, it has improved quite a bit now but no newer video yet :-)
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
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?
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:
-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
Such changes work even on multiplayer (if you make everything free in your files then it eill be free on any server too)
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"
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.
Mod just cuts off this artifical thingie.
And what does "hardcoded U key" even mean?
Surely I can't do anything like that
Mods can literally unlock all of your achievements for you.
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.
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
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.
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
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
Dedicated server doesn't have steam workshop so there is not much I can help with this one.