English Piano mod

29 replies
Goto Page
To the start Previous 1 2 Next To the start
29.02.12 02:56:09 am
Up
HudaJan
Super User
Offline Off
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:http://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
New version of "Kidnap mod" I'm sorry to everyone who asked me for permission to use my stuff by PMs, I hadn't been online for a long time. Anyone can use it without permission
29.02.12 04:01:12 am
Up
Corvallis5
User
Offline Off
YES! HUDA'S BACK TO MAKING THINGS!!!

nice job!
STRANDED III STRANDED III STRANDED III STRANDED III STRANDED III STRANDED III STRANDED III STRANDED III STRANDED III STRANDED III STRANDED III STRANDED III STRANDED III STRANDED III STRANDED III STRANDED III STRANDED III STRANDED III STRANDED III STR
29.02.12 04:02:36 am
Up
apacherev
User
Offline Off
Wow nice idea! Mind if I make a mini-piano for cs2d?
29.02.12 05:08:02 am
Up
HudaJan
Super User
Offline Off
user apacherev 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
New version of "Kidnap mod" I'm sorry to everyone who asked me for permission to use my stuff by PMs, I hadn't been online for a long time. Anyone can use it without permission
29.02.12 12:35:55 pm
Up
Hurri04
Super User
Offline Off
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
29.02.12 04:14:08 pm
Up
HudaJan
Super User
Offline Off
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 )
New version of "Kidnap mod" I'm sorry to everyone who asked me for permission to use my stuff by PMs, I hadn't been online for a long time. Anyone can use it without permission
29.02.12 04:54:16 pm
Up
Hurri04
Super User
Offline Off
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
29.02.12 05:19:10 pm
Up
Stranded_Guy2910
User
Offline Off
Man this is the most complicate think I ever saw in stranded. Did you edit the source code of the game?
29.02.12 05:20:32 pm
Up
dENd
User
Offline Off
can you add after clicking a note it turns black or purple to let you know you hit it
Zzz
29.02.12 05:30:52 pm
Up
Stranded_Guy2910
User
Offline Off
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.
29.02.12 06:00:16 pm
Up
Hurri04
Super User
Offline Off
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.
29.02.12 08:47:49 pm
Up
Vectarrio
User
Offline Off
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
29.02.12 09:28:38 pm
Up
Big Bang Mafia
User
Offline Off
when can we download this?(demo maybe )
looks awsome
I'm back.
29.02.12 10:14:59 pm
Up
HudaJan
Super User
Offline Off
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
New version of "Kidnap mod" I'm sorry to everyone who asked me for permission to use my stuff by PMs, I hadn't been online for a long time. Anyone can use it without permission
05.03.12 04:13:00 am
Up
Mc Leaf
Super User
Offline Off
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...)
user DC has written:
I'm actually working on Stranded III now with highest priority even though I said that I planned to release the next CC update first.
05.03.12 05:14:42 pm
Up
Stranded_Guy2910
User
Offline Off
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.
05.03.12 06:38:11 pm
Up
Mc Leaf
Super User
Offline Off
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)
user DC has written:
I'm actually working on Stranded III now with highest priority even though I said that I planned to release the next CC update first.
06.03.12 12:04:47 am
Up
Stranded_Guy2910
User
Offline Off
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.
06.03.12 12:38:26 am
Up
HudaJan
Super User
Offline Off
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
New version of "Kidnap mod" I'm sorry to everyone who asked me for permission to use my stuff by PMs, I hadn't been online for a long time. Anyone can use it without permission
06.03.12 12:57:09 am
Up
Hurri04
Super User
Offline Off
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