@red51 I had a thought and wanted to ask you before I try anything stupid, what would happen if I changed the values in the definitions.db e.g. the food restore thirst/hunger values (what I mean is to take the db out of the commons.jar, then change the values and then put it back in the jar)? would my game work but with the new values (at least in SP) or would I actually break the game completely?
definitions.db question
- Minotorious
- Closed
- Thread is marked as Resolved.
-
-
Basically you can change the values in the definitions.db But depending on what you change exactly, you may break the game (especially if you change critical values, like IDs), but in this case you could simply revert the changes^^
Usually it should work fine in singleplayer (e.g. you should be able to increate the hunger/thirst restore values), and certain things may even work in multiplayer (e.g. if you change the model path of an item, or the according texture). However, in multiplayer there is a chance to get kicked, or more precisely, you could trigger an "illegal state warning" for your player, and depending on the server threshold you may get kicked after a given amount of these warnings (see settings_illegal_state_limit in the server.properties). Nevertheless, this doesn't matter if it's your own server and if you're just changing these things for testing purposes
-
Thanks for the quick reply Now another question on the same topic but server side this time
so then if I go to the server commons.jar and change the values there, will my changes apply to all players or will the players get errors when trying to join my server because of the mismatch between their client's commons.jar and the server's one?
-
Changes that are done to the server commons.jar do not affect clients. Players can still join the server, but if the server detects too many inconsistencies between the client and his own definitions, it will kick the player
-
hmm ok so let's say I change the tomato thirst restore value from 20 to 50 in my local definitions database. Then I connect to a server which is using the unchanged definitions database, as you said I will get an "illegal state warning" which I ignore for now. Then I go on and eat a tomato, how much thirst will that tomato actually restore? 20 or 50? or will I get another illegal state warning the moment I eat the tomato?
-
It depends on what values you change exactly Changing the thirst restore value, for example, does not have an influence on a multiplayer session, since the servers uses the values from its own db anyway (you won't even get an illegal state warning in this case, since the client doesn't use this value at all).
-
ok I see, thank you for the info now all that's left is for me to try out a few things
Participate now!
Don’t have an account yet? Create a new account now and be part of our community!