grodrigues Posted April 14, 2017 Share Posted April 14, 2017 With the following code: //Item functions. //Make new, minimally functional item. DEFINE_ACTION_FUNCTION ~make_new_item~ STR_VAR item = ~null~ BEGIN //Create null item. <<<<<<<<...inlined/null.itm >>>>>>>> COPY ~...inlined/null.itm~ ~override/%item%.itm~ //Expand to proper size. INSERT_BYTES 0x00 114 END LAF ~make_new_item~ STR_VAR item = ~g#ring01~ END Weidu insists on creating a file with 118 bytes. If I change 114 to 110, I get the 114 bytes so 4 extraneous bytes are being added somewhere along the line. Bug or am I missing something? Arch-linux with bg2 installed in a case-insensitive partition, weidu 240. More details, just ask. Link to comment
Jarno Mikkola Posted April 14, 2017 Share Posted April 14, 2017 The null.itm -file is probably 4 bytes long... or what ever. You might wish to use the CREATE -weidu function... though I have no further documentation for it. But the forums might have some. Link to comment
Ardanis Posted April 14, 2017 Share Posted April 14, 2017 It's four whitespaces before >>>>>>>>, most likely. Link to comment
grodrigues Posted April 14, 2017 Author Share Posted April 14, 2017 It's four whitespaces before >>>>>>>>, most likely. Duh. Thanks Ardanis. And thanks Jarno for the tip. Link to comment
Recommended Posts
Archived
This topic is now archived and is closed to further replies.