[Guide] BDO setup local & online

Page 1 of 5 12345 LastLast
Results 1 to 15 of 74
  1. #1
    Account Upgraded | Title Enabled! Aznkidd235 is offline
    MemberRank
    Apr 2007 Join Date
    518Posts

    [Guide] BDO setup local & online

    before you start my MongoDB is installed to the path "C:\MongoDB\mongod.exe" you could install your DB in this path or adjust the code accordingly.

    1)
    Install MongoDB
    2) Navigate to the MongoDB path and create a .bat file or through CMD to run the MongoDB server

    Code:
    mongod --auth --dbpath "database_save_path"



    3)
    Once installed and running you can use 2 GUI applications, Robo 3T Mongo or MongoDB Compass Community to connect, once connected create 2 databases "gameserver" & "loginserver" you do not have to create the tables "collections" like in the image the server files generate them just create gameserver and loginserver.


    if you can't view the image scroll down to attachments.

    4)
    Creating the admin user to create the user admin with password you can execute the following code through Robo MongoDB by right-clicking and select open Shell over gameserver or loginserver or do it by CMD by running CMD through start menu and enter the codes

    Code:
    c:\mongodb\mongo.exe <-- path of your mongodb folder targeting mongo.exe


    once you see the message mongo shell or what not enter this code into the shell window

    Code:
    use database_name
    db.createUser(
      {
        user: "admin",
        pwd: "12345",
        roles: [ { role: "readWrite", db: "database_name" } ]
      }
    )




    do this for both gameserver and loginserver once this is done for each database you will get a confirmation that the user has been created. Doing this would allow the files to execute data into the database if your getting an error code 13.

    5) Configure the files located in the folder "config/" for both gameserver and loginserver
    - Under database.propterties i changed anonymous user to false or else i would get unauthorize code execution errors.

    files to edit:
    loginserver/configs/network.properties & gameserver/configs/network.properties

    Code:
    # Rmi connection host.
    network.rmi.host = local ip
    
    
    # Rmi connection port.
    network.rmi.port = 9000
    
    
    # Rmi connection password.
    network.rmi.password = 1234
    
    
    # Server version supported
    # NA-EU: 4635
    network.server.version = 4635
    
    
    # Client support european.
    network.encrypt.packets = true
    
    
    # Host for server binding.
    # Default: 0.0.0.0
    network.host = local ip
    
    
    # Port for server binding.
    # Default: 8888
    network.port = 8888
    
    
    # Show debug messages.
    # Default: false
    network.debug = false
    
    
    # Packet executing mode.
    # DIRECT - The worst. Income packets are directly executed after receiving and decrypting. As packets here implemented terribly, it not only increases latency, but decrease overall performance significant.
    # OFFLOAD - Offloads execution to a ThreadPool. Good option with POOLED IOExec mode. Increases throughput but also may increase context switch count.
    # Default: OFFLOAD
    network.packet.exec.mode = OFFLOAD
    
    
    # Receive buffer size.
    # Default: 32768
    network.recv.buffer.size = 32768
    
    
    # Send buffer size.
    # Default: 65536
    network.send.buffer.size = 65536
    
    
    # NetworkThread socket backlog size.
    # See: http://www.linuxjournal.com/files/linuxjournal.com/linuxjournal/articles/023/2333/2333s2.html
    # Default: 50
    network.server.socket.backlog = 50
    
    
    # Client socket options.
    # SO_SNDBUF - the size of the socket's send buffer. On most systems this the size of a kernel buffer so be careful! See RFC1323.
    # SO_RCVBUF - the size of the socket's receive buffer. On most systems this the size of a kernel buffer so be careful! See RFC1323.
    # TCP_NODELAY - The Nagle algorithm. Enabling it increases throughput but also increases latency. See RFC1122.
    # Default: SO_SNDBUF(8192);SO_RCVBUF(8192);TCP_NODELAY(true)
    network.client.socket.options = SO_SNDBUF(8192);SO_RCVBUF(8192);TCP_NODELAY(true)
    
    
    # NetworkThread socket options.
    # SO_REUSEADDR - if true, prevents socket from usage until all opened sockets are really closed. See RFC793.
    # Default: SO_REUSEADDR(true);SO_RCVBUF(4096)
    network.server.socket.options = SO_REUSEADDR(false);SO_RCVBUF(4096)
    
    
    # IO Network thread execution mode.
    # POOLED - All IO operations are executed in a special thread IO execution pool
    # FIXED - All IO operations execution is spread across fixed number of treads
    # Default: POOLED
    network.io.execution.mode = POOLED
    
    
    # Number of IO Network threads.
    # Default: -1 (Processor count)
    network.io.execution.thread.num = -1
    
    
    # Income packet header size.
    # Default: 3
    network.income.packet.header.size = 3
    
    
    # Max income packet size.
    # Default: 16384
    network.max.income.packet.size = 16384
    
    
    # Outcome packet header size.
    # Default: 3
    network.outcome.packet.header.size = 3
    
    
    # Max outcome packet size.
    # Default: 16384
    network.max.outcome.packet.size = 16384
    gameserver/configs/server.properties
    Code:
    # Server id.
    server.id = 1
    
    
    # Server short name (Must be in UPPER case.)
    server.short.name = EU
    
    
    # Channel id.
    server.channel.id = 1
    
    
    # External server IP for client connections
    server.ip = local ip or wan ip
    
    
    # Game server service type.
    # Options: DEV, KOR_REAL, NA_REAL, RUS_REAL, JPN_REAL
    server.game.service.type = NA_REAL
    
    
    # Game server resource type.
    # Options: DEV, KR, EN, JP, CN, RU, FR, DE, ES
    server.game.resource.type = EN
    
    
    # Enable PC Cafe bonuses for players.
    server.enable_pc_cafe_bonus = false
    
    
    # Server busy state limit values.
    server.busy_state_limit_inspection = 0
    
    
    server.busy_state_limit_smooth = 100
    
    
    server.busy_state_limit_busy = 500
    
    
    server.busy_state_limit_very_crowded = 1500
    
    
    
    
    server.admin_only = false
    6) edit service.ini in the client folder and change the ip to your local or wan ip to connect and create a .bat with the codes

    Code:
    BlackDesert64.exe username, password
    then connect and play.

    if you plan on making your server online you need to allow all the programs through firewall, port forward your ports if your using a router and your wan ip is needed in service.ini files.

    Credits:
    @thunderspoon - for sharing the files

    @Kirito2105 - for solving the last step (launching client)

    @OnFleek - for resharing the links when the original topic was deleted
    Attached Thumbnails Attached Thumbnails 1.png   2.png   3.png  
    Last edited by Aznkidd235; 07-01-18 at 03:36 AM.


  2. #2
    Account Upgraded | Title Enabled! Via Nais is offline
    MemberRank
    Jun 2014 Join Date
    276Posts

    Re: [Guide] BDO setup local & online

    Hello !
    Is there any thing editing to make with a dedicated server ?
    Thanks !

  3. #3
    Enthusiast parara12 is offline
    MemberRank
    Dec 2017 Join Date
    31Posts

    Re: [Guide] BDO setup local & online

    when I start local server, everything is OK, but if WAN to do, here

    image.png

  4. #4
    ???????????????????????? Bradley is offline
    MemberRank
    Jan 2013 Join Date
    United KingdomLocation
    1,198Posts

    Re: [Guide] BDO setup local & online

    Quote Originally Posted by Via Nais View Post
    Hello !
    Is there any thing editing to make with a dedicated server ?
    Thanks !
    Do you mean is there anything to edit to make it work with dedicated servers or a VPS?

  5. #5
    Account Upgraded | Title Enabled! Aznkidd235 is offline
    MemberRank
    Apr 2007 Join Date
    518Posts

    Re: [Guide] BDO setup local &amp; online

    Quote Originally Posted by parara12 View Post
    when I start local server, everything is OK, but if WAN to do, here
    image.png
    don't use wan ip in the configs i corrected my guide and removed wan ip from the configs settings because it was a mistake on my end, you must use your local ip (LAN IP) and if you want to make it online in service.ini you place your WAN IP to play same with friends, but if you have a firewall or router you must port forward the ports to allow your friends to connect to you.

    - - - Updated - - -

    Quote Originally Posted by Via Nais View Post
    Hello !
    Is there any thing editing to make with a dedicated server ?
    Thanks !
    if you mean set-up for a dedicated server then no, you have to follow the same steps.

  6. #6
    Enthusiast parara12 is offline
    MemberRank
    Dec 2017 Join Date
    31Posts

    Re: [Guide] BDO setup local &amp; online

    Quote Originally Posted by Aznkidd235 View Post
    don't use wan ip in the configs i corrected my guide and removed wan ip from the configs settings because it was a mistake on my end, you must use your local ip (LAN IP) and if you want to make it online in service.ini you place your WAN IP to play same with friends, but if you have a firewall or router you must port forward the ports to allow your friends to connect to you.

    - - - Updated - - -



    if you mean set-up for a dedicated server then no, you have to follow the same steps.
    you can make a guide for vps? please!

  7. #7
    Account Upgraded | Title Enabled! Aznkidd235 is offline
    MemberRank
    Apr 2007 Join Date
    518Posts

    Re: [Guide] BDO setup local & online

    The guide should be the same for VPS or Dedicated servers use your local vps ip and port forward/firewall.
    Last edited by Aznkidd235; 05-01-18 at 10:49 PM.

  8. #8
    ???????????????????????? Bradley is offline
    MemberRank
    Jan 2013 Join Date
    United KingdomLocation
    1,198Posts

    Re: [Guide] BDO setup local &amp; online

    Quote Originally Posted by parara12 View Post
    you can make a guide for vps? please!
    The guide is completely the same, but instead with the ip parts just use the vps IP.

  9. #9
    Enthusiast parara12 is offline
    MemberRank
    Dec 2017 Join Date
    31Posts

    Re: [Guide] BDO setup local &amp; online

    Quote Originally Posted by Bradley View Post
    The guide is completely the same, but instead with the ip parts just use the vps IP.
    I understand, I'm using vps from cloud.google.comI started the server on my vps on local configurations! The server started successfully!I made the external ip of my vps in the service.ini for the game client, but when I try to connect to the server, I get a connection error to the server!
    sss.pngbiezymiannyi.pngfyv.png
    Attached Thumbnails Attached Thumbnails fyvfy.png  

  10. #10
    Just a Seymour Seymour is offline
    MemberRank
    May 2011 Join Date
    root\hell\Location
    639Posts

    Re: [Guide] BDO setup local &amp; online

    Quote Originally Posted by parara12 View Post
    I understand, I'm using vps from cloud.google.comI started the server on my vps on local configurations! The server started successfully!I made the external ip of my vps in the service.ini for the game client, but when I try to connect to the server, I get a connection error to the server!
    sss.pngbiezymiannyi.pngfyv.png
    It is a good idea to check if 8888\8889 ports are avaliable.(use external service, something like this ) If they are not - perhaps you shoud make some port forwarding stuff

  11. #11
    Proficient Member sabracx is offline
    MemberRank
    Aug 2014 Join Date
    Santo Domingo,Location
    161Posts

    Re: [Guide] BDO setup local & online

    I try to open the ports but I get all closed some help or what I do wrong?


  12. #12
    Apprentice kipstyle is offline
    MemberRank
    Jan 2018 Join Date
    5Posts

    Re: [Guide] BDO setup local &amp; online

    if the port is closed, then the Java machine does not start the server.

  13. #13
    Proficient Member sabracx is offline
    MemberRank
    Aug 2014 Join Date
    Santo Domingo,Location
    161Posts

    Re: [Guide] BDO setup local & online

    configure everything with no ip and the ini of the client and I get connection failed in the client any idea why?

  14. #14
    Account Upgraded | Title Enabled! Aznkidd235 is offline
    MemberRank
    Apr 2007 Join Date
    518Posts

    Re: [Guide] BDO setup local & online

    Quote Originally Posted by sabracx View Post
    configure everything with no ip and the ini of the client and I get connection failed in the client any idea why?
    you shouldn't port forward the MongoDB port it's unsafe, your allowing outside connections to connect to your database while the database should only be local.

    as for your problem it's trial and error try running a web server port forward ports 80 then on the outside pc try to connect to the web server if you port forwarded but can't connect then it could be a firewall or your VPS/Dedicated server is using some other settings preventing the usage like on Amazon AWS, i had to configure through using the TCP/Firewall settings built into the OS and through their web panel.

    if your hosting the server on your own pc:

    also another thing you might want to know it's weird but some modems/routers don't respond to themselves when your using your own WAN IP i have one that acts like this your service.ini must have your LAN IP and friends outside your network must use your WAN IP hopefully this helps.
    Last edited by Aznkidd235; 06-01-18 at 01:50 PM.

  15. #15
    QuoteShiek Member NanayaQ is offline
    MemberRank
    Jul 2012 Join Date
    791Posts

    Re: [Guide] BDO setup local & online

    if your hosting the server on your own pc:

    also another thing you might want to know it's weird but some modems/routers don't respond to themselves when your using your own WAN IP i have one that acts like this your service.ini must have your LAN IP and friends outside your network must use your WAN IP hopefully this helps.
    @Aznkidd235 It is because some router/modem/all-in-one do not support LAN loopback, mostly comcast/xfinity's modem/router do not support LAN loopback service so you'll have to buy your own router that support loopback service to used the WAN IP.

    About gameserver server.property I assume it only support WAN/External IP, hence "external ip here" which work because my friends are able to connect to it, but not me since my router do not support loopback (xfinity's router do not support loopback).

    Wouldn't work with local IP even with port forwarding because I think the server.property reads it as external only for online, but for offline like usual.



Page 1 of 5 12345 LastLast

Advertisement