Thanks for all the quick responses;

Originally Posted By: AceX
You can use a entity skill as a string too grin
, true but that would be sacrificing 1 one of the 20 skills the user otherwise can use for e.g. stats like hit points to save in a .wmb map file.

Originally Posted By: Ch40zzC0d3r
Forget the read only stuff...
Nothing in memory is really read-only (just when the process constantly writes to the address which is not the case here).
So you either just call str_cpy and if it fails you can use VirtualProtect to change the page protections because it might be protected (ReadOnly).
, oh nice, ty for the tip.


Originally Posted By: sivan
if you need to store data on creating a wmb, I use it in MapBuilder, just save the info in the editor into a skill over 20 (the 1st 20 skills are saved into wmb), then get the string when you write the 2 strings into the new wmb. check my source, it is easy (I use it for storing decal shadow file name needed for free/extra license users).
, with source you mean your Map Builder source? I try to download it but both the mirrors don't work. But why actually not directly save the string into entity.string?