How do i edit the menu addon?

Started by chesiren · 11 months ago · 2 replies · 297 views

#1
chesiren
Member
JoinedJul 2021 Posts5 Score3,801
Does anyone know how to modify the main menu addon code and make it work outside of the editor? (in the game files SteamLibrary\steamapps\common\sbox\addons\menu)

Modifying the scene or scss files does apply the modifications when we launch the game normally, but modifications to .cs or .razor files doesnt change anything. 

Is there some kind of protection against editing base game code or am i missing something?
#2
matt
Facepunch
JoinedApr 2021 Posts267 Score2,045
There is a compiled version of the menu in the .bin folder in the menu folder, if you delete that you can modify the menu.

Obviously you're gonna fuck yourself over when the game updates and decides to keep your changes over ours.
#3
chesiren
Member
JoinedJul 2021 Posts5 Score3,801

Yes i'm aware that whatever modifications i do might completely break whenever facepunch updates the menu but i still want to do it.

I've already tried removing the dll in menu/.bin but it leads to a crash when you launch s&box:
I've also tried to replace the dll with the one compiled in menu/code/obj/Debug but it loaded the game without any changes applied (not quite sure when they get recompiled in the Debug folder but they did contain my modifications)
people
Log in to reply
You can't reply if you're not logged in. That would be crazy.