Team Spartan Cookies & Milk Forums
[BUG] Stargate functions - Printable Version

+- Team Spartan Cookies & Milk Forums (https://teamscm.co.uk)
+-- Forum: Garry's Mod (https://teamscm.co.uk/forum-4.html)
+--- Forum: Starfall (https://teamscm.co.uk/forum-7.html)
+--- Thread: [BUG] Stargate functions (/thread-1008.html)



[BUG] Stargate functions - Salira - 16-06-2015

All stargate functions in Starfall no longer work with entityConfusedomething() where entity is the stargate, and something is a SG function. ALL OF THEM!!!! Are broken! Now we have to use the long version of stargate.something(SG, something).


RE: [BUG] Stargate functions - Person8880 - 16-06-2015

This is fixed for the next server start. I should point out, that this is broken because of dumb GLua behaviour rather than anything I'm responsible for.

The game creates an entity, fires the entity creation event before the entity is even fully populated, then repopulates it with the full information later. Starfall's replicating this creation event and wrapping the incomplete entity, thus missing the context as to what kind of entity it actually is, in this case, a Stargate. The game should not be firing an event with an incomplete and unusable entity.


RE: [BUG] Stargate functions - Salira - 16-06-2015

Alright. Sorry for the accusation of you breaking it.