IntRot error [Haplo Moddingtutorial]

Started by comfix, April 19, 2015, 03:38:59 PM

Previous topic - Next topic

comfix

Hi there,
I've got a Problem with this IntRot-variable.
I used the code sample that is provided in the Moddingtutorial of Haplo
Also I've changed in the DarkMatterGenerator file the "powerComp.powerOutput" to "powerComp.powerOutputInt", but this is not related to this file.

Here is my code:
http://pastebin.com/GRas7q97

Hope anyone can help me.

mrofa

For starters there is no intRot now , so you need to rename all intRots to Rot4, also direction got capital letter now ...
so insted of intRot.north you write Rot4.North. I will check rest later
All i do is clutter all around.

Tynan

Yes it was renamed because IntRot would be a misnomer, as the Rot4 is backed by a byte instead of an int. This was an optimization that reduced its size from 4 bytes (int) to 1 byte.
Tynan Sylvester - @TynanSylvester - Tynan's Blog