Mapdownloader possibility Brainstorming

3 years 3 weeks ago - 3 years 3 weeks ago #19 by snowman
Replied by snowman on topic Mapdownloader possibility Brainstorming
Our friends from the Mafia community have created a Multiplayer mod for Mafia 1 called Oakwook . It has both server and client. The client is supposed to download any updates from the server side. Very happy to see progress being done in this direction by the very dedicated modders in the Mafia community, specially for a game that doesn't support multiplayer... originally

Progress is posted by one of the modders, Dávid Svitana, on MafiaHub Discord group. Here's how the download process from the client side looks like


"Straight and narrow is the path."
Attachments:

Please Log in or Create an account to join the conversation.

3 years 3 weeks ago #20 by snowman
Replied by snowman on topic Mapdownloader possibility Brainstorming
Asset downloader function available for Mafia Lost Heaven Multiplayer mod. Thank you for sharing, ZaKlaus

https://github.com/LHMPTeam/lhmp-old

"Straight and narrow is the path."
The following user(s) said Thank You: JonnySniper

Please Log in or Create an account to join the conversation.

3 years 1 day ago #21 by MeToX
Replied by MeToX on topic Mapdownloader possibility Brainstorming
I want to throw another idea in.
It may be not the most elegant solution, but atleast it wouldnt demand any injection or modifciations in the originale files, so what do you think of this:

To allow viewing the servers the adress of the META-Server has to be changed, since its not provided by GameSpy anymore.
Now, this can be also accessed by other third party progrems, right?
Could it also contain more information, like the mission name and/or a pointer to a corresponding file?

Because if so, what we could do is make an extra program which lists up all the available servers.
Before the player joins a server he has to run this application in order to join one of the listed servers.
Now, when he clicks a server in the list, he should be able to view additional information and maybe even if he has the map installed or not.
It would be ideal to store this in within META-Server, but this information could be also stored by other means.

Then, when the user tries to join a server, the custom application will start an instance of the HD2.exe with the command "-cmd -join [IP] -port[PORT]" (thank you Stern for pointing this out in Discord)
Obviously it would use the information recieved by the server list.

If the map is not installed already, it can download the required files before it creates the HD2 process.
Now this part is probably the most complicated part and I see two solutions to this:

1. the server host "listen" to potential clients who wants to download the map files, ideally with a different port to not interfere with the dedicated HD2 server itself. This can be done with the serverList program, it could be included in the "host server" button or something, but this requires the host to keep the application open as long as the HD2 server is open.

2. The host uses the serverList application to upload all his mod files to a server, this can be automated. Obviously the uploaded content must be linked to the corresponding server in the server list, so that the clients can download it from there, for example from an FTP server. The FTP server could be smart enough to keep the uploaded mods even, but all of them unique. Now this has the benefit that the maps do not have to be downloaded directly from the same server who hosts the HD2 server (-> less traffic), also the host could close the serverList application once the server has been started. However, the problem with this solution is that someone needs to provide an FTP server for this, which is 24/7 running and reliable. Also someone should administrate it. Maybe there is a mod/map which needs to be removed because it causes crashes or is outdated and needs to be replaced.

So while solution 2 is more comfortable for the server hosts, solution 1 is more independent from any third servers.

Now, how does the server or the custom serverList application knows which files are necessry for the mod?
I also thought of that as well, there are also multiple solutions but here is mine:
I am currently working on a ModManager for HD2. This ModManager does what you expect. It handles all your different modifications. You can activate and deactivate each one with a single click and it also merges mpmaplists if you want. I will make an extra thread for this one soon, its not done yet.
Anyway, this Manager creates a single file, which contains all information about every mod you have installed with it. If the custom ServerList uses that file, it knows exactly which files it needs to sync with the clients, and the clients therefore recieve the files they need to join the server.
The following user(s) said Thank You: snowman

Please Log in or Create an account to join the conversation.

3 years 1 day ago #22 by snowman
Replied by snowman on topic Mapdownloader possibility Brainstorming

Okay, this is brilliant

"Straight and narrow is the path."

Please Log in or Create an account to join the conversation.

  • Lukasz birthday is in 3 days (41)
  • spartacus birthday is in 10 days (63)
Powered by Kunena Forum