Giter VIP home page Giter VIP logo

Comments (23)

ZaneYork avatar ZaneYork commented on September 12, 2024 2

if new mod has the same unique id, it will overwrite automaticlly to the origin path, if you wants to reset it, simply set CleanInstall to true

from smapi-android-installer.

ZaneYork avatar ZaneYork commented on September 12, 2024 1

Okay, I'll add a new feature to deal with this request. How about add a new manifest config key like clean install = true ?

from smapi-android-installer.

ZaneYork avatar ZaneYork commented on September 12, 2024 1

image

Okay, like this

from smapi-android-installer.

ZaneYork avatar ZaneYork commented on September 12, 2024 1

The name of mod's manifest in mods_manifest.json file should be equals to the entry name of the zip file's root, or else it will create a sub folder to the mod's assert path when upgrade.
This name does not needs to equal with the name of mod's Name section in manifest.json of their own,

from smapi-android-installer.

ZaneYork avatar ZaneYork commented on September 12, 2024 1

Every thing will OK if you make your manifest's Name section from Stardew Valley Thai Language (Mobile) to AndroidModTH

Thanks.

I can change the name?
"Name": "648c4b387c5b61642614aa6677909a755a9b84fd96d717703fc83f5f73f515c0board",
to
"Name": "VirtualKeyboard",

When was it changed to 648c4b387c5b61642614aa6677909a755a9b84fd96d717703fc83f5f73f515c0board? It is a wrong config, I'll fix it on next release

from smapi-android-installer.

ellipszist avatar ellipszist commented on September 12, 2024

clean install = true i like it.

from smapi-android-installer.

ellipszist avatar ellipszist commented on September 12, 2024

new manifest config key delete mods folder in list by array like Console Commands, CustomLocalization, SaveBackup, VirtualKeyboard?

from smapi-android-installer.

ZaneYork avatar ZaneYork commented on September 12, 2024

image
Like this, if set to true, it will delete the old mod before install the new version

from smapi-android-installer.

ellipszist avatar ellipszist commented on September 12, 2024

My mod is AndroidModTH in StardewValley\Mods
{ "assetPath":"mods/android-modth.zip", "Name": "AndroidModTH", "UniqueID": "AndroidModTH" },
But i need rename my mod to [CP] ModTH (new version), My new code is?

from smapi-android-installer.

ZaneYork avatar ZaneYork commented on September 12, 2024

Did you changed your mod's UniqueId?

from smapi-android-installer.

ellipszist avatar ellipszist commented on September 12, 2024

Did you changed your mod's UniqueId?

yes.

from smapi-android-installer.

ellipszist avatar ellipszist commented on September 12, 2024

example: Update SVE 1.10 to SVE 1.11

from smapi-android-installer.

ellipszist avatar ellipszist commented on September 12, 2024

Code is work in update mod version below case?

example:

delete SVE 1.10 (old version)

  • Mods\(Stardew Valley Expanded)
  • Mods\[CM] Stardew Valley Expanded
  • Mods\[FTM] Stardew Valley Expanded
  • Mods\[JA] Stardew Valley Expanded
  • Mods\[TMX] Stardew Valley Expanded
  • Mods\StardewValleyExpanded

install SVE 1.11 (new version)

  • Mods\Stardew Valley Expanded\[CM] Stardew Valley Expanded
  • Mods\Stardew Valley Expanded\[CP] Stardew Valley Expanded
  • Mods\Stardew Valley Expanded\[FTM] Stardew Valley Expanded
  • Mods\Stardew Valley Expanded\[JA] Stardew Valley Expanded
  • Mods\Stardew Valley Expanded\[TMX] Stardew Valley Expanded
  • Mods\Stardew Valley Expanded\StardewValleyExpanded

- delete old mods, + install new mods

from smapi-android-installer.

ellipszist avatar ellipszist commented on September 12, 2024

Mod Pack is work? (delete), manifest.json in mod sub folder is many unique id. e.g. SVE 1.11

(sve.zip)

- CustomMusic
- CustomNPCFixes
- Stardew Valley Expanded
  - [CM] Stardew Valley Expanded
  - [CP] Stardew Valley Expanded
  - [FTM] Stardew Valley Expanded
  - [JA] Stardew Valley Expanded
  - [TMX] Stardew Valley Expanded
  - StardewValleyExpanded

from smapi-android-installer.

ZaneYork avatar ZaneYork commented on September 12, 2024

Already support this feature in 1.7.0 version, with minor adjust.

  1. Outdated mod in OriginUniqueId list will be clean up when CleanInstall set to true.
  2. Outdated mod with same UniqueID and the installed version is below Version of manifest will be clean up when CleanInstall set to true.

from smapi-android-installer.

ellipszist avatar ellipszist commented on September 12, 2024

old code is override mod from zip file to StardewValley*Mods*, new code not override. (v1.8.9-beta14 -> v1.9.0)

  {
    "assetPath":"mods/android-modth.zip",
    "Name": "Stardew Valley Thai Language (Mobile)",
    "UniqueID": "TranslatorArmy.ModTH"
  },

before CleanInstall

-  \Mods\AndroidModTH
  - assets
  - config.json
  - content.json
  - How To Config Fonts.png
  - manifest.json <- v1.8.9-beta14

Test code.

  {
    "assetPath":"mods/android-modth.zip",
    "Name": "Stardew Valley Thai Language (Mobile)",
    "UniqueID": "TranslatorArmy.ModTH",
    "CleanInstall": true,
    "Version": "1.8.9-beta14",
    "OriginUniqueId": ["TranslatorArmy.ModTH"]
  },

mod and manifest.json is work, but has sub folder.

-  \Mods\AndroidModTH
  - AndroidModTH\assets <- has sub folder
  - AndroidModTH\config.json <- has sub folder
  - AndroidModTH\content.json <- has sub folder
  - AndroidModTH\How To Config Fonts.png <- has sub folder
  - AndroidModTH\manifest.json <- v1.9.0 & has sub folder

from smapi-android-installer.

ZaneYork avatar ZaneYork commented on September 12, 2024

Could you please provide the difference of mod file structure more clearly?

from smapi-android-installer.

ellipszist avatar ellipszist commented on September 12, 2024

after click "INSTALL" button smapi create mod in mod (sub folder) e.g. StardewValley\Mods\AndroidModTH\AndroidModTH

from smapi-android-installer.

ZaneYork avatar ZaneYork commented on September 12, 2024

after click "INSTALL" button smapi create mod in mod (sub folder) e.g. StardewValley\Mods\AndroidModTH\AndroidModTH

Okay, maybe I got it

from smapi-android-installer.

ZaneYork avatar ZaneYork commented on September 12, 2024

after click "INSTALL" button smapi create mod in mod (sub folder) e.g. StardewValley\Mods\AndroidModTH\AndroidModTH

The name of the manifest should be equals to the sub directory of the mod's zip entry, the upgrade stage will try to remove the prefix of manifest's name section to make sure no sub directory will be created
image

from smapi-android-installer.

ellipszist avatar ellipszist commented on September 12, 2024

My code

[
  {
    "assetPath":"mods/android-modth.zip",
    "Name": "Stardew Valley Thai Language (Mobile)",
    "UniqueID": "TranslatorArmy.ModTH"
  },
  {
    "assetPath":"mods/content-patcher.zip",
    "Name": "Content Patcher",
    "UniqueID": "Pathoschild.ContentPatcher"
  },
  {
    "assetPath":"mods/virtual-keyboard.zip",
    "Name": "648c4b387c5b61642614aa6677909a755a9b84fd96d717703fc83f5f73f515c0board",
    "UniqueID": "VirtualKeyboard"
  },
  {
    "assetPath":"mods/custom-localization.zip",
    "Name": "CustomLocalization",
    "UniqueID": "ZaneYork.CustomLocalization",
    "CleanInstall": true,
    "Version": "1.1.0",
    "OriginUniqueId": ["SMAPI.CustomLocalization"]
  },
  {
    "assetPath":"mods/console-commands.zip",
    "Name": "Console Commands",
    "UniqueID": "SMAPI.ConsoleCommands"
  },
  {
    "assetPath":"mods/save-backup.zip",
    "Name": "SaveBackup",
    "UniqueID": "SMAPI.SaveBackup"
  }
]

Click "INSTALL" (1st time)

-  \Mods
  - AndroidModTH
  - Console Commands
  - ContentPatcher
  - CustomLocalization
  - SaveBackup
  - VirtualKeyboard

Click "INSTALL" again (2nd time)

-  \Mods
  - AndroidModTH\AndroidModTH
  - Console Commands
  - ContentPatcher\ContentPatcher
  - CustomLocalization
  - SaveBackup
  - VirtualKeyboard\VirtualKeyboard

from smapi-android-installer.

ZaneYork avatar ZaneYork commented on September 12, 2024

Every thing will OK if you make your manifest's Name section from Stardew Valley Thai Language (Mobile) to AndroidModTH

from smapi-android-installer.

ellipszist avatar ellipszist commented on September 12, 2024

Every thing will OK if you make your manifest's Name section from Stardew Valley Thai Language (Mobile) to AndroidModTH

Thanks.

I can change the name?
"Name": "648c4b387c5b61642614aa6677909a755a9b84fd96d717703fc83f5f73f515c0board",
to
"Name": "VirtualKeyboard",

from smapi-android-installer.

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.