Home Gallery Resources The Team Rules chat Login Register
  Show Posts
Pages: [1]
1  Help & Tutorials / Help / Increase Gecko's code limit beyond 8192 lines? [SORTA SOLVED] on: July 12, 2015, 04:08:20 PM
Hi all. I am working on a stage-expanded version of the new Project M 3.6b. Unfortunately, I'm stuck at the music switching part for the following reason:

With Project M's codes and the stage expansion codes combined, I have 8148 lines of Gecko code. When I add all of the custom stages (38 of them) to Oshtoby's Stage Independent Song Loader, I get 8290 lines of code, which causes Gecko to throw a "Too Many Codes" error (it's maximum is 8192). I tried changing the gameconfig.txt line

codelistend = 80580000
to
codelistend = 80590000

Which should increase the number of lines to 16384, but this freezes Dolphin after hitting Launch Game.  I'm not sure what the next lines in gameconfig.txt do (the ones with the poke calls), and I'd like to know how to edit gameconfig.txt so that I can further increase the lines limit.

I'm sure I'm not the first person to run into this problem, but I searched all over the help forum and couldn't find an answer. Any help/guidance is appreciated. A thread that takes apart what the gameconfig does (in terms of memory addressing and what not) would be very useful I think.


[UPDATE]

After doing some more research here

http://wiibrew.org/wiki/Memory_Map

and here

http://webcache.googleusercontent.com/search?q=cache:mw8bCVQHvrgJ:wiird.l0nk.org/forum/index.php%3Faction%3Dprintpage%3Btopic%3D5279.0+&cd=10&hl=en&ct=clnk&gl=us

I think the problem is identifying a portion of memory that SSBB doesn't write to; ie this is a hard problem. I'm not sure if there's any way to tell the game that portions of memory are off limits. Then again though, this shouldn't cause the crash I experienced earlier, it should just mean the codes get overwritten while the game is running - which actually should work fine since they only need to run right at the beginning.

 I see what you did there ...

Another thought is that perhaps its possible to make the project m codeset smaller? Ie shorter codes to accomplish the same tasks. Has anyone worked on this?

[SORTA SOLVED]

No, I didn't figure out how to increase the limit above 8192 - after using CheatEngine to look at the way SSBB is accessing memory, I actually don't think it's possible (prove me wrong!). What I did do was remove a section of Project M's code that I believe does nothing except allow netplay to work. Since I don't use netplay, this was okay. The piece of code was 125 lines long, which got me enough space to perform song switches on all of the custom stages with precisely 27 lines to spare!
Pages: [1]