Post subject: Links to Common Lua Scripts
CoolHandMike
He/Him
Editor, Reviewer, Experienced player (635)
Joined: 3/9/2019
Posts: 580
Hello, I am creating a form in Bizhawk to help non programmers use Lua scripts. Specifically I am using a form of Moustache to create files that contain placeholders for variable values. These placeholders are found that then a list is generated that a user can then input values into. Once the values are input, the user can generate the output file. Process should be: 1a) Generate the Lua Moustache template file (programmer/scripter task) 1b) Open Template File 2) Input Values Into Placeholders 3) Generate and Save 4) Load in LuaConsole --------- However in order for this to be a success there needs to be USEFUL, GENERIC-USE Lua scripts! So I wish to ask the community what are great examples that I can use. I have a couple ideas of what might be useful scripts. 1) 2D Distance Between Two Objects 2) 3D Distances Between Two Objects 3) 2D and 3D Position of Character 4) Nice Canvas Display of Some Values 5) Some Very Common Random Generators Algorithms with a Seed as the Placeholder 6) Sure others with more experience would have good ideas. Tonight I will create some code to create some functionality to convert a RamWatch file a Lua folder to display RamWatch values. I have no canvas code ATM so it will be nasty Lua for now. So....Help with Lua Examples? Example WIP ATM https://puu.sh/F2IYJ/67ffe72580.png
discord: CoolHandMike#0352
Editor, Player (163)
Joined: 4/7/2015
Posts: 329
Location: Porto Alegre, RS, Brazil
Amaraticando made a generic resourceful script for Lsnes, perhaps it may inspire you making a BizHawk version.
Games are basically math with a visual representation of this math, that's why I make the scripts, to re-see games as math. My things: YouTube, GitHub, Pastebin, Twitter
CoolHandMike
He/Him
Editor, Reviewer, Experienced player (635)
Joined: 3/9/2019
Posts: 580
Brunovalads, this script seems very interesting however I think it's so generic that once a conversion to bizhawk is complete it would be pointless to use this tool. Once it is converted there would be no need for placeholders because there would be nothing to replace. At least that is my take on what a conversion would look like. Any other useful scripts you have come across? ---- Edit: And also some of the functions in that generic script would be quite useful even as tiny pieces in a script collection. Also Zinfidel mentioned about ScriptHawk which is a collection of scripts which would help.
discord: CoolHandMike#0352