Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

launch.json and default values

A topic by quantumodo created 65 days ago Views: 91 Replies: 7
Viewing posts 1 to 2

Hi, 

To avoid copying the pics folder every time a new version is released, I am resorting to changing the "image_folders" value in launch.json to a static folder where I have all the pics. However, I have not found a key for the textures folder. Is it possible to modify the location of the textures folder from the launch.json file?

Also, is it possible to set the "flip pause" value to true in this file?

Thanks in advance!

Developer

Hi @quantumodo,

Starting from version 0.5.9.4, you can specify the texture folder path within the image_folders key in the “launch.json” file. Here’s an example:

{
    "image_folders": [
        "D:\\assets_pics\\assets\\pics\\",
        "D:\\assets_pics\\assets\\textures\\"
    ]
}

After updating “launch.json,” please restart the game for the changes to take effect, and remember to “Empty Cache and Hard Reload.”

Regarding the “flip pause” setting, there is currently no dedicated key for it in the configuration file. However, as a temporary workaround, you can modify the default setting in “.\public\js\marvel\settings.js.” Look for the last line of that file and set it as follows:

ButtonSetting.pause_when_reveal_or_boost = 1;

After making this change, you won’t need to restart the game, but you should still “Empty Cache and Hard Reload.”

Please note that we do not recommend modifying the “settings.js” file. Make sure to create a backup before making any changes, and if you encounter any issues, please verify that they are not related to your modifications before reporting a bug.

Thanks!

I'll try that, thanks!

Just one more question about this: is there any way of changing the default location of the decks. Again, I'd like to have them in a centralized folder that I do not need to copy everytime I install a new version of the app. 

Thanks in advance!

Developer

Hi @quantumodo,

Thank you for your question! You can add a new key deck_folders in the “launch.json” file to modify the default location of the decks. Here’s an example of how to set it up:

{
    "deck_folders": [
        "./deck/",
        "D:\\marvel-lcg\\deck\\"
    ]
}

Please note that this setting is only used for displaying your decks in the “My Deck” section of the deck page.

If you have any further questions, feel free to ask!

Thanks! I take it that you can have multiple folders with decks, right? Is it also true for the images? Can you have the images disrtibuted among various folders? 

Thanks in advance!

Developer

Hi @quantumodo,

Yes, you can have multiple folders for your decks by specifying them in the deck_folders key. This also applies to images; you can distribute your images across various folders as well. Just make sure to include the correct paths in your configuration.

If you have any more questions or need further assistance, feel free to ask!

Thanks so much!