- Joined
- Jul 6, 2015
- Messages
- 14
- Reaction score
- 2
If a person's goal is to be a merchant, or is trying to create a shop on a multiplayer server, the 2 billion credit cap quickly becomes a problem, please remove this limit.
Power capacity is obviously a float, not an integer like credits, so you can't compare both.If it was a "real" limit with java, you couldn't have a battery capacity over 2.14 billion either. (you can)
java has support for 64 bit integers(max: 9223372036854775807), if they were to use a 64 bit integer instead, the credit cap wouldn't be a problem.I believe the credit cap is a limit in java not some arbitrary value that can be changed. I think in order to counter this every item in the game would have to have their value decreased.
Since the credit counter could easily be made a float, you very much can.Power capacity is obviously a float, not an integer like credits, so you can't compare both.
have fun with rounding errors then.Since the credit counter could easily be made a float, you very much can.
That is indeed the case, as far as I know, and changing a datatype is really easy.I think it is more of a datatype max issue than anything. Since Credits is an Int it'd need to be changed to another kind of Int like a Long Int or something.
Ever heard of floor()? It's not like the game has screwed up with the float arithmetics anywhere else.have fun with rounding errors then.
Tell me one other point in the game, where floating point errors would stack or matter?Ever heard of floor()? It's not like the game has screwed up with the float arithmetics anywhere else.
It depends on how the game stores player data, but it would probably be possible to change it and still keep everyone's credits, if the game stores it in binary form u would need support for 32 bit integers in the file system as well until everyone's player data get's converted to the new system.That is indeed the case, as far as I know, and changing a datatype is really easy.
The only problem is, that this would most likely destroy any previous universes, that ever had a player in them.
It does store it in binary form, and having support for both 32bit integer and 64bit integer to read at the same time would likely be tricky, considering the file's structure.It depends on how the game stores player data, but it would probably be possible to change it and still keep everyone's credits, if the game stores it in binary form u would need support for 32 bit integers in the file system as well until everyone's player data get's converted to the new system.
You can store credits in a shop module, but there are a couple problems with this:
- Credits can be stored in a shop module.
- While I'm sure Schine wants to do so, nothing guarantees save compatibility at this stage of development.
this could work for the player, but this wouldn't solve the issue with player owned shops, also if someone doesn't know about the 2bil credit cap, they could get burned if they sell 50k computers while already having 2bil.My personal though on this is to temperarily just add a meta item megabuck. Credit cap can stay at 2 billion, you can trade 1 mil and 1 bil dollars for "megabucks" at unowned shops(because the megabucks would be just created, to prevent someone from buying and rebuying megabucks at their own shop). Megabucks could be sold at other shops for 1mil/bil credits.