Code Monkey home page Code Monkey logo

Comments (22)

Zer0t3ch avatar Zer0t3ch commented on May 23, 2024 2

If the group system ends up being prohibitively complicated for the moment: I think it would be completely reasonable to add the research sharing without it, for private servers to use if nothing else.

from lunamultiplayer.

gavazquez avatar gavazquez commented on May 23, 2024 1

Well you should create a new system based on the existing ones (like Asteroid system for example). Then subscribe to the proper game events like "OnFundsChanged" and when this event happens, send a new message type to the server specifiying the new funds.

The server should also keep track of the funds at all times and send the funds when a client connects.

The same applies to science and so on

from lunamultiplayer.

meyer9 avatar meyer9 commented on May 23, 2024 1

The group system isn't quite done, but once I finish that, I'll definitely start work on the science/funds system.

from lunamultiplayer.

TheDaltonTT avatar TheDaltonTT commented on May 23, 2024

Just downloaded the project yesterday, got a server up and poking around in the code. My friend and I, both coders, would love to start a career together with shared resources.

Any idea where to start for this enhancement?
Only been looking at the code base for maybe 30 minutes now so would love to hear any thoughts you had/which classes to start looking at first.

Thanks!

from lunamultiplayer.

 avatar commented on May 23, 2024

How is this feature going so far? I can't get the mod syncrio to work right so having the feature run by the server itself would be perfect

from lunamultiplayer.

gavazquez avatar gavazquez commented on May 23, 2024

I've lost a bit the track of LMP and work + personnal life takes most of my time.
I hope to get some spare time soon but I made the code as simple as I could so everyone could fork my mod or push changes to this repository.

from lunamultiplayer.

meyer9 avatar meyer9 commented on May 23, 2024

I think I'm going to work on porting Syncrio over to this mod. Syncrio uses a ton of shared code from DMP/LUNA, so it shouldn't be too hard to do this. I've also gone through a lot of the Syncrio and DMP code so I have a decent understanding of how everything fits together.

from lunamultiplayer.

meyer9 avatar meyer9 commented on May 23, 2024

So, I've started this one. I realized we need a group system for this to work, so I've started adding one here: #33.

from lunamultiplayer.

gavazquez avatar gavazquez commented on May 23, 2024

You changes look nice! I've just made them thread safe and adjusted the channels.
If you need help or you don't understand some part of the code just let me know

from lunamultiplayer.

 avatar commented on May 23, 2024

Hey everyone, following up on what meyer9 said. I do agree that Syncrio could be ported over, and to be honest I always hoped Syncrio would be merged into DMP or LMP. And on that note, I'd like to help make that possible, but I'm not familiar with LMP code so I don't know how much help I will be. But if I can help in any way just let me know.

from lunamultiplayer.

gavazquez avatar gavazquez commented on May 23, 2024

Hi Caylis1397. At the end LMP is based on DMP but with the code refactored in smaller pieces.
I'm at the moment fixing other stuff in order to have a workable LMP that at least lets you play multiplayer without much bugs, once that's done definatelly I will look into syncing funds, science etc in case meyer9 didn't finished it.

from lunamultiplayer.

RedLeafPatriot avatar RedLeafPatriot commented on May 23, 2024

from lunamultiplayer.

gavazquez avatar gavazquez commented on May 23, 2024

Added some documentation to the top, I don't know how the group system should be implemented as it involves screens and so on but sharing the science, contracts, funds and reputation shouldn't be very difficult

from lunamultiplayer.

gavazquez avatar gavazquez commented on May 23, 2024

Fixed the group system as it was not thread safe and was giving errors when we were connecting, also now they are stored as a file in case the server restarts.
The UI is not done anyway as I just wanted to make it work while I finish the movement and other stuff

from lunamultiplayer.

Restioson avatar Restioson commented on May 23, 2024

Hi! I'm looking into maybe perhaps helping out with this... what exactly still needs to be done after #33 ?

from lunamultiplayer.

gavazquez avatar gavazquez commented on May 23, 2024

add UI for the groups, share reputation, funds and contracts and then fix all the other stuff so it works with groups.

@Restioson If you feel like helping out in coding go to the discord server so we can sort it out ;)

from lunamultiplayer.

Restioson avatar Restioson commented on May 23, 2024

@gavazquez I am on it already! Ping me sometime.

from lunamultiplayer.

MalteJanz avatar MalteJanz commented on May 23, 2024

A very basic 'sharing mode' would be very awesome, so we can play with some friends together. Groups and competition is nice to have but not necessary for basic coop gameplay (that i would love to see in LMP because Syncrio and DMP are not working very good for me and my friend). Maybe something simple could be implemented in the near future and extended with groups afterwards, so people doesn't need to wait that long.

from lunamultiplayer.

MalteJanz avatar MalteJanz commented on May 23, 2024

Update:
I have started to work on this issue yesterday and today i got the first funds synchronisation working. At the moment i am learning mostly how LunaMultiplayer and KSP mods working. So it could take some time until i figured the necessary things out (i got some experience in c#, unity and other languages). My plan is to get a basic 'ShareProgress' system running first and maybe later the group system could be integrated. If i get the things to work i will submit a pull request.

from lunamultiplayer.

gavazquez avatar gavazquez commented on May 23, 2024

Contact me on discord and we can sort things out

from lunamultiplayer.

MalteJanz avatar MalteJanz commented on May 23, 2024

Update:
This pull request added the first functionality:
#117

Also there is now a branch for this issue called: SharePlayerProgress.
So if anybody want to help you can look into that branch (specific the ShareProgress System).

from lunamultiplayer.

gavazquez avatar gavazquez commented on May 23, 2024

This work has been done by Malte so I close this task, in case there are errors on this we can open new issues to deal with them

from lunamultiplayer.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.