Announcement

Collapse
No announcement yet.

New QDevelop QC Compiler WIP(unreleased)

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • New QDevelop QC Compiler WIP(unreleased)

    I'm working on bringing that presentation app to an extreme level, but the bottom line is, I can't focus on any one thing for more than about 5 hours at a time. After that I need to find something else to either do or work on.

    That being said, I decided to revisit my QC development package and take a more professional look at my compile menu. Currently, It's just a bat file with a bunch of options. It does everything it supposed to do just fine, but it's not as fancy as I would like.

    I decide to learn VBScript (on the fly) and upgrade the entire thing to an HTA file (HTML Application, IE only). I got pretty far with that in just an hour or so, but I still hate it, mainly because I hate IE. VBScript isn't a very friendly language either. The errors it throws are so arbitrary and off in space that I spend more time trying to find answers than I would like. Something as simple as an If statement (even when written exactly the way they say to write it) has all kinds of complications and bullshit.

    I could just dump VB and HTA altogether and go the AIR route but that has problems of it's own as well. My goal is to just make my menu "pretty". It's not going to do anything new. There's nothing new to do.

    Anyway, sometime in the near future, maybe next Monday thru Wednesday I intend to release a new QC dev pack with some upgrades to my previous one. I already rewrote my syntax highlight plugin for np++ so, that's done. When I get this compile menu complete the next thing I want to figure out how to do is make a "Quake-ish" skin for np++. That way, in my world, it will all be a polished & (hopefully) attractive package. However, I still won't be done. Eventually i intend to finish my complete QC rewrite. maybe even start over with actual classes. The end game is to have a completely custom and attractive all-in-one QC development environment.
    http://www.nextgenquake.com

  • #2
    Sounds very kool.

    Comment


    • #3
      5 hours? I'm jealous.

      write it in C! no extraneous dependancies then
      Some Game Thing

      Comment


      • #4
        I think html would allow it to work in any browser, which is better than a scripting language. Only question is, can HTML handle that kind of math? Im guessing thats why they went with Perl, then PHP. Actually, PHP works in any browser, and is really identical to C / QC in lots of ways.

        Comment


        • #5
          oh,cool
          i like your syntax highlight plugin for np++

          Comment


          • #6
            Are you guys ready for this unrelated info. I just slept 11 hours!!. I haven't gotten more than 5 in months and 3 days a week I basically don't sleep at all. I'm about to change my name to AwakeGypsy.

            ---

            OK, now to reply to all of you.

            @Spike - I do not know C and every time I attempt to try it, I find myself spending too much time learning. I like fast. super fast like, learn everything I need in an hour. I didn't know VBScript and I practically rewrote my compile menu in it in 30ish minutes (within reason - there is a lil more to do)

            @Cobalt - Maybe you misunderstand what I'm trying to do or you are being "poetic". There is no math. It's just command line stuff.
            Code:
            fteqcc.exe -srcfile %type%/progs.src
            Where %type% is a choice in the menu which is set by the user (ie SVQc/CSQC)

            Browsers work under a different security sandbox than shells. IE (run as a browser and not an HTA shell) would tell you an activeX script is trying to run and the user would have to allow it. All other browsers (to my knowledge) wouldn't let you run it at all.

            let me give you a simple example of an HTA file. This is a SUPER simple example.

            Code:
            <html>
            	<head>
            		<hta:application id="Build QC">
            		<script language="VBScript">
            			Sub BuildQC
            				Set objShell = CreateObject("Wscript.shell")
            				objShell.Run "fteqcc.exe -srcfile SVQC/progs.src"
            			End Sub
            		</script>
            	<head>
            	<body>
            		<button onclick="BuildQC">Build</button>
            	</body>
            </html>
            As you can see it is almost entirely HTML, but that is only to create the interface. The VBScript does all the actual work. Change that to javascript and it will not work. JScript might work but VBScript is more powerful (i think).

            if I used PHP a user would have to have an entire local server on their computer to run it - but it still wouldn't work (security sandbox). You cannot run command lines from within a browser. The ONLY exception to that is AIR (and the IE activex thing but that is not ideal to have the user "allowing" a function that should just work)

            @ST1X51 - awesome! You may not like my new syntax highlighter. It highlights pro-style (which is far less highlighting).


            EDIT: @Spike - you already made the C version. I could include it as an alternate compile menu in the keyboard shortcuts if you want.
            Last edited by MadGypsy; 09-08-2013, 07:24 AM.
            http://www.nextgenquake.com

            Comment


            • #7
              Oh snot! I see where I made a confusing mistake. This thread should be titled:

              New QDevelop QC Compiler menu WIP(unreleased)

              Sorry about that. I guess that explains why cobalt was talking about math and stuff. My fault. I wouldn't even know where to begin to make an actual compiler. I just want to make a better GUI that plays off of Spikes compiler.
              http://www.nextgenquake.com

              Comment

              Working...
              X