Aha, I see. Ive never played with hashmaps and havent really tried to understand the concepts yet,
thats a job for later...

BUT, here is an exceptionally ugly and mem-leaky little piece of code that I use in a tool Im building
that creates light entities and 'gives' them unique names.
Code:
   LightEnt = ent_create(Globe_MDL, nullpointer, NULL);
   STRING* tmp = str_create("GlobeLight_01");
   LightEnt.link.name = tmp.chars;
Its dirty but it works.
The concept may give you ideas and if you come up with something similar it may solve MadJacks crashes.

I'll be redoing my above snippet in an estimated few days to be 'clean' by using malloc instead
of a sacrificial string. If you want it, I'll post it in here when its done.


"There is no fate but what WE make." - CEO Cyberdyne Systems Corp.
A8.30.5 Commercial