CodingDaniel1 / BSSDK

This is the official Banana Shooter SDK for creating custom models.
MIT License
2 stars 3 forks source link

Regarding unity scripts #3

Open honzamoser opened 1 year ago

honzamoser commented 1 year ago

After reading a few posts on asset bundles, it seems that Unity cannot bundle scripts into asset bundles, and the only way to include scripts would be to compile the scripts at runtime.

What could be done is to export every script as a text file, and then in the game compile the scripts before loading the map, which could be tricky, but could work.

Alternatively, you could look into getting a language like Lua into the mix for custom behaviours, which could be even harder, but it supports interpretation so you would not have to compile.

Either way, I am interested in talking about this topic because having scripting ability in BS would be super cool and fun.

Ikethepro18 commented 1 year ago

I'd like to point out that dedicated servers already have support for LUA scripting. I can't remember the exacts but I believe there is a demo in the files for the dedicated server that adds chat commands

honzamoser commented 1 year ago

Ah I wasn't aware of that. But if it is implemented in the server then I believe it wouldn't be that hard to implement into the maps. Also another point is that letting maps use compiled .net code is way too dangerous, since it pretty much allows the author to do anything, while lua has to have a connector that limits it a lot, but is way safer.

I personally definitely vouch for lua support in the base game, since it would allow game modes like, death run and what not. Definitely adds a whole new dimension to the game. Just my opinion tho, feel free to disagree.

PancakeWithPotato commented 1 year ago

If y'all pay me like $100 I will add lua to the game, just saying 🤷

honzamoser commented 1 year ago

I mean, no one asked anyone to add Lua to the game, especially not for money. I was just hoping to get the attention of the lead dev for his opinion, not a cheat dev offering money to add lua to the game.