Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request: In-game-map-downloads #2032

Closed
ghost opened this issue Apr 21, 2012 · 11 comments
Closed

Feature request: In-game-map-downloads #2032

ghost opened this issue Apr 21, 2012 · 11 comments
Assignees
Labels

Comments

@ghost
Copy link

ghost commented Apr 21, 2012

To give map creators the ability to quickly test fresh maps and to enable game hosts to quickly add new maps I want a feature to download OpenRA-Maps directly from inside the game-lobby.
These maps might be hosted on the content website http://content.open-ra.org and on that website there could be features like flagging malicious map files etc.

@ihptru
Copy link
Contributor

ihptru commented Apr 22, 2012

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

@psydev
Copy link
Contributor

psydev commented Apr 30, 2012

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.

@chrisforbes
Copy link
Member

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

@ihptru
Copy link
Contributor

ihptru commented Jun 19, 2012

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.

@chrisforbes
Copy link
Member

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?

@ihptru
Copy link
Contributor

ihptru commented Aug 16, 2012

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

@ihptru
Copy link
Contributor

ihptru commented Dec 1, 2012

#2488

@psydev
Copy link
Contributor

psydev commented Mar 3, 2013

(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.

@chrisforbes
Copy link
Member

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 notifications@github.com wrote:

no idea what you said.


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

@ihptru
Copy link
Contributor

ihptru commented Mar 3, 2013

maps are saved into support dir aka (in linux)

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

@ghost ghost assigned ihptru Mar 11, 2013
@ihptru
Copy link
Contributor

ihptru commented Mar 27, 2013

fixed in #2823

@ghost ghost closed this as completed Mar 31, 2013
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants