SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Filterscripts > Includes

Reply
 
Thread Tools Display Modes
Old 04/12/2016, 02:58 PM   #11
AbyssMorgan
High-roller
 
AbyssMorgan's Avatar
 
Join Date: Apr 2015
Location: Poland
Posts: 1,262
Reputation: 323
Default Re: San Andreas Object Image Loader

Update SAOI v1.4.4:

- Added new flag for creation date
- Added function:
PHP Code:
bool:GetSAOIFileCreationData(SAOI:index,output[],max_dest sizeof(output)); 

Update SAOI_FileManager v1.3.0:

- Fixed saoiinfo dialog
- Updated 3DTryg.inc
- Updated StreamerFunction.inc
- Added commands for YSF plugin
PHP Code:
/addvehicleinfo adds descriptions of vehicles
/delvehicleinfo removes descriptions of vehicles 
- Added command:
PHP Code:
/saoi shows statistics saoi 
Notice:
This update does not require re-conversion of old SAOI files


Download:
SAOI

Last edited by AbyssMorgan; 16/09/2017 at 08:29 AM.
AbyssMorgan is offline   Reply With Quote
Old 05/12/2016, 07:15 AM   #12
Dayrion
High-roller
 
Dayrion's Avatar
 
Join Date: Jan 2016
Location: France
Posts: 1,474
Reputation: 120
Default Re: San Andreas Object Image Loader

Impressive.
__________________
What matters isn't to going further, it's the way to get there
Dayrion is offline   Reply With Quote
Old 24/12/2016, 05:38 PM   #13
Chaprnks
Gangsta
 
Chaprnks's Avatar
 
Join Date: Sep 2007
Location: Soviet America
Posts: 676
Reputation: 41
Default Re: San Andreas Object Image Loader

Looks very promising! One question.. does this support RemoveBuildingForPlayer?
Chaprnks is offline   Reply With Quote
Old 24/12/2016, 05:54 PM   #14
AbyssMorgan
High-roller
 
AbyssMorgan's Avatar
 
Join Date: Apr 2015
Location: Poland
Posts: 1,262
Reputation: 323
Default Re: San Andreas Object Image Loader

Quote:
Originally Posted by Chaprnks View Post
Looks very promising! One question.. does this support RemoveBuildingForPlayer?
Currently not because it would require adding information to the array, and then use this information, although is possible to add support for this instruction.

//edit: Support for instruction RemoveBuildingForPlayer coming soon !
http://8.ct8.pl/#updates

Last edited by AbyssMorgan; 25/12/2016 at 09:33 AM.
AbyssMorgan is offline   Reply With Quote
Old 25/12/2016, 11:32 PM   #15
AbyssMorgan
High-roller
 
AbyssMorgan's Avatar
 
Join Date: Apr 2015
Location: Poland
Posts: 1,262
Reputation: 323
Default Re: San Andreas Object Image Loader

Update SAOI v1.5.0:

- Fixed Issues: When loading a file saoi fails, withdraw it rently objects from the file.
- Fixed Issues: Added debug information when the file could not perform parsing.

- Added support for:
PHP Code:
RemoveBuildingForPlayer(playeridmodelidFloat:fXFloat:fYFloat:fZFloat:fRadius); 
- Issues with RemoveBuildingForPlayer:
When a saoi file is unloaded, online players will not see again removed buildings.
They see them only after re-entering the server.

- Added function:
PHP Code:
SAOI:SaveRemoveBuilding(const name[],modelid,Float:x,Float:y,Float:z,Float:radius); 
- Added extended functions:
PHP Code:
SAOI_GetFreeRemoveBuildingID();
SAOI_RemoveBuilding(SAOI:index,modelid,Float:x,Float:y,Float:z,Float:radius);
SAOI_GetRemoveBuilding(remove_id,&SAOI:index,&modelid,&Float:x,&Float:y,&Float:z,&Float:radius);
SAOI_DropRemoveBuildings(SAOI:index);
SAOI_OnErrorCleanup(SAOI:index,object_count);
SAOI_RemoveBuildingsForPlayer(playerid);
SAOI_UpdateBuildingsForPlayer(playerid,SAOI:index);
SAOI_CountRemovedBuildings();
SAOI_GetMemoryLoaded(); 
- Added callback:
PHP Code:
OnSAOIRemovedBuildingsForPlayer(playerid,buildings); 
- Renamed functions:
PHP Code:
IsSAOISlotFree -> SAOI_IsSlotFree
FindFreeSAOIID 
-> SAOI_GetFreeID 
- Updated function:
Code:
bool:GetSAOILoadData(SAOI:index,name[],&object_cnt=0,&material_cnt=0,&material_text_cnt=0,&load_time=0,&active_tick=0,&removed_object=0);

Update SAOI_FileManager v1.4.0:

- Updated commands:
PHP Code:
/saoi
/saoiinfo 
- Added commands:
PHP Code:
/addrbinfo adds descriptions of removed buildings
/delrbinfo removes descriptions of removed buildings 
Screenshots for latest updates:
http://imgur.com/a/H1HaQ

Example Code:
PHP Code:
SetSAOIPositionFlag(MY_SAOI_FILE,1283.3323,1192.4436,10.8008,0.0000,0,0);

//LV-LOT Old Gate
RemoveBuildingForPlayer(playerid,8311,1277.0,1206.8,12.9,1.0);
RemoveBuildingForPlayer(playerid,8312,1277.0,1206.8,12.9,1.0);

//LV-LOT Back Gate (VW:0 INT:0 PID:-1 SD:300)
CreateDynamicObject(987,1297.4541016,1203.0205078,12.2528601,0.0000000,0.0000000,90.0000000,0,0,-1,300);
CreateDynamicObject(987,1277.3867188,1214.8486328,12.4097986,0.0000000,0.0000000,270.0000000,0,0,-1,300);
CreateDynamicObject(8210,1257.5048828,1333.0727539,12.8196115,0.0000000,0.0000000,90.0000000,0,0,-1,300);
CreateDynamicObject(8210,1257.5050049,1277.4987793,12.8196115,0.0000000,0.0000000,90.0000000,0,0,-1,300);
CreateDynamicObject(8210,1257.5263672,1242.4189453,12.8196115,0.0000000,0.0000000,90.0000000,0,0,-1,300);
CreateDynamicObject(987,1277.3303223,1202.8143311,12.4097986,0.0000000,0.0000000,179.9945068,0,0,-1,300);
CreateDynamicObject(987,1277.3872070,1214.8476562,9.8203125,0.0000000,0.0000000,270.0000000,0,0,-1,300);
CreateDynamicObject(987,1297.4501953,1203.0195312,9.6706142,0.0000000,0.0000000,90.0000000,0,0,-1,300);
CreateDynamicObject(3499,1277.7170410,1214.4118652,13.1937933,0.0000000,0.0000000,341.0000000,0,0,-1,300);
CreateDynamicObject(3499,1297.4271240,1214.4118652,13.1937933,0.0000000,0.0000000,340.9991455,0,0,-1,300);
CreateDynamicObject(3499,1297.4267578,1214.4111328,13.1937933,0.0000000,0.0000000,340.9936523,0,0,-1,300);
CreateDynamicObject(3499,1296.4063721,1214.4118652,13.1937933,0.0000000,0.0000000,340.9991455,0,0,-1,300);
CreateDynamicObject(3499,1278.7363281,1214.4111328,13.1937933,0.0000000,0.0000000,340.9936523,0,0,-1,300);
CreateDynamicObject(987,1277.3300781,1202.8134766,9.6706142,0.0000000,0.0000000,179.9945068,0,0,-1,300);
CreateDynamicObject(987,1269.4555664,1202.8150635,12.4097986,0.0000000,0.0000000,179.9945068,0,0,-1,300);
CreateDynamicObject(8210,1257.5247803,1230.4199219,12.8196115,0.0000000,0.0000000,90.0000000,0,0,-1,300);
CreateDynamicObject(987,1269.4550781,1202.8144531,9.6706142,0.0000000,0.0000000,179.9945068,0,0,-1,300); 
Download:
SAOI

Good luck

Last edited by AbyssMorgan; 16/09/2017 at 08:29 AM.
AbyssMorgan is offline   Reply With Quote
Old 26/12/2016, 06:06 AM   #16
Chaprnks
Gangsta
 
Chaprnks's Avatar
 
Join Date: Sep 2007
Location: Soviet America
Posts: 676
Reputation: 41
Default Re: San Andreas Object Image Loader

Quote:
Originally Posted by AbyssMorgan View Post
Update SAOI v1.5.0:
- Added support for:
PHP Code:
RemoveBuildingForPlayer(playeridmodelidFloat:fXFloat:fYFloat:fZFloat:fRadius); 
Awesome, thanks for adding this!
Chaprnks is offline   Reply With Quote
Old 20/01/2017, 08:43 PM   #17
AbyssMorgan
High-roller
 
AbyssMorgan's Avatar
 
Join Date: Apr 2015
Location: Poland
Posts: 1,262
Reputation: 323
Default Re: San Andreas Object Image Loader

Update SAOI v1.5.1:

- Adding memory protection (To avoid mistakes the use of SAOI.inc)

Update SAOI_FileManager v1.5.0:

- Removed pickups from /addvehicleinfo
- Updated 3DTryg Module v3.2.2
- Updated StreamerFunction Module v2.5.8

- Removed commands:
PHP Code:
/saoicapacity -> Use /saoi
{
    /
addobjinfo
    
/delobjinfo
    
/addpickupinfo
    
/delpickupinfo
    
/addmapiconinfo
    
/delmapiconinfo
    
/addvehicleinfo
    
/delvehicleinfo
    
/addrbinfo
    
/delrbinfo
}
-> 
Use /saoifinder 
- Added commands:
PHP Code:
/saoifinder element finder 
Screenshots:
http://imgur.com/a/CncTv

Download:
SAOI

Last edited by AbyssMorgan; 16/09/2017 at 08:29 AM.
AbyssMorgan is offline   Reply With Quote
Old 04/02/2017, 07:10 PM   #18
AbyssMorgan
High-roller
 
AbyssMorgan's Avatar
 
Join Date: Apr 2015
Location: Poland
Posts: 1,262
Reputation: 323
Default Re: San Andreas Object Image Loader

Update SAOI v1.6.0:

- Updated SAOI Generator for Windows

- New Supported functions (Show all):
PHP Code:
streamer.inc
CreateDynamicPickup
CreateDynamicMapIcon
CreateDynamicCircle
CreateDynamicCylinder
CreateDynamicSphere
CreateDynamicRectangle
CreateDynamicCube
CreateDynamicPolygon

a_vehicles.inc
CreateVehicle
LinkVehicleToInterior
SetVehicleVirtualWorld 
- Fixed Unloader Lags (Invalid mechanism StreamerFunction.inc : DestroyFix)

- Increased Load/Unload files speed.

- Renamed functions:
PHP Code:
SAOI_OnErrorCleanup -> SAOI_CleanupElements
GetSAOIFileCreationData 
-> SAOI_GetFileCreationDate
OnSAOIRemovedBuildingsForPlayer 
-> SAOI_OnRemovedBuildings

GetSAOIFileSize 
-> SAOI_GetFileSize
GetSAOIActiveTime 
-> SAOI_GetActiveTime
CountSAOIFileLoaded 
-> SAOI_CountFileLoaded 
- Removed function:
PHP Code:
bool:GetSAOILoadData(SAOI:index,name[],&object_cnt=0,&material_cnt=0,&material_text_cnt=0,&load_time=0,&active_tick=0,&removed_object=0);
CountObjectsForIndex(SAOI:index);
bool:SAOI_IsSlotFree(SAOI:index); 
- Added macros:
PHP Code:
SAOI_CountDynamicObject(SAOI:index);
SAOI_CountDynamicPickup(SAOI:index);
SAOI_CountDynamicMapIcon(SAOI:index);
SAOI_CountDynamicArea(SAOI:index);
SAOI_CountVehicle(SAOI:index);
SAOI_CountMaterial(SAOI:index);
SAOI_CountMaterialText(SAOI:index);
SAOI_CountRemoveBuilding(SAOI:index);
SAOI_GetFileName(SAOI:index);
SAOI_GetLoadTime(SAOI:index); 
- Added functions:
PHP Code:
SAOI:SaveDynamicPickup(pickupid,const name[]);
SAOI:SaveDynamicMapIcon(iconid,const name[]);
SAOI:SaveDynamicArea(areaid,const name[]);
SAOI:SAOI_SaveVehicle(const name[],vehicletype,Float:x,Float:y,Float:z,Float:rotation,color1,color2,respawn_delay,addsiren=0,worldid=0,interiorid=0);
SAOI_CountAllElementsByIndex(SAOI:index);
SAOI_CountAllElements(); 
- Updated function:
PHP Code:
SAOI:LoadObjectImage(const name[],bool:save_logs=true);
bool:UnloadObjectImage(&SAOI:index); 
- Added callbacks:
PHP Code:
SAOI_OnVehicleDestroyed(vehicleid);
SAOI_OnVehicleCreated(vehicleid); 


Update SAOI_FileManager v1.6.0:

- Update compatibility for SAOI v1.6.0

- Added more information in /saoi /saoiinfo

- Fixed Quota

- Added GangZone finder (YSF Only)

- Removed Commands:
PHP Code:
{
/
delobject
/delpickup
/delmapicon
}
-> 
Use /saoidestroy 
- Added commands:
PHP Code:
/saoidestroy destroy element
/saoiboot load saoi file (Add to SAOIFiles.txt
Screenshots:
http://imgur.com/a/o2RiF

Download:
SAOI

//edit:
- Fixed SAOI File Manager Dialog (Try download SAOI.v1.6.0B.Full.zip)

Last edited by AbyssMorgan; 16/09/2017 at 08:30 AM.
AbyssMorgan is offline   Reply With Quote
Old 11/02/2017, 01:38 PM   #19
AbyssMorgan
High-roller
 
AbyssMorgan's Avatar
 
Join Date: Apr 2015
Location: Poland
Posts: 1,262
Reputation: 323
Default Re: San Andreas Object Image Loader

Update SAOI File Manager v1.6.2:

- Fixed all dialogs

- Fixed /saoilist limit

- Fixed /saoifinder menu

- Fixed a bug when loading a file name is empty (SaoiFiles.txt random bug from option boot: enable/disable)

- Added commands:
PHP Code:
/saoiunboot unload saoi file (Remove from SAOIFiles.txt)
/
saoireboot reload all saoi files
/saoicfg edit saoi config 
Download:
SAOI

Last edited by AbyssMorgan; 16/09/2017 at 08:30 AM.
AbyssMorgan is offline   Reply With Quote
Old 05/03/2017, 05:57 PM   #20
AbyssMorgan
High-roller
 
AbyssMorgan's Avatar
 
Join Date: Apr 2015
Location: Poland
Posts: 1,262
Reputation: 323
Default Re: San Andreas Object Image Loader

Update SAOI File Manager v1.7.0:

- Update /streaminfo

- Update for SAOI.inc v1.7.0

Update SAOI.inc v1.7.0:

- Added support for:
PHP Code:
CreateDynamic3DTextLabel
CA_CreateDynamicObject_DC 
- Added functions:
PHP Code:
SAOI:SaveDynamic3DTextLabel(Text3D:textid,const name[]);
SAOI_CountDynamic3DTextLabel(SAOI:index);

SAOI_CountColAndreasObject(SAOI:index); 
- Added extended functions:
PHP Code:
SAOI_GetErrorName(SAOI:index,error_name[],maxdest sizeof(error_name)); 
Download:
SAOI

Last edited by AbyssMorgan; 16/09/2017 at 08:30 AM.
AbyssMorgan is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Convert image to samp object Vaki Scripting Help 2 13/07/2015 04:14 PM
Object loader SoldierX Scripting Help 3 13/03/2015 05:05 PM
Can I replace an object with a custom image ? Jhony_Blaze Scripting Help 0 25/12/2013 11:58 AM
[Tutorial] Object Loader [WSF]ThA_Devil Tutorials 10 06/01/2012 09:00 PM


All times are GMT. The time now is 05:30 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.