?
?
Explore posts from servers
DHDistant Horizons
Created by ? on 8/16/2024 in #help-me
Any way to merge .sqlite files?
Hey, I've been playing on a server for some time, then I changed server name on my multiplayer servers list and I didn't realize it abandoned previous files and started generating new LODs :BRUH: is there a way I can merge two .sqlite files with already explored terrains into one file?
14 replies
DHDistant Horizons
Created by ? on 1/25/2024 in #help-me
java.lang.IndexOutOfBoundsException: QuadTree GetOrSet failed
No description
3 replies
DHDistant Horizons
Created by ? on 1/23/2024 in #help-me
DH no longer works after upgrading to 1.20
No description
34 replies
DHDistant Horizons
Created by ? on 11/25/2023 in #help-me
Weird flying layer in caves / rendering issue (?)
As on the video, I see a huge flying layer of blocks that uhm, shouldn't exist? I don't experience that on surface, just when in large caves, somewhere underground. I'm not sure if I changed something in DH settings (I don't think so though) or is it a bug, please advise. Also not sure if it's an expected behavior or fixable at all, I am sorry if it's a repost, tried searching by keywords on this forum and couldn't find anyone with similar graphical issue. Minecraft version: 1.19.2 (multiplayer server) PC specs (I don't think it matters but including it anyway if needed): CPU: i5-9400F GPU: RTX 4070 RAM: 16 GB DDR4 2400 MHz All mods that I use: DistantHorizons-2.0.0-a-1.19.2.jar fabric-api-0.76.1+1.19.2.jar indium-1.0.9+mc1.19.2.jar lithium-fabric-mc1.19.2-0.11.1.jar phosphor-fabric-mc1.19.x-0.8.1.jar sodium-fabric-mc1.19.2-0.4.4+build.18.jar This modification is awesome, I'd like to donate a few bucks as a way to thank for this mod, it's a game-changing feature that persuaded me to play Minecraft again!
13 replies
CC#
Created by ? on 1/4/2023 in #help
How do I pass 1 argument in lambda expression?
11 replies
CC#
Created by ? on 12/10/2022 in #help
Double check if an object is one of provided types
64 replies
CC#
Created by ? on 11/26/2022 in #help
❔ Windows Forms different controls but same event doing different code?
private void OnSecondsChange(object sender, EventArgs e)
{
textBoxUpTime.Text += $"{sender} fired out"; // somehow distinguish the sender and behave differently later in the code
}
private void OnSecondsChange(object sender, EventArgs e)
{
textBoxUpTime.Text += $"{sender} fired out"; // somehow distinguish the sender and behave differently later in the code
}
I was wondering if there is a way I can link one method to multiple controls events (such as OnClick) and depending on which element fired the event do something different? For example there are 4 buttons and each has the same OnClick event method linked but I want the code for each button behave slightly different
50 replies
CC#
Created by ? on 11/6/2022 in #help
The type name 'ServiceController' could not be found in the namespace 'System.ServiceProcess'.
8 replies
CC#
Created by ? on 11/6/2022 in #help
Write to file not working (StreamWriter)
using System;
using System.Numerics;
using System.Text;
using System.IO;
namespace Username
{
class Program
{
static void Main()
{
bool end = false;
string filePath = @"C:\Users\Administrator\Desktop\HEXes.txt";

StreamWriter hap = new(filePath, false, Encoding.Unicode);

hap.WriteLine($"{F:N0} is {F:X}"); // there are variables I didn't mention, I just wanted to show here I write to file

hap.Close();
Console.ForegroundColor = ConsoleColor.Yellow;
Console.Write("\nPress any key to continue...");
Console.ReadKey();
}
}
}
using System;
using System.Numerics;
using System.Text;
using System.IO;
namespace Username
{
class Program
{
static void Main()
{
bool end = false;
string filePath = @"C:\Users\Administrator\Desktop\HEXes.txt";

StreamWriter hap = new(filePath, false, Encoding.Unicode);

hap.WriteLine($"{F:N0} is {F:X}"); // there are variables I didn't mention, I just wanted to show here I write to file

hap.Close();
Console.ForegroundColor = ConsoleColor.Yellow;
Console.Write("\nPress any key to continue...");
Console.ReadKey();
}
}
}
It creates HEXes.txt but the file is empty Never mind, my silly mistake. Closing.
1 replies
CC#
Created by ? on 11/4/2022 in #help
delegate inside our outside class?
delegate void ADelegate(); // here?
public class PlayerShip : MonoBehaviour
{
delegate void ADelegate(); // or here?
event ADelegate DelegateHandler;
}
delegate void ADelegate(); // here?
public class PlayerShip : MonoBehaviour
{
delegate void ADelegate(); // or here?
event ADelegate DelegateHandler;
}
Should I create a delegate inside or outside a class? Is there a difference?
19 replies
CC#
Created by ? on 11/2/2022 in #help
Hexadecimal format specifier not working
for(int X = 1 ; X <= 5 ; X++)
{
var F = Math.Pow(63, X);
Console.WriteLine($"{F:X}");
}
for(int X = 1 ; X <= 5 ; X++)
{
var F = Math.Pow(63, X);
Console.WriteLine($"{F:X}");
}
For some reason this is not working and I receive an error: FormatException: Format specifier was invalid.
6 replies
CC#
Created by ? on 10/26/2022 in #help
Why Predicate contains in and parentheses?
9 replies