The online racing simulator
LFS-External - String Msg Length
Hi,

Been looking around for solutions to solve this but came upon a problem. Been using LSGO For a base and updated everything to LFS_External 1.1.1.7.
Been working great but noticed that if you make the text in a button or a message that it wont show. Is there anyway to actually fix this? Heard people saying that you can fix this with String.Length not sure at all

Thanks!

Yoran
Put the button Text in a variable then display the variable in the button.
So if the text you need to display is bla hair bla bla coconut bla bla bla bla bla goat butter bla

var a = bla hair bla bla coconut bla bla bla bla bla goat butter bla

and then you just put the a in the button


it might work ,Good idea
Never thought of that Thanks! Ill Definitely try this method
Tried it out done this so far :

var uf1 = "^1* ^2Vehicle: ^7UF1 ^2Buy Price: ^74000$ ^2Sell Price: ^74000$ ^1- ^2Purchased ^1- ^2Sell";
InSim.Send_BTN_CreateButton(uf1, Flags.ButtonStyles.ISB_C1, 5, 50, 50, 50, 190, NCN.UCID, 2, false);

The same problem is accuring : (
are u sure the button id isnt conflicting with another button? or better still just switch to Insim.net or PRISM as LFS_External 1.1.7 is known for that bug if you dont need the features of 1.1.7 just downgrade the .dll
Fixed the problem by a code that Skywatcher posted : ) Thanks for all the help
Quote from yoran765 :Fixed the problem by a code that Skywatcher posted : ) Thanks for all the help

Link?
What he posted :

Quote from skywatcher122 :I tried to fix the Create_BTN bug which limits characters (which extracted from LFS_External 1.1.0.0 DLL from dissembler) and it seems to be working on DarkTimes 1.1.1.6

open "MakePacket.cs" and replace the code below

<?php 
        
public static byte[] ISP_BTN(string ButtonTextLFS_External.InSim.Flags.ButtonStyles Stylebyte Heightbyte Widthbyte Topbyte Leftbyte ClickIDbyte UniqueIDbyte RequestIDbool AlwaysVisible)
        {
            
LFS_External.Packets.IS_BTN sourceStruct = new LFS_External.Packets.IS_BTN
            
{
                
Size 0xfc,
                
ReqI RequestID,
                
Type 0x2d,
                
UCID UniqueID,
                
BStyle Style,
                
ClickID ClickID,
                
Text ButtonText,
                
TypeIn 0
            
};
            if (
AlwaysVisible)
            {
                
sourceStruct.Inst 0x80;
            }
            
sourceStruct.Height;
            
sourceStruct.Width;
            
sourceStruct.Top;
            
sourceStruct.Left;
            return 
Util.PacketToData(sourceStruct);
        }

        public static 
byte[] ISP_BTN(string ButtonTextstring DialogCaptionLFS_External.InSim.Flags.ButtonStyles Stylebyte Heightbyte Widthbyte Topbyte Leftbyte TypeInbyte ClickIDbyte UniqueIDbyte RequestIDbool AlwaysVisible)
        {
            
LFS_External.Packets.IS_BTN sourceStruct = new LFS_External.Packets.IS_BTN();
            
char ch '\0';
            
string str string.Concat(new object[] { chDialogCaptionchButtonText });
            
sourceStruct.Size 0xfc;
            
sourceStruct.ReqI RequestID;
            
sourceStruct.Type 0x2d;
            
sourceStruct.UCID UniqueID;
            
sourceStruct.BStyle Style;
            
sourceStruct.ClickID ClickID;
            
sourceStruct.Text str;
            
sourceStruct.TypeIn TypeIn;
            if (
AlwaysVisible)
            {
                
sourceStruct.Inst 0x80;
            }
            
sourceStruct.Height;
            
sourceStruct.Width;
            
sourceStruct.Top;
            
sourceStruct.Left;
            return 
Util.PacketToData(sourceStruct);
        }
?>



FGED GREDG RDFGDR GSFDG