0 Members and 1 Guest are viewing this topic.
Syphatique comme vaisseau. Perso j'aurais préféré une apparence plus fragile au niveau du truss dock et payload, (structure genre tour effeil). Et une ou deux roues gravitationelles...
class AnimState {public: enum Action {STOPPED, CLOSED, OPEN, CLOSING, OPENING} action; double pos; void Set (Action a, double p) { action = a, pos = p; } bool Move (double dp) { if (!Moving()) return false; if (Closing()) { if ((pos = max (0.0, pos-dp)) == 0.0) action = CLOSED; } else { if ((pos = min (1.0, pos+dp)) == 1.0) action = OPEN; } return true; } bool Moving() const { return action >= CLOSING; } bool Static() const { return action < CLOSING; } bool Stopped() const { return action == STOPPED; } bool Closed() const { return action == CLOSED; } bool Open() const { return action == OPEN; } bool Closing() const { return action == CLOSING; } bool Opening() const { return action == OPENING; } friend OAPIFUNC void WriteScenario_state (FILEHANDLE f, char *tag, const AnimState &s); friend OAPIFUNC void sscan_state (char *str, AnimState &s);};
C:\...\MonAddon\VesselAPI.h|437|error: `max' was not declared in this scope|C:\...\MonAddon\VesselAPI.h|439|error: `min' was not declared in this scope|
SolarLiner a écrit:si tu fais avec spacecraft, l ne sera pas compatible oribter 2010
SolarLiner a écrit:chez moi sa ne marche pas du tout, même après ré-installation du module ...
[EX_MAIN_1]OFF = (0,-122.55,0)DIR = (0,-1,0)LENGTH = 7WIDTH = 1.5[CONFIG]...MAIN_THRUST = 40000MAIN_THRUST = TEX_1MAIN_PSTREAM1 = Main_thrust...
[TEXTURE_LIST]TEX_1 = Exhaust_atrcs[PARTICLESTREAM_1]NAME = Main_thrustDLL = exhaustSRCRATE = 15SCRSIZE = 8.0V0 = 165.0LTYPE = EmissiveLEVELMAP = LVL_SQRTLIFETIME = 0.2GROWTHRATE = 10SCRSPREAD = 0.13ATMSLOWDOWN = 1.0LMIN = 0LMAX = 1AMIN = 1E-5[CONFIG]MESHNAME = ITP\ITPSIZE = 120EMPTY_MASS = 103004FUEL_MASS = 20000MAIN_THRUST = 40000MAIN_THRUST = TEX_1MAIN_PSTREAM1 = Main_thrustISP = 7000CW_Z_POS = 0.2CW_Z_NEG = 0.5CW_X = 1.5CW_Y = 1.5COG = 8[DOCK_1]POS = (0,-57.553,0)DIR = (0,-1,0)ROT = (0,0,0)[EX_MAIN_1]OFF = (0,-122.55,0)DIR = (0,-1,0)LENGTH = 7WIDTH = 1.5