Forum

> > Stranded II > Mods > Piano mod
Forums overviewStranded II overview Mods overviewLog in to reply

English Piano mod

29 replies
Page
To the start Previous 1 2 Next To the start

old Piano mod

HudaJan
Super User Off Offline

Quote
I have been working on it for a while by now, and finally I've achieved it, fully functional 61-keys piano. I will add the ability to make chords and compose (+save) your own music.
I think the chords will take most time to get it working, since you only have one cursor to click the keys. I'm thinking about some kind of interactive menu (using s2 cmd cscr ).
In a little while I'll try to make some video to show you how does it work
Until then - there is one screenshot
(click to enlarge)
IMG:https://www.hudys.wz.cz/pianomod_thumb.jpg


EDIT: Okay fellas, here is the video I promised

http://youtu.be/5FEYMAjvrFw

Who will say the name of the song, he'll get a cookie
edited 1×, last 29.02.12 03:42:51 am

old Re: Piano mod

HudaJan
Super User Off Offline

Quote
user Apache uwu has written
Wow nice idea! Mind if I make a mini-piano for cs2d?

Not at all, go ahead looking forward to seeing the result

old Re: Piano mod

Hurri04
Super User Off Offline

Quote
looks interesting, though I agree that might be a problem to only have the mouse cursor to play.

I'd recommend using scriptkeys for this. you can use 21 of those in total and you can use variables to check if the player is in the piano screen or not so you can even give the scriptkeys different functions for each case.

then, you should make a line of squares a little above the keys. the player then can click one of those, press a scriptkey and bind it to the piano key. after this, the square will show the letter of the scriptkey so the player can put the piano keys on the keyboard keys he wants (e.g. if he wants to play with certain sets of the 7 notes of a gamus/scale(?).


further, under the piano keys you could put a stave to show which note has been played. then a record button, a play button, a buttom to delete the last played note while "recording", a button to delete everything recorded so far, buttons for the different long pauses and buttons to save & load recorded pieces of music.

for the recording I'd recommend not to record at the speed the music is played but in "steps" so when two piano keys are pressed there wont be a pause between them when not pressing them directly in a row.

I'm not very good when it comes to music but I know a few basics, though I'm not not entirely sure whether the notes of a piano always have the same length or whether the length can alter...

what might be a little more complicated would be the ability to play several notes at the same time (and to record this).


not sure about the piece of music in the video but might it be this one: http://www.youtube.com/watch?v=_mVW8tgGY_w ?
edited 1×, last 29.02.12 01:01:58 pm

old Re: Piano mod

HudaJan
Super User Off Offline

Quote
Hurri04: Well, so far this is very basic version of the piano and the options of it. I'll add some more features, I might consider some of your ideas (the most interesting seems to be the one with scriptkeys) .
About the recording it would be problem, since I can't use timers (the game timers are stopped while on cscr menu) and yes, every piano note has different length, that would be problem.
About two or more keys pressed simultaneously (it's called chords) I will make it by kind of composing menu, where you can scroll through beats and each beat you can put your notes or chords.
I will have to tweak a lot, and I will have to find optimal way how to save those compositions, it should be possible to recall it easily from external files.

About the video you posted, it's not it, but you are close (it's in related videos )

old Re: Piano mod

Hurri04
Super User Off Offline

Quote
user HudaJan has written
Hurri04: Well, so far this is very basic version of the piano and the options of it. I'll add some more features, I might consider some of your ideas (the most interesting seems to be the one with scriptkeys) .
About the recording it would be problem, since I can't use timers (the game timers are stopped while on cscr menu) and yes, every piano note has different length, that would be problem.

now that you're mentioning that the time is stopped while being in the cscr menu I'm not sure whether this would also affect the scriptkeys so they couldnt be used...

user HudaJan has written
About two or more keys pressed simultaneously (it's called chords) I will make it by kind of composing menu, where you can scroll through beats and each beat you can put your notes or chords.

yeah, that's kinda what I meant

user HudaJan has written
I will have to tweak a lot, and I will have to find optimal way how to save those compositions, it should be possible to recall it easily from external files.

I think this can be done using the commands s2 cmd savevars, s2 cmd loadvars and some string commands like s2 cmd length, s2 cmd join and s2 cmd extract, having one variable for the amount of keys pressed simultaneously and another one for the values which represent the different notes.

user HudaJan has written
About the video you posted, it's not it, but you are close (it's in related videos )

it's one of the few classical pieces fo music I know
close enough I'd say

old Re: Piano mod

Stranded_Guy2910
User Off Offline

Quote
Man this is the most complicate think I ever saw in stranded. Did you edit the source code of the game?

old Re: Piano mod

dENd
User Off Offline

Quote
can you add after clicking a note it turns black or purple to let you know you hit it

old Re: Piano mod

Stranded_Guy2910
User Off Offline

Quote
user dENd has written
can you add after clicking a note it turns black or purple to let you know you hit it


Yeah, this is an excelent idea! You should use it man.

old Re: Piano mod

Hurri04
Super User Off Offline

Quote
I dont think this would work because as HudaJan said, timers wont work in this menu and therefore the key would stay at thos colour until you hit another key.

old Re: Piano mod

Vectarrio
User Off Offline

Quote
That idea and the script are so awesome, can you make something like a tutorial for cscr later?
P.S. the piece is Rondo alla Turka

old Re: Piano mod

HudaJan
Super User Off Offline

Quote
user Stranded_Guy2910 has written
Man this is the most complicate think I ever saw in stranded. Did you edit the source code of the game?

No I didn't, all of this is achieved using only cscr images and some careful positioning
user dENd has written
can you add after clicking a note it turns black or purple to let you know you hit it

I was thinking about this also, of course, but:
user Hurri04 has written
I dont think this would work because as HudaJan said, timers wont work in this menu and therefore the key would stay at thos colour until you hit another key.

Thanks Hurry
user Vectarrio has written
That idea and the script are so awesome, can you make something like a tutorial for cscr later?
P.S. the piece is Rondo alla Turka

That's a good idea, cscr are quite useful for innovating some menus, although they are not commonly used

And yes, that is correct^^, here's your cookie cookie
user Big Bang Mafia has written
when can we download this?(demo maybe )
looks awsome

I think I'll release it later, when there is done more

old Re: Piano mod

Mc Leaf
Super User Off Offline

Quote
Sorry, Hudajan... At first look, nice... But in fact it is extremely nonsense.

Rather make a good bamboo-drum (oh... no, I already did...), or make a bamboo-guitar, something like that...

I want to see just one guy (except you), who is starting SII just to have some piano lessons...

(missing the good old times and really good ideas, dude...)

old Re: Piano mod

Stranded_Guy2910
User Off Offline

Quote
user Mc Leaf has written
Sorry, Hudajan... At first look, nice... But in fact it is extremely nonsense.

Rather make a good bamboo-drum (oh... no, I already did...), or make a bamboo-guitar, something like that...

I want to see just one guy (except you), who is starting SII just to have some piano lessons...

(missing the good old times and really good ideas, dude...)


Really man, the idea is really good. There aren't only wood and bamboo stuffs on stranded. And it can be used as base for further instruments mods.

In my opinion it makes sense and should be improved more and more.

old Re: Piano mod

Mc Leaf
Super User Off Offline

Quote
No it doesn't make any sense, putting a piano in a survival game, since you also even not have something like a biface or the possibilities of much other techniques which were used in stone- or ironage. These would be really important and senseful things for which developer should spend their time. Aside from the fact, that you do not have the possibilities to create a well made simulation of a piano (as someone already wrote).

Wanna play piano? Then try that...:

http://sourceforge.net/projects/vmpk/

(for example)

old Re: Piano mod

Stranded_Guy2910
User Off Offline

Quote
user Mc Leaf has written
No it doesn't make any sense, putting a piano in a survival game, since you also even not have something like a biface or the possibilities of much other techniques which were used in stone- or ironage. These would be really important and senseful things for which developer should spend their time. Aside from the fact, that you do not have the possibilities to create a well made simulation of a piano (as someone already wrote).

Wanna play piano? Then try that...:

http://sourceforge.net/projects/vmpk/

(for example)


Man the game isn't about follow rules! It's all about fun, and play an instrument is very fun.

So man stop and think. Play a game is to be fun and for you to feel free. So if you can create something you like, why don't do it? Else the game won't make you feel free.

old Re: Piano mod

HudaJan
Super User Off Offline

Quote
I've put too much efforts already to just dismiss it, but I agree that it doesn't quite fit in Stranded. However, I don't think that mods focusing on surviving shipwrecking on deserted island are attractive any more, that's why I'm trying to be as innovative as possible, despite the danger of someone not liking it.
But I appreciate your honesty

BTW. I found out that Stranded system is not able to use variables in file path (specifically s2 cmd savevars ), do you happen to know some workaround for this? Cause I'm not able to manage recording the notes without it.
If you help me, I promise that I will NOT add you to credits of this mod

old Re: Piano mod

Hurri04
Super User Off Offline

Quote
could you post the piece of script you wrote? maybe it's just a syntax error...


about whether this fits into a survival game or not:
you should make a model of a piano and put it into some already existing mod, I think it would be a nice side-feature.

however I agree that I really wouldnt use S2 to learn the piano
To the start Previous 1 2 Next To the start
Log in to reply Mods overviewStranded II overviewForums overview