[Include] 3DTryg Functions

Quote:
Originally Posted by ToiletDuck
Посмотреть сообщение
IsPlayerOnPlayerScreen parameters? can't find it in the include.
Deprecated, use:
PHP код:
IsElementOnPlayerScreen(playerid,targetid,Item3D_Type:target_type=item_player,element_orientation:orientation=o_front,Float:rx=INVALID_ROTATION,Float:rz=INVALID_ROTATION,Float:vrx=VERTICAL_CAMERA_RADIUS,Float:vrz=HORIZONTAL_CAMERA_RADIUS,bool:testLOS=true,bool:testVW=true,bool:veh_col=false); 
IsElementOnFakeScreen(Float:x,Float:y,Float:z,targetid,Item3D_Type:target_type,Float:rx,Float:rz,Float:vrx=VERTICAL_CAMERA_RADIUS,Float:vrz=HORIZONTAL_CAMERA_RADIUS,bool:testLOS=true,bool:veh_col=false); 
Reply

Hi. I'm trying to make sure that if a player walks out of the range, he drops it at a distance. With repeated use, the player can still exit the polygon. (tk tshshit not purely back, and still to the right). How can you solve this issue?

PHP код:
new Floatx_pos,
    
Floaty_pos,
    
Floatz_pos,
    
Floatangle,
    
Floatnew_x_pos,
    
Floatnew_y_pos,
    
Floatnew_z_pos;
GetPlayerPos(playeridx_posy_posz_pos);
GetPointInFront3D(x_posy_posz_pos0.00.0, -7.5new_x_posnew_y_posnew_z_pos);  
SetPlayerPos(playeridnew_x_posnew_y_posnew_z_pos); 
Reply

Does anyone still have this include? The download link is no longer working.
Reply

It looks like that his second GitHub account has vanished from the surface including his website.
Reply

https://github.com/SAMP-git/3DTryg-Source
Reply

the shortened links (ct8.pl) are dead
Reply

Код:
[ADM] Info: Load 3DTryg v4.6.1 for SA:MP 0.3.7 by Abyss Morgan
I Got This In Server Log, What To Do How To Fix It I Am Not Getting Him Plugin
Reply

Update v4.6.2:

- Update for Streamer v2.9.4

Download:
https://adm.ct8.pl/d/3DTryg.inc
Reply

Just want to remind you that FCNPC 2.0.0 updated and has changed a lot function call https://github.com/ziggi/FCNPC/releases e.g FCNPC_Goto , u have to update it
Reply

Hello,

These functions look very promising, but I just cannot get it to work.
I've downloaded the following: (all of the versions posted below are the most recent)

3DTryg.inc - version 4.6.2
ColAndreas.inc - version 1.4.0
VehicleMissileCol.inc - version 1.9.0
Missile.inc - version 2.2.1
Streamer.inc - version 2.9.4


But whenever I try to compile it gives me one single error like this:
Код:
pawno\include\VehicleMissileCol.inc(248) : fatal error 111: user error: [ADM] You need ColAndreas v1.4.0 (github.com/Pottus/ColAndreas/releases)
pawno\include\VehicleMissileCol.inc(244) : fatal error 111: user error: [ADM] You need Streamer v2.9.4 (github.com/samp-incognito/samp-streamer-plugin/releases)
pawno\include\VehicleMissileCol.inc(262) : fatal error 111: user error: [ADM] You need 3DTryg.inc v4.6.2 (adm.ct8.pl/d/3DTryg.inc)
and so on...

The thing is, however. All those versions mentioned are already present WITH their respective version.
So what's going on here? I have tried to find a solution for hours now and I am completely lost
Reply

Just remove that version check from respective includes, in your case VehicleMissileCol.
Reply

Thanks for your reply, I forgot to mention this in my previous post but I actually already tried that.
If I remove the version check Pawno simply doesn't compile the script. I get a blank output and an AMX file of 0kb. So that doesn't work either sadly.
Reply

Today 3DTryg has been updated to v4.7.0, now FCNPC v2.0.0 is supported.
Download: https://adm.ct8.pl/d/3DTryg.inc
Updates: https://adm.ct8.pl/#updates


Quote:
Originally Posted by NoahAntilles
Посмотреть сообщение
Thanks for your reply, I forgot to mention this in my previous post but I actually already tried that.
If I remove the version check Pawno simply doesn't compile the script. I get a blank output and an AMX file of 0kb. So that doesn't work either sadly.
Check your include structure:
PHP код:
#include <Streamer>
#include <ColAndreas>
#include <3DTryg>
#include <Missile>
#include <VehicleMissileCol> 
Never remove version check and other check because this prevent compiler some warnings/errors/crashes.
Reply

Did you set up any unit tests yet?
Reply

Include has been tested by standard test script with use all functions, no warning and errors.
Reply

Nice test script https://github.com/AbyssMorgan/3DTry...aster/test.pwn

If it compiles fine then it doesn't mean that it is also semantically correct.
Reply

Quote:
Originally Posted by BigETI
Посмотреть сообщение
Nice test script https://github.com/AbyssMorgan/3DTry...aster/test.pwn

If it compiles fine then it doesn't mean that it is also semantically correct.
This is not correct test script, now AbyssMorgan uploaded right test.
Reply

But it doesn’t have any assertions in the test script or am I blind?
Just because it compiles and doesn’t give you any warnings doesn’t mean that logic is correct.
Reply

Quote:
Originally Posted by The King's Bastard
Посмотреть сообщение
But it doesn’t have any assertions in the test script or am I blind?
Just because it compiles and doesn’t give you any warnings doesn’t mean that logic is correct.
The logic was tested when the function was created, after the successful test an update was issued and the test code was deleted.

The "Fuze Test" test script applies to the compiler test to avoid simple errors with mass fixes.
Example: After syntax update
Reply

Please add semantics checks to your test script.

You can use y_test to create an unit test. More about that is available at sampctl wiki and YSI documentation.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)