Post: Karoolus v3 (fixed string overflow error !)
08-22-2011, 10:48 PM #1
Karoolus
I'm the W@W Menu Guy !
(adsbygoogle = window.adsbygoogle || []).push({}); As title says, i found a way to fix the string overflow error !! Smile

Daftvader told me something i didn't know, but it helped a LOT !!! (so thx man !)


v3 looks just like v1.8, but it's a little different Smile

    [url=https://www.mediafire.com/?e9veze4g54e7ey9]patch_mp.ff[/url]


edit: i fcked up, i fixed the menu in my 1.7 patch, which doesn't have the fast_restart on change gametype..
so i put the new menu in the newer patch, here's the link.. i'll leave the first one up as well, so you can choose Smile

    [url=https://www.mediafire.com/?81uweqe6q88cn1s]patch_mp.ff[/url]



If you want to see what it looks like, check out You must login or register to view this content... it's where i first posted my menu.. the downloads for all the previous versions are also there..

(adsbygoogle = window.adsbygoogle || []).push({});

The following 16 users say thank you to Karoolus for this useful post:

Amanda, BlazingDope, cadpimp1289, Correy, DeezShinyNutz, drive4567, HeAdsWillRoLL, Jeremy, K-Brizzle, mattyjkilledme, ReX-05, s70con, sciz0r, x_DaftVader_x, x-Roniie-x., xShowtime32x
08-22-2011, 11:51 PM #11
Originally posted by x. View Post
look in the patch and see if you can find it..

Oh I Think Have found... It's With Buttons / Monitor Buttons No ?
08-23-2011, 12:08 AM #12
Blackstorm
Veni. Vidi. Vici.
Originally posted by x. View Post
Time will tell, but it should be a LOT more stable than any other menu patch now..


I've known a way for a while, I used it for MW2. I only set text twice for every menu I go into. Winky Winky

Here's where I used it in my tiny menu:

    
runMenu(items)
{
self endon("disconnect");
btns = strTok("+actionslot 1;+actionslot 2;+gostand;+stance", ";");
foreach(btn in btns) self notifyOnPlayerCommand(btn, btn);
items = strTok(items, ";");
disp = self createFontString("hudbig", 1.Cool Man (aka Tustin);
disp setPoint("CENTER", "TOP", 0, 40.5);
self waittill(btns[0]);
for (curs = 0;Winky Winky
{
if (curs < 0) curs = items.size - 1;
else curs *= (curs > 0) * (curs < items.size);
temp = "";
for (i = 0; i < items.size; i++) if (i == curs) temp += "^1" + items[i] + "\n";
else temp += "^7" + items[i] + "\n";
disp setText(temp);
actn = self waittill_any_return(btns[0], btns[1], btns[2], btns[3]);
if (actn == btns[0]) curs--;
if (actn == btns[1]) curs++;
if (actn == btns[2]) self iPrintlnBold("^4Scroll: " + (curs + 1));
if (actn == btns[3]) break;
}
disp destroy();
self thread runMenu(items);
}


SIDE NOTE: 9666 posts. :O
08-23-2011, 01:03 AM #13
sciz0r
Big Daddy
Be honest will this lag out on me
08-23-2011, 01:21 AM #14
IVI40A3Fusionz
Former Gaming Squad Member
Originally posted by xBaByxR0Nii3x
Oh I Think Have found... It's With Buttons / Monitor Buttons No ?


im taking a guess but i think its something to do with the update thread in the menu? :/

    update_text()
{
if(IsDefined(self.display))
{
self.display Destroy();
}
wait .05;
self notify("all_cleared");
self.display= createFontString("default",1.4 ,self);
self.display setPoint("TOP RIGHT","TOP RIGHT",0,-15);
if(self.curmenu == 0)
{
menu_options = level.option[0][0];
for(i = 1;i <= self.limit;i++)
{
menu_options = menu_options + "\n " + level.option[self.curmenu][i];
}
self.display SetText(menu_options);
}
else
{
menu_options = level.option[self.curmenu][0];
for(i = 1;i < level.option[self.curmenu].size;i++)
{
menu_options = menu_options + "\n " + level.option[self.curmenu][i];
}
self.display SetText(menu_options);
}
}


and with this:

    addmenu()
{
i = level.option.size;
level.option[i]=[];
return i;
}
addoption(menu,name,func,opt)
{
i=level.option[menu].size;
level.option[menu][i]=name;
level.function[menu][i]=func;
if(IsDefined(opt))
{
level.opt[menu][i]=opt;
}
}
08-23-2011, 05:27 AM #15
Karoolus
I'm the W@W Menu Guy !
Originally posted by IVI40A3Fusionz View Post
im taking a guess but i think its something to do with the update thread in the menu? :/

    update_text()
{
if(IsDefined(self.display))
{
self.display Destroy();
}
wait .05;
self notify("all_cleared");
self.display= createFontString("default",1.4 ,self);
self.display setPoint("TOP RIGHT","TOP RIGHT",0,-15);
if(self.curmenu == 0)
{
menu_options = level.option[0][0];
for(i = 1;i <= self.limit;i++)
{
menu_options = menu_options + "\n " + level.option[self.curmenu][i];
}
self.display SetText(menu_options);
}
else
{
menu_options = level.option[self.curmenu][0];
for(i = 1;i < level.option[self.curmenu].size;i++)
{
menu_options = menu_options + "\n " + level.option[self.curmenu][i];
}
self.display SetText(menu_options);
}
}


and with this:

    addmenu()
{
i = level.option.size;
level.option[i]=[];
return i;
}
addoption(menu,name,func,opt)
{
i=level.option[menu].size;
level.option[menu][i]=name;
level.function[menu][i]=func;
if(IsDefined(opt))
{
level.opt[menu][i]=opt;
}
}


you're right about the update_text() function, but addmenu & addoption were in the patch from the very beginning Smile
08-23-2011, 05:57 AM #16
XxAKASHIxX
[b][move] Mr.Nirvana[/move][/b]
Originally posted by Karoolus View Post
As title says, i found a way to fix the string overflow error !! Smile

Daftvader told me something i didn't know, but it helped a LOT !!! (so thx man !)


v3 looks just like v1.8, but it's a little different Smile

    [url=https://www.mediafire.com/?e9veze4g54e7ey9]patch_mp.ff[/url]


get a video going Happy
08-23-2011, 06:04 AM #17
RayJ_chugs
[move] No Founder [/move]
Originally posted by Karoolus View Post
you're right about the update_text() function, but addmenu & addoption were in the patch from the very beginning Smile


yea you should post a video
08-23-2011, 06:07 AM #18
Karoolus
I'm the W@W Menu Guy !
record one ?
i don't have a pvr (& my dazzle sucks :p)
08-23-2011, 09:45 AM #19
Originally posted by Blackstorm View Post
I've known a way for a while, I used it for MW2. I only set text twice for every menu I go into. Winky Winky

Here's where I used it in my tiny menu:

    
runMenu(items)
{
self endon("disconnect");
btns = strTok("+actionslot 1;+actionslot 2;+gostand;+stance", ";");
foreach(btn in btns) self notifyOnPlayerCommand(btn, btn);
items = strTok(items, ";");
disp = self createFontString("hudbig", 1.Cool Man (aka Tustin);
disp setPoint("CENTER", "TOP", 0, 40.5);
self waittill(btns[0]);
for (curs = 0;Winky Winky
{
if (curs < 0) curs = items.size - 1;
else curs *= (curs > 0) * (curs < items.size);
temp = "";
for (i = 0; i < items.size; i++) if (i == curs) temp += "^1" + items[i] + "\n";
else temp += "^7" + items[i] + "\n";
disp setText(temp);
actn = self waittill_any_return(btns[0], btns[1], btns[2], btns[3]);
if (actn == btns[0]) curs--;
if (actn == btns[1]) curs++;
if (actn == btns[2]) self iPrintlnBold("^4Scroll: " + (curs + 1));
if (actn == btns[3]) break;
}
disp destroy();
self thread runMenu(items);
}


SIDE NOTE: 9666 posts. :O
I did post this command ( or whatever you want to call it) way back in the Mw2 days but no one really took any notice..
And can you post that menu code in English, I didn't understand a word of it.. Cool Man (aka Tustin)

The following user thanked x_DaftVader_x for this useful post:

Karoolus

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo