Code Monkey home page Code Monkey logo

Comments (6)

ohlidalp avatar ohlidalp commented on June 15, 2024 2

I see the problem: engine->RegisterObjectType("RoRnet::StreamRegister" ... could never have worked, it's supposed to be:

engine->SetDefaultNamespace("RoRnet");
engine->RegisterObjectType("StreamRegister" ...

from ror-server.

tritonas00 avatar tritonas00 commented on June 15, 2024 1

it works!

from ror-server.

tritonas00 avatar tritonas00 commented on June 15, 2024 1

you need to define resourses dir also

./rorserver -lan -port 12000 -resource-dir ./resources/ -script-file ./resources/scripts/Main.as -fg 

from ror-server.

tritonas00 avatar tritonas00 commented on June 15, 2024

Still cant load:

22-01-2019 13:58:22|t01| INFO| ScriptEngine: scripts/Main.as (0, 0): Error = Failed to open script file '/scripts/Main.as'
22-01-2019 13:58:22|t01|ERROR| ScriptEngine: Unknown error while adding a new section from file.

scripts are in bin/resources/scripts/ and tutorial-config.cfg contains scriptname = scripts/Main.as

from ror-server.

ulteq avatar ulteq commented on June 15, 2024

engine->SetDefaultNamespace("RoRnet"); ... 🤦‍♂️

from ror-server.

CuriousMike56 avatar CuriousMike56 commented on June 15, 2024

I still get the same error as above.

06-02-2019 21:13:26|t01|ERROR|ScriptEngine: Unknown error while adding a new section from file.

from ror-server.

Related Issues (20)

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.