Jump to content

Debugging resources


tomozj

Recommended Posts

Posted

There is a feature which allows you to debug your resources, and have the output show in an alternate 'chat' box, i.e. the debug output.

However, would it be possible to rip this from MTA and make it into a standalone appplication, so we can test our scripts for small errors without having to load MTA?

Posted

In the main menu, press F8 and type "window" (w/o the quotes), MTA will be windowed [the resolution should be set to a lower resolution then the one of your screen], you can edit the file while testing it, so you don't have to restart MTA. Also, syntax errors should show the error when starting the recource, and other errors usually require a player to trigger the code containing them, thus needing you to run MTA.

Posted

I know what you're saying, still it'd be easier to just open the script quickly in a small app.

In the past the server output hasn't given me errors on a script.

Posted

change ... in the config to 3 and it'll show you server-side errors, it's not possible showing client-side errors in the server though

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...