x

Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

Variable Wont Count Up Past 400 Million

Hello, I am creating a cookie clicker-esque game. I figure the best way to learn is to make a projetc, however I cannot get my amount of cookies variable to get past 400 million. So my question is, Is there a max value for a variable to be in unreal?

Product Version: UE 4.8
Tags:
more ▼

asked Jun 26 '15 at 12:14 AM in Blueprint Scripting

avatar image

mastergrief
16 3 6

avatar image Enlo Jul 09 '15 at 02:01 PM

yes, integers DO have a max and min value. I don't know the max amount, but the range was -2'147'483'648 to 2'147'483'647 in previous unreal engines.

The available types (in C++ Code) can be found here.

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

1 answer: sort voted first

UE4 reflection system uses 32-bit integers so it only fits what you can fit in 32 bits, in C++ there more options, including TBigInt which let you make infinitly big integers (i think, definitly memory is limit here :p), but reflection system does not support them so you won't have it blueprints. You can emulate TBigInt by combining few integers (I think thats what TBigInt do in C++ since C++ it self only support max 64-bit on 64-bit CPUs)

more ▼

answered Jul 09 '15 at 02:38 PM

avatar image

Shadowriver
37.2k 936 172 1116

avatar image mastergrief Jul 13 '15 at 06:06 PM

Thank you!

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question