RealTimePPDisplayer icon indicating copy to clipboard operation
RealTimePPDisplayer copied to clipboard

Allow returning a string as expression

Open Adrriii opened this issue 5 years ago • 258 comments

Basically the idea is to print text conditionnaly, for example : ${if(n300+n200+n100+n50+nmiss,'X','')}

Prints X when still having full marvelous and nothing when you hit something else. If there's a workaround for this i'm also all ears

Adrriii avatar Dec 30 '20 16:12 Adrriii

My current workaround involves creating a custom font and using numbers to display the desired string, and 0 for an empty string.

https://i.imgur.com/PuNy9ZD.png

Adrriii avatar Dec 30 '20 16:12 Adrriii

If you only need string output like image under it, I had made it. But I am not a developer of Sync. I will contact developers to add this. image

Someone999 avatar Mar 18 '21 13:03 Someone999

If you only need string output like image under it, I had made it. But I am not a developer of Sync. I will contact developers to add this. image

Yes please

imsuck avatar Aug 17 '21 01:08 imsuck

I regret to tell you, this project has not been updated for a long time. I don't know will it update. Although my plugin has this function, but my plugin can not support the complex function express like sin(sin(x)+1) The +1 in the express can not be parse correctly.

Someone999 avatar Aug 17 '21 02:08 Someone999

If you need, I will update my project at osuTools My plugin named InfoReader will be packed with osuTools in a archive.

Someone999 avatar Aug 17 '21 02:08 Someone999

I regret to tell you, this project has not been updated for a long time. I don't know will it update. Although my plugin has this function, but my plugin can not support the complex function express like sin(sin(x)+1) The +1 in the express can not be parse correctly.

Alright I just want to show my score grades but I guess I'll have to wait

imsuck avatar Aug 17 '21 02:08 imsuck

I tried to add the author of this plugin as friend in the past. But he refused this request.

Someone999 avatar Aug 17 '21 02:08 Someone999

And some issues I commited for so long time ago have not been handled by anyone.

Someone999 avatar Aug 17 '21 02:08 Someone999

It seems like this project has been abandoned, or they are really busy in this time.

Someone999 avatar Aug 17 '21 03:08 Someone999

By the way, I think the variables they provided are too few.

Someone999 avatar Aug 17 '21 03:08 Someone999

image I provided socre grade as a variable.

Someone999 avatar Aug 17 '21 03:08 Someone999

image I provided socre grade as a variable.

nice

imsuck avatar Aug 17 '21 03:08 imsuck

I tried this SS:${if(n300+1>n300+n100+n50+nmiss,1,0)@0} S:${if((n300/(n300+n100+n50+nmiss)>0.9),if(n50/(n300+n100+n50+nmiss)<0.01,if(nmiss<1,1,0),0),0)@0} A:${if(n300/(n300+n100+n50+nmiss)>0.8,if(nmiss<1,1,if(n300/(n300+n100+n50+nmiss)>0.9,1,0)),0)@0} B:${if(n300/(n300+n100+n50+nmiss)>0.7,if(nmiss<1,1,if(n300/(n300+n100+n50+nmiss)>0.8,1,0)),0)@0} C:${if(n300/(n300+n100+n50+nmiss)>0.6,1,0)@0} D:${if(n300/(n300+n100+n50+nmiss)<0.6,1,0)@0}

imsuck avatar Aug 17 '21 03:08 imsuck

I use so many variables, so I provide the variables I used.

Someone999 avatar Aug 17 '21 03:08 Someone999

I use so many variables, so I provide the variables I used.

Someone999 avatar Aug 17 '21 03:08 Someone999

image I provided socre grade as a variable.

can i add this to my Sync! and how to do it?

imsuck avatar Aug 17 '21 03:08 imsuck

At my plugin, this is only thing you need to do. image

Someone999 avatar Aug 17 '21 03:08 Someone999

At my plugin, this is only thing you need to do. image

how do i download it?

imsuck avatar Aug 17 '21 03:08 imsuck

Well, wait for me update my project first.

Someone999 avatar Aug 17 '21 03:08 Someone999

Well, wait for me update my project first.

Alright, thank you :)

imsuck avatar Aug 17 '21 03:08 imsuck

image This request has not been handled yet. So, I suspect that they are no longer attention at this project.

Someone999 avatar Aug 17 '21 03:08 Someone999

InfoReader.zip

Someone999 avatar Aug 17 '21 03:08 Someone999

Decompress this file and copy the folder named InfoReader to Plugins

Someone999 avatar Aug 17 '21 03:08 Someone999

Decompress this file and copy the folder named InfoReader to Plugins

Thank you, have a good day!

imsuck avatar Aug 17 '21 03:08 imsuck

np

Someone999 avatar Aug 17 '21 03:08 Someone999

You can get help by type "getinfo help"

Someone999 avatar Aug 17 '21 03:08 Someone999

Get advanced help by type "getinfo help command" If you want to get help of command "var", type "getinfo help var"

Someone999 avatar Aug 17 '21 03:08 Someone999

Notice: If you didn't install InGameOverlay, do not use getinfo reinject.

Someone999 avatar Aug 17 '21 03:08 Someone999

It returned [RTPP:Expression]No variable found (return zero). Variable name: CurrentRank D:

imsuck avatar Aug 17 '21 03:08 imsuck

you need to use "getinfo config"

Someone999 avatar Aug 17 '21 03:08 Someone999