Hi, I enjoy your optimized galaxy language. Your editor seems to have several issues, as such I recommend working on just the compiler (which can then be attached to an editor/IDE of your choice).
Anyways I saw your editor today and decided to give it a shot. It unfortunately fails (does not report any errors, just crashes) with the following code. It's probably something to do with the code, I recently started programming in galaxy (recently being, today).
#trigger MeleeInitialization{ #events{TriggerAddEventMapInit(MeleeInitialization);} #actions{MeleeInitResources();MeleeInitUnits();MeleeInitAI();MeleeInitOptions();}}#class ZI_UnitGroup{unitgroupunitgrpCurrent;ZI_UnitGroup(){unitgrpCurrent=null;}voidCreate(){if(unitgrpCurrent!=null)return;unitgrpCurrent=UnitGroup(null,-1,RegionCircle(null,0),null,0);}voidAddUnit(unitunitNew){UnitGroupAdd(unitgrpCurrent,unitNew);}}// This class allows manipulation of a unit.#class ZI_Unit{unitunitCurrent;ZI_Unit(){unitCurrent=null;}voidCreate(stringstrUnitName,intiPlayer,pointptLocation,pointptFacing){libNtve_gf_UnitCreateFacingPoint(1,strUnitName,0,iPlayer,ptLocation,ptFacing);unitCurrent=UnitLastCreated();}voidDestory(){if(unitCurrent==null)return;UnitKill(unitCurrent);}voidRemove(){if(unitCurrent==null)return;UnitRemove(unitCurrent);}voidMakeInvulnerable(boolbInvunl){if(unitCurrent==null)return;libNtve_gf_MakeUnitInvulnerable(unitCurrent,bInvunl);}voidAttackGroundAtPoint(pointptAttack){if(unitCurrent==null)return;UnitIssueOrder(unitCurrent,OrderTargetingPoint(AbilityCommand("Attack",0),ptAttack),c_orderQueueReplace);}boolHasBehavior(stringstrBehaviorName){if(unitCurrent==null)returnfalse;returnUnitHasBehavior(unitCurrent,strBehaviorName);}boolIsAlive(){if(unitCurrent==null)returnfalse;returnUnitIsAlive(unitCurrent);}}
Nothing special, just some basic encapsulation of raw galaxy functions. It crashes once I added once I added some methods to the ZI_Unitgroup.
0
Hi, your editor crashes upon folding multiple functions.
Also is there no way to make arrays of classes? Example: SampleClass[4] *SClass;
0
Hi, I enjoy your optimized galaxy language. Your editor seems to have several issues, as such I recommend working on just the compiler (which can then be attached to an editor/IDE of your choice).
Anyways I saw your editor today and decided to give it a shot. It unfortunately fails (does not report any errors, just crashes) with the following code. It's probably something to do with the code, I recently started programming in galaxy (recently being, today).
Nothing special, just some basic encapsulation of raw galaxy functions. It crashes once I added once I added some methods to the ZI_Unitgroup.