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 » Thu Jan 29, 2009 1:54 pm

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-Junior Grade
Lieutenant-Junior Grade
Posts: 79
Joined: Tue Sep 08, 2015 9:22 pm

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

Post by slickrcbd » Tue Jan 22, 2019 3:17 pm

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: 6058
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 » Tue Jan 22, 2019 4:45 pm

correct, also this issue was fixed in this post.

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

Post Reply

Return to “Modding Information Archive”

Who is online

Users browsing this forum: No registered users