Jump to content



3 replies to this topic

#1 grodrigues

  • Members
  • 16 posts

Posted 14 April 2017 - 12:21 PM

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.
    COPY ~...inlined/null.itm~ ~override/%item%.itm~
        //Expand to proper size.
        INSERT_BYTES 0x00 114

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.

#2 Jarno Mikkola

Jarno Mikkola

    The Imp

  • Modders
  • 6441 posts
  • Gender:Male
  • Location:The town where the dead haven't keeled over, yet. In Finland.

Posted 14 April 2017 - 12:41 PM

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.

Welcome to the sanity, you are free to search for the limit, it's out there, we drew it in the sand.
Here's how to install all the ... mods you ever really could want to Infinity Engine games. I removed the stable word from there as Roxanne began to add BS mods that are likely to break compatibility from the BWS.

#3 Ardanis


    A very GAR character

  • Modders
  • 2575 posts
  • Gender:Male
  • Location:Saint-Petersburg, Russia

Posted 14 April 2017 - 12:50 PM

It's four whitespaces before >>>>>>>>, most likely.

Edited by Ardanis, 14 April 2017 - 12:51 PM.

"Uguu~ Boku Ayu."

Before you start breaking wall tiles with your bare fists, ask yourself first - do you truly need it?

#4 grodrigues

  • Members
  • 16 posts

Posted 14 April 2017 - 01:12 PM

It's four whitespaces before >>>>>>>>, most likely.




Thanks Ardanis. And thanks Jarno for the tip.

Reply to this topic


0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users