Negative valve for ship costs over appr. 32700 credits

This forum is for outdated or irrelevant Modding Information that may or may not be 3 months old.

Moderator: thunderchero

Post Reply
User avatar
DOT
Lieutenant-Commander
Lieutenant-Commander
Posts: 100
Joined: Tue Dec 23, 2008 3:00 am
Location: 49°N, 8°E

Negative valve for ship costs over appr. 32700 credits

Post by DOT »

Hello,
is there a fix for the ship cost - which gets negative, if cost is set higher than 32767 or so credits?
I remember another topic where Gowron wrote about the building upgrade issue, but (when I am right), there was no edition for ship cost.

Thanx!
User avatar
slickrcbd
Lieutenant-Commander
Lieutenant-Commander
Posts: 111
Joined: Tue Sep 08, 2015 9:22 pm

Re: Negative valve for ship costs over appr. 32700 credits

Post by slickrcbd »

Without knowing anything about the game code, the number is most likely 32767 due to it being the limit for a 16-bit signed integer and thus one less than 2^15. 16-bit signed integers range from +/- 32767 as one bit is used for indicating positive or negative.
User avatar
thunderchero
Site Administrator aka Fleet Admiral
Site  Administrator aka Fleet Admiral
Posts: 6480
Joined: Fri Apr 25, 2008 2:00 am
Location: On a three month training mission, in command of the USS Valiant.
Contact:

Re: Negative valve for ship costs over appr. 32700 credits

Post by thunderchero »

correct, also this issue was fixed in this post.

viewtopic.php?f=234&t=464#p16922
Post Reply

Return to “Modding Information Archive”