A wrapper of the popular SA-MP streamer plugin for SampSharp.
ikkentim / sampsharp-streamer Goto Github PK
View Code? Open in Web Editor NEWA wrapper of the popular SA-MP streamer plugin for SampSharp.
License: Apache License 2.0
A wrapper of the popular SA-MP streamer plugin for SampSharp.
License: Apache License 2.0
...is redundant since PlayerEditEventArgs.Response is the used property and PlayerEditEventArgs.EditObjectResponse is always EditObjectResponse.Cancel
Changes in streamer 2.9.4/2.9.5:
native RemoveDynamicObjectMaterial(STREAMER_TAG_OBJECT:objectid, materialindex);
native RemoveDynamicObjectMaterialText(STREAMER_TAG_OBJECT:objectid, materialindex);
forward Streamer_OnItemStreamIn(type, STREAMER_ALL_TAGS:id, forplayerid); //forplayerid added
forward Streamer_OnItemStreamOut(type, STREAMER_ALL_TAGS:id, forplayerid); //forplayerid added
native Streamer_RemoveIntData(type, STREAMER_ALL_TAGS:id, data);
native Streamer_HasIntData(type, STREAMER_ALL_TAGS:id, data);
native Streamer_HasArrayData(type, STREAMER_ALL_TAGS:id, data);
Hi,
I believe the default value for draw distance should be changed from 0f to something higher, as whenever I set a material on the object, it seems to render out at a way lower distance than before.
Thank you.
Workaround:
public new void SetMaterialText(int materialid, string text, ObjectMaterialSize materialSize = ObjectMaterialSize.X256X128, string fontface = "Arial", int fontsize = 24, bool bold = true, Color fontcolor = default(Color), Color backcolor = default(Color), ObjectMaterialTextAlign textalignment = ObjectMaterialTextAlign.Center)
{
StreamerNative.SetDynamicObjectMaterialText(this.Id, materialid, text, materialSize, fontface, fontsize, bold, fontcolor.ToInteger(ColorFormat.ARGB), backcolor.ToInteger(ColorFormat.ARGB), ObjectMaterialTextAlign.Center);
}
Initialize:
PickedUp += CPickup_PickedUp;
Callbacks:
// heritable class : DynamicPickup
private void CPickup_PickedUp(object sender, PlayerEventArgs e)
{
// doesn't work
}
public override void OnPickedUp(PlayerEventArgs e)
{
// doen't work
}
Pickup types tested: 1, 21, 23
*** Streamer Plugin: Streamer_SetFloatData: Invalid data specified
*** Streamer Plugin: Streamer_GetFloatData: Invalid data specified
Also, after i edit a DynamicObject as a Player, the position coordinates are invalid.
Error appears in log
[SampSharp] ERROR: Parameters of callback OnPlayerLeaveDynamicRaceCP does not match signature (called: 1, signature: 2)
... seems to ignore the X coordinate
public virtual void Edit(GtaPlayer player)
{
AssertNotDisposed();
Native.EditPlayerObject(player.Id, Id);
}
should use streamer's EditObject.
I don't know if theres another way to update streamer world for a player on 0.10.0, if someone knows please tell me, btw, I keep it working on 0.9.0 (I reverted update).
[SampSharp] ERROR: Parameters of callback OnPlayerLeaveDynamicRaceCP does not match description (called: 1, description: 2).
Only said once, callback is still being called though.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.