sc-controller icon indicating copy to clipboard operation
sc-controller copied to clipboard

Community profiles

Open C0rn3j opened this issue 7 years ago • 10 comments

I'd really welcome if I could download profiles of other users and have a way of uploading my own.

Would it be possible to implement this?

C0rn3j avatar May 23 '17 11:05 C0rn3j

Well, it is possible and probably not even that hard.

But it would require server and at least some kind of infrastructure to host uploaded profiles on and that's point where I don't know even where to start. But any suggestions are welcomed :)

kozec avatar May 23 '17 19:05 kozec

a $3/m VPS from Scaleway has unmetered 200/200 connection and 50GB of space, so if you don't have server equip, you can use that.

A domain will cost about $10 a year.

You can use MariaDB as an SQL database, nginx as a web server.

Let's Encrypt for a TLS certificate so you can run HTTPS on it for free.

PHP to write some simple app to login and upload the files perhaps, or whatever language is being used nowadays for web dev.

I could possibly try writing it as my SQL and PHP skills are almost nonexistent(so I could use a project I can learn on), but it will look like a crap.

EDIT: If you want to know something else, fire away.

C0rn3j avatar May 23 '17 19:05 C0rn3j

PHP to write some simple app to login and upload the files perhaps, or whatever language is being used nowadays for web dev.

I could possibly try writing it as my SQL and PHP skills are almost nonexistent(so I could use a project I can learn on), but it will look like a crap.

I should probably note that SC-Controller profile can include calls to shell, so preventing someone to upload, in any way, profile that calls rm -rf / will be part of challenge.

I'll try to draft some kind of process, I'll call it "from SCC to web back to SCC without wiping your harddrive clean" :)

kozec avatar May 24 '17 06:05 kozec

How's the draft going? ^^

C0rn3j avatar Jun 17 '17 17:06 C0rn3j

Not very well to be honest, it looks like only way to do this securely is to disallow ~~uploading~~ downloading anything what calls shell. What means small problem as there are default menu items that are using shell, so now I'm trying to solve that.

kozec avatar Jun 19 '17 07:06 kozec

I might just be able to help with this - at least the server side. Let me know if you're interested.

jficz avatar Jul 20 '17 20:07 jficz

Just so it doesn't look like I'm ignoring this completely...

There are two things I'd like to finish before even trying to get sharing ready. I'm working on support for non-steam controllers and redoing how profiles are loaded, because original format is not fit well for all features I managed to stuff in SCC.

Both will change profile format significantly, so not having database full of legacy profile files will be good thing :)

kozec avatar Jul 31 '17 17:07 kozec

Any update on this? Seems like a great idea.

supertriodo avatar Apr 18 '18 16:04 supertriodo

My offer to host the repo still stands.

jficz avatar Apr 19 '18 16:04 jficz

While this is a good idea it requires an infrastucture that has to be built and maintained.

Couldn't we, as an intermediate step, create a github repo where users could submit profiles and a group of volunteers could review them and merge them?

berarma avatar Feb 02 '21 08:02 berarma