Vault integrated map version numbers?

Interesting mapping tools and mapping help.

Moderator: Morax

Re: Vault integrated map version numbers?

Postby Plasma_Wolf » 25 Feb 2014, 09:07

If you're going to enforce the map_version rule for uploading in the vault, you'll also need a proper tutorial on it. Otherwise we're going to have dozens of "I can't upload my map" topics here.
User avatar
Plasma_Wolf
Supreme Commander
 
Posts: 1335
Joined: 20 Oct 2011, 11:28
Has liked: 23 times
Been liked: 91 times
FAF User Name: Plasma_Wolf

Re: Vault integrated map version numbers?

Postby Dragonfire » 25 Feb 2014, 09:31

Plasma_Wolf wrote:If you're going to enforce the map_version rule for uploading in the vault, you'll also need a proper tutorial on it. Otherwise we're going to have dozens of "I can't upload my map" topics here.

np,
it is also a security function for users that uploading other maps xd
My native language is not english, please correct me, because I want to improve my skills # Resource Overview
User avatar
Dragonfire
Evaluator
 
Posts: 559
Joined: 19 Dec 2013, 10:18
Has liked: 39 times
Been liked: 61 times
FAF User Name: Dragonfire

Re: Vault integrated map version numbers?

Postby Ze_PilOt » 25 Feb 2014, 10:06

Dragonfire wrote:PS.: Can you publish the server map vault code (php code)?
Or only the db structure with dump data?
Is the next big thing on my todo list, after the friendlist.


It's not my code, you will have to ask raging squirrel.
But we have a private repository if he allows it.
Nossa wrote:I've never played GPG or even heard of FA until FAF started blowing up.
User avatar
Ze_PilOt
Supreme Commander
 
Posts: 8985
Joined: 24 Aug 2011, 18:41
Location: fafland
Has liked: 18 times
Been liked: 376 times
FAF User Name: Ze_PilOt

Re: Vault integrated map version numbers?

Postby Dragonfire » 25 Feb 2014, 10:17

Ze_PilOt wrote:It's not my code, you will have to ask raging squirrel.

Found him:
memberlist.php?mode=viewprofile&u=56
My native language is not english, please correct me, because I want to improve my skills # Resource Overview
User avatar
Dragonfire
Evaluator
 
Posts: 559
Joined: 19 Dec 2013, 10:18
Has liked: 39 times
Been liked: 61 times
FAF User Name: Dragonfire

Re: Vault integrated map version numbers?

Postby Ze_PilOt » 25 Feb 2014, 20:40

I've modified the vault code, now it's only displaying the latest version of a map.

Of course, you have to keep the same exact map name.

No need to mark older version as broken (first because I won't delete them for compatibility reasons), they won't show anymore.
Nossa wrote:I've never played GPG or even heard of FA until FAF started blowing up.
User avatar
Ze_PilOt
Supreme Commander
 
Posts: 8985
Joined: 24 Aug 2011, 18:41
Location: fafland
Has liked: 18 times
Been liked: 376 times
FAF User Name: Ze_PilOt

Re: Vault integrated map version numbers?

Postby Lionhardt » 25 Feb 2014, 21:06

Very cool!
Help me make better maps for all of us, visit my Mapping Thread.

Maps needing gameplay feedback:
Spoiler: show
[list updated last: 31.1.2018]

(maps available in the vault)

- Hexagonian Drylands
- Fervent Soil and Torrid Suns

YouTube Channel
User avatar
Lionhardt
Contributor
 
Posts: 1070
Joined: 29 Jan 2013, 23:44
Has liked: 188 times
Been liked: 144 times
FAF User Name: Lionhardt

Re: Vault integrated map version numbers?

Postby roseneath » 27 Feb 2014, 07:28

is there a way to edit an uploaded map that is in the vault.
roseneath
Crusader
 
Posts: 28
Joined: 16 Jul 2013, 21:23
Has liked: 0 time
Been liked: 0 time
FAF User Name: roseneath

Re: Vault integrated map version numbers?

Postby Ze_PilOt » 27 Feb 2014, 08:57

No.

That would be a horrible idea. People who had the "older" version will desync. Replays will be fucked.

Increase the version number and upload your new version instead.

And don't upload map before testing them.
The map vault is not made for testing maps.

When a map is in the vault, assume someone already played on it, so it must be there forever.
Nossa wrote:I've never played GPG or even heard of FA until FAF started blowing up.
User avatar
Ze_PilOt
Supreme Commander
 
Posts: 8985
Joined: 24 Aug 2011, 18:41
Location: fafland
Has liked: 18 times
Been liked: 376 times
FAF User Name: Ze_PilOt

Re: Vault integrated map version numbers?

Postby Dragonfire » 27 Feb 2014, 10:26

Ze_PilOt wrote:No.

That would be a horrible idea. People who had the "older" version will desync. Replays will be fucked.

Increase the version number and upload your new version instead.

And don't upload map before testing them.
The map vault is not made for testing maps.

When a map is in the vault, assume someone already played on it, so it must be there forever.

In my opinion it is to easy to upload a map ...
e.g. everybody can reupload a map!

@Zep: Ragging_Squirell gave me the permission to edit his source code ... It is possible to send it to me?
My native language is not english, please correct me, because I want to improve my skills # Resource Overview
User avatar
Dragonfire
Evaluator
 
Posts: 559
Joined: 19 Dec 2013, 10:18
Has liked: 39 times
Been liked: 61 times
FAF User Name: Dragonfire

Re: Vault integrated map version numbers?

Postby Lionhardt » 27 Feb 2014, 12:53

Would it be possible to write a function that syncs the users map folder with the map vault by scanning for old versions of maps in the users map folder? Every time the function finds a sub-folder string X.vN that matches a string x.vN+1 it asks the user if he wants to update that map? Or if it is not pssoble, to scan people map folder, can FAF ask the client PCs to tell it otherwise which maps they got?


But maybe that is ia a little insecure, because there might two maps with the sme exact name in the vault? Is that possible?
Help me make better maps for all of us, visit my Mapping Thread.

Maps needing gameplay feedback:
Spoiler: show
[list updated last: 31.1.2018]

(maps available in the vault)

- Hexagonian Drylands
- Fervent Soil and Torrid Suns

YouTube Channel
User avatar
Lionhardt
Contributor
 
Posts: 1070
Joined: 29 Jan 2013, 23:44
Has liked: 188 times
Been liked: 144 times
FAF User Name: Lionhardt

PreviousNext

Return to Mapping

Who is online

Users browsing this forum: No registered users and 1 guest