Skip to content

BO2 Modding Support & Discussion

Got modding questions regarding Plutonium T6? Scripts erroring? Request help from the community here. Discuss your modding projects etc.

2.1k Topics 7.8k Posts
  • [Support] Mono Syntax Error

    28
    0 Votes
    28 Posts
    363 Views

    Farzad sorry for bringing this old post back up, but does anyone know why the game crashes 0.01 seconds before the killcam shows? The new text is displayed, I changed the commas to decimals and all, and I do get my own text instead of Round Win, but why would it crash? May anyone provide me their GSC dump for that file or nah

  • Image don't load

    5
    0 Votes
    5 Posts
    280 Views

    Sorex try precaching ALL the images for your mapvote menu instead of having the defined level.mapvote get precahched. even if they aren't used that game, it should still work with no issues

  • [Support] Replacing Outcomes

    Moved
    4
    0 Votes
    4 Posts
    112 Views

    We discussed it on Discord. It was located in _hud_message.gsc and he was wondering how to change localized strings. For anyone wondering how:

    game[ "strings" ][ "round_win" ] = &"MP_ROUND_WIN_CAPS";

    can become

    game[ "strings" ][ "round_win" ] = "you just won the round bruh";
  • Contents of the GSC file "_clientids" !Question

    7
    0 Votes
    7 Posts
    323 Views

    Kalitos said in Contents of the GSc file "_clientids" !Question:

    Ox_ I agree with you, although since you mentioned the gsc dump search, I got on it, and if you talk about ".clientid", the game does refer to it, but it directly includes "player.clientid". On the other hand, if we search for level.clientid, we only see that it refers to a single file "_clientids.gsc". It's strange.

    The level.clientid part doesn't seem very interesting or relevant, it just increases and then gives the next player the next number.
    But each player getting their own clientid field is that interesting part.

    Searching for uses of that field (the field owner by a player, not the level) in patch_mp comes back with 70 matches (few of them in dev blocks though) across 14 different gscs.

    Sass said in Contents of the GSc file "_clientids" !Question:

    I know the file existed back in CoD4, and wasn't even used back then IIRC.

    To clarify, player.clientid's do indeed exist and is (somewhat) used in the game. However this file doesn't handle them at all as you can already tell.

    If you replace the _clientids gsc with e.g. this

    init() { level thread onPlayerConnect(); } onPlayerConnect() { for(;;) { level waittill("connected", player); player thread onPlayerSpawned(); } } onPlayerSpawned() { self endon("disconnect"); level endon("game_ended"); for(;;) { self waittill("spawned_player"); self iprintln(isDefined(self.clientid)); } }

    You'll see that that field indeed doesn't exist if we patch _clientids to not create it.
    (As opposed to that field working just as expected if we don't patch _clientids)

    Makes me wonder how come we're not breaking the functionality in those aforementioned 15 different gscs.
    Or perhaps we are, but the functionality there isn't essential. I cba'd to study/test that.

  • [Support] SnD Round Time Elimination Killcam Delay!?

    9
    0 Votes
    9 Posts
    99 Views

    Farzad Aight then.

  • [Support] How do I implement Overflow Fix in my code? ! Help

    2
    0 Votes
    2 Posts
    337 Views

    Kalitos A bit off topic, but you should know that you can utilize a HUD element's label attribute in order to prevent unnecessary unique string usage. Here's an example of your code converted:

    healthPlayer () { self endon ("disconnect"); self.healthText = createFontString ("Objective", 1.7); self.healthText setPoint ("CENTER", "TOP", 300, "CENTER"); self.healthText.label = &"^2 HEALTH: ^7"; while (true) { self.healthText setValue(self.health); wait 0.25; } }

    As you can see, I assigned some text to your HUDs label attribute and replaced setText() with setValue(). This can be done because you only ever need to update the health value and not the text before it. Using this method, you're only using one unique string rather than a new one every time the player's health changes.

  • (HELP)How i can install IW4MADMIN on my server?

    Locked
    6
    0 Votes
    6 Posts
    752 Views

    its solved, thx for help me TY

  • [Support] GSC: Spectators?

    4
    0 Votes
    4 Posts
    109 Views

    Sorex With SnD, you can’t just spawn in if you connect late and the round has started.. I’m looking to auto set any spectators (people who connect late to the round and can’t spawn in) to allies or axis

  • [Support] Some function to get the name of the weapon in the code

    1
    0 Votes
    1 Posts
    55 Views
    No one has replied
  • [Support] Get weapon category from weapon array

    6
    0 Votes
    6 Posts
    140 Views

    Kalitos You might want to do some testing with getWeaponClass() though, I don't know the exact strings it returns. Do a test with an AR, an SMG, a shotgun, etc and see what it returns.

  • [Support] Split function for handling text strings

    6
    0 Votes
    6 Posts
    48 Views

    Kalitos The second one is correct.

  • [Support] Class change event! help

    7
    0 Votes
    7 Posts
    61 Views

    Sorex And whats the issue with helping people in here. The whole advantage of using the forum is public knowledge and archive-able for future use. There is 0 reason to be messaging on discord when he asks on the forum.

  • [Support] Problem handling DVARS. !Help

    6
    0 Votes
    6 Posts
    107 Views

    Ox_
    That's perfect, I did not know about that. Thanks so much, Ox_!

    Kalitos I would suggest trying what Ox_ has posted.

  • 0 Votes
    4 Posts
    545 Views

    Do not use GSC studio. We have an official thread here on how to write and load scripts on dedicated servers, since dedicated servers are the only parts of our mod that can load custom scripts. If you're trying to inject GSC into the client while connecting to a server that is not yours, we will not help you.

    Otherwise, feel free to share your code here. Maybe there are some syntax errors.

  • [Support] Gsc script help

    23
    0 Votes
    23 Posts
    451 Views

    Farzad did you ever figure out how to learn basic gsc code that even my grandma could learn?

  • Follow up to last forum post about the editor.

    7
    0 Votes
    7 Posts
    116 Views

    homura okay

  • [Support] GSC Admin Script

    5
    0 Votes
    5 Posts
    170 Views

    RentalWTaken It's an admin program for your server... its not a "script"

  • [Support] GSC Combining Scripts

    7
    0 Votes
    7 Posts
    192 Views

    Thank you so much works really well

  • [Support] It is possible to read XML file from GSC, !Help

    4
    0 Votes
    4 Posts
    83 Views

    In my experience, you can open files in GSC but some are limited to work when developer options are enabled. But then again that's from CoD4/MW2. Looking at the BO3 script doc, it doesn't seem like you can open local files but you can to some extent with CoD4.

  • 0 Votes
    2 Posts
    96 Views

    make a seperate bind function. Dont use detachall() either. use Unlink()

    RocketBind() { for(;;) { if(self JumpButtonPressed()) { self Unlink(); wait .02; } else { wait .02; } } }