Addons + Razor + New Menu #2438
Replies: 17 comments 29 replies
-
Menu issue - when changing the lobby from one game to another one that's limited to a single map, the lobby's map setting isn't reset for the new game sbox-dev_xuCtyNaAmC.mp4 |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
Launching via Sandbox brings up a Coding Error |
Beta Was this translation helpful? Give feedback.
-
after making an addon i cannot load my game anymore until i delete the addon |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
My addon compiles and works ingame, but while trying to upload it to the backend I get this. I'd show a more complete stack trace but no exceptions show up in the console Funky chars in the path don't seem to matter, it fails when stored at Here's the addon, I'm not doing anything fancy |
Beta Was this translation helpful? Give feedback.
-
It would be nice to be able to see local addons that are enabled in this list in the lobby menu, 1. for the sake of clarity and 2. so we could preview/test the local addon's convar UI |
Beta Was this translation helpful? Give feedback.
-
Trying to load into my game (Simple Slots) when not in editor mode and getting |
Beta Was this translation helpful? Give feedback.
-
Incredibly critical bug: the main menu citizen doesn't get scared of the quit button anymore |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
settings by type server name, number of players, etc. are not saved. |
Beta Was this translation helpful? Give feedback.
-
After recent changes, if a local addon fails to compile and one leaves a packaged game without fixing it, it will "remember" that failed compile and won't try to compile it again. This state sticks around for the remainder of the session, even if you disable the addon in question, and makes games refuse to start, booting you out with the Coding Error popup. I'll give two repros for this, I'm pretty confident they're the exact same thing, but just in case.
Build ff037c |
Beta Was this translation helpful? Give feedback.
-
Build 2e1815, starting a packaged game (facepunch.sandbox). Doesn't matter if there are addons or not |
Beta Was this translation helpful? Give feedback.
-
Having used Razor quite a bit now, I find myself running into the same problem over and over in that references aren't set immediately when dynamically creating UI in code. I can't remember if that was the case with HTML templates, but it's resulting in a lot of boiler plate code that's quite tedious. |
Beta Was this translation helpful? Give feedback.
-
Just merging this in, headline changes
Addons
This is the first iteration of this system, and therefore it's quite basic. It's a babystep. Right now you can only enable and disable addons before creating the game.
You can make an addon that will target all gamemodes (and therefore only reference base), or you can target a specific gamemode (and it'll download that gamemode so you can target it).
Razor
The razor implementation does its best to work with intellisense, and for the most part it gets it right. It would be nice if it detected and autocompleted class names when adding elements. It might be something that we have to look at making our own VS extension for in the future (if that's even possible).
If you don't really know what razor is, imagine the html templates we have now but you can also run code and do logic in them.
It is my feeling that this is a much more sensible way of doing the UI and we will over the next few months dismantle and remove the old html template system.
New Menu
The new menu wasn't really planned, it was a necessity of the addon system. So stuff is kind of all over the place. Please shout out if something is fucked.
Lots of changes
I changed a lot under the hood to get this all done, so I am expecting some things to have become broken. Please let me know in this thread or with an issue and I'll get on it asap.
Beta Was this translation helpful? Give feedback.
All reactions