Install Steam
login
|
language
简体中文 (Simplified Chinese)
繁體中文 (Traditional Chinese)
日本語 (Japanese)
한국어 (Korean)
ไทย (Thai)
Български (Bulgarian)
Čeština (Czech)
Dansk (Danish)
Deutsch (German)
Español - España (Spanish - Spain)
Español - Latinoamérica (Spanish - Latin America)
Ελληνικά (Greek)
Français (French)
Italiano (Italian)
Bahasa Indonesia (Indonesian)
Magyar (Hungarian)
Nederlands (Dutch)
Norsk (Norwegian)
Polski (Polish)
Português (Portuguese - Portugal)
Português - Brasil (Portuguese - Brazil)
Română (Romanian)
Русский (Russian)
Suomi (Finnish)
Svenska (Swedish)
Türkçe (Turkish)
Tiếng Việt (Vietnamese)
Українська (Ukrainian)
Report a translation problem
I don't encounter the problem when opening the e2 editor.
However I've done some debugging and the problem seems to be a compatibility bug with wiremod itself. This core adds a lot of e2 functions which cause a client overflow when they get loaded on the client.
I've created an issue on the wiremod GitHub, see here [github.com]. Once it's resolved this should hopefully fix your problem. Otherwise I'll have another look.
I'm aware of the crash when you reload/restart the singleplayer world. It should work on the first load though.
The current workaround is to restart Gmod completely.
There is already a GitHub issue [github.com] to track this but, however I'm not sure what the root cause of the problem is.
If your problem differs from the already existing GitHub issue please provide more information and steps to reproduce it.
However I would also like to allow each client itself to allow/block the dhtml functionality due to the previously mentioned abuse concerns.
I've tried to implement the DHTML element on the experimental branch on github but haven't found the time to continue working on this feature yet.
As mentioned before, some actual use cases for this would be appreciated so I know what to focus on.
And feel free to create a Github issue to discuss this in more detail e.g. with example code etc.
I've never used the DHTML element myself.
I took a quick look and security might be a problem. As I understand it the website gets loaded by the client that creates the DHTML element.
Therefore it allows the e2-creator to open any URL on any other player, which is something I'm not willing to implement.
That said. It might be possible to allow only the e2-owner to use DHTML elements but block it on other players or add additional features to the buddy system to explicitly allow the usage of DHTML elements.
Aside from that, there seems to be a feature that allows Javascript to execute Lua code which also might present security problems (I took note that you can disable this specific funtionality though)
I will have to look into it a bit more.
Do you have any specific use cases in mind for DHTML which would help me understand what features you need?
For some reason VGUI core just stopped working entirely. None of the functions or anything show up in expression 2, and it makes errors whenever I try to spawn any of my dupes using VGUI core. The spawnmenu extensions still exist, like the buddies and blacklist menu, but the core is just non-existent in the editor.
That "duplicate column" error is something I can't really fix. It happens when you try to create columns which use the same index (e.g. add 2 columns without index and then add another one with index 1)
See: https://github.com/Facepunch/garrysmod/blob/master/garrysmod/lua/vgui/dlistview.lua#L71
I'm unsure what causes the second error, can you provide a simple code example to reproduce this (in a new issue on github) ?
[[E2] Vgui Core] Attempted to insert duplicate column.
1. AddColumn - lua/vgui/dlistview.lua:71
2. unknown - lua/autorun/client/cl_vgui_lib.lua:75
3. applyAttributes - lua/autorun/client/cl_vgui_lib.lua:170
4. createFunc - vgui_elements/client/dlistview.lua:8
5. func - lua/autorun/client/cl_e2_vgui_netmessage.lua:33
6. unknown - lua/includes/extensions/net.lua:33
[[E2] Vgui Core] lua/autorun/client/cl_vgui_lib.lua:79: attempt to index local 'column' (a nil value)
1. unknown - lua/autorun/client/cl_vgui_lib.lua:79
2. applyAttributes - lua/autorun/client/cl_vgui_lib.lua:170
3. createFunc - vgui_elements/client/dlistview.lua:8
4. func - lua/autorun/client/cl_e2_vgui_netmessage.lua:33
5. unknown - lua/includes/extensions/net.lua:33
It also has some edge cases where panels created by an E2 can be stuck on-screen forever even when the E2 is deleted. There needs to be a console command to clear all E2 VGUIs
I will add more example in the future but if you need help with anything specific just post a comment here or ask me on the Official Wiremod Discord @Linus
If that's not working I will have a look at it tomorrow.
Also I will try to add a wiki page for every component explaining how to use it in detail.
Here are all functions for the
ComboBox [github.com]
The page gets auto-generates based on the source code and lists every every e2 function.
It's currently in an early stage so some things might not fully work yet.
Also note that some functions are not listed because of the way I register them in e2. (Mainly the functions mentioned here [github.com]).
Lastly, the page also also tells me what functions still need a description, which i will try to add in the following weeks.
But since most functions are self-explanatory or can be looked up in the ]gmod wiki [wiki.facepunch.com] it should at least now be easier to see what's implemented.
I would need to implement a DImageButton [wiki.facepunch.com] for it to work.
I will see how much time i have but generally speaking its not much work.
I haven't used E2 in a while but I'm subscribed to this thread, the last time I used E2 was a year ago, but I think if you just use vec2(256,256) it might center the icon. Not completely sure so if anyone has a better answer feel free to suggest it
I just added the buddy system a few days ago to make it more restrictive. But I understand that you might not always want that.
I will add a way to disable it.
For example dbutton(4) will create a button with the id 4.
You have to enable runOnVgui(1) and use the vguiClk() event to check if someone used a button.
You can use vguiClkPanelID() to get the ID of the element that was interacted with (e.g. the id you asigned to the button element in code) and use vguiClkPlayer() to see which player did the interaction, optionally you can use vguiClkValues()/vguiClkValuesTable() to retrieve the new values, for example the new value of a slider value or the selected entry in a listview
Like im new to this, and these exaples aren't really helping :P
Guess you can expect an update on that in the next week or so
I did a little change to that line (#122) in the hope it won't happen again.
If you see any errors please report them and the E2 that causes the error (on pastebin or something).
It's really useful to me because i can't do that much testing on my own and i appreciate any feedback i can get, may it be good or bad xD
I'm not entirely sure whats the cause of this is, could you explain in more detail how you got the error and if its relevant to the problem maybe upload the E2 to pastebin or something (if possible a small chip that will recreate the error).