Skip to content

Never mind-after days of trying to fix it, I got it

spitzigspitzig Member Posts: 2
I'm trying to add two items. One is Slythe's invitation. Not having that will mean loading a save that is I don't know how old. The other is the scroll case. That's just for convenience.

I know of three ways to add them. I can't get any of them to work for different reasons.


EEkeeper isn't working. It sees the save files-even the pics from the files. But when I try to load a save, EEkeaper dies. I don't see a log file to do any kind of troubleshooting.


I've also tried Nearinfinity. I was able to add a bottle of wine from Durlag's Tower to the potion bag, but can't figure out how to add directly to inventory.


Using debug mode doesn't work.
I put this in the baldur.lua file:
SetPrivateProfileString('Program Options','Debug Mode','1')
It did not give access to debugging CTRL Space just paused the game.

I noticed the similarity in format in the baldur.ini file, so I added this to it:
'Program Options','Debug Mode','1'

That gave me debug mode, but C:CreateItem("BOOTS01") I get:
lua: indexed expression not a table
Active Stack:
Active Stack:

I also tried it the lua file altered and unaltered.

It looks like the kind of error you'd get from using a function with the wrong parameters, so I tried adding things to the function. I thought maybe it would be something like the number of the given item to be created. No change.

I see the ini file has this from what I've tried:

'Lua Edit', 'String0', 'C:CreateItem("BOOTS01", 4) ',
'Lua Edit', 'String1', 'C:CreateItem("Boots01") ',
'Lua Edit', 'String2', 'C:CreateItem("Boots01") ',
'Lua Edit', 'String3', 'C:CreateItem("Boot01") ',
'Lua Edit', 'String4', 'C:CreateItem("Boot01")',
'Lua Edit', 'String5', 'C:CreateItem("Boot01,4,1,1")',
'Lua Edit', 'String6', 'C:CreateItem("Boot01,4")',
'Lua Edit', 'String7', 'C:CreateItem("Boot01")',
'Lua Edit', 'String8', 'C:CreateItem("Boot01,4,1")',
'Lua Edit', 'String9', 'C:CreateItem(''Boot01,4,1'')'

Comments

  • sarevok57sarevok57 Member Posts: 5,975
    the reason why your debug inputs aren't working is because some of them are typed out wrong

    if what you are trying to import is boots of speed which is "boot01" then it would look like this;

    C:CreateItem("boot01")

    numbers after the item code correspond to stack sizes

    so for example if you were importing arrows ( arow01 ) and if you wanted a stack of 100 it would look like this;

    C:CreateItem("arow01",100)

    this also works for items that have charges like wands for example, this will set the charge amount

    if you need scythe's invitation then the correct code for that is;

    C:CreateItem("misc78")

    and if you are looking for the scroll case then try using the code;

    C:CreateItem("bag03")

    also if you have NI you can just add item; misc78 and bag03 to your inventory as well
Sign In or Register to comment.