Code Monkey home page Code Monkey logo

3777's People

Contributors

fir3element avatar gesior avatar

Watchers

 avatar  avatar

3777's Issues

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.

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.

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

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.