Results 1 to 11 of 11
  1. #1
    Pete8497's Avatar
    Join Date
    May 2010
    Gender
    male
    Posts
    23
    Reputation
    10
    Thanks
    0

    (HELP!) Text String Length Limit? (HELP!)

    Hey guys! Im implamenting a scrolling text at teh bottom of the screen into my mod, (its from the quarantine chaos zombie mod), and im having trouble.

    My problem occures when my text gets to long... Like if i type more than two sentences, it gets cut off.. I was wondering if the settings are weird and im missing some length limit counter, but please look over it and tell me a way i could make it longer!

    Its important to read my \\ comments i put into this code below, it tells you what ive tried and the results.

    Code:
    CreateServerHUD() \\Defines the text and how it works
    {
    	level.TimerText4 = level createServerFontString( "objective", 5.5 );
    	level.TimerText4 setPoint( "CENTER", "CENTER", 1110, -100 );
    	level.scrollleft4 = NewHudElem();
    	level.scrollleft4.alignX = "center";
    	level.scrollleft4.alignY = "bottom";
    	level.scrollleft4.horzAlign = "center";
    	level.scrollleft4.vertAlign = "bottom";
    	level.scrollleft4.x = -500;
    	level.scrollleft4.y = -60;
    	level.scrollleft4.foreground = true;
    	level.scrollleft4.fontScale = 2;
    	level.scrollleft4.font = "hudbig";
    	level.scrollleft4.alpha = 1;
    	level.scrollleft4.glow = 1;
    	level.scrollleft4.glowColor = ( 0, 0, 1 );
    	level.scrollleft4.glowAlpha = 1;
    	level.scrollleft4.color = ( 1.0, 1.0, 1.0 );
    	level.scrollright4 = NewHudElem();
    	level.scrollright4.alignX = "center";
    	level.scrollright4.alignY = "bottom";
    	level.scrollright4.horzAlign = "center";
    	level.scrollright4.vertAlign = "bottom";
    	level.scrollright4.x = 500;
    	level.scrollright4.y = -60;
    	level.scrollright4.foreground = true;
    	level.scrollright4.fontScale = 2;
    	level.scrollright4.font = "hudbig";
    	level.scrollright4.alpha = 1;
    	level.scrollright4.glow = 1;
    	level.scrollright4.glowColor = ( 0, 0, 1 );
    	level.scrollright4.glowAlpha = 1;
    	level.scrollright4.color = ( 1.0, 1.0, 1.0 );
    	level.infotext4 = NewHudElem();
    	level.infotext4.alignX = "center";
    	level.infotext4.alignY = "bottom";
    	level.infotext4.horzAlign = "center";
    	level.infotext4.vertAlign = "bottom";
    	level.infotext4.y = 25;
    	level.infotext4.foreground = true;
    	level.infotext4.fontScale = 1.35;
    	level.infotext4.font = "objective";
    	level.infotext4.alpha = 3;
    	level.infotext4.glow = 0;
    	level.infotext4.glowColor = ( 0, 0, 0 );
    	level.infotext4.glowAlpha = 1;
    	level.infotext4.color = ( 1.0, 1.0, 1.0 );
    	level.bar4 = level createServerBar((0.5, 0.5, 0.5), 1000, 25);
    	level.bar4.alignX = "center";
    	level.bar4.alignY = "bottom";
    	level.bar4.horzAlign = "center";
    	level.bar4.vertAlign = "bottom";
    	level.bar4.y = 30;
    	level.bar4.foreground = true;
    	level thread doInfoScroll2();
    }
    
    
    
    
    doInfoScroll2() \\ This is where i think the problem may be solved, but i dont really understand how this all works.
    {
    	self endon("disconnect");
    	for(i = 1700; i >= -1700; i -= 6) \\I know this 6 means the higher the number the faster teh text scrolls...
    	{
    		level.infotext4.x = i;
    		if(i == -2500){ \\ I tried switching these numbers around, but all it does is make the text scroll in longer/shorter, but doesent actually allow me to type in more text.
    			i = 1700;
    		}
    		wait .005;
    	}
    }
    
    
    
    
    doServerHUDControl() \\The actual text string.
    {
    	self endon("disconnect");
    	self endon("death");
    
    	level.infotext4 setText("^1Here is the text that scrolls across the screen. I will keep typing to shwo you when it gets cutt off. The text is not cut off just yet but it is getting quite close. Now the text is cut of here ->");
    If i type anymore than that above it just stops showing up and only shows whats before it!! Im wondering if there may be a limit of size of text that IW allows you to put into a "level.infotext4 setText" string.... Am i right?

    Or im just missing something simple above. Thanks!

  2. #2
    Pete8497's Avatar
    Join Date
    May 2010
    Gender
    male
    Posts
    23
    Reputation
    10
    Thanks
    0
    Help me anyone? please!!!! really need this to work

  3. #3
    Stoshy's Avatar
    Join Date
    Jan 2010
    Gender
    male
    Location
    O-('.'Q)
    Posts
    1,427
    Reputation
    15
    Thanks
    287
    My Mood
    Confused
    Quote Originally Posted by Pete8497 View Post
    Help me anyone? please!!!! really need this to work
    dont double post. some 1 will come across it, but itll pass looking at the thread time. /

    PLAY STARCRAFT II!? ADD ME! PINOYPUNCHINGBAG@YAHOO.COM OR MY FRIEND CODE 636 STOSHY!


  4. #4
    AZUMIKKEL's Avatar
    Join Date
    May 2010
    Gender
    male
    Location
    My moms house... what's so funny about that?
    Posts
    790
    Reputation
    19
    Thanks
    462
    My Mood
    Sneaky
    Make 2 different ones and switch to the second one when the first one has finished scrolling?
    www.YouTube.com/MpKiller100

  5. #5
    Pete8497's Avatar
    Join Date
    May 2010
    Gender
    male
    Posts
    23
    Reputation
    10
    Thanks
    0
    Quote Originally Posted by Stoshy View Post


    dont double post. some 1 will come across it, but itll pass looking at the thread time. /
    Thanks for warning, BUT whats wrong with double posting? I never got that rule. its retarted. They say its because you get an extra post... but who gives a fuck, you just got an extra post telling me not to double post... so why does it matter?

    Some rules are just dumb. Anyways, someone want to help me with this? I would greatly appreciate it!

  6. #6
    TheLynx's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Location
    Sverige
    Posts
    366
    Reputation
    10
    Thanks
    42
    My Mood
    Happy
    Quote Originally Posted by Pete8497 View Post
    Thanks for warning, BUT whats wrong with double posting? I never got that rule. its retarted. They say its because you get an extra post... but who gives a fuck, you just got an extra post telling me not to double post... so why does it matter?

    Some rules are just dumb. Anyways, someone want to help me with this? I would greatly appreciate it!
    You don't talk about the Fight Club.

  7. #7
    Pete8497's Avatar
    Join Date
    May 2010
    Gender
    male
    Posts
    23
    Reputation
    10
    Thanks
    0
    Quote Originally Posted by AZUMIKKEL View Post
    Make 2 different ones and switch to the second one when the first one has finished scrolling?
    Did that but then teh dbuy menu gets screwed up because not all the text shows up in it for some reason!!!

    Quote Originally Posted by TheLynx View Post
    You don't talk about the Fight Club.
    Huh?

  8. #8
    TheLynx's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Location
    Sverige
    Posts
    366
    Reputation
    10
    Thanks
    42
    My Mood
    Happy
    Quote Originally Posted by Pete8497 View Post
    Huh?
    Don't drop the soap.

  9. #9
    Archangel's Avatar
    Join Date
    Feb 2010
    Gender
    male
    Location
    Between Both Worlds
    Posts
    8,868
    Reputation
    1021
    Thanks
    8,867
    My Mood
    Angelic
    wrong section

    /moved to help

  10. #10
    Insane's Avatar
    Join Date
    Jun 2010
    Gender
    male
    Posts
    9,055
    Reputation
    1007
    Thanks
    1,997
    Quote Originally Posted by Pete8497 View Post
    Thanks for warning, BUT whats wrong with double posting? I never got that rule. its retarted. They say its because you get an extra post... but who gives a fuck, you just got an extra post telling me not to double post... so why does it matter?

    Some rules are just dumb. Anyways, someone want to help me with this? I would greatly appreciate it!
    That rule is there to prevent haematogenesis. Aka exploding and blood going everywhere.
    Insane
    Ex Middleman
    [
    PM|VM]
    |x|x|x|x|x|x|x|



    Quote Originally Posted by Boombox View Post
    Shut the fuck up insane you pussy bitch.
    Quote Originally Posted by arunforce View Post
    Shut the fuck up kid, everything that comes out of your mouth sounds retarded as fuck.

  11. #11
    Pete8497's Avatar
    Join Date
    May 2010
    Gender
    male
    Posts
    23
    Reputation
    10
    Thanks
    0
    Quote Originally Posted by Insane View Post


    That rule is there to prevent haematogenesis. Aka exploding and blood going everywhere.
    WTF? can you guys stop using stupid explinations? haha.

    Anyways, i still need help!

Similar Threads

  1. [Release] Engine DUMP [TEXT STRINGS]
    By harpreet10 in forum Combat Arms Hack Coding / Programming / Source Code
    Replies: 5
    Last Post: 05-14-2011, 08:49 AM
  2. [HELP] Math.Abs(Textbox1.text) issue
    By mnpeep in forum Visual Basic Programming
    Replies: 8
    Last Post: 11-23-2009, 10:46 PM
  3. text web based mmo game hack.. help..
    By paan92 in forum General Hacking
    Replies: 1
    Last Post: 09-18-2009, 12:52 PM
  4. help with text on sig!
    By mexicano007 in forum Art & Graphic Design
    Replies: 11
    Last Post: 06-28-2009, 04:01 PM
  5. [HELP] User-Definable Function Strings
    By ilovepie21 in forum Visual Basic Programming
    Replies: 1
    Last Post: 04-24-2008, 10:16 PM