|
|
#1 |
|
Gangsta
![]() ![]() ![]() ![]() Join Date: Jan 2008
Posts: 588
|
MidoStream - Object Streamer By MidoBan MidoStream is a new and flexible object streamer. I decided making a new object streamer because any of the other object streamers i found lacked lots of functions that are needed for managing all of the objects from within the streamer. Therefore, many people used a streamer, and in addition, had some objects outside of the streamer. The streamer has all the functions you need in order to manage all of your objects in it without exceptions. It works in a method that none of the moving or attached objects will get out of synch. The streamer can be used in multiple filterscripts as well. The functions: Code:
CreateStreamObject(modelid,Float:xpos,Float:ypos,Float:zpos,Float:xrot,Float:yrot,Float:zrot,Float:viewdist) - Create a streamed object DestroyStreamObject(id) - Destroy a streamed object GetStreamObjectPos(id,&Float:xpos,&Float:ypos,&Float:zpos) - Get the position of a streamed object GetStreamObjectRot(id,&Float:xrot,&Float:yrot,&Float:zrot) - Get the rotation of a streamed object SetStreamObjectPos(id,Float:xpos,Float:ypos,Float:zpos) - Set the position of a streamed object SetStreamObjectRot(id,Float:xrot,Float:yrot,Float:zrot) - Set the rotation of a streamed object AttachStreamObjectToPlayer(id,playerid,Float:xoff,Float:yoff,Float:zoff,Float:xrot,Float:yrot,Float:zrot) - Attach a streamed object to a player MoveStreamObject(id,Float:movx,Float:movy,Float:movz,Float:speed) - Move a streamed object MidoStreamDisconnect(playerid) - Goes under OnPlayerDisconnect The streamer functions are in the same format as the native pawn functions format. Here is a usage demonstration of some of the streamer functions: CreateStreamObject: Like CreateObject, the ID of the CreateStreamObject can be also stored in a variable, for example: pawn Code:
Of course you can also create an object regularly without assigning it to a variable: pawn Code:
MoveStreamObject: pawn Code:
AttachStreamObjectToPlayer: pawn Code:
Installation: In order to use the streamer, all you need to do is:
Known bugs:
I'll be happy to hear any comment/bug report in this topic. Enjoy! Download: MidoStream v1.3 - New and improved! ![]() ![]() Converters: convertFFS Server Hex Change log: 15/6/08 - I removed some unused array, the only thing it'll do is reduce the size of the .amx, redownload to get the update (only the .pwn file changed, just replace it and compile). Recommended. 15/6/08 - The MoveStreamObject synch bug have been fixed. Everything works perfectly without any bugs. You can use it for any fast MoveObject scripts as you want. Redownload the latest bug free version (very important update!). 21/6/08 - Updated something regarding destroying objects while moving, and creating objects immediately after it. If you encountered a problem with it, redownload to get the update. 28/6/08 - MidoStream v1.1 - The MoveStreamObject synch part was significantly improved. It's highly recommended. Redownload to get the update! 2/7/08 - MidoStream v1.2 - I know it hasn't been a long time since v1.1 but there are two major updates that are improving the streamer's performance in a way that it can clearly be declared as a new version. - The MoveStreamObject logic has been changed a lot, Its way more accurate and efficient at the same time. For the ones interested, look at the differences between v1.1 and v1.2. - A function in the script has been improved (upgraded speed and efficiency - could even increase the object/lag limit) - Thanks to Y_Less. I recommend all of the streamer users to download in order to get even better performance. 22/9/09 - MidoStream v1.3 - Been a long time since the last version.. Added support in the GMX command (now the objects won't multiply after a GMX) and updated to the new SA-MP object limit - 254 objects per area. 29/9/09 - In order to prevent complications, i posted a SA-MP 0.2x version and a 0.3 one. The only difference is the 150 objects per area in the 0.2x and the 254 in the 0.3. 25/12/09 - Hi everyone, I'm almost sure i found the reason objects kept disappearing on you since the SA-MP 0.3 MidoStream version. It was a ridiculous typing mistake in the MidoStreamDisconnect function. I have no option to test it right now but i'm almost certain that it was the problem, download again and try. Post if it was solved. Last edited by MidoBan; 20/08/2010 at 04:15 PM. |
|
|
|
|
|
#2 |
|
High-roller
![]() ![]() ![]() ![]() ![]() Join Date: Jul 2006
Posts: 2,278
|
Nicely scripted, almost same style as me
|
|
|
|
|
|
#3 | |
|
Gangsta
![]() ![]() ![]() ![]() Join Date: Jan 2008
Posts: 588
|
Quote:
|
|
|
|
|
|
|
#4 | |
|
High-roller
![]() ![]() ![]() ![]() ![]() Join Date: Mar 2008
Posts: 2,549
|
Quote:
, but how many objects it stream? what is the limit .
|
|
|
|
|
|
|
#5 | |
|
Gangsta
![]() ![]() ![]() ![]() Join Date: Jan 2008
Posts: 588
|
Quote:
And its working fine with ~1500 objects on my public server (50-80 players at mid day hours). I cant test it any further on my public server because i cant do tests on it.. If u got a server and u wanna test it, please do and say how it went. ![]() Dont forget the #define MAX_STREAM_OBJECTS (look on the main post). |
|
|
|
|
|
|
#6 |
|
Huge Clucker
![]() ![]() ![]() Join Date: Nov 2007
Location: Israel
Posts: 300
|
Very nice script :P
edit: WTF look at the AMX size :X |
|
|
|
|
|
#7 | |
|
Gangsta
![]() ![]() ![]() ![]() Join Date: Jan 2008
Posts: 588
|
Quote:
Most of these cells are empty and the streamer doesn't even goes through the empty ones. As you change the MAX_STREAM_OBJECTS value the size of the amx will reduce either.. |
|
|
|
|
|
|
#8 |
|
Big Clucker
![]() ![]() Join Date: Dec 2007
Posts: 65
|
Dude thats almost stolen by Einstein...
sorry for you, you can't do sth. yourself |
|
|
|
|
|
#9 |
|
High-roller
![]() ![]() ![]() ![]() ![]() Join Date: Nov 2007
Posts: 1,754
|
Thanks alot.
|
|
|
|
|
|
#10 | |
|
High-roller
![]() ![]() ![]() ![]() ![]() Join Date: Feb 2008
Posts: 1,225
|
Quote:
|
|
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Help! Midostream object | sXecookie | Scripting Discussion | 3 | 08/01/2010 08:49 PM |
| [Include] [INC] >>Object Streamer Object<<< (OStreamerO) | DorkAZoid | Filter Scripts and Includes | 9 | 11/12/2009 02:28 PM |
| Dominator's Object Streamer - a wize and new streamer - invisible objects fix | tsha | Filter Scripts and Includes | 23 | 19/09/2009 08:37 PM |
| Need help! Object Streamer. | paultje162 | Scripting Discussion | 0 | 01/07/2009 03:25 PM |
| Object Streamer - Looking for a little streamer! ~300 obj. | BeCometA | Scripting Discussion | 1 | 26/06/2009 05:47 PM |