Order the Chaos Games versions 1.03 as zip-archive

(updated with v1.03 patch)

In my previous post I told about problems I had during developing versions 1.02 of Order the Chaos games. Since from the reason I explained in the previous post, I had to leave the icon of the main executable intact. Unfortunately I published version 1.02 too quickly. Sometimes it is the case when one fixes one small bug, two unexpected bug may arise and it is too easy to rely on that something that worked before, works still after a small fix elsewhere…

Because I had to leave the icon of the main executable intact, I decided to release versions 1.03 in a zip-archive, because the Start Menu of the Windows would look ugly with the “standard exe icons” and in the other hand OTC games are just small little games that can be installed somewhere else than in “Program Files” folder.

Let’s take a look how the Order the Chaos directory looks like after extracting the files from the zip-archive (notice that I have Finnish system):

Before extracting the files from the archive choose a folder where to install, the directory “Order the Chaos” will be created when extracting.

The file that starts the game is “LAUNCH Order the Chaos.exe”. If you want, you can make a shortcut of it to the desktop and rename it if you want. The launch program will make the usual subfolder to hidden folder AppData where the scores and config file are saved. When started, the launch program shows up following little window:

After pressing Launch button and before registration of the game, following familiar looking dialog appears:

The registering works like before and regard possible earlier registration; if registered this dialog doesn’t show up anymore.

(Pay attention to additional instructions in the e-mail after purchasing the license to add correct text into Name field.) While trying the 7 minutes demo pressing TRY button starts the actual game as before. The Launch program stays on the background until the game is closed and launch program itself is closed, but the the launch program can be minimized so that it doesn’t bother too much on the background. 🙂

As to uninstalling the game, please run first the “De-initialize” program, that deletes the data of the game in its own subfolder in the AppData folder and the subfolder too. Then just delete the files, if you want to.

Everything works in similar way with Order the Chaos II, below is the “Order the Chaos II” directory, which will be created to the directory of your choice:

The game can be played with PC’s with the touch screen too, below you’ll get an impression of Order the Chaos II played with the mouse:

If you find any bugs or have difficulties running either of the game, feel free to send me an e-mail.

 

 

Why The Exe Icon of Order the Chaos Versions 1.02 Is Left Intact

First I thought that my computer was under constant virus attack, but after working offline and after several full cleanings/checkings with F-Secure Safe, I finally found the answer why my AV considered my final main executable of Order the Chaos games as a virus.

The exe made with BlitzMax was always clean. Next I changed the exe icon with Resource Hacker, then protected the file with Enigma Protector. As the protecting was ready, my AV deleted the resulting file immediately considering it a virus.

The ”diagnosis” was ”SYMMI”/generic malware. Before publishing I wanted to be sure that my AV doesn’t find anything harmful from the installation package.

What was the solution? First I tried to protect all the resources (also icon and version) from Enigma Protector’s (the licensing system) options. My other computer’s AV found the installation package 100% clean after that, but on my desktop computer there is different version of F-Secure’s AV and it considered the main executable still a potential risk, because its behavior was similar to a virus.

The key was the changing of the main executable’s icon. I left it as Windows ”standard exe icon” and as a result of not changing the exe icon my both versions of F-Secure’s AV considered the whole installation packages 100% clean.

The exe icons differ from the other icons and require some ”hacking”. We’ll see at the future, if Order the Chaos games can have changed exe icon with protection of Enigma Protector. EP uses some kind of virtual system and with changed exe icons my executables were considered as potential viruses (generic detection / false positive)…

But as said above, the solution was keep the exe icon intact.

Though, I haven’t paid for the certificate, that is why smart screen at first blocks the games.

Merry Christmas and Happy New Year 2018

Blue Bit Entertainment wishes you all Merry Christmas and Happy New Year 2018!

The intro in the video is code in Monkey X.

Today is a good day wish merry Christmas, since today is Lucia day, that is also a Swedish tradition that lives here in Finland too. The day is related to Sancta Lucia. Lucia was a saint who was born in the year 283.

It’s been a hard year; so much more I would wanted to give to Blue Bit Entertainment… Eventually in the summer bad insomnia troubled me that seems to be behind now…

I’m trying to publish version 1.02 for both Order the Chaos and Order the Chaos II before 24th December. Let’s see, if I’m able to do that…

Perhaps next year finally my first Android game sees the daylight. I’ve plans for an Android app too… A life long project (well, kind of) that would get updates in order to get more and more features…. Hopefully the updates won’t be needed for any bug fixes… 🙂

Anyway, Merry Christmas 2017 and Happy New Year 2018!

 

Snowing Effect in Monkey X

Since Christmas is coming soon, I decided to share my snowing effect code I wrote last year. The original code was written in BlitzMax. This year I have already made new Christmas intro in Monkey X. You may want to take look at the snowing effect of the Christmas video of the last year.

Examine the code and you’ll get the idea quickly. Implementation in other programming languages should be quit straight forward. Just use background picture of your own.

Feel free to use the code.

Screenshot of the program:

I will soon publish my new Merry Christmas 2017 and Happy New Year 2018 video. And… It’s also written in Monkey X.

What if Smart Screen blocks my product?

What if Smart Screen prevents my product to run on your computer? You can check the file before running it with some antivirus scanner and as you see, that there’s nothing harmful, just run the program. See the video (I have Finnish system, but I have added needed translations):

My system is protected by F-Secure’s protection package. If you have F-Secure’s protection too, and Deep Guard says it has prevented harmful program to run (in Finnish: ”Deep Guard on estänyt haitallisen tiedoston”), you may still do the same scanning as shown in the video and as you see, that the program is actually clean, don’t be afraid of running it.

Though, if the Deep Guard prevents the program to run, one must manually allow the Deep Guard to run the program, by changing F-Secure’s AV settings in order to put the program to the list of allowed programs.

In case you ran into any problems, just contact me by e-mail and we’ll find a solution together.

Image courtesy of TAW4 at FreeDigitalPhotos.net

In order to prevent the Smart Screen to block a program one should have a certificate and put the certificate into one’s program after one has validated it with Microsoft’s validator. But the certificate is expensive…

Also, many of you may have noticed that one somekind of generic interpretation of a “virus” or some harmful file is often just a rare file, rare piece of software nowadays… The definition of rare is sometimes just new.

Unique Random Integers part II

Last year I wrote about my clumsy implementation of unique random integers system, I’ve used in my Memorable Ladies games. In those the speed isn’t a critical factor. It’s sufficient that the idea works. 🙂

In this post the idea behind unique random integers is the same, but implemented in a faster way.

In the implementation I have used an array that consists of all desired integers and each is drawn in a way that the same integer doesn’t get drawn again. Let’s take a look at the code (I have used Monkey2 programming language in the example):

Image courtesy of nonicknamephoto at FreeDigitalPhotos.net

First an array is initialized with desired integers. Then an random integer from the array is fetched using random index inside the array.  After that the numbers after the drawn number are moved to “left”. For the end the amount of integers is decreased by 1 and the array is resized by the new amount of integers. That’s it.

This way one gets always different random integer from the set of desired integers.

Furthermore, if one would like to get, for example, number four (4) to be drawn three times, one could just include 4 three times in the array.

Depending on what one is doing, one could keep a copy of the original array for future usage.

Although I have used Monkey2 as example programming language, it should be easy to implement similar implementation to many other programming languages quite straight forwardly.

 

 

How To Fix Missing OpenAL32-dll Problem in Windows 10

Missing OpenAL32.dll problem seem to be common problem with many software.

First how the solution can’t be solved: At least in 64-bit Windows 10 grabbing just OpenAL32.dll and registering it to system with regsvr32 doesn’t work. There are some bad solutions to solve this problem. The best solution is simply grabbing the missing dll from http://www.openal.org/ and install it with the official installer it comes with.

In general, if one is missing some software component, it is best to find the official website of the missing software component and hope for the best.

Image courtesy of digitalart at FreeDigitalPhotos.net

This is how to fix the problem when setting up Monkey X installation, too.

 

Example of Own Font Class in Monkey X part 2

I decided to implement in an alternative way own font class to Monkey X to use with fonts converted with my Font 2 PNG, just to for passing time.

Check the previous post or the homepage of Font 2 PNG for format of the dat-file.

Screenshot of the program:

All you really have to understand is the simple format of the dat-file of a font to understand the source code below — and of course basic understanding of Monkey X.

Feel free to use the code above.

 

Example of Own Font Class in Monkey X

I seem to live in the past… Monkey X programming language has evolved into Monkey2, but I’m still sometimes using Monkey X.

I made an example class to use in Monkey X with bitmap fonts converted with my Font 2 PNG. The example uses old Mojo-module, but old examples on scaling bitmap font made with Font 2 PNG will give you an idea of an alternative way to implementing this.

Next, let’s take a look at a screenshot:

Next to the code:

Font 2 PNG prints the max height of the font after converting. The value is in practice just the height of the png-file.

As a reminder: Font 2 PNG produces two files, font.png and font.dat for one font. The font.dat-file holds the information for each character with two 4 byte integers, first tells the position in pixels in font, the second the width of the chatacter in pixels.

I hope this example gives you some ideas on how to use different fonts converted with Font 2 PNG.

Feel free to use the code above.

PS. I also made new version of part 1 of my Old School series demonstration in Monkey X. Video below:

From the source code in the video you’ll get an idea, how this font class could be used with Mojo2-module.

That’s it from my “hobby corner” tonight!

Old School IX

This morning I made new Old School demonstration in Monkey X. This is now 9th in the series.

Not much is changed in the code from the previous Old School demonstration. What actually required some work, was the font. As in all my Old School demonstrations, I used my Font 2 PNG program. With Mojo2-module one can use for one picture the following: “pic.png”, “pic_n.png” and “pic_s.png”. The programmer doesn’t need to worry about “_n” and “_s” versions of an image, Mojo2 takes care of them. I’ve written all I know from those extra pictures in the first old school post. I may make a better version of it in code-wise and perhaps add some extra too…

Anyway in this 9th version there are 3 versions of each character that are individual png-files.

See the magic: 🙂

I may share the Monkey X source code for these later Old School demonstrations later.