Code Monkey home page Code Monkey logo

Comments (6)

barneygale avatar barneygale commented on July 28, 2024 1

Sorry for the delay. Yes, this is possible! You want to store the online-mode profile you want use on your downstream factory, e.g.:

@defer.inlineCallbacks
def run():
    factory = MyDownstreamFactory()
    factory.upstream_profile = yield Profile.from_file(display_name="mynickname")
    factory.listen("127.0.0.1", 25565)

Then all you need to do is implement MyBridge.make_profile() to return the profile object:

    def make_profile(self):
        return self.downstream_factory.upstream_profile

from quarry.

CarbonNeuron avatar CarbonNeuron commented on July 28, 2024

I'm having trouble implementing this into the example provided, proxy_hide_chat

it just exits the program without any error message. Any help would be appreciated.

from quarry.

barneygale avatar barneygale commented on July 28, 2024

You're calling reactor.run()?

from quarry.

thelennylord avatar thelennylord commented on July 28, 2024

I'm experiencing the same issue here. After reaching factory.upstream_profile = yield Profile.from_file(display_name="mynickname"), the program exits without any errors. Removing the line makes the program work as intended but in offline mode. This doesn't seem to be exclusive to the proxy_hide_chat example, as it's occurring with the skeleton proxy too.

from quarry.

thelennylord avatar thelennylord commented on July 28, 2024

Whoops! I was calling reactor.run() inside the run function. After calling it in the main function, everything started to work normally.

OP must have done the same mistake as me.

from quarry.

CarbonNeuron avatar CarbonNeuron commented on July 28, 2024

from quarry.

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.