# How to exceed 2147 limit for CBM energy?

**URL:** https://discourse.cataclysmdda.org/t/how-to-exceed-2147-limit-for-cbm-energy/26314
**Category:** The Bunker
**Created:** [May 8, 2021, 5:11pm UTC](https://discourse.cataclysmdda.org/t/how-to-exceed-2147-limit-for-cbm-energy/26314 "2021-05-08T17:11:19Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![StarShatter](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/starshatter/32/11114_2.png) [@StarShatter](https://discourse.cataclysmdda.org/u/StarShatter)
#### Post date: [May 8, 2021, 5:11pm UTC](https://discourse.cataclysmdda.org/t/how-to-exceed-2147-limit-for-cbm-energy/26314/1 "2021-05-08T17:11:20Z")

</div>

Is there any mod? Or need change something in configs?  
Or it is impossible to change?  
E-3 stable

---

<div class="post-metadata">

### Author: ![Fris0uman](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/fris0uman/32/8607_2.png) [@Fris0uman](https://discourse.cataclysmdda.org/u/Fris0uman)
#### Post date: [May 8, 2021, 5:25pm UTC](https://discourse.cataclysmdda.org/t/how-to-exceed-2147-limit-for-cbm-energy/26314/2 "2021-05-08T17:25:54Z")

</div>

[int64\_t for energy by Fris0uman · Pull Request #34431 · CleverRaven/Cataclysm-DDA · GitHub](https://github.com/CleverRaven/Cataclysm-DDA/pull/34431) do what this PR did and recompile the game  
There’s no way to mod it, the power cap is the biggest number your computer can store in a 32bit integer

---

<div class="post-metadata">

### Author: ![StarShatter](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/starshatter/32/11114_2.png) [@StarShatter](https://discourse.cataclysmdda.org/u/StarShatter)
#### Post date: [May 8, 2021, 5:54pm UTC](https://discourse.cataclysmdda.org/t/how-to-exceed-2147-limit-for-cbm-energy/26314/3 "2021-05-08T17:54:14Z")

</div>

Is any one have int64 version for energy ?  
My programming skills not so good for recompiling =)

---

<div class="post-metadata">

### Author: ![PALU](https://avatars.discourse-cdn.com/v4/letter/p/e56c9b/32.png) [@PALU](https://discourse.cataclysmdda.org/u/PALU)
#### Post date: [May 8, 2021, 9:23pm UTC](https://discourse.cataclysmdda.org/t/how-to-exceed-2147-limit-for-cbm-energy/26314/4 "2021-05-08T21:23:16Z")

</div>

2 giga is the signed 32 bit limit, while 4 giga is the unsigned one. That would still require recompilation as well as a check that the JSON writing/parsing can handle numbers larger than 2 giga, so Fris0uman’s approach is a superior one anyway.
