 |
|
 |
|
|
|
Последние Файлы GTA 4 |
Последние Файлы GTA-MP |
Реклама |
|
|
|
|
|
[REL] xStreamer v4.3 - Object streamer
| |
| ATOM57 | Дата: Суббота, 14.03.2009, 13:16 | Сообщение # 1 |
|
[:|||||||:]
Группа:
Продвинутые
Сообщений: 1242
Награды: 5
Город: Москва
Репутация: 73
Замечания: 40%
Статус: 
| Смотрим эту темку Давайте вместе разберёмся чокаво Вот конвертер для этих обьектов Скачать: [img]http://boylett.com/downloads.php?image=11&[/img] Quote xStreamer plugin version 1 Created by Boylett Copyright © Boylett.com See plugins/ directory for files Windows .DLL was compiled on Vista Linxu .so was compiled on CentOS If you're using different distributions of Linux, you should recompile the plugin on that distro. The Windows DLL should work on any version of Windows. Please note, this may produce unexpected results if you use it in multiple scripts at once. I will provide a fix soon. Stats: This plugin was tested with 4,004,001 objects. On a dual core 2.33GHz CPU (my home PC) it averaged 1% cpu usage with 1 player online. 4,004,001 objects also used 320MB of memory. So for almost all scripts, you won't reach an object limit (I haven't found one yet). How it works: View distance has been thrown out of the window! This streamer simply shows the closest 150 objects (may not show the closest if all objects are really far away due to the area system). Functions: native CreateStreamedObject(modelid,Float:x,Float:y,Float:z,Float:rx,Float:ry,Float:rz); // Create an object native DestroyStreamedObject(objectid); // Destroy an object native MoveStreamedObject(objectid,Float:x,Float:y,Float:z,Float:speed); // Move an object Hidden functions: There are lots of functions which are inserted quietly into your mode, check xStreamer.inc to see them. Gamemodes: Check lvdm.pwn in the gamemodes/ folder to see a 4,000,000 object gamemode Добавлено (14.03.2009, 11:51) --------------------------------------------- Перенесите в Wiki пожалуйста Добавлено (14.03.2009, 12:06) --------------------------------------------- Readme xStreamer plugin version 4.3 Created by Boylett Copyright © Boylett.com See plugins/ directory for files Windows .DLL was compiled on Vista Linxu .so was compiled on CentOS If you're using different distributions of Linux, you should recompile the plugin on that distro. The Windows DLL should work on any version of Windows. Functions: native CreateStreamedObject(modelid,Float:x,Float:y,Float:z,Float:rx,Float:ry,Float:rz,virtualworld = 0,interior = 0); // Create an object native DestroyStreamedObject(objectid); // Destroy an object native MoveStreamedObject(objectid,Float:x,Float:y,Float:z,Float:speed); // Move an object native StopStreamedObject(objectid); // Stop an object native DestroyObjectsCreatedByMe(); // Destroy all objects created by the current script (but not other filterscripts) - this seems to crash above 45,000 objects Callbacks: forward OnStreamedObjectMoved(object); // Called when a streamed object finishs moving Installation: Place xStreamer.dll in plugins/ folder if using Windows If using Linux CentOS, place xstreamer.so in plugins/ folder If using another distro of Linux, compile the script in xStreamer.Linux/ then move the new xstreamer.so to the plugins/ folder Add the plugin to the server.cfg plugins line Move the xStreamer.amx filterscript to filterscripts/ folder Add xStreamer to the filterscripts line Move xStreamer.inc to your pawno/includes/ folder Add #include <xStreamer> to the top of your gamemode/filterscript You can now use xStreamer Добавлено (14.03.2009, 12:22) --------------------------------------------- Приехали =D fatal error 100: cannot read from file: "xStreamer" Добавлено (14.03.2009, 12:28) --------------------------------------------- Исправил..... теперь В логе сервера пишет [15:25:10] Script[gamemodes/lvdm.amx]: Run time error 19: "File or function is not found" Добавлено (14.03.2009, 13:16) --------------------------------------------- Вроде бы эту проблему тоже решил.... как мне добавлять обьекты? Вот я конвертнул обьекты CreateStreamedObject(10757, 2143.393, -2541.446, 16.363, -10.313, -16.329, 55.391); // CreateStreamedObject(10815, 1961.115, -2084.698, 9.972, 0, 0, -45); // CreateStreamedObject(10948, 2083.621, -2474.193, 34.393, 0, 0, 31.799); // CreateStreamedObject(3270, 1761.85, -2536.964, 11.632, 0, 0, -45); // CreateStreamedObject(3665, 1381.202, -2546.594, 14.253, 0, 0, 90); // И "куда их вставлять" 
Nice Maps for sa-mp! Уроки по картостроению в MTA:Race, скачать карты
Мой новый проект - [PIXELCARS RU]
Премьера NDRIFT2
|
| |
|
|
| Inferno | Дата: Суббота, 14.03.2009, 13:26 | Сообщение # 2 |
|
Хостинг-провайдер
Группа:
I'm V.I.P.
Сообщений: 1320
Награды: 26
Город: /root
Репутация: 320
Замечания: 0%
Статус: 
| Quote (ATOM57) 4,004,001 objects also used 320MB of memory. многовато будет...
|
| |
|
|
| ATOM57 | Дата: Суббота, 14.03.2009, 13:34 | Сообщение # 3 |
|
[:|||||||:]
Группа:
Продвинутые
Сообщений: 1242
Награды: 5
Город: Москва
Репутация: 73
Замечания: 40%
Статус: 
| Quote (ATOM57) "куда их вставлять" уже всё перепробовал p.s. [offtop]у меня 15 слов, не баньте меня ... не баньте вот,... 15, ровно 15..... видите 15 !?!?! ДААА 15 ПИтНаДцоОоть!! меня эиТо заводитТ!! ООО! ДДААА!!! ПЯТНАДЦОООТЬ!!! [/offtop]
Nice Maps for sa-mp! Уроки по картостроению в MTA:Race, скачать карты
Мой новый проект - [PIXELCARS RU]
Премьера NDRIFT2
|
| |
|
|
| Inferno | Дата: Суббота, 14.03.2009, 13:48 | Сообщение # 4 |
|
Хостинг-провайдер
Группа:
I'm V.I.P.
Сообщений: 1320
Награды: 26
Город: /root
Репутация: 320
Замечания: 0%
Статус: 
| Quote (ATOM57) И "куда их вставлять" OnGameModeInit ?
|
| |
|
|
| Phenom | Дата: Суббота, 14.03.2009, 15:52 | Сообщение # 5 |
|
Постоялец
Группа:
Пользователи
Сообщений: 496
Награды: 16
Город: Киров
Репутация: 78
Замечания: 100%
Статус: 
| Мало того что: 320MB of memory, дак это только всё под таймером работает! В комплекте должен быть ФС, в котором есть пример доступного использования.
|
| |
|
|
| ATOM57 | Дата: Суббота, 14.03.2009, 16:53 | Сообщение # 6 |
|
[:|||||||:]
Группа:
Продвинутые
Сообщений: 1242
Награды: 5
Город: Москва
Репутация: 73
Замечания: 40%
Статус: 
| Quote (Phenom) В комплекте должен быть ФС, в котором есть пример доступного использования. нетуДобавлено (14.03.2009, 16:53) --------------------------------------------- Inferno, у меня YSI стоит и есть только script_OnGameModeInit сейчас попробую в фс засунуть
Nice Maps for sa-mp! Уроки по картостроению в MTA:Race, скачать карты
Мой новый проект - [PIXELCARS RU]
Премьера NDRIFT2
|
| |
|
|
| Scorpi | Дата: Суббота, 14.03.2009, 16:57 | Сообщение # 7 |
|
Группа:
I'm V.I.P.
Сообщений: 1504
Награды: 33
Репутация: 723
Замечания: 0%
Статус: 
| В public sampCreatePlayerObject
|
| |
|
|
| K-e-n-t | Дата: Суббота, 14.03.2009, 20:34 | Сообщение # 8 |
|
Местный
Группа:
Продвинутые
Сообщений: 649
Награды: 6
Город: pTz city
Репутация: 30
Замечания: 0%
Статус: 
| а я пользуюсь вот этим стримером) изначально до5к объектов, функции: Quote 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 как вы заметили появилось новое значение, это расстояние отображеие объекта, вот пример [pwn] CreateStreamObject(971, 22.344, 6543.454, 34.556, 0.444, 6.000, 0.000, 200.0); [/pwn] инструкция по установке: Quote Installation://Интсрукция: In order to use the streamer, all you need to do is: // Чтобы использовать стример вы должны * Place MidoStream.inc in your includes folder // Добавить в ваши инклуды MidoStream.inc * Place MidoStream.pwn in your filterscripts folder// Добавить в ваши ФС MidoStream.pwn * Compile MidoStream.pwn// Откомпилировать ФС * Put MidoStream in your server.cfg //Добавить ФС в server.cfg * On The first script in your server.cfg or in a script where u have a working OnPlayerDisconnect function, put this: // в моде нужно добавить в OnPlayerDisconnect PAWN Code: // pawno код public OnPlayerDisconnect(playerid,reason) { MidoStreamDisconnect(playerid); } * Dont forget! Always change the #define MAX_STREAM_OBJECTS number on top of the MidoStream.pwn to the overall number of objects u got. //менять значение #define MAX_STREAM_OBJECTS и в моде и ФС если хотите больше * Thats it! now you can freely use all the functions above by putting #include <MidoStream> at the top of your script.// пропишите в моде этот инклуд #include <MidoStream> Добавлено (14.03.2009, 20:34) --------------------------------------------- а ну и скачать Download: MidoStream v1.2 - Bug free! New and improved! Sendspace.com Savefile.com
Если я тебе помог, или сказал что то умное, ставь + Я Francesko_Wilson За деньги работаю качественнее и быстрее :crazy:
|
| |
|
|
| ATOM57 | Дата: Воскресенье, 15.03.2009, 16:37 | Сообщение # 9 |
|
[:|||||||:]
Группа:
Продвинутые
Сообщений: 1242
Награды: 5
Город: Москва
Репутация: 73
Замечания: 40%
Статус: 
| warning 235: public function lacks forward declaration (symbol "sampCreatePlayerObject") Хм... K-e-n-t, 5 тысяч? это смешно Добавлено (15.03.2009, 16:37) --------------------------------------------- Win32, спасибо Помогло
Nice Maps for sa-mp! Уроки по картостроению в MTA:Race, скачать карты
Мой новый проект - [PIXELCARS RU]
Премьера NDRIFT2
|
| |
|
|
| Scorpi | Дата: Воскресенье, 15.03.2009, 16:49 | Сообщение # 10 |
|
Группа:
I'm V.I.P.
Сообщений: 1504
Награды: 33
Репутация: 723
Замечания: 0%
Статус: 
| ATOM57, незачто)
|
| |
|
|
| Phenom | Дата: Воскресенье, 15.03.2009, 16:51 | Сообщение # 11 |
|
Постоялец
Группа:
Пользователи
Сообщений: 496
Награды: 16
Город: Киров
Репутация: 78
Замечания: 100%
Статус: 
| Работает?
|
| |
|
|
| K-e-n-t | Дата: Воскресенье, 15.03.2009, 21:19 | Сообщение # 12 |
|
Местный
Группа:
Продвинутые
Сообщений: 649
Награды: 6
Город: pTz city
Репутация: 30
Замечания: 0%
Статус: 
| ATOM57, не знаю, у меня всё работает, и 5к объектов мне хватает, + значение можно менять =)
Если я тебе помог, или сказал что то умное, ставь + Я Francesko_Wilson За деньги работаю качественнее и быстрее :crazy:
|
| |
|
|
| ATOM57 | Дата: Понедельник, 16.03.2009, 10:12 | Сообщение # 13 |
|
[:|||||||:]
Группа:
Продвинутые
Сообщений: 1242
Награды: 5
Город: Москва
Репутация: 73
Замечания: 40%
Статус: 
| Неработает, сейчас покажу что выходит....... Добавлено (16.03.2009, 10:12) --------------------------------------------- http://ipicture.ru/uploads/090316/00ad8P05Gt.png Добавлено (16.03.2009, 10:12) ---------------------------------------------

Nice Maps for sa-mp! Уроки по картостроению в MTA:Race, скачать карты
Мой новый проект - [PIXELCARS RU]
Премьера NDRIFT2
|
| |
|
|
| Orange | Дата: Понедельник, 16.03.2009, 14:15 | Сообщение # 14 |
|
Уважаемый человек
Группа:
Продвинутые
Сообщений: 945
Награды: 6
Город: San Fierro
Репутация: 101
Замечания: 0%
Статус: 
| тестил я этот стример, классная вещь, но после ~4200000 Game Mode Restartingи. вот чем тестил [pwn]#include <a_samp> #include <xStreamer> main() { } public OnGameModeInit() { SetGameModeText("xc test"); AddPlayerClass(0, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0); return 1; } public OnPlayerRequestClass(playerid, classid) { SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746); SetPlayerCameraPos(playerid, 1958.3783, 1343.1572, 15.3746); SetPlayerCameraLookAt(playerid, 1958.3783, 1343.1572, 15.3746); return 1; } public OnPlayerCommandText(playerid, cmdtext[]) { if (strcmp("/test", cmdtext, true, 5) == 0) { new i = 0; for(;;) { CreateStreamedObject(3374, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0, 0); i++; printf("%d", i); } } return 0; }[/pwn]
|
| |
|
|
| ATOM57 | Дата: Понедельник, 16.03.2009, 14:28 | Сообщение # 15 |
|
[:|||||||:]
Группа:
Продвинутые
Сообщений: 1242
Награды: 5
Город: Москва
Репутация: 73
Замечания: 40%
Статус: 
| выходит? p.s. напиши в аську....... (фильм почти досняли!!!)
Nice Maps for sa-mp! Уроки по картостроению в MTA:Race, скачать карты
Мой новый проект - [PIXELCARS RU]
Премьера NDRIFT2
|
| |
|
|
|
 |
|
 | |
| |
|