Question GSC mod loading

DropppITModz

Member
Messages
17
Reaction score
1
Points
8
ok so i am wanting to see if it is possible to use my GSC menu to load other gsc mod menus, if so it is possible, i would very much greatly want to know how i can do this and what to do.
 

candy

G59 Terrorist
Staff member
Donator
Messages
1,327
Reaction score
763
Points
973
If you have a working source of the other menu, then yes.
But you'd be better off just remaking the design / options, since you'll eventually run into errors.
 

DropppITModz

Member
Messages
17
Reaction score
1
Points
8
well im wanting to add a menu loader into my current menu im working on but i dont know how i would do this for gsc and ingame, kinda like Cod4 mod loading i guess, (even though i dont really know how that works soo..)
 

vampytwist

"Don't you trust me?"
Messages
645
Reaction score
624
Points
758
well im wanting to add a menu loader into my current menu im working on but i dont know how i would do this for gsc and ingame, kinda like Cod4 mod loading i guess, (even though i dont really know how that works soo..)

Are you after something like this??

 

DropppITModz

Member
Messages
17
Reaction score
1
Points
8
oh my, this is hella clever, but i was talking about actually loading menus with a gsc menu, but i will indeed make use of this...
 

vampytwist

"Don't you trust me?"
Messages
645
Reaction score
624
Points
758
Here, this is how I did it for loading patches..

Start off with sharks menu base (use it to change to other patches/game modes)

features:
- Fallens Surge menu base
- Tiny Menu base
- Your designs waw menu base
- when you're not in sharks patch go prone knife and aim to change back to sharks patch/default
 

Attachments

  • loader.zip
    14.8 KB · Views: 182

DropppITModz

Member
Messages
17
Reaction score
1
Points
8
im going to be fiddling around with this for a while xD this is pretty much exactly what i was looking for ill see what i can do, i want to figure out how to put menus to load in my main menu so this is great start.
 

vampytwist

"Don't you trust me?"
Messages
645
Reaction score
624
Points
758
I'll try make this as easy to understand as possible:

On game load, it checks the dvar "gametypez" if the dvar equals to any of the names defined in init() then it will load that patch/init instead of the default one which is sharks..

StartGameMode() is the function used to set the gametype/patch, see sharks.gsc on how it's used in a menu.
 

vampytwist

"Don't you trust me?"
Messages
645
Reaction score
624
Points
758
Create new script file in gsc studio, add the menu or patch/game mode to that new gsc file. Rename init, onplayerconnect and onplayerspawned.

Main.gsc -- On init()

Code:
if (GetDvar("gametypez") == "enter patch name here") level thread init_name_of_patch();

then call the function :
Code:
StartGameMode("enter patch name here");
menu example
self add_option("SubMenu1", "enter patch name here", ::StartGameMode, "enter patch name here");
 

vampytwist

"Don't you trust me?"
Messages
645
Reaction score
624
Points
758
Also you need to consider function names, some patches share a lot of the same names like submenu(), initmenu(), etc. etc. so you may have to do quite a bit of renaming/editing in order to get things to work smoothly I myself have ran into some issues to this when testing out different menus and patches.
 

DropppITModz

Member
Messages
17
Reaction score
1
Points
8
im doing this to help me learn. this is me trying to help my self learn by experimenting around with it. but it just wont work.
 

DropppITModz

Member
Messages
17
Reaction score
1
Points
8
all im trying to know is how can i load my menu with a different menu. but i almost got it to work but it keeps giving me unkown errors and when it does work, it crashes my ps3 almost instantly when i go into the game.
 
Top