Originally posted by OfficialCoolJay
I think people are mislead by title, i have the same issue where my menu wont work when i inject it with _rank. I think its because the size of what i am injecting is to big. but by merging the _rank fix.gsc into my menu, and using it as _rank.gsc it works fine.
Id also like to add to this because its ugly mixing this all into your main.gsc, a better alternative is to simply:
1. In your project add a new script file to it, and call it "StringsFix" and in there paste the entire _rank fix code in there.
2. In the new script file "StringsFix" rename "init()" to "StringsFix()"
3. Next the 4 threads called: onplayerconnect(), onplayerspawned(), onjoinedteam(), onjoinedspectators()
rename them all to something else for example: stringsfixonplayerconnect(), stringsfixonplayerspawned(), stringsfixonjoinedteam(), stringsfixonjoinedspectators().
So that they aren't in your regular functions being messy.
4. Go to your main.gsc and in "init()" put "StringsFix();" at the very top.
5. Compile it and rename to "_rank.gsc" and put in "maps/mp/gametypes/_rank.gsc"
Thats it, its all clean and out of the way.
The only downside to this is you cant just use GSC Studio to Inject straight away because by default GSC Studio will inject as
"maps/mp/developement_dvars.gsc" and you need to use it as _rank.gsc to overwrite the original games _rank.gsc
Maybe there is another way so that you can just have all of it in the 1 "developement_dvars" but as of now idk, and this
way hexyonrebug explained is the same process as you would compile and setup "developement_dvars" only just you rename "compiled.gsc" to _rank.gsc and put in a different folder. having it all in the 1 gsc seems to be smaller then to have a seperate gsc for the stringsfix.
This is not of course a overflow fix, it is simply allowing you to have more strings so that you can stretch the limit from 67 strings before overflow to 240.
People have merged the _rank.gsc in their menu for years... Just look at Exelo's menus.