Where are my floating points, George?

Post ideas & suggestions you have pertaining to the game here.
Post Reply
Jeoshua
Militia Lieutenant
Militia Lieutenant
Posts: 163
Joined: Sat Sep 06, 2008 3:48 pm

Now, I'm not sure if it's my coding that has caused this, but:

http://transcendence.pastebin.com/mjwHR5PT

Returns 80, 160, 240, etc. Meaning theScale is being set to integers only. I also discovered that (power x y) returns 0 if y<1. Meaning no cubed roots or little-phi roots or whatever.

Is transcendence coded entirely in integer math?
User avatar
Arisaya
Fleet Admiral
Fleet Admiral
Posts: 5535
Joined: Tue Feb 05, 2008 1:10 am
Location: At the VSS Shipyards in the frontier, designing new ships.

scripts are, unfortunatly, as far as I know, limited to using integers; in fact, a good portion of the engine also relies on integer math, unfortunatly enough, resulting in problems such as the acceptable facing restrictions, as well as the minimum turn rate restriction, as well as various issues with fire rates and enhancements.
(shpOrder gPlayership 'barrelRoll)

<New tutorials, modding resources, and official extension stuff coming to this space soon!>
Jeoshua
Militia Lieutenant
Militia Lieutenant
Posts: 163
Joined: Sat Sep 06, 2008 3:48 pm

Well I found a way to make it work using fixed point mathematics... it's hackish... but it works.
Post Reply