lenartbezek / lenchscriptermod Goto Github PK
View Code? Open in Web Editor NEWBesiege Python scripting mod
Home Page: http://forum.spiderlinggames.co.uk/index.php?threads/lench-scripter-mod-besiege-v0-4.3003/
License: MIT License
Besiege Python scripting mod
Home Page: http://forum.spiderlinggames.co.uk/index.php?threads/lench-scripter-mod-besiege-v0-4.3003/
License: MIT License
Embedding "Update()" in "Class" ,like script derives from monobehaviour in c# script
Example :
in c# script:
public class test : monobehaviour
{
void Update() //Update is called every frame
{
do();
}
void do(){}
}
in scripter mod:
class test:
def do():
pass
example = test()
def Update():
example.do()
I hope:
class test:
def do():
pass
def Update(): # Update is called every frame
do()
example = test()
class automatically derives from MonoBehaviour,can call Update() and FixedUpdate() in class.
I think it makes the code easier to read.This is necessary in a complex script
http://lench4991.github.io/LenchScripterMod/files/
returns a 404 page, and thus the mod cannot download the dependencies needed to install this awesome mod
pls i need them for SCIENCE!
Modules present in the scripts folder that are imported by an script file are not being reloaded between executions. This is expected behavior from IronPython since it imports modules only once per session.
One workaround is to add a reload(modulename)
right after the import, but it would be more user-friendly to automatically reload all modules when building the python environment.
Hello, can you add C# script support for LenchScripterMod? I think this project can help do it: https://github.com/oleg-shilo/cs-script
I write a MOD for the SuspensionBlock.
MOD add a slider to SuspensionBlock,Now I want control slider value use ScriptMod.
What should I do?
It would be nice to expose the inertia of single blocks and also the whole machine in the API.
Writing control algorithms for flying machines would be so much easier.
The Script source button also influences which file will be overwritten with the currently loaded code upon saving the machine.
If .py is selected as source, saving the machine will overwrite the .py file in the Scripts folder, instead of updating the .bsg file with new code
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.