rebel1324 / NutScript

A free role-play framework for Garry's Mod.
http://nutscript.net
MIT License
65 stars 31 forks source link

[1.1-beta] Custom schema fonts reseting #265

Closed blt950 closed 5 years ago

blt950 commented 5 years ago

I'm trying to set custom fonts in configs for "font" and "genericFont" keys. Once I've done that and server has saved the data, I can see it's saved correctly in /data/nutscript/config.txt. After I restart the server, this config is overridden and everything is put back to default Arial and Seoge UI.

I believe there's something wrong in loading the fonts, causing it to go back to default?

brianhang commented 5 years ago

I can't seem to replicate this. Do your other configs load? It could be that some code is manually setting the config.

blt950 commented 5 years ago

Hm weird. I've got the "music" config saved with no issues. I've put this in my sh_config.lua of schema

nut.config.set("font", "Open Sans")
nut.config.set("genericFont", "Open Sans")

So it does set it correctly if I lua-refresh, but again resets on restart. This is in your HL2RP schema @brianhang , perhaps something in the schema?

blt950 commented 5 years ago

I've dug a bit more in it, you're right - it's something with my schema - I'll need to find out what. So I'm closing this issue as it's not Nutscript's fault. Thanks.