Git Product home page Git Product logo

3777's Introduction

Useful links

Binaries

Source

Libraries for Visual Studio 2022 (using vcpkg)

  • x32:
.\vcpkg install luajit sqlite3 libmariadb libxml2 gmp boost-filesystem boost-regex boost-thread boost-asio boost-foreach boost-any openssl
  • x64:
.\vcpkg install --triplet x64-windows luajit sqlite3 libmariadb libxml2 gmp boost-filesystem boost-regex boost-thread boost-asio

Build instruction for Ubuntu

sudo apt-get update
sudo apt-get install --no-install-recommends -y git autoconf automake pkg-config build-essential cmake liblua5.1-0-dev libsqlite3-dev libmysqlclient-dev libxml2-dev libgmp3-dev libboost-filesystem-dev libboost-regex-dev libboost-thread-dev
git clone https://github.com/Fir3element/3777.git
cd /3777-master
mkdir build
cd build
cmake ..
make -j$(grep processor /proc/cpuinfo | wc -l)

3777's People

Contributors

fir3element avatar gesior avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

3777's Issues

Server status crash

Pretty rare, but can happen, especially if someone decide to attack you with 'check status DDoS'.
status->getStatusString is executed in 'network thread':
https://github.com/Fir3element/3777/blob/main/src/status.cpp#L65
but it reads Player::autoList which can be modified in 'dispatcher thread':
https://github.com/Fir3element/3777/blob/main/src/status.cpp#L147

In TFS 1.x function that reads players list:
https://github.com/otland/forgottenserver/blob/master/src/protocolstatus.cpp#L193
is executed in 'dispatcher thread':
https://github.com/otland/forgottenserver/blob/master/src/protocolstatus.cpp#L65-L68

Issue with createitem.lua

There is some issue with createitem.lua that made my server crash and shutdown. I'm not really sure what's the matter, but by disabling each parts of the script I came to a conclusion that it is one of those:
doCreateItemEx(id, amount)
doPlayerAddItemEx(cid, item, true)

This made the server crash if you typed /i itemName two times.
I was doing it with my custom item, but same happened with other items. I guess those functions are bugged, because doPlayerAddItem(cid, id, amount, false) is working.

This github is pretty dead, but hopefully someone still reads that. At the moment, this issue is not bothering me, since as I said, there is a way around, but I guess I will be looking into that in the future and potentially come back here with the solution.

Compilation Issue?

I have Windows 10, visual studio 2022 (professional), with C++ installed and along with it IntelliCode, but when I launch
theforgottenserver.vcxproj I have an error:
image

Is there any solution? I was googling it, but nothing worked.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.