Author Topic: Item does not show up on the item list?  (Read 2072 times)

Whenever I try to make something and execute it it never shows up on the item list. Anyone know how to fix this problem?

Check your consol for errors.

Have you added uiname = "blah";

Whenever I try to make something and execute it it never shows up on the item list. Anyone know how to fix this problem?
I've found Badspot put a script so that items are ONLY added to the wrench lists if they were loading while the server loaded. It's not like if the item has uiname in it, it will automatically go on the list. The script adds all datablocks with uiname in it to lists based off the type of datablock.

There's probably a client side UpdateWrenchGUI code or something which would work.

He didn't want to code the gui to update for every new datablock, so when the datablocks are loaded with add ons, it checks all the loaded ones for a .uiname and if so places them accordingly on the gui.

Just reload the map or change it.


Executing the client command to update wrench GUI ( clientCmdWrench_LoadMenus(); ) after executing a vehicle I wanted to didn't seem to clone any items or create problems, just add the new ones.
« Last Edit: May 29, 2007, 08:24:00 AM by Space Guy »


Seemed to work fine. I went into someone's server and executed the same command, it was fine.

wait....you used the command on other peoples server and it updated EVERYONES stuff?!

Nope. Client command - me only. They'd have to input it themselves or you add a function to loop through everyone and commandtoclient it. The only other problem is that they'd all crash as soon as whatever new item you are trying to add was executed, with the new datablocks, unless you had a bunch of blank items executed which are loaded to the client and only changed from there with an actual uiName and updated via the command into menu.