hack – KonsolScript http://konsolscript.sourceforge.net/web The Free and Open Game Programming Language Wed, 07 Apr 2021 15:44:00 +0000 en-CA hourly 1 https://wordpress.org/?v=6.3.1 Ubuntu Rejected Quixie http://konsolscript.sourceforge.net/web/2014/07/08/ubuntu-rejected-quixie/ http://konsolscript.sourceforge.net/web/2014/07/08/ubuntu-rejected-quixie/#respond Tue, 08 Jul 2014 10:03:15 +0000 http://konsolscript.sf.net/web/?p=643 Two and a half years ago, I submitted Quixie to Ubuntu Software Center to bring the app closer to users. Ubuntu Software Center is like the Google Play for Ubuntu Users, or AppStore for Apple, or Steam for Gamers… etc., you get the idea. After a month of waiting, this is the exact message I got from one of the approver.

So, I tried bringing the concern to FreeBASIC developers, that “fbc should be added in Ubuntu’s and/or Debian’s upstream”, but they don’t see this as an issue. I think they only see FreeBASIC as a hobbyist’s tool. I waited years for them to actually have it submitted to no avail.

Quixie’s dependency on FreeBASIC is an anchor for the project. It’s about time to move forward and leave the BAS source codes behind.

I’m currently porting Smack in C++ with IrrLicht as the graphics engine. Carefully building what would be a Kage Library, then add the scripting capability along with the game to finally have a brand new Quixie, in the hopes of making Quixie more portable, and available to Ubuntu Software Center. Fingers crossed.

With IrrLicht, 3D would be available in Kage as well. 🙂

I’m quite happy that it’s actually easy to port the game itself given the similarity of KonsolScript and C++ in syntax. Pretty much proves that KonsolScript/Quixie is a very good prototyping tool for any gamers with brewing idea. I only had to write the functionalities of loading and rendering of PNG files. Handing mouse and keyboard inputs are okay. Some others are still not implemented, especially handling sound. If you know a free and open source sound library that is compatible with IrrLicht’s license, please comment below.

~creek23

]]>
http://konsolscript.sourceforge.net/web/2014/07/08/ubuntu-rejected-quixie/feed/ 0
Scripting Visual Effects http://konsolscript.sourceforge.net/web/2013/09/10/scripting-visual-effects/ http://konsolscript.sourceforge.net/web/2013/09/10/scripting-visual-effects/#respond Tue, 10 Sep 2013 13:11:50 +0000 http://konsolscript.sf.net/web/?p=605 Found another use case for KonsolScript! Scripting Visual FX for videos. 😀

Yes, is some ways it still is game-related — kind of like scripting an explosion when the player throws a bomb or something. But this use case is basically pre-rendering FX then saving it as frames to be used as a clip on a video.

No, KonsolScript doesn’t have the capability to create an image file on your disk. Yet. But with a few modifications, it does now. 😀

Introducing Screen:Capture(filename) command!

I figured, this function can also be used when you want your players help you debug your game.

Visual FX does sound like an exaggeration to describe my experiment. It’s actually more of automating my task of doing a simple animation for a skateboarding video ad. But still, any one can always script a particle system and use it as a Visual FX of a fire, smoke, or explosion for a clip — and I believe KonsolScript can do that as well.

You may not know this but I’ve long been restraining myself from using proprietary tools (except for Windows so I could make sure Quixie does run on Windows as it does on GNU/Linux, and except for Windows Movie Maker — let’s face it, there really is no other good Free and Open Source video editing software that runs right out of the box and is easy to use).

So I’ve created a 30-second video using only Free and Open Source software namely GIMP, Inkscape, Audacity, FFMPEG, and KonsolScript — with Windows Movie Maker being the only non-FOSS software involved (and Windows, of course).

So where did KonsolScript came in to the view? It was when I needed a transition of the following photo below.

I’m pretty sure that no other ready-made open source video editing tool (not even Movie Maker) could do this simple animation.

With time running out, there’s no way I could learn Blender’s Video Sequence editor and do this simple less-than-two-seconds animation. In less than 5 minutes, I updated Quixie, wrote the script for the animation and I’m done!

It’s not officially out yet — I’m still working on the release-process like committing it on SVN, updating the installer, etc.

Just a side note, we currently have a company activity that includes video editing — I’m excited to see how KonsolScript will help in generating some of the effects/animation.

~creek23

]]>
http://konsolscript.sourceforge.net/web/2013/09/10/scripting-visual-effects/feed/ 0
HTML5 Smack! http://konsolscript.sourceforge.net/web/2011/11/28/html5-smack/ http://konsolscript.sourceforge.net/web/2011/11/28/html5-smack/#comments Sun, 27 Nov 2011 17:20:56 +0000 http://konsolscript.sf.net/web/?p=376 I know we promised a Smack! pre-release by mid of November. But co-Game Designers, Mark and Uriel are wanting to cook the build a little more to avoid a half-baked demo. But I guess they can’t prevent me from releasing an HTML5 port of the half-baked Smack! 🙂

What you get to play in the HTML5 port is basically the same to what we currently have for KonsolScript edition. Except for the difference in the feel of the Jump controls, everything else feels the same (to me, at least :P).

Click this image below to try it out. Please note that it’s currently NOT WORKING on Internet Explorer. It was tested on Google Chrome 15 and Mozilla Firefox 8.0.

Controls are:

  • A – move left
  • S – jump down
  • D – move right
  • SPACE– jump (make sure the browser is maximized or the browser will Scroll Down instead, making the game un-playable)
  • G – punch
  • H – kick/shuriken

Expecting a comment on my very first HTML5 game! 🙂

~creek23

]]>
http://konsolscript.sourceforge.net/web/2011/11/28/html5-smack/feed/ 1
KonsolScript 0.3.110904 released http://konsolscript.sourceforge.net/web/2011/09/04/konsolscript-0-3-110904-released/ http://konsolscript.sourceforge.net/web/2011/09/04/konsolscript-0-3-110904-released/#comments Sun, 04 Sep 2011 04:03:51 +0000 http://konsolscript.sf.net/web/?p=289 Once again, we are proud to announce the fourth release of the 0.3.x series. This update is an improvement over KonsolScript 0.3.110724 release. The newly introduced way of exporting PNG with magenta-transparency isn’t intuitive enough for artists to be a work-around for the PNG-loading problem found under Windows 7. To properly fix the problem, the underlying Blitting function (Multiput) was improved.

You can once again ignore what color you have used in the transparent area of your image. What’s more is that Alpha channel of 32 bits-per-pixel images is now fully employed. Meaning, the transparency of each pixel is need-not be at value 0. Even transparency values of 1 to 254 is now being blitted with its corresponding alpha value.

Download InstallerJust how important is this? Well, I for one has been longing for such capability, which was previously available only to Quixie_cairo. This means that I can already use my favorite vector authoring software, Inkscape, to create game sprites without facing the problem of cleaning the non-0 transparent pixels of the produced sprites with Gimp.

Available downloads are installers for Ubuntu and Windows. Again, Ubuntu 10.04/10.10 users should have no problem installing it but 11.04 users will have to install it via terminal.
sudo dpkg -i quixie_0.3.110904_i386.deb

Like always this is kind of a preview release so if you find bugs, please report it to help us fix them.

~creek23

]]>
http://konsolscript.sourceforge.net/web/2011/09/04/konsolscript-0-3-110904-released/feed/ 1
Using KonsolScript for CGI http://konsolscript.sourceforge.net/web/2009/04/28/using-konsolscript-for-cgi/ http://konsolscript.sourceforge.net/web/2009/04/28/using-konsolscript-for-cgi/#comments Tue, 28 Apr 2009 02:54:49 +0000 http://konsolscript.sf.net/web/?p=174 I was bored one time and tried to hack Apache on my Ubuntu box to use Quixie as CGI. It turned out, I didn’t have to do much of hardcore hacking to make it work.

Hello CGI

Here are the steps of what I did:
1. Make sure you already have apache
  sudo aptget install apache2

2. Copy quixie to cgi-bin
  cp ./quixie /usr/lib/cgibin/

3. For testing, change permission of cgi-bin
  cd /usr/lib/
  sudo chmod 655 cgibin

4. Make test file, named main.ks
  function main() {
    Konsol:Log("Content-type: text/html\n\n")
    Konsol:Log("Kisi says, <strong>Hello CGI!</strong>")
  }

5. Place main.ks in cgi-bin directory
  sudo cp ./main.ks /usr/lib/cgibin/

6. Make sure apache service is running
  sudo /etc/init.d/apache2 start

7. Access Quixie from your browser. …viola!

This is not to show that KonsolScript is going to compete in other CGI technologies like Perl, Python, PHP, etc. This is just to show that the KonsolScript engine, Quixie, is at the point of being usable — though further development is needed to fully support CGI.

Using KonsolScript for CGI on Windows should have almost the same steps.

Mj Mendoza IV
KonsolScript Developer

]]>
http://konsolscript.sourceforge.net/web/2009/04/28/using-konsolscript-for-cgi/feed/ 1