MeterPreter57 / MiniDayZ-PC

6 stars 3 forks source link

Hello, and a few questions #1

Open TripleCamera opened 2 years ago

TripleCamera commented 2 years ago

Hello, I am interested in this project. May I ask that where the code comes from? Besides, is it possible to add progress saving and multiplayer just like the official version?

MeterPreter57 commented 2 years ago

Hi, all files come from https://minidayz.com/play/sp/ it is possible to download multiplayer version https://minidayz.com/play/mp/ however I don't know how to enable progress saving or multiplayer without login.

TripleCamera commented 2 years ago

Hi, I tried the official version. Although I created an account, it says "Login error. Please try again." Is this my problem or the server's problem? Why can I play freely on your site without login? minidayz_loginerror

MeterPreter57 commented 2 years ago

Browser version is no longer supported https://minidayz.com/blog/mini-dayz-browser-version-will-no-longer-be-supported You can play here because when you launch the game login page is skipped.

TripleCamera commented 2 years ago

Wow that's great!

By the way, how did you download all the resources? I tried a browser extension called "Save All Resources" but only got some of the files you got. šŸ¤”

MeterPreter57 commented 2 years ago

This is a list of all files https://minidayz.com/play/sp/offline.js then I used "WGET" to download everything

TripleCamera commented 2 years ago

This is a list of all files https://minidayz.com/play/sp/offline.js then I used "WGET" to download everything

Great! I tried wget and solved problems by searching, now it works fine for me.

TripleCamera commented 1 year ago

Hi, I was studying about skipping login. Then I noticed that in data.js, you changed Login to Menu, may I ask why?

MeterPreter57 commented 1 year ago

In original mini dayz "Login" is the first layout (layout is like a scene in unity). I changed it to "Menu", so when the game is launched main menu is shown instead of login page

TripleCamera commented 1 year ago

In original mini dayz "Login" is the first layout (layout is like a scene in unity). I changed it to "Menu", so when the game is launched main menu is shown instead of login page

That sounds so technical! By the way, do you have some sort of chat group for this project?

MeterPreter57 commented 1 year ago

No I don't have a chat group

TripleCamera commented 1 year ago

No I don't have a chat group

What about instant messaging apps, like Discord?

MeterPreter57 commented 1 year ago

I dont have a discord server for this project but I can give you my tag if you want

TripleCamera commented 1 year ago

Yes please :yum:

MeterPreter57 commented 1 year ago

RedAndWhite#7723

W84Soft commented 6 months ago

Hi, I created a pull request with a working server for saving and loading game progress. To run this server you need to install NodeJS first and all node_modules. I'm currently working on a working multiplayer server, I think I'm on the right track :)

W84Soft commented 6 months ago

Screenshot 2024-04-13 at 22-52-26 MINIDAYZ

TripleCamera commented 6 months ago

Wow, it's been a year.

@W84Soft Thanks for the work! Sorry that I can't offer any help.

I remember that at that time, I was studying about different mods for Mini DayZ mobile, and I made a list. Besides, I tried to find a map that was lost on the Internet. But later on, I was busy and dropped this project. :frowning_face:

Now seems that @MeterPreter57 found the missing map (map_narva.jpg, is this the original version?) and uploaded it last year. I am pretty surprised. Please tell us how you did that! :yum:

W84Soft commented 6 months ago

This is very difficult to explain, I used all possible browser tools to find out what data the game requires. I looked through the network traffic, added console.logs to the code to check what function was responsible for what, I used js beuitifier to make data.js more readable and I looked for key words that related to POST requests like /sp_save, after receiving the data I saved it to the variable, later, when the game asked for data, I provided them. All through trial and error. If you want, I can make a version that can be run on Windows or Linux using ElectronJS without the need to install nodeJS :)

MeterPreter57 commented 6 months ago

I actually tried to do something like this but failed. Cool that you managed to do that. Looks like you already have original files for hosting a server. Do you use the Windows version because the Linux version just segfaults for me?

W84Soft commented 6 months ago

Actually I use all operating systems, windows, linux, macos and they all work for me. I also bought some computers to test applications written in ElectronJS, so I think that if I also create a version for PC, it would work without any problems.

MeterPreter57 commented 6 months ago

I probably downloaded wrong files can you share your?

W84Soft commented 6 months ago

I created pull request with server response simulator and localStorage solution for storing data :)

MeterPreter57 commented 6 months ago

Thanks, works great!

W84Soft commented 6 months ago

@MeterPreter57, can you add me as collaborator in "minidayz-multiplayer" repository? šŸ˜„

MeterPreter57 commented 6 months ago

I've invited you

MeterPreter57 commented 6 months ago

windows, linux, macOS and they all work for me

@W84Soft, the official website says "It is currently not possible to host servers on a system running OSX." Just to be sure, are we talking about the same server files?

W84Soft commented 6 months ago

Oh, sorry, there was a slight misunderstanding, I'm working on recreating the multiplayer in nodeJS from scratch to make it work multiplatform, I thought you wrote about singleplayer for Windows, Linux and Macos based on ElectronJS

W84Soft commented 6 months ago

@MeterPreter57 Could you share the server files from the original site?

MeterPreter57 commented 6 months ago

Sure, however please note that I didn't download these files from the official website. I got them from a person a year or two ago. And I can't be sure that they are safe to run because the source is unknown. I suggest using WM for testing. I will upload them to the cloud and share the link here

W84Soft commented 6 months ago

Thanks, this can be very helpful in creating own and safe server solution. šŸ˜„

MeterPreter57 commented 6 months ago

https://mega.nz/file/pvEB1KIQ#jJI5Myq05oYEUgLBe1B58FzsVu8ZfGwi3cGfnUBLa10

W84Soft commented 6 months ago

After some modifications original server files worked well on macos šŸ˜„

Zrzut ekranu 2024-04-14 o 22 41 37
TripleCamera commented 6 months ago

After some modifications original server files worked well on macos šŸ˜„

That is very exciting news. Thanks for your hard work!

By the way, @MeterPreter57 may I ask how you found the lost map_narva.jpg? Is it the original file from dayz.com or is it compressed? I noticed that this is a JPEG file, while map_minidayz.png is a PNG file.

MeterPreter57 commented 6 months ago

Iā€™m not sure. Probably a lucky google search or somebody sent it to me

TripleCamera commented 6 months ago

Iā€™m not sure. Probably a lucky google search or somebody sent it to me

I compared Google results and your version of map_minidayz.png. It seems that Google results are an older revision of the map. Now I suspect that map_narva.png is not the original & latest version.

I have searched both the Wayback Machine and archive.today. They don't have an archive for the maps (map_minidayz.png and map_narva.png).

Mini DayZ has a Discord server, maybe we can ask there.

MeterPreter57 commented 6 months ago

While my friend and I were playing, the map was pretty accurate although we hadn't visited all the places. We can try to ask but It's been around five years since the game met its end of life so I doubt that we will find someone with the latest copy.

W84Soft commented 6 months ago

This isn't my post haha ā¤ļø obraz

MeterPreter57 commented 6 months ago

šŸ“ˆšŸ“ˆšŸ“ˆ image

MeterPreter57 commented 6 months ago

The only way to "update" the game is to delete the data of the page. Is this correct?

W84Soft commented 6 months ago

Yes, you need to clear the website data or run the game in incognito mode

MeterPreter57 commented 6 months ago

Is there a way to substitute images with current mods functionality? I tried registering a service worker with no luck

W84Soft commented 6 months ago

I created a pull request with mod caching šŸ˜„

W84Soft commented 5 months ago

@MeterPreter57 I have a suggestion. Can you rename the repository to Mini DAYZ PC? We will generate the link to the gameplay via https://raw.githack.com/ instead of github.io, this will make it easier for people to find this repository on Google šŸ˜„

W84Soft commented 5 months ago

As for the multiplayer version, I'm still working on it in my free time, I'll share something soon, but at the moment I'm trying to understand Peer to Peer connections and why they don't work for me

MeterPreter57 commented 5 months ago

@W84Soft I never used githack.com but I guess this is possible. Everybody who has the link to the repo will lose it and their saves if they have not exported them. We also should post new link in discord and facebook so that people can find this repo again.

American1944 commented 3 months ago

Hello. I know you guys are clearly still working on the project. And its amazing you guys are still working on a game thats been abandoned by the developers. I just wanted to ask whether you guys still are working on multiplayer and whether we can see a playable multiplayer. @W84Soft is the server files working and can I have them to play with a friend?

W84Soft commented 3 months ago

Hi, unfortunately multiplayer is still unplayable, I managed to display the server list and run the original room creation files, but it's very difficult to join a room and I haven't had time to try to fix it lately.

Once I manage to fix everything I'll let you know :)

W84Soft commented 3 months ago

@MeterPreter57 Could you change the repository name to: MiniDayZ-PC, I sent a pull request which uses githack to serve the game šŸ˜„