Combat Cards

Streaming Combat Cards by docboffin
8 +00002006-10-12T21:34:52+00:00312006b+00:00Thu, 12 Oct 2006 21:34:52 +0000 2006, 9:34 pm
Filed under: Code, LSL, Scripting

The biggest change we needed to make to the Combat Cards code for the new horror expansion was to add support for data streaming. For a long time we’ve stored the data for the different combat cards as comma separated values in a notecard, one line per card. Early versions of Combat Cards just looped through this notecard turning the lines in to LSL lists which were concatenated together to create a big list with all the game data in. This worked fine up to about 9 cards, but when we went to the 15 current cards the server and client scripts started crashing with stack/heap collisions: LSL’s way of saying that scripts have run out of memory.

Continue reading