Sign in to follow this  
Batta

Recipe Suggestions

Recommended Posts

Is there a way we can contact the powers-that-be (PTB) to suggest recipes for WU?  For example, we have cabbage, ground meat, rice, tomatoes, herbs, and salt...yet no cabbage rolls recipe!  The very first things I thought of when I saw cabbage were cabbage rolls and saurkraut.  As far as I know, there is no way for us to add recipes just as regular players on a WU server, correct?  As a GM, I don't understand enough coding to make use of the database tweaks I've heard of, so I'm left hoping that the PTB can maybe take suggestions for some of the less-obscure and more obvious omissions, such as cabbage rolls.

 

Cabbage Rolls

(baking dish, oven)

- cabbage (not chopped)

- ground meat (beef or lamb)

- rice (cooked)

- tomatoes (chopped)

- any herbs (chopped)

- water

Optional:  salt

 

Edited by Batta

Share this post


Link to post
Share on other sites

No database tweaks are necessary to add your own recipes to WU - you just create a JSON file (following the basic format of the already-existing ones) and put it in the right directory on your server.  Restart, and bingo, your new recipe is there.

 

From memory, I think the directory is 'Recipes' in the main server directory - each file in there is a recipe (the name is the recipe ID) - find an unused ID, create a new text file, and off you go.

  • Like 1

Share this post


Link to post
Share on other sites

To make below I used:

1. What is a valid entry for a field (because proper names and correct spelling are required)

 https://docs.google.com/spreadsheets/d/1u7OMB3lcvaKHFuOtsD1lYUv_N-sqNIf2PPKQcQUuWQw/edit?usp=sharing

 

2. 

 

 

baked Cabbage rolls, lamb.  I'm not sure how to do an "either or" in the mandatory section. I could have put lamb and beef in a zero or one group but that would mean meatless rolls would be possible, not that there is anything wrong with that.

 

Spoiler

{
  "name": "Cabbage Rolls",
  "recipeid": "1503",
  "known": true,
  "skill": "hot food cooking",
  "trigger": "heat",
  "cookers": [
    {
      "id": "oven",
      "difficulty": 0.0
    },
    {
      "id": "forge",
      "difficulty": 5.0
    },
    {
      "id": "campfire",
      "difficulty": 10.0
    }
  ],
  "containers": [
    {
      "id": "roasting dish",
      "difficulty": 0.0
    },
    {
      "id": "pottery bowl",
      "difficulty": 5.0
    },
    {
      "id": "sauce pan",
      "difficulty": 10.0
    },
    {
      "id": "open helm",
      "difficulty": 20.0
    }
  ],
  "ingredients": {
    "mandatory": [
      {
        "id": "cabbage",
        "cstate": "steamed"
      },
      {
        "id": "cooked rice",
      },
      {
        "id": "tomato",
        "pstate": "chopped"
      },
      {
        "id": "any herb",
        "pstate": "chopped"
      },
      {
        "id": "water",
        "ratio": 10.0,
        "loss": 0.0
      },
      {
        "id": "meat",
        "pstate": "minced",
        "material": "lamb"
      }
    ],
    "optional": [
      {
        "id": "salt"
      }
    ]
  },
  "result": {
    "id": "meal",
    "name": "Cabbage rolls",
    "cstate": "baked",
    "material": "lamb",
    "difficulty": 10.0,
    "description": "A lamb, tomato, rice, and herb mixture wrapped up in cabbage."
  }
}

Edited by joedobo
  • Like 1

Share this post


Link to post
Share on other sites
On 4/21/2017 at 1:53 AM, Wonka said:

No database tweaks are necessary to add your own recipes to WU - you just create a JSON file (following the basic format of the already-existing ones) and put it in the right directory on your server.  Restart, and bingo, your new recipe is there.

 

From memory, I think the directory is 'Recipes' in the main server directory - each file in there is a recipe (the name is the recipe ID) - find an unused ID, create a new text file, and off you go.

 

Yah, I have no idea what that means.  When I said "database tweaks" I guess I meant things like "create a JSON file" -- my server is on a host, and I haven't been able to figure out how to edit anything in the files (which I had assumed were called database files, but possibly I have no clue what I'm talking about).

 

I don't suppose someone can explain what it means to create a JSON file, how to access/open it, how to get it onto the files on my server host...?

 

Or is there anyway to just ask Wurm developers to add it to the recipes?

Share this post


Link to post
Share on other sites

Json files are opened with something like a notepad I would use notepad++ you then save as once you have made the changes you want to make, as for getting them on your server, I would suspect, that you simply drop them in your "recipe" folder on the server folder don't quote me, because I could be wrong lol, but I hope this helps a little

Share this post


Link to post
Share on other sites

My recipe isn't showing up in game, on my LAN server. Can anyone help me figure out why?

 

I created the following recipe in Notepad++, changed the Language to JSON, then saved it as a .json file in the directory Wurm Unlimited Dedicated Server/Creative/recipes as "recipe1503.json"   Then I used patcher.bat to patch the server.

 

When I log in and type "cabbage" in the recipes menu, nothing comes up.  Same if I type it with "ingredients" search selected.

 

Here's the recipe I added:

 

Spoiler

{
  "name": "Cabbage Rolls",
  "recipeid": "1503",
  "known": true,
  "skill": "hot food cooking",
  "trigger": "heat",
  "cookers": [
    {
      "id": "oven",
      "difficulty": 0.0
    },
  ],
  "containers": [
    {
      "id": "roasting dish",
      "difficulty": 0.0
    },
    ],
  "ingredients": {
    "mandatory": [
      {
        "id": "cabbage",
        "cstate": "steamed"
      },
      {
        "id": "cooked rice",
      },
      {
        "id": "onion",
        "pstate": "chopped"
      },
        "id": "garlic",
        "pstate": "chopped"
      },      
        "id": "tomato",
        "pstate": "chopped"
      },            
      {
        "id": "rosemary",
        "pstate": "chopped"
      },
      {
        "id": "water",
        "ratio": 10.0,
        "loss": 0.0
      },
      {
        "id": "meat",
        "pstate": "minced",
        "material": "lamb"
      }
    ],
    "optional": [
      {
        "id": "salt"
      }
    ]
  },
  "result": {
    "id": "meal",
    "name": "cabbage rolls",
    "cstate": "baked",
    "material": "lamb",
    "difficulty": 10.0,
    "description": "A savoury lamb mixture wrapped up in cabbage."
  }
}

 

Edited by Batta

Share this post


Link to post
Share on other sites

I finally found the other recipes, in Wurm Unlimited Dedicated Server/dist/recipes, and added my recipe there. Now it's working properly. Thanks for your help!

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this