Lots of fun stuff to report. Main thing though is, if Garrys Mod 13 hit tomarrow, we should now have a working version that will work with it.
Few things on whats been going on. The new Garrys Mod seems to enforce more standards of coding. Good and bad, guess you could say its less forgiving. All in all its more or less working the way other languages work now.
Good example of this is the issue with 357 ammo. It was trying to pass a number into the GiveAmmo function and that finction only accepts strings.
Example Before:
- Code: Select all
ply:GiveAmmo(ammoNum, ammoType)
After:
- Code: Select all
ply:GiveAmmo(ammoNum, tostring(ammoType))
Due to stuff like this I have had to do fixes all over the place. Another issue, somewhat related, is that net.WriteTable($var) and net.ReadTable() does not like nil. The issue here was with the Prop Protection menu, glon files do not return emty tables, but nil. Simple fix though, just had to have it check before hand and if nil then table = { } (means emty table).
Finally found a fix for the text color issue on DNumSlider's Label. Had to go into the derma code for it to find the solution.
- Code: Select all
E2RestrictSlider.Label:SetColor(textColor)
was the fix.
Help menu was just putting in the background color fixes and the text color fixes.
Buddy menu was basically putting in the same fixes as the trade menus.
DColouredBox was a easy fix considering, just copied the old file to the gamemode's vgui folder.
The only known problem is silkicons, still working on this, but not as conserned as I was with everything else.
All in all, its ready for the most part, so if 13 hits, we will be ready now. at least as far as PNRP goes.
Now, that beeing said, there is one thing that is still broken that will cause a problem... ASSMOD.
While it sounds bad, its not that bad, fixing it will probably be easy, and there is allready some chatter about a few people picking it back up to update it for 13. As it is, its made me rethink a project that we have on hold, [SAT] - Simple Admin Tool.
I may end up dusting this off and may throw something together. But dont expect to see anything on that any time soon, for now will get ASSMOD working. As it is, the only thing thats mainly broken on it, is the menu.