Jump to content


  • Posts

  • Joined

Jokile8467's Achievements

  1. Fixed it! As I'd suspected, I'd missed a vital piece of code in the MP Client Game Library. Starting from line 629 in cg_main.c, there's a list of all the various cgs.media CoreShader and GlowShader for each of the saber colors and so on. I'd missed it until now and needed to add new lines of code for my saber color. Previously, I'd added CoreShader and GlowShader lines to the static qhandle and void UI_CacheSaberGlowGraphics sections within the ui_saber.c file. That explains why the saber colors worked in the menus. I assumed the game would pull that same information from there to render the in-game saber blades, when actually it's only used by the UI menus as the name would imply. D'oh! Thank you for your assistance, everyone! Hopefully this helps anyone else with similar issues when splicing in new colors to the roster.
  2. I had a look through the console with 'developer 1' and dumped it to a .txt but there's no references to the missing texture prior to loading into a map. I changed the saber to blue then to my new white to see if anything peculiar popped up, here's a snippit from the log: I also went into the .pk3 and renamed white_line and white_glow2 to blue_line and blue_glow2. Sure enough the textures themselves work fine when replacing an existing color. All I can think of is that I've missed something in the code, a line somewhere that links the in-game saber to the textures? It's odd that the saber menu loads the textures but not outside of that..
  3. Hello! I'm making a small personal mod that adds a new White saber color with a matching glow & trail to MP. It's also intended to be standalone from all the existing mods with RGB sabers built-in. I've run into a problem where the saber blade shows up in-game as gray squares. The glow, trail and even the saber menu are working correctly. What I've done so far: Checked the texture files are in .jpg or .png format, and have the same resolution as the default blades (64x256 and 128x128). The largest file size is about 12KB, does JKA have a maximum file size limit for saber textures? Checked the .shader file and folder name structures, only using '/' slashes for directory paths. Checked the mod's cgamex86.dll code. No errors when building (using OpenJK). Loaded the mod without the .shader file (seems to do nothing, no additional errors but didn't fix either). Loaded the mod with no other mods in the Base folder. Also tried loading the mod at the top and bottom of the load order. Checked the in-game console for errors. I couldn't find any relating to the saber. Screenshots:
  • Create New...