-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
D2 #62
Comments
I have kind of abandoned charged miners, but feel free to take a look at it. And if you want to copy any code let me know and I can give you what ever license you want. That said, I completed a port that sits on the d2-port branch. I have ported over the changes on master to the d2-port branch. And I tested the branch with If you have any questions feel free to ask. |
Well, I found that branch just after posting this... Anyway, it builds fine using "DMD64 D Compiler v2.071.2", but it crashes with a segfault when you run it. I don't have a D1 compiler, so I'd really like to get D2 functional. You have any insights on this? |
Oh right, open up your dmd.conf (should be in I just tried the online mode with classicube and using the direct links I got it working on servers not requiring enhanced mode (Charged Miners is still only a classic client). Sure I will try and answer and questions, the code is still very D1:ish and programmed mostly by one person quite a few years ago. But should be somewhat cleaner the the average I have no idea what I'm doing project (which I fully admit the code is) I have cleaned the code a little bit to make it more accessible. |
Thanks man. I appreciate your help. What does that flag do? Also, now it seems like it can't find the linker:
|
No worries. Well that's really weird... does compiling simple programs with gcc work? You might need to install gcc or binutils packages. |
It was compiling just fine before I changed dmd.conf. Here's that:
|
Oh remove that extra -L at the end as well. |
Alright, it builds and runs now! But it's throwing the exception on line 207 of src/charge/util/png.d. And of course only gives me a quit option. |
Have you gotten the latest changes on the branch? I push some changes that should fix that? Also you might need to remove the directory |
I tried deleting it and it regenerated it. Here is the log file:
|
Hmm okay, now its failing for me as well.... This is really weird let me look into this as well. |
Fun time. A question on the side: What is the "Correct" way to keep a fork up to date? |
Okay, I know what is causing the error. Its the default skin its downloading... But I thought I fixed that. Looking for a new one that will work. |
What are the requirements for a skin that is "Correct"? |
Something that can be loaded by the home brewed image reader I have in Miners... The proper fix for this would probably to use stb_image.h instead of the homebrewed code I got right now. |
Isn't there something in sdl that you could use? |
I tried to keep external dependencies at a absolute minimum to make shipping and bringing new people easier. I'm working on hacking in stb_image.h, got it compiling and need to write some glue code. |
Alright, I'm on standby. |
Well I got it working now with a completely clean config directory and repo so it should work for you now. Sorry for it not working directly out of the box and taking so long for you to start hacking on it. |
Not a problem. The support I recieved was better than just about any other software I can remember. :P |
Hehe thanks, if I wasn't clear it should all work now so you can just go ahead and try the latest changes on the branch. |
Well, it worked alright, although I find the behavior and UI less than appealing (this is why I am going to try hacking the source :P). How did you get the pictures in the README? |
Ah that's the experimental modern Minecraft code that I worked on for a while. While trying to get more people interested in the project I removed as much as possible of the code that was not relevant to what it was being used for, which was a Minecraft Classic client. This was done so people had less code to read and get lost in. That said you could probably get something similar if you edit the terrain.default.png file that is in the config file. I think the screenshot used the dokucraft texture pack. Also it looks like your graphics card does not support the shadows so that's reason they are missing. |
I’ve been trying to compile CM recently, partly because I’d like to add support for some classic protocol extensions and partly because the existing releases don’t work for me and I don’t want this software to get lost to time. For reference, I’m using Arch Linux and the d2-port branch. The old versions of the packages I mention are available here: I tried to compile with the latest DMD first, something like 2.095. Didn’t work, way too many errors and I don’t know enough about D to fix them. I tried to compile with Finally, I tried to compile with
A bit of research revealed that DMD improved the cycle detection algorithm in the 2.072.0 release (https://dlang.org/changelog/2.072.0.html, under Library Changes), so that cycle (and I think at least one other) will cause errors from now on. I added Current issues: Wallbraker, would you be willing to put any time into helping me with this? I’m pretty sure I can implement CPE and trim out the old minecraft.net code on my own, but I don’t know enough about D or the structure of Charged Miners to make it compile with the newest DMD. |
@nahkoots Oh that's really good work, thank you for taking a look at this and working through all of those problems. Apologies for not replying earlier. I would be up to try to help you getting it up and running, where is the best way to reach you? Do you have Discord? |
No worries at all, thank you for your reply. You can reach me at nahkoots#3280 on Discord. |
I saw a handful of commits that had something to do with D2. I'm currently trying to get Charge to compile using Dmd 2.066. How important is a D2 port?
The text was updated successfully, but these errors were encountered: