Edit Box(multiline) and preset string

For general discussion related FlowStone
willzz32
Posts: 20
Joined: Thu Jul 29, 2010 7:59 pm

Re: Edit Box(multiline) and preset string

Post by willzz32 »

Hi Nubeat7

Here is a simple schematic which shows the issue i could do with getting around. Made in FS 3.02 as 3.03 has big cpu issues for me.

Many Thanks
Attachments
Edit box Multi line.fsm
(7.21 KiB) Downloaded 1012 times
User avatar
Nubeat7
Posts: 1347
Joined: Sat Apr 14, 2012 9:59 am
Location: Vienna
Contact:

Re: Edit Box(multiline) and preset string

Post by Nubeat7 »

hmm from where you have the text inside the box?
when i write a new text in the editbox it is working fine..
Attachments
Edit box Multi line.fsm
(7.11 KiB) Downloaded 1036 times
willzz32
Posts: 20
Joined: Thu Jul 29, 2010 7:59 pm

Re: Edit Box(multiline) and preset string

Post by willzz32 »

Hi

It all works fine until you save the text and reload it and then try to edit it. When you edit the loaded text it all jumps on to one line but only when editing. Once you have edited it reverts to how it was.

Is it the same your end?
User avatar
Nubeat7
Posts: 1347
Joined: Sat Apr 14, 2012 9:59 am
Location: Vienna
Contact:

Re: Edit Box(multiline) and preset string

Post by Nubeat7 »

hmm thats interesting, when saving the program carrige returns are deleted from the textfile but not when saved in presetmanager, why it is like this? i don`t know, maybe it is a bug? so the ruby code joins just at the endof the file.... you tried testers version think it should work...
willzz32
Posts: 20
Joined: Thu Jul 29, 2010 7:59 pm

Re: Edit Box(multiline) and preset string

Post by willzz32 »

Hi Nubeat7

Thanks for the help and looking in to it ,I'll relook at testers now .

As i didn't work with the string side that much it was a bit daunting but i' work through it .

Can i ask if your are using FS3.03 or have any issues regarding the cpu usage. Seems any schematic i export from 3.03 uses 25% cpu even if its only a single button. I'm exporting exe files and not VST'S. Just be interesting to find out if any one else is having the same. Support are aware of it but i have not heard much back as of yet.

Cheers
User avatar
Nubeat7
Posts: 1347
Joined: Sat Apr 14, 2012 9:59 am
Location: Vienna
Contact:

Re: Edit Box(multiline) and preset string

Post by Nubeat7 »

yes i`m working on fs 3.03 but no cpu issues. but i`m only exporting vsts...

i tried testers version and it works...
Attachments
Edit box Multi line testerversion.fsm
(7.02 KiB) Downloaded 990 times
tester
Posts: 1786
Joined: Wed Jan 18, 2012 10:52 pm
Location: Poland, internet

Re: Edit Box(multiline) and preset string

Post by tester »

Guys - don't scare me with CPU issues in 3.03 version... :-) I started to update my projects in FS3.03, which I export as both - exe and VST. What CPU issues? Only ruby related or something else?
Need to take a break? I have something right for you.
Feel free to donate. Thank you for your contribution.
willzz32
Posts: 20
Joined: Thu Jul 29, 2010 7:59 pm

Re: Edit Box(multiline) and preset string

Post by willzz32 »

It may be only me but i have had nothing but woes regarding the cpu issues on 3.03.

I'm running win7 64bit i5 750 and any exe file from FS gives 25% cpu ,even when its not doing anything.
I tried 3.02 and its better , I also tried installing 3.03 and 3.02 in different folders which cures the cpu issue but as i found the fs 3.03 then uses the ruby from 3.02 , pops up errors when trying to load the exe.
I have no experience of ruby but from what i can see this seems to be the problem for me in 3.03.

As i say it may only be my machine but bit of a shame as i would like to start test the dmx module but worries me with this cpu usage.

Ps . Thanks for the help nubeat7 much appreciated .
User avatar
Nubeat7
Posts: 1347
Joined: Sat Apr 14, 2012 9:59 am
Location: Vienna
Contact:

Re: Edit Box(multiline) and preset string

Post by Nubeat7 »

Nubeat7 wrote:hmm thats interesting, when saving the program carrige returns are deleted from the textfile but not when saved in presetmanager, why it is like this? i don`t know, ...

ok after a short research, it looks like that when you open a textfile per default \r\n is converted to \n, so in the old version the \r was still in the textfile and after loading it was deleted , which did the troubles...

i changed the code a bit and now also the ruby version should work correct
Attachments
split_join_comma.fsm
(7.14 KiB) Downloaded 1037 times
willzz32
Posts: 20
Joined: Thu Jul 29, 2010 7:59 pm

Re: Edit Box(multiline) and preset string

Post by willzz32 »

Nubeat7

Thanks Fantastic!!! Works like a treat. Thanks to you and tester!!!
Post Reply