#cake.sun (v1.0) - A custom and simple language to filter your upgrades!

1 messages · Page 1 of 1 (latest)

timid sonnet
#

I am proud to announce that cake.sun is now public!
To keep this post short and not repeat myself, all info can be found here (please give me a star btw 🙂 ) https://github.com/CakeEaterGames/sunscript

Sunscript is a custom language made specifically for Hackmud that will allow you to write complex filtering logic with very short and simple code. No more chained else if statements! Only Short Upgrade Notation. Only SUN! ☀️

I encourage you to NOT use #fs.cake.sun badmud but to download the compiled code! goodmud

If you just want to play around, here's a web based interactive language demo https://cakeeatergames.github.io/sunscript/

I have finished my first Sunscript file that picks the price for all my upgrades and decides what should be culled / sold / kept https://github.com/CakeEaterGames/sunscript/blob/master/samples/megafilter.ss

A user @solemn pier helped me a lot when testing the language and together we found most bugs. They said that they have successfully integrated the language into their workflow. I encourage you to do the same!

If you have any questions or suggestions, let me know.
Have fun, mud! hackmud

timid sonnet
brittle saffron
#

Cake refused to pay up for me finding a bug in his script, which included using an uninit user. When confronted, he blocked me.

#

So yeah, to anyone interested in future deals, not very trustworth

light bridge
#

suggestion: add a shorter way to remove a property:
instead of -> prop=undefined
something like -> !prop

light bridge
#

bug/edge case: _best and _worst cause an error when an upgrade does not have a (string) name property

TypeError: Cannot read property 'replace' of undefined
    at shortUpName (cake.sun:665:17)
    at compareQuality (cake.sun:803:14)
    at Array.sort (<anonymous>)
    at filterBest (cake.sun:815:9)
    at Object.filter (cake.sun:643:19)
    at Object.sun (<snip>)
    at SC$qst$test (<snip>)
    at <anonymous>:???
timid sonnet
timid sonnet
light bridge
light bridge
timid sonnet
timid sonnet
#

twice... by accident

light bridge
timid sonnet
#

Happy noises :з

timid sonnet
#

I hope

timid sonnet
#

Just Optimized Sunscript to run 60% faster. Not yet in the game but will be soon