GithubHelp home page GithubHelp logo

Comments (11)

ihptru avatar ihptru commented on April 28, 2024

on content.open-ra.org, if map is malicious or abuses anything, any signed in user can click on Report this map and it will be automatically unavailable for Map API

from openra.

psydev avatar psydev commented on April 28, 2024

I second this proposal, wholeheartedly!
This feature would be especially useful if working on unit balancing/modding, since the easiest way to test is to place balance changes in the map itself, instead of asking someone to modify their .yaml files.
Right now it's hard to get a game started to test balance changes because you can't have just anyone easily join when they're looking for a server to join. They have to download the map first, and then place it in the game directory.
So when you're waiting for a 4th player to test a new map/balance settings, no one without the map (just browsing available games) can join because first they would have to go to IRC first to find out where to download the map (and not everyone is on IRC) because they can't even join your game to talk to you and ask where to download it.

from openra.

chrisforbes avatar chrisforbes commented on April 28, 2024

@ihptru good to see you've got some abuse control stuff in there now. I'm happy to add support for this now.

from openra.

ihptru avatar ihptru commented on April 28, 2024

I still do not like the idea of this (I mean using the content site which can't be simply replaced). I'll keep thinking what can be done to get around it.

from openra.

chrisforbes avatar chrisforbes commented on April 28, 2024

if the API is kept simple, it should be possible to reimplement it anywhere without much effort if it comes to that. We can retarget the deployed clients via DNS.

To that end, can you avoid having .php warts in it?

from openra.

ihptru avatar ihptru commented on April 28, 2024

For those who want to fix this:

to download map: http://content.open-ra.org/api/map_data.php?load=INSERT_MAP_HASH_HERE&direct
to get map's FILENAME you will need to fetch "content-disposition" from headers

and you will need to save map somewhere: "{1}maps{0}{2}{0}{3}".F(Path.DirectorySeparatorChar, Platform.SupportDir, mod, filename)

oh ye and in result you will need update Dictionary of maps in modData

Have fun

from openra.

ihptru avatar ihptru commented on April 28, 2024

#2488

from openra.

psydev avatar psydev commented on April 28, 2024

(edited)
Feature request: allow maps to be put into subdirectories, e.g. /openra/mods/ra/maps/download

Currently it seems like the game won't recognize .oramap files that are in subdirectories.

from openra.

chrisforbes avatar chrisforbes commented on April 28, 2024

Yes, we could do that, and it's probably the right thing to do.

On Sun, Mar 3, 2013 at 9:24 PM, Igor Popov [email protected] wrote:

no idea what you said.


Reply to this email directly or view it on GitHubhttps://github.com//issues/2032#issuecomment-14343742
.

from openra.

ihptru avatar ihptru commented on April 28, 2024

maps are saved into support dir aka (in linux)

~/.openra/maps//.oramap
which should be alright

from openra.

ihptru avatar ihptru commented on April 28, 2024

fixed in #2823

from openra.

Related Issues (20)

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.