Jump to content

[WIP] [Beta Release] Csurf Module - use mobile device to control your ship! *update*


McOffsky

Recommended Posts

***UPDATE 18-10-2014***

Screenshot_2014-10-17-18-39-18.png

This post is still work in progress, it will be updated during plugin development.

What is Csurf?

This plugin basically allows you to use mobile device as second screen for Kerbal Space Program. You can arrange buttons according to your needs. Connect your device, add part to ship, create button layout and fly!

Skin support

***need documentation***

Modders support

Csurfs will have support for other modders, much like Toolbar plugin. For example:


class DefaultElements
{
public static void load()
{
CsurfsButton stageBtn = CsurfsManager.instance.addButton("uniqeID");
stageBtn.setLabel("Stage");
stageBtn.setSize(new Vector2(2, 2));
stageBtn.setIcon("button/icon");
stageBtn.setDefaultTexturePath("button/default");
stageBtn.setInfo("info info lorem lorem");
stageBtn.onClick += Event_stageButtonClicked;
}

static void Event_stageButtonClicked(object sender, CsurfsEventArgs e)
{
Staging.ActivateNextStage();
e.vessel.ActionGroups.ToggleGroup(KSPActionGroup.Stage);
}
}

Supported devices

For now it works with Android only, but I will develop PC version after I finish Android app, and iOS, if there will be need for it. I'm writing this plugin by myself, so you have to be patient :) It will be free to download, but there will be Supporter version, it will be basically Free version with only one feature added: multi device support (so you can use your tablet and smartphone at the same time, even for two different ships).

Edited by McOffsky
Link to comment
Share on other sites

Yeah, I found out about CCP when I was searching for way to invoke Action Group. Main difference between CCP and Csurfs is whole layout creation. You build your layout along your ship, then you store it and put it on device when needed. Every Csurfs Module Part can store one layout for one device. Also CPP utilize external app for connection between game and device, Csurfs has in-game server. And CCP does not support Android ;)

I will look into scansat map when I deal with skins support. I need to develop way to fetch image trough socket data connection. When I have this I can transfer scansat image without any problem.

Edited by McOffsky
Link to comment
Share on other sites

@SaplingPick - I think it could be done, only problem might be loading layouts to devices, you need mouse to right click on part and load button layout from it. But besides that you should be able to play whole game with smartphone as your controller (with joysticks, an essential switches) and for example tablet as informaction display/switch board. Possibilities are unlimited. After first release I will think about some other way to switch layouts (so hopefully in November).

Edited by McOffsky
Link to comment
Share on other sites

  • 3 weeks later...
Polan cannot into space. Just into germania. But this must've been pretty hard to code.

I agree with you if by germania you mean scoring few goals and wining match ;P And gerMoney anschluss ;P Also our silly goverment recently created Polish Space Agency. Yeah, yeah, I know, world is going crazy.

------------------------------------------------------

Topic got big fat update and beta download links. Enjoy.

Edited by McOffsky
Link to comment
Share on other sites

Hm, what version of Android do you have? I've tested it on 4.4.2 na 4.4.4. Connetion errors are well handled and you should see Toast massage after few seconds. Also you can upload logcat from Android, but this is optional, becourse you will need another app to do this.

Link to comment
Share on other sites

Just wondering: It has been 2 moths now, so is there gonna be an update anytime soon?

I understand that this is a pain to program, but i really think you should continue finishing it. This is the only mod so far i liked from first contact.

Also i even installed Android on my laptop to play this mod on for a second screen, so i really like it.

I think that you cold see in the comments that i'm not the only one who thinks this.

I will wait patiently for an update ;-)

Link to comment
Share on other sites

Heh, I must have misspoke something :) Next beta version with more features should be ready next week, now real life got me really bad and boss want his projects done first. Final version will be released around second half of November, I will keep you posted.

Link to comment
Share on other sites

any news here? I'm quite looking forward to this...

additionally; I'm having a problem. everything appears to be working great on the pc end; server status is green. However, on my mobile phone i can search for, find, and select the server, but pressing connect has no effect. My phone is android 4.1.2 and connected to the same wifi network as the pc. any tips?

Edited by zekew11
Link to comment
Share on other sites

This thread is quite old. Please consider starting a new thread rather than reviving this one.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...