[Include] [INC]Einstein's Objectstreamer - 0.9 R3 (0.2X support) - 0.8.1 (0.2.2)
#1







Current Versions:
Lite 0.8 [0.2.2 | Timer]
Pro 0.8.1 [0.2.2 | Timer]

0.9 [0.2X | Timerless]




_________________________________________________

0.2.2 Version 0.8.1


Functions LITE:
Code:
CreateObjectToStream(modelid, Float:x, Float:y, Float:z, Float:rX, Float:rY, Float:rZ);
DestroyObjectToStream(streamobjectid);
GetCurrentPosObjectToStream(streamobjectid, &Float:x, &Float:y, &Float:z);
SetObjectPosToStream(streamobjectid, Float:x, Float:y, Float:z);
SetObjectRotToStream(streamobjectid, Float:rX, Float:rY, Float:rZ);
StreamObject_OnGameModeInit();
StreamObject_OnGameModeExit();
StreamObject_OnPlayerDisconnect(playerid);
Functions PRO:
Code:
CreateObjectToStream(modelid, Float:x, Float:y, Float:z, Float:rX, Float:rY, Float:rZ);
CreatePlayerObjectToStream(playerid ,modelid, Float:x, Float:y, Float:z, Float:rX, Float:rY, Float:rZ);
DestroyObjectToStream(streamobjectid);
DestroyPlayerObjectToStream(playerid, streamobjectid);
MoveObjectToStream(streamobjectid, Float:Movex, Float:Movey, Float:Movez, Float:Speed); //works with PlayerObject, too
GetBasePosObjectToStream(streamobjectid, &Float:x, &Float:y, &Float:z); //works with PlayerObject, too
GetMovePosObjectToStream(stramobjectid, &Float:x, &Float:y, &Float:z); //works with PlayerObject, too
GetCurrentPosObjectToStream(streamobjectid, &Float:x, &Float:y, &Float:z); //works with PlayerObject, too
GetCurrentRotObjectToStream(streamobjectid, &Float:Rx, &Float:Ry, &Float:Rz); //works with PlayerObject, too
SetObjectPosToStream(streamobjectid, Float:x, Float:y, Float:z); //works with PlayerObject, too
SetObjectRotToStream(streamobjectid, Float:rX, Float:rY, Float:rZ); //works with PlayerObject, too
SetObjectViewDistanceToStream(streamobjectid, Viewdistance); //works with PlayerObject, too
HavePlayerObjectToStream(playerid,streamobjectid); //works with PlayerObject, too
HavePlayerAnyObjectToStream(playerid); //works with PlayerObject, too
HaveObjectAnyPlayerToStream(streamobjectid); //works with PlayerObject, too
StreamObject_OnGameModeInit();
StreamObject_OnGameModeExit();
StreamObject_OnPlayerDisconnect(playerid);
How to install:
Put on OnGameModeInit(): StreamObject_OnGameModeInit();
Put on OnGameModeExit(): StreamObject_OnGameModeExit();
Put on OnPlayerDisconnect(playerid): StreamObject_OnPlayerDisconnect(playerid);

The Streamer release under following License (0.8 Lite and 0.8.1 Pro are the last Versions under this License):


Download
LITE
Search at the uploadservice of delъx-host because the name is banned here and i don't support samp anymore...
PRO
Search at the uploadservice of delъx-host because the name is banned here and i don't support samp anymore...

Converter
http://gtamap...com/

Docu
The docu is in the Package

Changelog:
Pro Streamer: 0.8.0 > 0.8.1
  • Added a define to change Max Streamed Objects at the same time
  • Fixed a bug, that moved Objects weren't sync
_________________________________________________
0.2X Version 0.9
The Version 0.9 of delux Streamer / Einstein's Streamer is timerless. It works with the new OnPlayerUpdate function.

Functions:
Code:
CreateObjectToStream(modelid, Float:x, Float:y, Float:z, Float:rX, Float:rY, Float:rZ);
CreatePlayerObjectToStream(playerid ,modelid, Float:x, Float:y, Float:z, Float:rX, Float:rY, Float:rZ);
DestroyObjectToStream(streamobjectid);
DestroyPlayerObjectToStream(playerid, streamobjectid);
MoveObjectToStream(streamobjectid, Float:Movex, Float:Movey, Float:Movez, Float:Speed);
GetBasePosObjectToStream(streamobjectid, &Float:x, &Float:y, &Float:z);
GetMovePosObjectToStream(stramobjectid, &Float:x, &Float:y, &Float:z);
GetCurrentPosObjectToStream(streamobjectid, &Float:x, &Float:y, &Float:z);
GetCurrentRotObjectToStream(streamobjectid, &Float:Rx, &Float:Ry, &Float:Rz);
SetObjectPosToStream(streamobjectid, Float:x, Float:y, Float:z);
SetObjectRotToStream(streamobjectid, Float:rX, Float:rY, Float:rZ);
SetGloabalViewDistanceToStream(Viewdistance);
SetObjectViewDistanceToStream(streamobjectid, Viewdistance);
SetObjectViewDistanceToStreamEx(streamobjectidstart, streamobjectidend, Viewdistance);
HavePlayerObjectToStream(playerid,streamobjectid);
HavePlayerAnyObjectToStream(playerid);
HaveObjectAnyPlayerToStream(streamobjectid);
StreamObject_OnPlayerConnect(playerid);
StreamObject_OnPlayerUpdate(playerid);
How to use it?:
Put under OnPlayerConnect: StreamObject_OnPlayerConnect(playerid);
Put under OnPlayerupdate: StreamObject_OnPlayerUpdate(playerid)

Roadmap:
1.0.0
  • Complete rewrite the Streamer for more Performance
  • Objectfile Functions
Download:
Search at the uploadservice of delъx-host because the name is banned here and i don't support samp anymore...

Please report any bug in this thread. Thank you

Einstein =)
Reply
#2

YeAh Good Streamer!

PS.: I'm Meldariel :P
Reply
#3

You know me via ICQ, Einstein .

Good work.
Reply
#4

Heh, nice work
Reply
#5

Nice work till now. ^^ Time for Checkpoint and pickup addon. ^^

greez eXact.
Reply
#6

thx Einstein.....
ive been useing this for a week now...
I LOVE IT!!!
ive tested it with 5000 objects and works great with 6 people so far!!!
thank you!
Reply
#7

Quote:
Originally Posted by BIGBOY
thx Einstein.....
ive been useing this for a week now...
I LOVE IT!!!
ive tested it with 5000 objects and works great with 6 people so far!!!
thank you!
You have it from the German Forum,too?
In the next week or next two weeks i'm going to release the Pro Version with MoveObjectToStream and so on

Thanks for all Feedback =)
Reply
#8

hello , good work
is it possible to make the limit bigger?
Reply
#9

You mean the Objectlimit?
Reply
#10

Quote:
Originally Posted by Einstein
Quote:
Originally Posted by BIGBOY
thx Einstein.....
ive been useing this for a week now...
I LOVE IT!!!
ive tested it with 5000 objects and works great with 6 people so far!!!
thank you!
You have it from the German Forum,too?
In the next week or next two weeks i'm going to release the Pro Version with MoveObjectToStream and so on

Thanks for all Feedback =)
yea and humm
i think i saw you go in my server not sure if it was you so sorry i didnt get in lol
i had a server_log.txt bug so i was fixing it :P
but yea i got it from ferman forums to i translated it with ****** lmao
Reply
#11

SetTimer("ObjectCheck", 150, 1);

Are you crazy
Reply
#12

Quote:
Originally Posted by bzuco
SetTimer("ObjectCheck", 150, 1);

Are you crazy
Have you tryed the streamer yet?
well just try it i think its great.
i have vehicles on top of house objects in the drive way and the cars load on top of the object like if it was solid!
wowzers
lol
thx einstein
Reply
#13

SetTimer("ObjectCheck", 150, 1);

will lag server with 10 players or more, iґm using timers only 1000++ ms
Reply
#14

I have no Problems on my Server with 15 Players Фo"
Reply
#15

how that work i am beginner and have 350 objects my server crash if i do it in filterscript a friend say i need object streamer but how that work?
Reply
#16

Ok Einstain i will try it
Reply
#17

Quote:
Originally Posted by bzuco
SetTimer("ObjectCheck", 150, 1);

will lag server with 10 players or more, iґm using timers only 1000++ ms
yeah imo 150ms is too quick update time for a large amount.

my current object timer (y_objects) is 553ms. the odd number to prevent it firing at the same time as other timers.
Reply
#18

You download the Objectstreamer and put the Obj_Lite (or how i named it) in the folder pawno/includes.

Then you put on the top of your script #include <Obj_LITE>. Then you have to put StreamObject_OnGameModeInit(); on OnGameModeInit(), StreamObject_OnGameModeExit(); on OnGameModeExit() and StreamObject_OnPlayerDisconnect(playerid); on OnPlayerDisconnect(playerid, reason);

Then you can wrap your Objects to the Streamerformat (CreateObjectToStream) and streammore then 250 Objects
Reply
#19

Quote:
Originally Posted by kc
Quote:
Originally Posted by bzuco
SetTimer("ObjectCheck", 150, 1);

will lag server with 10 players or more, iґm using timers only 1000++ ms
yeah imo 150ms is too quick update time for a large amount.

my current object timer (y_objects) is 553ms. the odd number to prevent it firing at the same time as other timers.
I change the Timer with the release of the Pro Version this or tommorow evening
Reply
#20

Код:
D:\DOCUME~1\Bia&Cos\Desktop\ecmn1.pwn(124) : fatal error 100: cannot read from file: "Obj_LITE"

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


1 Error.
i put the #include in pawn/includes but i have again this error
Reply


Forum Jump:


Users browsing this thread: 6 Guest(s)