SA-MP Forums Archive
[Tool/Web/Other] PAWN Playground - Online code runner - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Filterscripts (https://sampforum.blast.hk/forumdisplay.php?fid=17)
+---- Forum: Tools and Files (https://sampforum.blast.hk/forumdisplay.php?fid=82)
+---- Thread: [Tool/Web/Other] PAWN Playground - Online code runner (/showthread.php?tid=314780)

Pages: 1 2 3


PAWN Playground - Online code runner - Slice - 31.01.2012

Hey,

So I've finally managed to get a proper Linux compiler working, which allows me to use my Ubuntu VPS to both compile and run code.

Here's a tool I've been working on a little bit, which allows you to instantly write and test code without having to compile it and start the server/reload a FS/reload the GM. The output is limited to that of print and printf, though.

Have a look: http://slice-vps.nl:7070/


Re: [WIP] PAWN Playground - Online code runner - System64 - 31.01.2012

fuck yeah, fucking awesome D

I suggest you should add new includes, like YSI package etc...


Re: [WIP] PAWN Playground - Online code runner - Slice - 31.01.2012

Yeah, that's what I had in mind. Checkboxes for certain includes/plug-ins that will make them included.


Re: [WIP] PAWN Playground - Online code runner - CaHbKo - 31.01.2012

I sometimes use PAWN for solving real life problems, like counting, sorting something. And compiling a gamemode each time and running it wasn't really convenient. (if doing such thing is convenient/smart at all)

Now it's just one button away. Thanks!

And would you add plugin support? (CSTL for example)

EDIT:
You were a bit faster.


Respuesta: [WIP] PAWN Playground - Online code runner - [Nikk] - 31.01.2012

Awesome, like always, good work.


Re: [WIP] PAWN Playground - Online code runner - John Rockie - 31.01.2012

Looks nice. Will try it.


Re: [WIP] PAWN Playground - Online code runner - Konstantinos - 31.01.2012

Looks awesome Slice!
Good Job. I like it!


Re: [WIP] PAWN Playground - Online code runner - Slice - 01.02.2012

Updates!

Lots of new stuff.. One cool feature is Pastebin integration - you can save and link to code by clicking just a button!

Example:
http://slice-vps.nl/ppg/?paste=xgDrkkXJ




Re: [WIP] PAWN Playground - Online code runner - Niko_boy - 01.02.2012

YEAH!!
I <3 this work of you Slice !!
Keep it up!! , and really lol its a pawno hardcore playground


Re: [WIP] PAWN Playground - Online code runner - aminj - 01.02.2012

wow fucking awesome man good job


Re: [WIP] PAWN Playground - Online code runner - Slice - 01.02.2012

Thanks, and I wouldn't say it's a "hardcore playground". It really is what you make it. For example, if you're having trouble with strfind you could just use this to quickly mess around with it and hopefully find the root to your problem!


Re: [WIP] PAWN Playground - Online code runner - Max_Coldheart - 01.02.2012

I put
pawn Код:
for(new i = 0; i < 100; i++)
{
     if(i == 99)
     {
         i = 0;
     }
     print("Livin la vida loca");
}
Eventually my browser crashed


Re: [WIP] PAWN Playground - Online code runner - Slice - 01.02.2012

Get a better browser.


Re: [WIP] PAWN Playground - Online code runner - Konstantinos - 01.02.2012

Quote:
Originally Posted by CookieJar
Посмотреть сообщение
I put
pawn Код:
for(new i = 0; i < 100; i++)
{
     if(i == 99)
     {
         i = 0;
     }
     print("Livin la vida loca");
}
Eventually my browser crashed
Is it like this?
pawn Код:
#include <a_samp>

main ()
{
    for(new i = 0; i < 100; i++)
    {
         if(i == 99)
         {
             i = 0;
         }
         print("Livin la vida loca");
    }
}
It works.
pawn Код:
// Output:
[18:05:55] Livin la vida loca
[18:05:55] Livin la vida loca
[18:05:55] Livin la vida loca
[18:05:55] Livin la vida loca
[18:05:55] Livin la vida loca
// Continues ( very big )
[18:05:57] Livin la vida loca
[18:05:57] Livin la vida loca
[18:05:57] Livin la vida loca
[18:05:57] Livin la vida loca
[18:05:57] Livin la vida loca
[18:05:57] Livin la vida loca
[18:05:57] Livin la vida loca
[18:05:57] Livin la vida loca



Re: [WIP] PAWN Playground - Online code runner - _DownLoaD_ - 01.02.2012

Nice Job!
can i see the PHP script in private message?


Re: [WIP] PAWN Playground - Online code runner - Gamer_Z - 01.02.2012

I'm curious about the linux compiler, the php script is easy to make and to set it up, but the most interesting part is the compiler..
Will you release the compiler? (I don't mind if you don't include the source)


Re: [WIP] PAWN Playground - Online code runner - Slice - 02.02.2012

Download the compiler v3.2.3664 and replace SOURCE/COMPILER/sc2.c with this and you're all set!


Re: [WIP] PAWN Playground - Online code runner - Gamer_Z - 02.02.2012

Quote:
Originally Posted by Slice
Посмотреть сообщение
Download the compiler v3.2.3664 and replace SOURCE/COMPILER/sc2.c with this and you're all set!
thank you for the info, will try asap I'm home


Re: [WIP] PAWN Playground - Online code runner - Slice - 02.02.2012

Sneak-peek of some awesome new features!

You can now see a nicely formatted assembler output, arranged in blocks by the line they came from. You can also click them to have that line highlighted!

Try it on:
http://slice-vps.nl/ppg/new.php (press "Show assembler output" then click inside the outputted assembly code)


Re: [WIP] PAWN Playground - Online code runner - Cadetz - 02.02.2012

This is really aweomse. Nice work :]