Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Scripting #22

Open
wheybags opened this issue Feb 23, 2014 · 6 comments · May be fixed by #466
Open

Scripting #22

wheybags opened this issue Feb 23, 2014 · 6 comments · May be fixed by #466
Labels
Milestone

Comments

@wheybags
Copy link
Owner

No description provided.

@wheybags wheybags added this to the future milestone Feb 23, 2014
@konopka90
Copy link
Contributor

We got working python so I think issue can be closed.

wheybags pushed a commit that referenced this issue Oct 16, 2017
wheybags pushed a commit that referenced this issue Oct 16, 2017
@tilkinsc
Copy link

What will Python be used for? I was hoping for mods to be lua based.

@wheybags
Copy link
Owner Author

Yup, current plan is lua, but we'll see what is best when the point comes

@wheybags wheybags changed the title Python scripting Scripting Dec 22, 2017
@tilkinsc
Copy link

Lua has the ability to be flexible in that you can sandbox an environment very very easily especially inside itself without any C code. I'm a Lua person and I have the know how to do such things.

@blockspacer
Copy link

cling based C++ as scripting language / hot code reload
Why? Able to run C++ script in runtime or compile it for max speed ( as in example https://github.com/derofim/cling-cmake )
Also: May be used to improve modules compile time

HOT code reload
possible approaches:

store app state
fix cling undo for files
https://root-forum.cern.ch/t/loading-unloading-class-as-interpreted-macro-in-cling-multiple-times/32976/2

execute cling code to change callbacks & variables
nested cling::Interpreter with multiple cling::MetaProcessor
IDK how to do it, but you can create child cling::Interpreter

@vieiraa vieiraa linked a pull request Feb 19, 2020 that will close this issue
@wheybags
Copy link
Owner Author

Copy discussion from PR:

there are some issues to work out with whatever scripting language we use. The primary use case for it will be scripting in mods, and mods scripts will need to be deterministic just like the rest of the game code, in order for multiplayer to work. This means they will need to use our FixedPoint class for maths. Given that, I'm not sure if we shoudl try to hack FixedPoint into an existing scriping language, or if we should just make our own simplistic langauge. In particular, since FixedPoints can be a bit slow, it would be nice to use a language that distinguished between integer and real number types, so people could only use FixedPoint operations when they actually needed them.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants