CSBuild: bug in Import Character Data?
Posted: Mon Nov 22, 2021 8:17 am
Hi all.
This is my first post, so big thanks for making DM and CSB live after so many years.
I'm having a look at CSBuild_2019070101 and it seems that the import character data function actually only imports the first three characters.
Be warned, my programming memories go back to when I was playing the game, late 80's
But I had a look at an older source code available (from CSBuild3_20src.zip) and in CCSBuildView::OnImportCharacterData it does:
Should'nt that 3 be 4?
BTW, is there some tool to edit the CharacterData.bin file nicely, working on a current Windows 10? I had a look at ADGE, CSBhedit and others, but they all seem to be for older windows versions. For my experiments I can use an hex editor and the CHARDESC struct in types.h, but if there is something friendly, it would be nice imho.
Anyway, thank you again very much.
This is my first post, so big thanks for making DM and CSB live after so many years.
I'm having a look at CSBuild_2019070101 and it seems that the import character data function actually only imports the first three characters.
Be warned, my programming memories go back to when I was playing the game, late 80's

But I had a look at an older source code available (from CSBuild3_20src.zip) and in CCSBuildView::OnImportCharacterData it does:
Code: Select all
for (i=0; i<3; i++)
{
pDoc->ImportChar(i,(CHARDESC *)(temp+i*sizeof(CHARDESC)));
BTW, is there some tool to edit the CharacterData.bin file nicely, working on a current Windows 10? I had a look at ADGE, CSBhedit and others, but they all seem to be for older windows versions. For my experiments I can use an hex editor and the CHARDESC struct in types.h, but if there is something friendly, it would be nice imho.
Anyway, thank you again very much.