Bios-Marcel / ServerBrowser

SA-MP Server Browser including some extra functions
Mozilla Public License 2.0
21 stars 8 forks source link

Automatic custom.img, custom.ide and custom.ipl mover #18

Open Naseband opened 6 years ago

Naseband commented 6 years ago

As you already added a Version Changer (which is really useful), you could also add an automatic CUSTOM.* mover.

Multiple Servers I play on offer a set of CUSTOM.img and CUSTOM.ide (potentially also CUSTOM.ipl) files to add more objects to their servers, and I have to copy them over everytime I switch between those.

Would be nice if we could link the files to a specific Server in your Browser and when joining, the specified files will automatically be copied to the GTA SA/SAMP/ directory.

Just an idea and nothing important since it's not a big deal to do it manually (eg. batch file), but this would still be much easier.

Bios-Marcel commented 6 years ago

Thanks for the suggestion, i will investigate that a ittle bit :)

Southclaws commented 6 years ago

Absolutely love this suggestion, I've already added an issue to start implementing it into the backend so server owners can declare whether or not their server has a custom IMG and whether or not it's required: https://github.com/Southclaws/announce-backend/issues/22

I really think this would be the "killer feature" for both server owners and players!

Bios-Marcel commented 6 years ago

To provide a certain level of stability and security, the following things have to be done:

  1. Ensuring, that the downloaded files are correct (checksum comparison)
  2. Ensuring that the files aren't corrupted (broken / infected) 2.1 http://www.gtagarage.com/mods/show.php?id=21750 might be used for validation
Naseband commented 6 years ago

@Southclaws That would indeed be the "killer feature". But it would be nice if there would be 2 ways - selecting files from your HDD and the automatic download you mentioned.

This could also be extended to a Mod Manager-style feature, so that Servers can also add more files to it, like new TXD files for TextDraw Sprites (which wouldn't even replace anything and do not have to be removed afterwards), or other Mods. But not sure if that would be too much.

Bios-Marcel commented 6 years ago

I am not sure how far i can go with my knowledge @Naseband . Anyways @Southclaws is the one providing the backend. I am doing the frontend (alone), so ill see what i can do, i'd appreciate any external help / knowledge.

About choosing files from HDD, should it always be allowed or only if the server ptovides no own files?

Also, maybe @Southclaws it would be nice, if it'd be possible to tag custom files as either necessary or recommended.

Bios-Marcel commented 6 years ago

Also, give me a while, as i am currently working on user experience and stability.

Southclaws commented 6 years ago

I've already planned to have a required declaration for each file.

Bios-Marcel commented 6 years ago

Gud 👍

Naseband commented 6 years ago

@Bios-Marcel I would always allow it, since the server might not use Southclaw's API but still offer custom files. For Servers that use it and explicitly state that they don't offer any CUSTOM files, it would be a good idea to restore the original files. On the other hand these files can only add new stuff, but not change existing models so it wouldn't matter if they are there or not.

Only the IPL can potentially add CULL zones. AFAIK other sections are ignored by SAMP so the content won't matter either.

Bios-Marcel commented 6 years ago

Hey @Naseband, now there is 0.3.DL, is this issue still relevant?

Southclaws commented 6 years ago

0.3.8/-DL offered some nice features but I still think this sort of download feature would be cool as it would allow more complex modifications such as complete replacements, audio files, GXT, etc.

Bios-Marcel commented 6 years ago

In that case i might still to look into it.