MTA Team botder Posted October 18, 2014 MTA Team Posted October 18, 2014 (edited) Hello everyone. I am scripting a debug console, which should seperate the 3 types, info, warning and error and it allows custom types too. Github: https://github.com/Necktrox/debugconsole Take a look: Small Preview (to fit forum width): Original size: Features: 3 Standard tabs for info, warning and error Custom tabs for other purposes Pause the debugconsole whenever you want (per tab) Copy the debugmessage on click Switch tabs using mouse You can move the complete window You can scroll with mouse wheel Caches debug messages for tabs, which aren't visible Ability to hide tabs by pressing on a text-button 'X' Scrolling with click-and-move Planned: API Edited November 5, 2014 by Guest GitHub: Debug Console • MTA-Discord Relay Scripting: How to draw a line chart with DirectX functions? • Doppler Effect in MTA • Get the client's FPS • Customizable Blur Shader
GERgta Posted October 20, 2014 Posted October 20, 2014 That looks useful and clean, I would love seeing it completed Click for more info!
Jaysds1 Posted October 22, 2014 Posted October 22, 2014 It looks very useful! My in-game name: Jaysds1 Retired CMG Scripter World Of Tanks GameMode (Open-Source): https://github.com/Jaysds1/mtasa-wot-gamemode Online GUI-Editor (WIP): https://forum.mtasa.com/topic/47678-online-gui-editor/
Castillo Posted October 22, 2014 Posted October 22, 2014 Isn't that what the debugscript pretty much does? San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
Woovie Posted October 22, 2014 Posted October 22, 2014 Looks useful. "The humble beet is the answer to all riddles." - Rolf
manawydan Posted October 22, 2014 Posted October 22, 2014 nice "Querer não é poder, mas tentar é avançar"!
MTA Team botder Posted October 22, 2014 Author MTA Team Posted October 22, 2014 Isn't that what the debugscript pretty much does? Yes, but seperated. It's useful when you have 5 resources, which output debug information, because you have either 5 tabs for each resource or an other tab solution. GitHub: Debug Console • MTA-Discord Relay Scripting: How to draw a line chart with DirectX functions? • Doppler Effect in MTA • Get the client's FPS • Customizable Blur Shader
Chillax Posted October 23, 2014 Posted October 23, 2014 Looks pretty good. Goodluck! UGC - United Gaming Community http://www.ugcmta.net/
MTA Team botder Posted October 23, 2014 Author MTA Team Posted October 23, 2014 Had not that much time in the last days. The resource needs refactoring for some parts to avoid code repetition. I added a close text-button (see 2nd image in the first post) and changed the code structure. Just some questions: • Should a tab get auto-created when outputting messages to an unknown tab name (my opinion: no)? • Would you add something to the planned features? GitHub: Debug Console • MTA-Discord Relay Scripting: How to draw a line chart with DirectX functions? • Doppler Effect in MTA • Get the client's FPS • Customizable Blur Shader
Woovie Posted October 24, 2014 Posted October 24, 2014 Perhaps log the information to a lua table, so that if you DO add the tab, it's backlog exists. Otherwise, I'd agree with no. "The humble beet is the answer to all riddles." - Rolf
MTA Team botder Posted October 24, 2014 Author MTA Team Posted October 24, 2014 There will be 2 functions: One function deletes the tab (and keeps the messages) and the second function clears the tab (deletes all the messages, but keeps the tab) GitHub: Debug Console • MTA-Discord Relay Scripting: How to draw a line chart with DirectX functions? • Doppler Effect in MTA • Get the client's FPS • Customizable Blur Shader
Woovie Posted October 24, 2014 Posted October 24, 2014 There will be 2 functions: One function deletes the tab (and keeps the messages) and the second function clears the tab (deletes all the messages, but keeps the tab) What I mean is for a new message type. Don't auto open the tab, but log that in case I decide I want to open it. "The humble beet is the answer to all riddles." - Rolf
MTA Team botder Posted October 24, 2014 Author MTA Team Posted October 24, 2014 Okay, will add that. GitHub: Debug Console • MTA-Discord Relay Scripting: How to draw a line chart with DirectX functions? • Doppler Effect in MTA • Get the client's FPS • Customizable Blur Shader
MTA Team botder Posted November 3, 2014 Author MTA Team Posted November 3, 2014 Update As mentioned last time, I am not investigating all my time into this resource, so don't expect fast development. Anyway, I added today the scrollbar inclusive scrolling with the mouse wheel. Going to add the click-and-move scrolling and API functionality later and finally release it. Pictures from scrollbar (small & original): P.S. I hope that no moderator will strike me down for double posting (after 1 week) GitHub: Debug Console • MTA-Discord Relay Scripting: How to draw a line chart with DirectX functions? • Doppler Effect in MTA • Get the client's FPS • Customizable Blur Shader
MTA Team botder Posted November 5, 2014 Author MTA Team Posted November 5, 2014 Pushed the almost beta-ready version to github (https://github.com/Necktrox/debugconsole) GitHub: Debug Console • MTA-Discord Relay Scripting: How to draw a line chart with DirectX functions? • Doppler Effect in MTA • Get the client's FPS • Customizable Blur Shader
UAEpro Posted November 8, 2014 Posted November 8, 2014 if you could make a tab for all this will be good تيم سبيك بروجيمر ts3server://ts.pg.sa
MTA Team botder Posted November 8, 2014 Author MTA Team Posted November 8, 2014 Do you mean a tab with every message? Use /debugscript 3. GitHub: Debug Console • MTA-Discord Relay Scripting: How to draw a line chart with DirectX functions? • Doppler Effect in MTA • Get the client's FPS • Customizable Blur Shader
Woovie Posted November 9, 2014 Posted November 9, 2014 Why not make it so you can have any tab have what you want? Do it like MMOs do where you have a popup that has some checkboxes to choose what is displayed on said tab. That way you could have the user choose what they want. "The humble beet is the answer to all riddles." - Rolf
Dealman Posted November 15, 2014 Posted November 15, 2014 Great job, Neck. I do like the fact you also put down comments to help others understand how things are working, and even more so that you're spending so much time refactoring. This looks like a very useful resource to me, especially if you have a few resources running and they all spit out various shit. I've never been a fan of the default debugscript, especially if something goes wrong with a render event I'd agree with what Woovie said, also another suggestion I'd have is; For example when something goes wrong with a function attached to a render event, it'll spam several of those warnings/errors per second - could you make it so they show up as one line? But the ability to collapse it? Other than that, great work! If I help you in a thread and you need further assistance, please don't PM me - use the thread you created instead. This way everyone on the forum can take advantage of it.
MTA Team botder Posted November 15, 2014 Author MTA Team Posted November 15, 2014 I didn't do much in the last time (to be honest, nothing yet). Was only thinking about how to split the code actually and keep it simple (the current version is a 774 line long piece of code in one file). What I am going to add + Resize (still not sure) + Tabmoving (e.g. split debug into 2+ windows with different tabs) + Remove the long "Server/Client" and time indicators + Add right-click-action for messages (where you can see some info (time received, server/client) in a hover-window) + Prevent spamming + Make scrollwheel jump page-wise Should I add logging for the custom tabs, because right now only the default tabs (info, warning, error) have the MTA file-logging available. GitHub: Debug Console • MTA-Discord Relay Scripting: How to draw a line chart with DirectX functions? • Doppler Effect in MTA • Get the client's FPS • Customizable Blur Shader
AJXB Posted November 17, 2014 Posted November 17, 2014 So basically you're using onDebugMessage in a more advanced way along with dx functions, eh well, good job, I still rather the default debugger, no offence. ~ This has to be the worst board post I have ever read. It simply makes no sense. You start off by talking about space or something, then you randomly start babbling about cupcakes, and you end off with random fish names. ~ Don't listen to this guy, any board with the categories 'dinosaurs, spaceships, fried foods, wild animals, alien abductions, business casual, robots, and fireworks' has true potential.
MTA Team botder Posted November 17, 2014 Author MTA Team Posted November 17, 2014 The regular debugscript does a great job if you are not going to spam it from different sources. GitHub: Debug Console • MTA-Discord Relay Scripting: How to draw a line chart with DirectX functions? • Doppler Effect in MTA • Get the client's FPS • Customizable Blur Shader
AJXB Posted November 17, 2014 Posted November 17, 2014 You can just try, not to make buggy resources? ~ This has to be the worst board post I have ever read. It simply makes no sense. You start off by talking about space or something, then you randomly start babbling about cupcakes, and you end off with random fish names. ~ Don't listen to this guy, any board with the categories 'dinosaurs, spaceships, fried foods, wild animals, alien abductions, business casual, robots, and fireworks' has true potential.
MTA Team botder Posted November 17, 2014 Author MTA Team Posted November 17, 2014 It's not only about debugging resource warnings/errors/bugs, you can also use it to show useful information when something happens without editing the resource (which output the debug message). And that's where the debugconsole has it advantage - you can seperate the messages into tabs. GitHub: Debug Console • MTA-Discord Relay Scripting: How to draw a line chart with DirectX functions? • Doppler Effect in MTA • Get the client's FPS • Customizable Blur Shader
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now