Squirrel

The programming language
Welcome to Squirrel Sign in | Join | Help
in Search

Multiple script "enviroments"?

Last post 07-25-2008, 5:14 PM by Sudi. 1 replies.
Sort Posts: Previous Next
  •  07-25-2008, 7:27 AM 2651

    Multiple script "enviroments"?

    Hello,

    I'm making a small engine for a game I'm making using C++, and I figured I'd implement scripting so that the same engine can easily be used for many games. Now, how I wanted this to work was having multiple game "objects" in the game world, all running their own script file each "step"(Frame) and remember variables set at previous runs(previous frames). Having looked at Lua, GameMonkey and Squirrel, I have seen that this isn't quite as simple as I would have wanted it to be. I'm still new to implementing scripting languages, so I have some problems figuring if it will even be possible.

    So heres my questions:
    -Is the above possible?
    If so, could you point me to a small example or to what/where in the manual I should look?

    -I'm planning to have multiplayer as a main feature of the engine, and as I have understood, I would need to keep the objects in sync over all game instances, so that also means I would have to sync variables set for each object. Is there a way to know when the script has set/updated a value inside the script? Like if they call "number=10;", I will be able to know that in my C++ engine, and update that value over the network.

    -Lastly, I have looked a bit at SquirrelPlus, but it doesn't seems to have much of a reference or documentation to how it works other than the examples. have i missed the documentation, or does it simply not exist?

    Thanks in advance :)
  •  07-25-2008, 5:14 PM 2652 in reply to 2651

    Re: Multiple script "enviroments"?

    SqPlus is really what u want to use when using a easy binding. i tried without it and ended with writing somehing like sqplus and then i switched to use it. works really great so go for it. but unfortunatly there is no more documentation than the stuff which is in the example apps.

    all the other questions u ask just depend on your way of integrating the scripting maschine.
View as RSS news feed in XML
Powered by Community Server, by Telligent Systems