[TUTORIAL+CODE]Adding support to RS3 maps in gunz 1.5

Page 1 of 4 1234 LastLast
Results 1 to 15 of 60
  1. #1
    Valued Member grandao is offline
    MemberRank
    Feb 2008 Join Date
    RJ - BrasilLocation
    128Posts

    [TUTORIAL+CODE]Adding support to RS3 maps in gunz 1.5

    In RealSpace2 project:
    Remove these files: RBspObject.h and RBspObject.cpp.
    Add all files in the MOD folder to the project.
    Add the "MOD" folder path to the includes in the project Properties.
    Add the "Include" folder path to the includes in the project Properties.


    Go to the file in bold:
    Add the headers in green (at the top of the file)

    pair(red/green) = serach for red -> change to green

    Code:
    Gunz/ZActor.cpp
    
    - RBspObject* r_map = ZGetGame()->GetWorld()->GetBsp();
    + IBspObject* r_map = ZGetGame()->GetWorld()->GetBsp();
    
    
    Gunz/ZCharacter.cpp
    
    - RBspObject* r_map = ZGetGame()->GetWorld()->GetBsp();
    + IBspObject* r_map = ZGetGame()->GetWorld()->GetBsp();
    
    
    Gunz/ZInterfaceBackground.h
    
    - RBspObject*    m_pLogin;
    + IBspObject*    m_pLogin;
    
    - RBspObject*    GetChurchEnd() { return m_pLogin; }
    + IBspObject*    GetChurchEnd() { return m_pLogin; }
    
    
    Gunz/ZInterfaceBackground.cpp
    
    + #include "BspLoader.h"
    
    - m_pLogin = new RBspObject();
    - m_pLogin->Open( DIR_LOGIN"/login.rs", descExt);
    + m_pLogin = BspLoader::Load(DIR_LOGIN"/login.rs", descExt);
    
    
    Gunz/ZMapDesc.h
    
    - bool Open(RBspObject* pBspObject);
    + bool Open(IBspObject* pBspObject);
    
    
    Gunz/ZMapDesc.cpp
    
    - bool ZMapDesc::Open(RBspObject* pBspObject)
    + bool ZMapDesc::Open(IBspObject* pBspObject)
    
    
    Gunz/ZShadow.cpp
    
    -bool ZShadow::setMatrix( RVisualMesh& vmesh, float size_ /* = 100.f  */, RBspObject* p_map /* = 0 */)
    +bool ZShadow::setMatrix( RVisualMesh& vmesh, float size_ /* = 100.f  */, IBspObject* p_map /* = 0 */)
    
    
    Gunz/ZShadow.h
    
    - bool setMatrix( RVisualMesh& vmesh, float size_ = 100.f, RBspObject* p_map  = 0 );
    + bool setMatrix( RVisualMesh& vmesh, float size_ = 100.f, IBspObject* p_map  = 0 );
    
    
    Gunz/ZWorld.cpp
    
    + #include "BspLoader.h"
    
    - m_pBsp = new RBspObject;
    + m_pBsp = BspLoader::Load(m_szBspName, descExt);
    
    - if(!m_pBsp->Open(m_szBspName, descExt, RBspObject::ROF_RUNTIME,ZWorldProgressCallBack,pLoading))
    + if (!m_pBsp)
    
    
    Gunz/ZWorld.h
    
    - RBspObject    *m_pBsp;
    + IBspObject    *m_pBsp;
    
    - RBspObject    *GetBsp() { return m_pBsp; }
    + IBspObject    *GetBsp() { return m_pBsp; }
    
    
    RealSpace2/Include/RLenzFlare.h 
    
    - bool        Render( rvector& light_pos, rvector& centre_, RBspObject* pbsp_ );
    + bool        Render( rvector& light_pos, rvector& centre_, IBspObject* pbsp_ );
    
    - bool        Render( rvector& centre_ , RBspObject* pbsp_ );        
    + bool        Render( rvector& centre_ , IBspObject* pbsp_ );
    
    
    RealSpace2/Source/RLenzFlare.cpp
    
    - bool RLenzFlare::Render( rvector& light_pos_, rvector& centre_, RBspObject* pbsp_  ) 
    + bool RLenzFlare::Render( rvector& light_pos_, rvector& centre_, IBspObject* pbsp_  ) 
    
    -bool    RLenzFlare::Render( rvector& centre_, RBspObject* pbsp_  )
    +bool    RLenzFlare::Render( rvector& centre_, IBspObject* pbsp_  )
    
    
    RealSpace2/Source/RealSpace2.cpp 
    
    + #include "CustomMap.h"
    
     search for: HRESULT hr=g_pd3dDevice->Reset(&g_d3dpp);
    paste: 
    + CustomMap::OnLost(); before HRESULT hr=g_pd3dDevice->Reset(&g_d3dpp);
    + CustomMap::OnReset(); after HRESULT hr=g_pd3dDevice->Reset(&g_d3dpp);
    Include the .lib provided in "lib" folder to gunz project.
    Compile everything and copy *.txt and Interface.dll to gunz client folder.

    If the client crash when throwing grenades, debug the client find the code where it occurs the "access violation" and add an "if (ptr != NULL)" test.

    If you find any bug or client crash (it's probably because I forgot to list some code change).
    So you can post the error, where it occurs and I will try fix it and reply with a patch.

    How to add RS3 maps: http://forum.ragezone.com/f245/runna...2-maps-934903/

    As this release is open-source any changes/improvements you made in the code you should release it too for free to ragezone community.

    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
    Correction:
    In ZWorld.cpp: (ZWorld::Create function)

    Code:
    previous: Gunz/ZWorld.cpp 
    + #include "BspLoader.h"
    - m_pBsp = new RBspObject;
    - if(!m_pBsp->Open(m_szBspName, descExt, RBspObject::ROF_RUNTIME,ZWorldProgressCallBack,pLoading))
    + if (!m_pBsp)
    
    -----------------------------------------------------
    Corrected:
    
    in line:
    - m_pBsp = new RBspObject;
    change to :
    + m_pBsp = BspLoader::Load(m_szBspName, descExt);
    Added attachment with Interface.dll src.
    Attached Files Attached Files
    Last edited by grandao; 01-07-13 at 05:55 PM.


  2. #2
    Valued Member Turunen is offline
    MemberRank
    Aug 2010 Join Date
    135Posts

    Re: [TUTORIAL+CODE]Adding support to RS3 maps in gunz 1.5

    OMG NICE NICE NICE NICE NICE NICE NICE NICE NICE!!! THANKS SO MUCH

    Last edited by Turunen; 29-06-13 at 01:49 AM.

  3. #3
    Reality, What is? Rain is offline
    MemberRank
    Jan 2009 Join Date
    PhotoshopLocation
    804Posts

    Re: [TUTORIAL+CODE]Adding support to RS3 maps in gunz 1.5

    so adding this,will it not be asking only for rs3 maps? or will this enable the use of rs3 and you can still use rs2 maps.

  4. #4
    Valued Member grandao is offline
    MemberRank
    Feb 2008 Join Date
    RJ - BrasilLocation
    128Posts

    Re: [TUTORIAL+CODE]Adding support to RS3 maps in gunz 1.5

    Quote Originally Posted by azureamv View Post
    so adding this,will it not be asking only for rs3 maps? or will this enable the use of rs3 and you can still use rs2 maps.
    With this you can use both rs2 and rs3 maps, rs2 maps will be rendered with old gunz code and rs3 with the new code.

  5. #5
    Reality, What is? Rain is offline
    MemberRank
    Jan 2009 Join Date
    PhotoshopLocation
    804Posts

    Re: [TUTORIAL+CODE]Adding support to RS3 maps in gunz 1.5

    Quote Originally Posted by grandao View Post
    With this you can use both rs2 and rs3 maps, rs2 maps will be rendered with old gunz code and rs3 with the new code.
    oh fantastic job then +1

  6. #6
    Retired. Don't PM. SecretsOThePast is offline
    DeveloperRank
    Jan 2009 Join Date
    643Posts

    Re: [TUTORIAL+CODE]Adding support to RS3 maps in gunz 1.5

    Source appears to be not included for Interface.dll - is this intentional? I thought this code was GNU.

    Also, you forgot a few headers in your release related to rendering techniques.

  7. #7
    I am THE DON Joe9099 is offline
    MemberRank
    Jan 2007 Join Date
    England, UkLocation
    3,655Posts

    Re: [TUTORIAL+CODE]Adding support to RS3 maps in gunz 1.5

    Very nice

  8. #8
    Valued Member grandao is offline
    MemberRank
    Feb 2008 Join Date
    RJ - BrasilLocation
    128Posts

    Re: [TUTORIAL+CODE]Adding support to RS3 maps in gunz 1.5

    Quote Originally Posted by SecretsOThePast View Post
    Source appears to be not included for Interface.dll - is this intentional? I thought this code was GNU.

    Also, you forgot a few headers in your release related to rendering techniques.
    I forgot to add it, I will update the attachment with everything soon.

  9. #9
    Retired. Don't PM. SecretsOThePast is offline
    DeveloperRank
    Jan 2009 Join Date
    643Posts

    Re: [TUTORIAL+CODE]Adding support to RS3 maps in gunz 1.5

    Quote Originally Posted by grandao View Post
    I forgot to add it, I will update the attachment with everything soon.
    Excellent, thank you! I'll be sure to contribute whatever changes I make back to your project.

  10. #10

    Re: [TUTORIAL+CODE]Adding support to RS3 maps in gunz 1.5

    Excellent job! I really loved the way you used the interfaces. If I find any bugs, I'll report them :)

  11. #11
    Account Upgraded | Title Enabled! Wish Q is offline
    MemberRank
    Jul 2012 Join Date
    LiveScoreLocation
    456Posts

    Re: [TUTORIAL+CODE]Adding support to RS3 maps in gunz 1.5

    Thanks for this release!

  12. #12
    DRGunZ 2 Creator wesman2232 is offline
    MemberRank
    Jan 2007 Join Date
    Erie, PALocation
    4,872Posts

    Re: [TUTORIAL+CODE]Adding support to RS3 maps in gunz 1.5

    This is really amazing. Hoping our server will implement this and give our users the joy of playing the GunZ 2 maps without playing that buggy Alpha client.

  13. #13
    Account Upgraded | Title Enabled! TheCodeOfGunz is offline
    MemberRank
    Oct 2010 Join Date
    PhilippinesLocation
    532Posts

    Re: [TUTORIAL+CODE]Adding support to RS3 maps in gunz 1.5

    Thank you very much, i know that it's hard to you to release what you have done, ty for your hardwork to revive gunz 1 with gunz 2 files

  14. #14
    Daemonsring Developer Gunblade is offline
    MemberRank
    Jul 2007 Join Date
    On the moonLocation
    728Posts

    Re: [TUTORIAL+CODE]Adding support to RS3 maps in gunz 1.5

    Best release ever.

  15. #15
    2D > 3D Wucas is offline
    MemberRank
    Dec 2008 Join Date
    In your bed :3Location
    2,523Posts

    Re: [TUTORIAL+CODE]Adding support to RS3 maps in gunz 1.5

    Time to make RealSpace 3.0 Levels. Sounds like fun.



Page 1 of 4 1234 LastLast

Advertisement