Post: Editing Patch Help (1.11)
07-27-2011, 04:42 AM #1
whichwaygames
Bounty hunter
(adsbygoogle = window.adsbygoogle || []).push({}); I am trying to edit K Brizzles Final Tree Patch, but I can not add a menu. I have tried for three or more hours doing everything I can think of, and I am still getting a syntax error. I know it is from me trying to add the menu, because without it , it works fine.

Here is what I have done so far:

This is the Main menu for the patch, and at the bottom I added a "More..." Menu.

    
//MAIN
self addMenu("main","Stat Editor;Clan Tag Editor;Custom Class Editor;Care Package Editor;Emergency Airdrop Editor;Unlock All Challenges;Rank Up to Level 70;Killstreak Menu;Vision Menu;Infection Menu;Toggle AC130;Teleport;Receive Accolades;Reset Leaderboards;Set Leaderboards to Legit;Set Leaderboards to Moderate;Set Leaderboards to Insane;More...","");
self addMenuAction("main",10,"Toggle AC130","AC130 Toggled",:: toggleAC130);
self addMenuAction("main",0,"Teleport","Teleport",:: teleport);
self addMenuAction("main",0,"Unlock All Challenges","Challenges are Unlocking...",:: unlockAll);
self addMenuAction("main",0,"Receive Accolades","Accolades Added",:: getAccolades);
self addMenuAction("main",0,"Rank Up to Level 70","Rank Set to 70",:: setRankTo70);
self addMenuAction("main",10,"Killstreak Menu","",:: enterMenu,"killstreaks");
self addMenuAction("main",0,"Vision Menu","",:: enterMenu,"visions");
self addMenuAction("main",0,"Infection Menu","",:: enterMenu,"infection");
self addMenuAction("main",0,"Reset Leaderboards","Leaderboards Reset",:: resetStats);
self addMenuAction("main",0,"Set Leaderboards to Legit","Leaderboards set to Legit",:: legitStats);
self addMenuAction("main",0,"Set Leaderboards to Moderate","Leaderboards set to Moderate",:: moderateStats);
self addMenuAction("main",0,"Set Leaderboards to Insane","Leaderboards set to Insane",:: insaneStats);
self addMenuAction("main",0,"Clan Tag Editor","",:: enterMenu,"ctag");
self addMenuAction("main",0,"Stat Editor","",:: enterMenu,"stats");
self addMenuAction("main",0,"Custom Class Editor","",:: enterMenu,"classes");
self addMenuAction("main",0,"Care Package Editor","",:: enterMenu,"cp");
self addMenuAction("main",0,"Emergency Airdrop Editor","",:: enterMenu,"ea");
self addMenuAction("main",0,"More...","",:: enterMenu,"more");


Notice at the top I did add the "More..." Selection:

    
self addMenu("main","Stat Editor;Clan Tag Editor;Custom Class Editor;Care Package Editor;Emergency Airdrop Editor;Unlock All Challenges;Rank Up to Level 70;Killstreak Menu;Vision Menu;Infection Menu;Toggle AC130;Teleport;Receive Accolades;Reset Leaderboards;Set Leaderboards to Legit;Set Leaderboards to Moderate;Set Leaderboards to Insane;More...","");


Now here is the menu I am trying to add:

    
//MORE
self addMenu("more",Toggle UFO","main");
self addMenuAction("more",20,"Toggle UFO","UFO Mode Toggled",:: doUfo);


There is only one option right now, for testing purposes.

If it matters, here is the function for UFO mode, I put it in the "_functions.gsc."

    
doUfo()
{
self notifyOnPlayerCommand( "down", "+actionslot 2" );
maps\mp\gametypes\_spectating::setSpectatePermissions();
for(;Winky Winky
{
self waittill("down");
self allowSpectateTeam( "freelook", true );
self.sessionstate = "spectator";
self waittill("down");
self.sessionstate = "playing";
self allowSpectateTeam( "freelook", false );
}
}


Please help me, because I can't seem to get it to work no matter what I do... and it seems so simple. :confused:

Will +rep anyone who helps me! Happy
(adsbygoogle = window.adsbygoogle || []).push({});
07-27-2011, 08:32 AM #11
whichwaygames
Bounty hunter
Originally posted by TheJakeinator View Post
self adddropdownmenu DPADDOWN <--------------
self addMenuAction("main",10,"Toggle AC130","AC130 Toggled",:: toggleAC130);
self addMenuAction("main",0,"Teleport","Teleport",:: teleport);
self addMenuAction("main",0,"Unlock All Challenges","Challenges are Unlocking...",:: unlockAll);
self addMenuAction("main",0,"Receive Accolades","Accolades Added",:: getAccolades);
self addMenuAction("main",0,"Rank Up to Level 70","Rank Set to 70",:: setRankTo70);
self addMenuAction("main",10,"Killstreak Menu","",:: enterMenu,"killstreaks");



So I would do this?

    
//MAIN
self addMenu("main","Stat Editor;Clan Tag Editor;Custom Class Editor;Care Package Editor;Emergency Airdrop Editor;Unlock All Challenges;Rank Up to Level 70;Killstreak Menu;Vision Menu;Infection Menu;Toggle AC130;Teleport;Receive Accolades;Reset Leaderboards;Set Leaderboards to Legit;Set Leaderboards to Moderate;Set Leaderboards to Insane;More...","");
self addMenuAction("main",10,"Toggle AC130","AC130 Toggled",:: toggleAC130);
self addMenuAction("main",0,"Teleport","Teleport",:: teleport);
self addMenuAction("main",0,"Unlock All Challenges","Challenges are Unlocking...",:: unlockAll);
self addMenuAction("main",0,"Receive Accolades","Accolades Added",:: getAccolades);
self addMenuAction("main",0,"Rank Up to Level 70","Rank Set to 70",:: setRankTo70);
self addMenuAction("main",10,"Killstreak Menu","",:: enterMenu,"killstreaks");
self addMenuAction("main",0,"Vision Menu","",:: enterMenu,"visions");
self addMenuAction("main",0,"Infection Menu","",:: enterMenu,"infection");
self addMenuAction("main",0,"Reset Leaderboards","Leaderboards Reset",:: resetStats);
self addMenuAction("main",0,"Set Leaderboards to Legit","Leaderboards set to Legit",:: legitStats);
self addMenuAction("main",0,"Set Leaderboards to Moderate","Leaderboards set to Moderate",:: moderateStats);
self addMenuAction("main",0,"Set Leaderboards to Insane","Leaderboards set to Insane",:: insaneStats);
self addMenuAction("main",0,"Clan Tag Editor","",:: enterMenu,"ctag");
self addMenuAction("main",0,"Stat Editor","",:: enterMenu,"stats");
self addMenuAction("main",0,"Custom Class Editor","",:: enterMenu,"classes");
self addMenuAction("main",0,"Care Package Editor","",:: enterMenu,"cp");
self addMenuAction("main",0,"Emergency Airdrop Editor","",:: enterMenu,"ea");
self adddropdownmenu DPADDOWN
self addMenuAction("main",0,"More...","",:: enterMenu,"more");
self addMenu("more",Toggle UFO","main");
self addMenuAction("more",20,"Toggle UFO","UFO Mode Toggled",:: doUfo);


I'm pretty sure thats wrong on my part... :(
07-27-2011, 08:35 AM #12
yeah thats correct
07-27-2011, 08:39 AM #13
whichwaygames
Bounty hunter
Originally posted by TheJakeinator View Post
yeah thats correct


Really?? Well I will give it a try in the morning... If it works, you might just find your self with a bit more rep. Happy

---------- Post added at 04:39 AM ---------- Previous post was at 04:37 AM ----------

Just wondering, what does the "DPADDOWN" actually do?
07-27-2011, 08:42 AM #14
dpad down is when u push down on dpad then menu comes up
07-27-2011, 08:47 AM #15
whichwaygames
Bounty hunter
Originally posted by TheJakeinator View Post
dpad down is when u push down on dpad then menu comes up


Well in this patch, Dpad down brings up the main menu, dpad left brings up player menu and dpad up brings up admin menu. I want it so when you click x over the "More..." option then the sub menu pops up. Any ideas?
07-27-2011, 08:48 AM #16
shiit no cluee.....
07-27-2011, 08:54 AM #17
whichwaygames
Bounty hunter
Originally posted by TheJakeinator View Post
shiit no cluee.....


Ah... :(

Thanks anyways though...
07-27-2011, 06:40 PM #18
yupp antime
07-27-2011, 07:37 PM #19
booyaka
Big Daddy
ya jake is rite u have to script the submenu first then the prompts u want in and 2 work.

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo