Gear Girl Select deprecated


Experimental version of the GirlCharacter mod that lets you select characters. Heavily modified version of select your character mod by kij336 until I can figure out a better way to do it. Note: Your inventory will be cleared upon changing character models. Corpse models need to be updated.

Tweaks
4 years ago
0.18
10

b Null pointer causes crash

4 years ago

When clicking on a modded GUI button besides this one (when this mod's one is closed), the game CTD's due to control.lua:29 (specifically at "b.gui.left["sc-main"].sc.c"). This is likely due to "sc-main" not existing (it's null). I presume this is because when the character toggle menu is closed, it destroys it. This should be an easy fix of first checking that sc-main exists before trying to reference its values

4 years ago
(updated 4 years ago)

Update: I modified it so before checking for "sc-main", it checks that it's not null (or nil in lua) first in the if statement. If it is nil, short-circuit evaluation prevents the rest of the if from being evaluated (as the first part being false with an and following makes it impossible for the whole if to be true regardless of the rest of the partial expressions)
So the whole line ends up at (elseif b.gui.left["sc-main"] ~= nil and event.element.parent==b.gui.left["sc-main"].sc.c and b.driving==false then)

4 years ago
(updated 4 years ago)

(accidentally hit quote and made this message)

4 years ago
(updated 4 years ago)

(oops did it again)

New response