Giter Club home page Giter Club logo

Comments (18)

samp-incognito avatar samp-incognito commented on August 26, 2024

It works for me. I just tested OnPlayerEditDynamicObject in both a gamemode and a filterscript. Have you found a way to reproduce it?

from samp-streamer-plugin.

Pottus avatar Pottus commented on August 26, 2024

Well it doesn't work on Texture Studio for some reason, I will try it again I guess and let you know thanks.

from samp-streamer-plugin.

ynnniV avatar ynnniV commented on August 26, 2024

News Pottus? I've problem too :)
I've problem only on linux :)

from samp-streamer-plugin.

Zeex avatar Zeex commented on August 26, 2024

@VinnyPLV Can you rebuild streamer with current sampgdk from git master and see if that fixes the problem?

from samp-streamer-plugin.

Zeex avatar Zeex commented on August 26, 2024

I created a test branch at https://github.com/Zeex/samp-streamer-plugin/tree/sampgdk-test to simplify the buid process. All you need to do is:

  1. Go to the link above and download the .zip file
  2. Extract it somewhere
  3. Follow streamer build instructions for Linux

from samp-streamer-plugin.

Zeex avatar Zeex commented on August 26, 2024

@samp-incognito Sorry, I messed it up again in 4.2, don't update to that version! I guess everyone would be better off if you disabled all that callback hooking crap like you did before because I'm starting to have a feeling that I'll never fix all the bugs. The include-based hooking would be far more reliable.

from samp-streamer-plugin.

 avatar commented on August 26, 2024

I hope this won't need :(

from samp-streamer-plugin.

Zeex avatar Zeex commented on August 26, 2024

OK, maybe I was a bit overly dramatic. I've committed a few fixes, callbacks should be all right now. If anybody wants to try it the test branch is still in my repo.

However there's still one problem: 4.2 is not backward-compatible with previous versions. If some other plugin uses an older version of sampgdk neither streamer nor the other plugin will have working callbacks. This is because amx_FindPublic() previously returned a fixed index of -10 if couldn't find the public, now the indices are dynamic and they start from -10000 and go down.

The new system is more reliable though, it doesn't require you to always call amx_FindPublic() before amx_Exec() as before, so index caching is possible now. But as I said it's not backwards compatible.

from samp-streamer-plugin.

samp-incognito avatar samp-incognito commented on August 26, 2024

Thanks for trying to fix this. I'll put 4.2.1 in for the next version to see if that resolves the issue.

from samp-streamer-plugin.

Pottus avatar Pottus commented on August 26, 2024

I would like to know if there is going to be a resolution on this soon thanks :)

from samp-streamer-plugin.

 avatar commented on August 26, 2024

I'll try to compile 2.7.4 with latest GDK, i hope it will work without errors.

For windows http://www.mfrserver.com/up/streamer.dll

from samp-streamer-plugin.

Pottus avatar Pottus commented on August 26, 2024

I will give it a shot today and let you know if there was any issues.

@edit - Still doesn't call OnPlayerEditDynamicObject() for me.

from samp-streamer-plugin.

Zeex avatar Zeex commented on August 26, 2024

As I said, if some plugin uses the old sampgdk callbacks are likely to be broken in both. It would help if you said what other plugins you're using or how to reproduce this.

from samp-streamer-plugin.

samp-incognito avatar samp-incognito commented on August 26, 2024

@Pottus: Are you using OnPlayerEditObject anywhere? If so, what value are you returning? I believe that if the return value of OnPlayerEditObject is anything other than 0 in a script, that callback will not be propagated to other scripts (similar to how certain callbacks like OnPlayerCommandText work). This might cause it to not get passed to sampgdk, which, in turn, would cause it to not get passed to the streamer plugin. Maybe that's your problem?

from samp-streamer-plugin.

Pottus avatar Pottus commented on August 26, 2024

Okay I figured out what the issue is now, it appears to fail when hooking that callback with y_hooks so it is a YSI issue it would seem. I did not test all the callbacks but I would think none work will work with y_hooks anymore thanks for your time.

from samp-streamer-plugin.

Dominik523 avatar Dominik523 commented on August 26, 2024

I have the same issue, OnPlayereEditDynamicObject doesn't get called in filterscript and I'm not using anything except y_ini. I've tried everything and it won't work.

from samp-streamer-plugin.

Pottus avatar Pottus commented on August 26, 2024

Your better off with a older version of the streamer I guess every since sampgdk was introduced it has caused more problems than what it is worth.

from samp-streamer-plugin.

Dominik523 avatar Dominik523 commented on August 26, 2024

Okay. I shall get some older version then. Thanks for your answer Pottus!

from samp-streamer-plugin.

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.