.:: Bots United ::.  
filebase forums discord server github wiki web
cubebot epodbot fritzbot gravebot grogbot hpbbot ivpbot jkbotti joebot
meanmod podbotmm racc rcbot realbot sandbot shrikebot soulfathermaps yapb

Go Back   .:: Bots United ::. > Cyborg Factory > YaPB
YaPB Yet another POD-Bot flavor by Whistler and Jeefo Counter-Strike

Reply
 
Thread Tools
Re: YaPB ARM Port
Old
  (#11)
jeefo
путинхуйлоебаное
 
jeefo's Avatar
 
Status: Offline
Posts: 453
Join Date: Nov 2005
Location: Saint-Petersburg
Default Re: YaPB ARM Port - 18-12-2015

Replace function SineCosine in corelib.h

Code:
   static inline void SineCosine (float rad, float *sin, float *cos)
   {
#if defined (_WIN32) && defined (_MSC_VER)
      __asm
      {
         fld dword ptr[rad]
         fsincos
         mov ebx, [cos]
         fstp dword ptr[ebx]
         mov ebx, [sin]
         fstp dword ptr[ebx]
      }
#elif defined (__linux__) || defined (GCC) || defined (__APPLE__)
      register double _cos, _sin;
      __asm __volatile__ ("fsincos" : "=t" (_cos), "=u" (_sin) : "0" (rad));

      *cos = _cos;
      *sin = _sin;
#else
      *sin = sinf (rad);
      *cos = cosf (rad);
#endif
   }
with:

Code:
   static inline void SineCosine (float rad, float *sin, float *cos)
   {
      *sin = sinf (rad);
      *cos = cosf (rad);
   }
  
Reply With Quote
Re: YaPB ARM Port
Old
  (#12)
jeefo
путинхуйлоебаное
 
jeefo's Avatar
 
Status: Offline
Posts: 453
Join Date: Nov 2005
Location: Saint-Petersburg
Default Re: YaPB ARM Port - 18-12-2015

You're also need working with CSDM sources, they're not in git, as i'm currently not going to add complete support for this mod.
Attached Files
File Type: zip yapb_dirty_src.zip (211.2 KB, 684 views)
  
Reply With Quote
Re: YaPB ARM Port
Old
  (#13)
openglhk
Member
 
Status: Offline
Posts: 17
Join Date: Dec 2015
Default Re: YaPB ARM Port - 18-12-2015

Quote:
Originally Posted by jeefo View Post
Replace function SineCosine in corelib.h

Code:
   static inline void SineCosine (float rad, float *sin, float *cos)
   {
#if defined (_WIN32) && defined (_MSC_VER)
      __asm
      {
         fld dword ptr[rad]
         fsincos
         mov ebx, [cos]
         fstp dword ptr[ebx]
         mov ebx, [sin]
         fstp dword ptr[ebx]
      }
#elif defined (__linux__) || defined (GCC) || defined (__APPLE__)
      register double _cos, _sin;
      __asm __volatile__ ("fsincos" : "=t" (_cos), "=u" (_sin) : "0" (rad));

      *cos = _cos;
      *sin = _sin;
#else
      *sin = sinf (rad);
      *cos = cosf (rad);
#endif
   }
with:

Code:
   static inline void SineCosine (float rad, float *sin, float *cos)
   {
      *sin = sinf (rad);
      *cos = cosf (rad);
   }
Thanks, compile successful after i remove that fsincos - x86 instruction
But seems that xash3D build all *.so library into the apk package.

It is necessary to compile mp_dll? or just replaced by yapb.so?

Last edited by openglhk; 18-12-2015 at 15:43..
  
Reply With Quote
Re: YaPB ARM Port
Old
  (#14)
jeefo
путинхуйлоебаное
 
jeefo's Avatar
 
Status: Offline
Posts: 453
Join Date: Nov 2005
Location: Saint-Petersburg
Default Re: YaPB ARM Port - 18-12-2015

Quote:
Originally Posted by openglhk View Post
Thanks, compile successful after i remove that fsincos - x86 instruction
But seems that xash3D build all *.so library into the apk package.

It is necessary to compile mp_dll? or just replaced by yapb.so?
i don't know actually how xash on android loads gamedll and how it's called. for the normal scenario xash should load yapb binary, and yapb binary will load gamedll binary creating somewhat bridge between xash and gamedll.

any tut on how to build for android?
  
Reply With Quote
Re: YaPB ARM Port
Old
  (#15)
RoboCop
vBulletin Veteran
 
RoboCop's Avatar
 
Status: Offline
Posts: 217
Join Date: Feb 2013
Location: Dundee, Scotland
Default Re: YaPB ARM Port - 19-12-2015

Post not required but unable to delete





vBulletin Webmaster since 2001

Last edited by RoboCop; 19-12-2015 at 02:42..
  
Reply With Quote
Re: YaPB ARM Port
Old
  (#16)
openglhk
Member
 
Status: Offline
Posts: 17
Join Date: Dec 2015
Default Re: YaPB ARM Port - 19-12-2015

Quote:
Originally Posted by jeefo View Post
i don't know actually how xash on android loads gamedll and how it's called. for the normal scenario xash should load yapb binary, and yapb binary will load gamedll binary creating somewhat bridge between xash and gamedll.

any tut on how to build for android?
if yapb binary is a bridge, xash3d (ARM arch) should not able to load x86 .dll/.so

yapb source code here: https://github.com/jeefo/yapb/blob/m...face.cpp#L3043

i build the xash3d for android from the below sources:

https://github.com/SDLash3D/xash3d-android-project
  
Reply With Quote
Re: YaPB ARM Port
Old
  (#17)
openglhk
Member
 
Status: Offline
Posts: 17
Join Date: Dec 2015
Default Re: YaPB ARM Port - 20-12-2015

Quote:
Originally Posted by openglhk View Post
if yapb binary is a bridge, xash3d (ARM arch) should not able to load x86 .dll/.so

yapb source code here: https://github.com/jeefo/yapb/blob/m...face.cpp#L3043

i build the xash3d for android from the below sources:

https://github.com/SDLash3D/xash3d-android-project
CSDM source code: https://github.com/mittorn/csdm
CSDM android build: https://github.com/mittorn/csdm-android

update: i'm trying to modify inferface.cpp
  
Reply With Quote
Re: YaPB ARM Port
Old
  (#18)
jeefo
путинхуйлоебаное
 
jeefo's Avatar
 
Status: Offline
Posts: 453
Join Date: Nov 2005
Location: Saint-Petersburg
Default Re: YaPB ARM Port - 20-12-2015

I will build csdm with yapb for android next week. Just need to setup build env.
  
Reply With Quote
Re: YaPB ARM Port
Old
  (#19)
openglhk
Member
 
Status: Offline
Posts: 17
Join Date: Dec 2015
Default Re: YaPB ARM Port - 21-12-2015

Quote:
Originally Posted by jeefo View Post
I will build csdm with yapb for android next week. Just need to setup build env.
awesome!
  
Reply With Quote
Re: YaPB ARM Port
Old
  (#20)
jeefo
путинхуйлоебаное
 
jeefo's Avatar
 
Status: Offline
Posts: 453
Join Date: Nov 2005
Location: Saint-Petersburg
Default Re: YaPB ARM Port - 21-12-2015

OMG! POD-Bots on my phone!

But.. Not yet playable, as they doesn't support the CSDM mod completely. Will work a little more, to a playable state.



  
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

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

Forum Jump



Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
vBulletin Skin developed by: vBStyles.com