Pottus / ColAndreas

Collision Plugin For San Andreas Multiplayer
GNU General Public License v3.0
67 stars 39 forks source link

CA_IsPlayerBlocked function always return 0 #48

Closed skqoaudgh closed 4 years ago

skqoaudgh commented 6 years ago

CA_IsPlayerBlocked function always return 0. i think CA_RayCastLine function did not work well.

I think that i installed ColAndreas correctly because CA_IsPlayerNearWater function work well. but only CA_RayCastLine function did not work well..

please help me!

Crayder commented 6 years ago

Did you use CA_Init?

skqoaudgh commented 6 years ago

sure. i did it

Crayder commented 6 years ago

Soo.... It's wurking?

skqoaudgh commented 6 years ago

not yet.. let me talk about what i did for access colandreas.

  1. add binary file [scriptfiles/ColAndreas/ColAndreas.cadb]
  2. load plugin
  3. add CA_Init(); in OnGameModeInit
  4. use CA_IsPlayerBlocked function to check whether i collided with wall -> not detected
  5. when i use CA_IsPlayerNearWater function, it did working.
Crayder commented 6 years ago

Show your server log

skqoaudgh commented 6 years ago
SA-MP Dedicated Server
----------------------
v0.3.7-R2, (C)2005-2015 SA-MP Team

[16:40:56] filterscripts = ""  (string)
[16:40:56] 
[16:40:56] Server Plugins
[16:40:56] --------------
[16:40:56]  Loading plugin: FCNPC
[16:40:56] 
[16:40:56] -------------------------------------------------
[16:40:56]      FCNPC - Fully Controllable NPC v1.8.2
[16:40:56]          Windows SA-MP 0.3.7 R2
[16:40:56]           Jan  8 2018 at 01:14:48
[16:40:56] 
[16:40:56]   Author:       OrMisicL (2013 - 2015)
[16:40:56]   Continued by: ziggi (2016 - present)
[16:40:56]   Contributors: kurta999, Neutralneu
[16:40:56] -------------------------------------------------
[16:40:56] 
[16:40:56] Loading...
[16:40:56]   Loaded.
[16:40:56]  Loading plugin: ColAndreas
[16:40:58] *********************
[16:40:58] ** Created By:     **
[16:40:58] ** [uL]Chris42O    **
[16:40:58] ** [uL]Slice       **
[16:40:58] ** [uL]Pottus      **
[16:40:58] *********************
[16:40:58] Loaded collision data.
[16:40:58] *********************
[16:40:58]   ColAndreas Loaded
[16:40:58]    v1.4.0
[16:40:58] *********************
[16:40:58]   Loaded.
[16:40:58]  Loaded 2 plugins.

[16:40:58] 
[16:40:58] Filterscripts
[16:40:58] ---------------
[16:40:58]   Loaded 0 filterscripts.

[16:40:58]  
[16:40:58]  
[16:40:58]  
[16:40:58]  ======================================= 
[16:40:58]  |                                     | 
[16:40:58]  |        YSI version 4.00.0001        | 
[16:40:58]  |        By Alex "Y_Less" Cole        | 
[16:40:58]  |                                     | 
[16:40:58]  ======================================= 
[16:40:58]  
[16:40:58] Loading Map.
[16:40:58] Loaded Map.                             
[16:40:58] 

nothing in log.

http://image.fileslink.com/121f59ef3bc7ae40/sa-mp-124.png this link includes some image that detect wall. but print message there is no wall. (function returns 0)

skqoaudgh commented 6 years ago

i did more test about CA_RayCastLine function.

in result, CA_RayCastLine function detect water. so NearWater or FacingWater function worked. but CA_RayCastLine function couldn`t detect gta:sa object like trees or walls. so Blocked function not worked.

i think binary file is something wrong. can you your binary file for colandreas? in scriptfiles folder

Crayder commented 6 years ago

Run the wizard again, see if that helps. We are not going to send you our binaries, that's the whole point of the wizard, we can't get in any legal trouble or anything that way.

Pottus commented 4 years ago

Closed