Hi,
I have found an issue reagrding the string table manager and the string file it produces.
The issue is around the code in the game_daemon.script that handles the USE item WITH item mechanic.
The words USE and WITH are given an ID by the table manager but when you run the game using the string file containing these ID`s the ID is shown along with the text USE and WITH.
Example:
// handle the standard foating caption
if(Game.Interactive && ActObj!=null)
{
if (Game.SelectedItem==null)
{
WinCaption.X = Game.MouseX -10;
WinCaption.Y = Game.MouseY + 40;
WinCaption.TextAlign = TAL_CENTER;
WinCaption.Text = ActObj.Caption;
// keep the caption on screen
WinCaption.SizeToFit();
if(WinCaption.X + WinCaption.Width > Game.ScreenWidth) WinCaption.X = Game.ScreenWidth - WinCaption.Width;
if(WinCaption.Y + WinCaption.Height > Game.ScreenHeight) WinCaption.Y = Game.ScreenHeight - WinCaption.Height;
}
// handle the caption when you want to use an object with another
else {
var Item = Game.SelectedItem;
WinCaption.X = 0;
WinCaption.Y = 0;
WinCaption.Width = Game.ScreenWidth;
WinCaption.TextAlign = TAL_CENTER;
WinCaption.Text = "Use " + Item.Caption + " with " + ActObj.Caption;
}
if(CAPTIONS)
{
WinCaption.Visible = true;
WinCaption.Focus();
}
}
else WinCaption.Visible = false;
this becomes: -
// handle the standard foating caption
if(Game.Interactive && ActObj!=null)
{
if (Game.SelectedItem==null)
{
WinCaption.X = Game.MouseX -10;
WinCaption.Y = Game.MouseY + 40;
WinCaption.TextAlign = TAL_CENTER;
WinCaption.Text = ActObj.Caption;
// keep the caption on screen
WinCaption.SizeToFit();
if(WinCaption.X + WinCaption.Width > Game.ScreenWidth) WinCaption.X = Game.ScreenWidth - WinCaption.Width;
if(WinCaption.Y + WinCaption.Height > Game.ScreenHeight) WinCaption.Y = Game.ScreenHeight - WinCaption.Height;
}
// handle the caption when you want to use an object with another
else {
var Item = Game.SelectedItem;
WinCaption.X = 0;
WinCaption.Y = 0;
WinCaption.Width = Game.ScreenWidth;
WinCaption.TextAlign = TAL_CENTER;
WinCaption.Text = "/syseng0101/ Use " + Item.Caption + "/syseng0102/ with " + ActObj.Caption;
}
if(CAPTIONS)
{
WinCaption.Visible = true;
WinCaption.Focus();
}
}
else WinCaption.Visible = false;
In game, when using an item on an item you get - "/syseng01001/ Use ITEMA /syseng01002/ with ITEMB" appear as the text not "use ITEMA with ITEMB"
How can this be overcome as these words will need to be in the string file for localisation purposes