Coder Social home page Coder Social logo

lenartbezek / lenchscriptermod Goto Github PK

View Code? Open in Web Editor NEW
17.0 17.0 6.0 3.56 MB

Besiege Python scripting mod

Home Page: http://forum.spiderlinggames.co.uk/index.php?threads/lench-scripter-mod-besiege-v0-4.3003/

License: MIT License

C# 100.00%
besiege mod

lenchscriptermod's People

Contributors

lenartbezek avatar yut23 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

lenchscriptermod's Issues

Embedding "Update()" in "Class"

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

Imported modules are not reloaded

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.

How to control my mod

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?

Adding Inertia Tensor

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.

Embedding scripts in .bsg files

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.