-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Menu crashing after 512 menu items #2
Comments
I'm gonna assume it's memory related, but i'd need to look into it. I'm gonna keep this open, and I'll look at both the base itself and T7 Compiler, then let you know what I figure out. I haven't had this issue personally, but i've been trying to keep it compact while adding necessary features and fixing bugs mostly. If you would like to shoot me a message over discord too, I'd be happy to debug it with you! TheUnknownCoder#6310 |
Cheers, I've sent you a Discord fr. |
Can reproduce and confirm, and as we discussed via Discord, its an issue with the menu base, not the Injector. Im gonna keep this open in case I manage to fix it, but for right now its probably a won't fix, as i'll probably end up designing a new base for the menu in future. Issue temporarily locked, as im now aware of it. |
Im gonna unlock this and open for discussion, as im honestly unsure if i'll ever come across the error naturally, but I haven't forgotten it, im just looking into alternative ways to call the menu, or even draw it in general. |
Spork_alcatraz is the spork too, ;). I haven’t had a good chance to look into it lately due to moving, however I’ve been working in my off time on a rewrite of the base itself. The issue I’ve got is I still haven’t quite been able to figure out the cause for the crash, so I’m working pretty much blind. |
Can you give your code a shot and see if it works with the latest version of t7 compiler? Ive just done a test run there with a version of the menu that has 522 options, and it worked fine, not sure what that means :/ |
After your previous reply I set about finding a way around the problem, and I now have a workaround that seems to be working for me. So unless the compiler has been updated in the last 24h, then it was still broken for me. I took a break scripting for a couple of months when I first came across this issue because it was driving me mad trying to figure it out, but I’ve started writing again this week. I still don’t know why it was happening or what was causing it. The only thing that stopped the game crashing was removing any line that began “self addOpt”, and it didn’t matter where I removed them from either, which is the really confusing bit. Removing menu options for cheats, or for giving perks, or even weapons fixed it, as long as the total count was under 512. To work around it, where before I had long lists of “self addOpt” lines, like for a list of weapons, or a list of locations to teleport to, instead of listing them all manually like: self addOpt(“Location 1”, &teleportMeTo, origin, angles); I’ve just added all of the location’s names, origins and angles to an array, and said: for(i=0;i<array.size;i++) Which annoys the hell out of me because I still have the same number of menu options in the script, they’re just not written out manually… but whatever, it works for now. I guess you can close this issue if nobody else can replicate it anymore. |
That was actually one of the future changes I planned to make once everything in the menu was finished, lol. But yeah, it’s kinda weird that it works fine for me now, but I’m gonna keep it open for now until I’m certain it’s not gonna be an issue. The update was just the one to fix the code injection, dunno why the version I’ve tested worked now, but it’s just the local copy I use for testing stuff, nothing different between that and the GitHub fork except for features I’m testing. As I said, I’m still just looking into rewriting the code for the base, with moving and getting everything into place etc I haven’t had much time lately, so hopefully I’ll be able to sit down and have a good crack at it soon. It’s also open to others to look at if they want, I’m not gonna restrict progress anywhere if someone can fix it. |
Hi,
I've been developing a menu of my own for BO4 zombies using the Lucy Menu as a base for the last year or so, and was wondering if you could help with a problem I came across last night.
I want to create the most comprehensive menu out there for BO4z, with options for literally anything you can think of. Picking up specific craftable parts, teleport to precise locations, options to give any weapon available on the map, easter egg completions, etc etc. To that end, I think I've hit the limit for the number of
self addOpt()
lines you can have in a menu.I noticed at around 500 or so menu options, the game would start giving me random UI errors whilst using the menu, on parts of the code that have worked fine for months. And once I exceed 512 menu options, the game just straight up crashes when you try to load a map after injecting.
I was hoping you had some idea how to get around this issue? I'm no programmer by any stretch of the imagination, but I recognise that 512 is the upper limit for 9-bit variables.
If not, this means that any menu using Lucy Menu as a base, will be limited to just 512 options, and I was going to have about 160 menu options for teleporting, alone! (20 per map). Plus 55 armory weapons, another 55 for PAP'd armory weapons, equipments, perks, elixirs, wonder weapons, auto-easter egg completions etc... 512 menu items ain't gonna be enough!
See for yourself, just keep adding:
self addOpt("BLANK MENU ITEM");
to your code, till the game breaks.
Thought I'd bring it to your attention as you seem to be the only person working on this menu base atm.
The text was updated successfully, but these errors were encountered: