Jump to content

Caswal

Members
  • Posts

    6
  • Joined

  • Last visited

Everything posted by Caswal

  1. @Hadion, the must likely culprit is Skype. Skype seems to open and use port 80 (Http) for itself. Close skype first and see if you can start the server.
  2. @Fyren, I went into this knowing that it would most likely have serious design/useability problems. I was originally making it as a mod for myself and friends, with rules attached of how to use it. And if I can get it working well enough, release it to the public.
  3. I have the core of it all working. It took a bit of a fight, being new to the Kerbal API, and the documentation is a little sparse. The main problem, is receiving the Vessel data, and working out if the client already has this Vessel, if so update it. To me the easiest method seemed to be to destroy the old vessel, and just load the replacement protovessel. I was tracking the vessels by the guid inside the Vessel class. The problem with that is when you dock vessels together they generate new guids. Which led to explosions, as the seemingly new vessel would telefrag the old one. To get around this, my inter-dimensional part module stores a unique guid that gets preserved between loads and the vessels are identified using that. Occasionally I get a bug, that causes the protocrew members to fail to load, therefore the whole vessel fails to transfer. I have a feeling this might be due to some exceptions breaking the way the client exe talks to the Kerbal plugin. Already I can see this getting messy, the idea is that the core module of your space station/moon base has the network sync module. When a new vessel is attach, you press sync, and everyone gets the update. If you have multiple sync modules on separate vessels the following case can happen: Space Station Synced, New module near the station, but not docked get's sync'd. Now everyone sees a space station, and the new expansion module. The expansion module get's attached to the space station, and gets sync'd to all the players. Now all the players (but the player docking the new module), would see a space station, with the new module, and another module in space. As they have got no message that the old module has been removed. Other problems, is what if 2 people (player A and player are docked with a space station at the same time, and player A hits sync? Does player B get their vessel destroyed as player A does not know about it? I think this could be circumvented by watching for all attaching and detaching and auto syncing then, but I don't know where to start on that being new to the api and all. Oh, and you can be the ultimate troll by telefraging people's launches, by syncing your rocket on the launch pad as they get ready to go.
  4. Thanks for the offer, I got everything I need in house (see my sig). Of course there are other caveats, that everyone will need the same mods installed (otherwise if a part is missing, it can't be created/loaded), and again this is only possible due to all the fantastic work by SodiumEyes. I don't have the time to write all the back end that has been written. This was just me doing some poking around in the Kerbal API to see if it was possible.
  5. I was playing this mod with a friend last night and it was awesome. I have been poking around with the code, and its really nicely made SodiumEyes! I started to experiment with seeing if I could get a Vessel converted as a byte array, to serialize over the network. Basically to add a button like the Screenshot button, to to send your current vessel/spacestation/moonbase over the network. And I have just succeeded (getting it as a byte array that is) My aim is to allow cooperative building of space stations/bases. After you have attached new modules press the sync button. It sends it across to the other clients they match it against the same station/base. Save their orbit data for it, destroy their instance, recreate the station from the incoming data, but use their saved local orbit data on it. Of course this isn't perfect, (what happens if you are docked, and someone else hits sync etc). But I think this could be a lot of fun!
  6. Anyone played much with KSP.File.IO, I am after grabbing the whole data for a vessel currently in flight, but not having much success. The line if (KSP.IO.File.Exists<Vessel>(this.vessel.GetName(), this.vessel)) causes a warning: G:/Steam/steamapps/common/Kerbal Space Program/KSP_Data/../PluginData\.flights\150c3412-1c57-4bde-a0c0-1d2da7767d01 Generating a nice empty directory at that location. Any ideas?
×
×
  • Create New...