0 votes

I am trying to make a survival game. Each biome has several parameters: height, moisture and temperature. Each biome is a resource file, it has each of the previously listed parameters, a list of characters such as ">", "<", etc. (you can also choose "between"). and a dictionary of names of tiles and the chance of appearance of a tile in the biome. You choose the minimum and maximum of each parameter, the sign and fill in the dictionary - biome ready (if the "sign" is not selected "between", the minimum and maximum values of each parameter should be the same). Also, there is a resource file for the tile, which has the name and ID of the tile. So, the problem is. I created 8 biomes and 6 tiles. But when the game displays error that the parameters do not fit any biome (I created a function where the parameters of height, humidity and temperature select biome and written error output for functions).
Also, when you restart the engine, the signs of values for BiomeResource resources in the engine is reset to the default value, but nothing in the file changes.

Project link: https://drive.google.com/file/d/1OjwrRSoQd-CJuxorD8bK7z2VaPYmTPUy/view?usp=sharing

Godot version v3.5.1.stable.official
in Engine by (159 points)
reshown by

Please log in or register to answer this question.

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read Frequently asked questions and How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to [email protected] with your username.