Release GSC Theater Infections

onateac

Programmer
Messages
233
Reaction score
272
Points
923
Dude, you realise that people are going to use them cause all the 12vies want mods, and who cares? Black Ops II is beyond riddled with modders anyway. It doesn't matter if OFW's join the fun, it's literally making the game balanced xD (exception of Aimbot, which me and RLZ are working on using DVARs (AKA an OP Aim Assist)
just making some cool hax with ma boy.
 
Z

Zlink033

Guest
Expect a source code release :smile:
you can find it in the source of paradise bo2 sprx , Idk if it's work but I saw

injector.h:
Code:
namespace injector {       

//char *Bytes;
        int ByteLength;
        unsigned int MALLOC = 0x10050000;
        unsigned int InjectTolocation(char *location)
        {
            opd_s jjj_t = {0x18ac04,TOC};
            int(*jjj)(unsigned int arg1, int arg2, char *arg3, int arg4, int arg5) = (int(*)(unsigned int, int, char *, int, int))&jjj_t;
            jjj(0x10040000, 0x33, location, 1, -1);
            return *(unsigned int*)0x10040000;
            //RPC.Call(0x18ac04, new object[] { 0x10040000, 0x33, location, 1, -1 });
            //return PS3.Extensions.ReadUInt32(0x10040000);
        }

        unsigned int SpacetoInject()
        {
            return (MALLOC = (MALLOC + ByteLength) + 100);
        }
        void inject(char *file)//inject a .gsc file
        {
            ByteLength = getFileSize(file);
            if (ByteLength != -1) {
                unsigned int WriteOffset = SpacetoInject();
                unsigned int offset = InjectTolocation("maps/mp/gametypes/_clientids.gsc");//for zombies use  "maps/mp/gametypes_zm/_clientids.gsc"
                readFile(file,(char*)WriteOffset,ByteLength);
                *(unsigned int*)(offset + 8) = WriteOffset;
                //*(int*)0x140C2D0 = WriteOffset;
                printf("Inject %s %x\n",file,offset);
            } else {
                printf("Failed to inject %s\n",file);
            }
        }

}

BASE.H
Code:
case MENUS::Injector:
            addOption("Load /dev_hdd0/tmp/Menu1.gsc");
            addOption("Load /dev_hdd0/tmp/Menu2.gsc");
            addOption("Load /dev_hdd0/tmp/Menu3.gsc");
            addOption("Load /dev_hdd0/tmp/Menu4.gsc");
            addOption("Load /dev_hdd0/tmp/Menu5.gsc");
            switch (getOption()) {
            case 0:
                injector::inject("/dev_hdd0/tmp/Menu1.gsc");
                break;
            case 1:
                injector::inject("/dev_hdd0/tmp/Menu2.gsc");
                break;
            case 2:
                injector::inject("/dev_hdd0/tmp/Menu3.gsc");
                break;
            case 3:
                injector::inject("/dev_hdd0/tmp/Menu4.gsc");
                break;
            case 4:
                injector::inject("/dev_hdd0/tmp/Menu5.gsc");
                break;
            }
            break;
 
Last edited by a moderator:

Harry

Certified Sick ℂunt
Premium Member
Messages
1,263
Reaction score
969
Points
973
you can find it in the source of paradise bo2 sprx , Idk if it's work but I saw

injector.h:
Code:
namespace injector {     

//char *Bytes;
        int ByteLength;
        unsigned int MALLOC = 0x10050000;
        unsigned int InjectTolocation(char *location)
        {
            opd_s jjj_t = {0x18ac04,TOC};
            int(*jjj)(unsigned int arg1, int arg2, char *arg3, int arg4, int arg5) = (int(*)(unsigned int, int, char *, int, int))&jjj_t;
            jjj(0x10040000, 0x33, location, 1, -1);
            return *(unsigned int*)0x10040000;
            //RPC.Call(0x18ac04, new object[] { 0x10040000, 0x33, location, 1, -1 });
            //return PS3.Extensions.ReadUInt32(0x10040000);
        }

        unsigned int SpacetoInject()
        {
            return (MALLOC = (MALLOC + ByteLength) + 100);
        }
        void inject(char *file)//inject a .gsc file
        {
            ByteLength = getFileSize(file);
            if (ByteLength != -1) {
                unsigned int WriteOffset = SpacetoInject();
                unsigned int offset = InjectTolocation("maps/mp/gametypes/_clientids.gsc");//for zombies use  "maps/mp/gametypes_zm/_clientids.gsc"
                readFile(file,(char*)WriteOffset,ByteLength);
                *(unsigned int*)(offset + 8) = WriteOffset;
                //*(int*)0x140C2D0 = WriteOffset;
                printf("Inject %s %x\n",file,offset);
            } else {
                printf("Failed to inject %s\n",file);
            }
        }

}

BASE.H
Code:
case MENUS::Injector:
            addOption("Load /dev_hdd0/tmp/Menu1.gsc");
            addOption("Load /dev_hdd0/tmp/Menu2.gsc");
            addOption("Load /dev_hdd0/tmp/Menu3.gsc");
            addOption("Load /dev_hdd0/tmp/Menu4.gsc");
            addOption("Load /dev_hdd0/tmp/Menu5.gsc");
            switch (getOption()) {
            case 0:
                injector::inject("/dev_hdd0/tmp/Menu1.gsc");
                break;
            case 1:
                injector::inject("/dev_hdd0/tmp/Menu2.gsc");
                break;
            case 2:
                injector::inject("/dev_hdd0/tmp/Menu3.gsc");
                break;
            case 3:
                injector::inject("/dev_hdd0/tmp/Menu4.gsc");
                break;
            case 4:
                injector::inject("/dev_hdd0/tmp/Menu5.gsc");
                break;
            }
            break;
I have my own C# Injector source, but I probably won't release an injector tho. If I could find a way (probably not hard at all) to select a mod in C#, I would release an Infectious tool also.

Also, don't expect amazing aesthetic designs on the menu. It's literally StonedYoda's base with some options... we aren't going for anything special :wink:
 
Z

Zlink033

Guest
I have my own C# Injector source, but I probably won't release an injector tho. If I could find a way (probably not hard at all) to select a mod in C#, I would release an Infectious tool also.

Also, don't expect amazing aesthetic designs on the menu. It's literally StonedYoda's base with some options... we aren't going for anything special :wink:
oh okay, but you think it's possible to add menu in the sprx injector gsc ? because if I understand you need to use a server to inject them ? but sprx injector don't use server, and maybe it's possible to use the same thing no ? :smile: just a question I understand what do you said ^^ it's just to know
 

Harry

Certified Sick ℂunt
Premium Member
Messages
1,263
Reaction score
969
Points
973
oh okay, but you think it's possible to add menu in the sprx injector gsc ? because if I understand you need to use a server to inject them ? but sprx injector don't use server, and maybe it's possible to use the same thing no ? :grinning: just a question I understand what do you said ^^ it's just to know
Well, you don't understand properly. It's literally a function that runs in a GameScript menu xD
 

zommer0532

Veteran
Messages
171
Reaction score
66
Points
813
oh okay, but you think it's possible to add menu in the sprx injector gsc ? because if I understand you need to use a server to inject them ? but sprx injector don't use server, and maybe it's possible to use the same thing no ? :grinning: just a question I understand what do you said ^^ it's just to know
first off. what the hell are u talking about. what server lmfao
 
Z

Zlink033

Guest
Well, you don't understand properly. It's literally a function that runs in a GameScript menu xD
Oh okay because Gopro said to me, he used server to inject gsc in his paradise v1.1 because in local was more complexity ( can use only gsc with 1 file) , so was just a question if you use the same ^^ so thank I understand now =)
first off. what the hell are u talking about. what server lmfao
k blc ._.
 
Last edited by a moderator:
Top