Coder Social home page Coder Social logo

faftools's Introduction

FAForever Shared Library

This is a utility library for the various things we do at lobby and server

License

Please see the license.txt file

faftools's People

Contributors

aeoncleanse avatar brutus5000 avatar cheyans avatar chriskitching avatar crotalus avatar duk3luk3 avatar faf5678 avatar hardlysoftly avatar idragonfire avatar micheljung avatar raistlfiren avatar sheeo avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

faftools's Issues

Maps may break

Generate Map Upload may break the map

https://faforever.slack.com/archives/general/p1485308092008963

Solution:

  • still rename map folder to <mapname>.v<0-4version>
  • replace the maps\<oldname> with the new maps\<mapname>.v<0-4version>
  • don't rename other lua files, because it errorprone to replace references

Explicit versions in requirements.txt

Without specifying versions, we're gambling and builds are not reliably reproducible.
We should explicitly define the version of each dependency.

faftools has python3-only code

Just making a note here, everything seems to work anyway, but installing faftools in Miniconda's Python 2.7.13 causes this error message:

Extracting faftools-0.1-py2.7.egg to c:\users\luke\miniconda2\envs\fafclient\lib\site-packages
  File "c:\users\luke\miniconda2\envs\fafclient\lib\site-packages\faftools-0.1-py2.7.egg\faf\api\async_client\async_client.py", line 10
    async def get(self, url, **kwargs):
            ^
SyntaxError: invalid syntax

As long as everything works anyway nothing needs to be done I guess.

Blueprint tools

As a spinoff from the discussion in this issue, we need a blueprint toolkit (here in faftools, or a new repo) that does the following:

  • Parses unit blueprints
  • Validates a set of blueprints against a specific ruleset
  • Optionally modifies blueprints and persists the changes

Modifying the blueprints (Either using a comment or an actual value) for use by this toolkit would be acceptable in my mind.

mod validation is overly strict

When uploading a mod via the python-api with url = "" in the mod_info.lua, this exception is thrown:

  File "/code/api/mods.py", line 85, in mods_upload
    process_uploaded_mod(temp_mod_path)
  File "/code/api/mods.py", line 206, in process_uploaded_mod
    mod_info = parse_mod_info(temp_mod_path)
  File "/usr/local/lib/python3.5/site-packages/faf/tools/fa/mods.py", line 52, in parse_mod_info
    raise ValueError(errors)
ValueError: {'url': ['Not a valid URL.']}

That is probably too strict.

Differentiate connection messages in game lobby

All those "Connecting to XYZ established" and similar messages make it really hard to find actual chat messages in the in-game lobby chat.

Maybe we could either colorize these messages so that they are easily distinguishable, or we could separate those messages from the chat window.

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.