Convert IPL to SAMP CreateObject -
LubaCZ4 - 15.08.2017
Hello,
I just started making maps for SAMP and I wanted to download some maps from GTAGARAGE.com
But these maps are in format .ipl that I need to convert. Problem is that Delux Map converter that I tried does not support rotation of objects so it is useless.
Can somebody help me please?
Thank you so much for help
Re: Convert IPL to SAMP CreateObject -
Xeon™ - 15.08.2017
https://sampforum.blast.hk/showthread.php?tid=242144#10
@Vince
Re: Convert IPL to SAMP CreateObject -
LubaCZ4 - 16.08.2017
Quote:
Originally Posted by XeonMaster
|
But I am not too stupid, I already did that as you can see in my post, but I said that the deluxe converter does NOT support rotations! So it is useless for me.
Re: Convert IPL to SAMP CreateObject -
AbyssMorgan - 16.08.2017
Quote:
Originally Posted by LubaCZ4
But I am not too stupid, I already did that as you can see in my post, but I said that the deluxe converter does NOT support rotations! So it is useless for me.
|
Maybe use:
PHP код:
IPL_CreateObject(modelid,Float:x,Float:y,Float:z,Float:qx,Float:qy,Float:qz,Float:qw,Float:drawdistance=0.0);
IPL_CreateDynamicObject(modelid,Float:x,Float:y,Float:z,Float:qx,Float:qy,Float:qz,Float:qw,worldid=-1,interiorid=-1,playerid=-1,Float:streamdistance=STREAMER_OBJECT_SD,Float:drawdistance=STREAMER_OBJECT_DD,STREAMER_TAG_AREA areaid=STREAMER_TAG_AREA -1,priority=0);
Example:
Код:
714, veg_bevtree2, 0, 2007.609375, -1556.65625, 12.59375, 0, 0, -0.7398733497, 0.6727461815, -1
IPL_CreateObject(714, 2007.609375, -1556.65625, 12.59375, 0, 0, -0.7398733497, 0.6727461815);
Example 2 (auto decode):
PHP код:
#define ipl_extract_params(%1,%2,%3,%4,%5,%6,%7,%8) %1,%2,%3,%4,%5,%6,%7
#define ipl_decode(%0,%1,%2,%3) %0,ipl_extract_params(%3)
IPL_CreateObject(ipl_decode(714, veg_bevtree2, 0, 2007.609375, -1556.65625, 12.59375, 0, 0, -0.7398733497, 0.6727461815, -1));
3DTryg.inc
https://sampforum.blast.hk/showthread.php?tid=591010
Re: Convert IPL to SAMP CreateObject -
LubaCZ4 - 16.08.2017
Quote:
Originally Posted by AbyssMorgan
Maybe use:
PHP код:
IPL_CreateObject(modelid,Float:x,Float:y,Float:z,Float:qx,Float:qy,Float:qz,Float:qw,Float:drawdistance=0.0);
IPL_CreateDynamicObject(modelid,Float:x,Float:y,Float:z,Float:qx,Float:qy,Float:qz,Float:qw,worldid=-1,interiorid=-1,playerid=-1,Float:streamdistance=STREAMER_OBJECT_SD,Float:drawdistance=STREAMER_OBJECT_DD,STREAMER_TAG_AREA areaid=STREAMER_TAG_AREA -1,priority=0);
Example:
Код:
714, veg_bevtree2, 0, 2007.609375, -1556.65625, 12.59375, 0, 0, -0.7398733497, 0.6727461815, -1
IPL_CreateObject(714, 2007.609375, -1556.65625, 12.59375, 0, 0, -0.7398733497, 0.6727461815);
Example 2 (auto decode):
PHP код:
#define ipl_extract_params(%1,%2,%3,%4,%5,%6,%7,%8) %1,%2,%3,%4,%5,%6,%7
#define ipl_decode(%0,%1,%2,%3) %0,ipl_extract_params(%3)
IPL_CreateObject(ipl_decode(714, veg_bevtree2, 0, 2007.609375, -1556.65625, 12.59375, 0, 0, -0.7398733497, 0.6727461815, -1));
3DTryg.inc
https://sampforum.blast.hk/showthread.php?tid=591010
|
Okay, but what is pretty odd, that when I download a map for example of an island and I put the Float x, y and z of an object to the SAMP editor, it is not on sea what an island should be, but in the middle of a city or somewhere else.
For example: 713, veg_bevtree1, 0, 1496.867188, -1707.820313, 13.40625, 0, 0, 0, 1, -1
This is one object of an "Island" map, but the x, y, z are in SAMP editor somewhere in LS. I can send you the whole file or some maps that all are like this.