Jump to content


Photo

GM 8 game to GM HTML 5


  • Please log in to reply
4 replies to this topic

#1 mirda

mirda

    GMC Member

  • New Member
  • 21 posts
  • Version:GM:HTML5

Posted 21 January 2012 - 03:56 PM

First of all, you can find specific game and its source on this link:
http://www.necessarygames.com/my-games/bunnies-vs-bunnies
Its pretty simple bunny game ::lmao::

Posted Image



I contacted Jordan Magnuson, developer of this game, and he pointed me to solve HTML 5 version issues with this forum because he doesnt use GM HTML5.

So,here is the deal...
I imported .gmk version in GM HTML 5 and few things had to be disabled and removed because extension for windows dialogs was used that obviously didnt work in HTML 5. It produced errors and had to be abort or ignored. So, I removed that and the game start running properly.Well, at least .exe version. When its started in web browser with .html file it simply stops on loading screen and dies.
I dont have much experience with Game Maker programming and scripts so I feel little dumb solving it on my own. :confused:

I hope that someone on this forum with more experience can find the issue more quickly than I can. Its probably not big deal to someone who knows more.

I was also thinking, since I know that for saving game progress in HTML 5 .ini files must be used, something about this issue also have to be changed because now it saves game in external .txt file. Im also not sure how to replace that, so maybe that too causes the problem on loading.

Anyway, I hope someone is interested in helping with this and add needed changes in the source so it can run on web and we all learn something from it. :thumbsup:

Edited by mirda, 21 January 2012 - 04:27 PM.

  • 0

#2 Artaex Media

Artaex Media

    Artaex Media

  • GMC Member
  • 1528 posts
  • Version:GM8

Posted 21 January 2012 - 04:05 PM

Why are you trying to do it, and not the original creator?
  • 0

#3 mirda

mirda

    GMC Member

  • New Member
  • 21 posts
  • Version:GM:HTML5

Posted 21 January 2012 - 04:12 PM

Why are you trying to do it, and not the original creator?


Well, he told me that he doesnt have GM HTML 5 and he obviously is not much interested in getting it. I will send him back e-mail with link to this topic so maybe he stop by to say hello or help us a little :smile:.

Edited by mirda, 21 January 2012 - 04:21 PM.

  • 0

#4 _248813

_248813

    GMC Member

  • New Member
  • 1 posts

Posted 21 January 2012 - 04:35 PM

Hey there, this is Jordan, original creator of Bunnies vs. Bunnies. Just wanted to say that Bunnies is completely open source, and I fully support mirda's attempt to port the game from GM 8 to HTML 5. I would love to help out with this myself, but I don't own GM HTML 5, so my ability to troubleshoot is obviously limited.

Anyway, cheers to mirda, and anyone who wants to help with this.
  • 0

#5 JHarris

JHarris

    GMC Member

  • New Member
  • 2 posts
  • Version:GM:HTML5

Posted 22 January 2012 - 01:06 AM

Hey there, this is Jordan, original creator of Bunnies vs. Bunnies. Just wanted to say that Bunnies is completely open source, and I fully support mirda's attempt to port the game from GM 8 to HTML 5. I would love to help out with this myself, but I don't own GM HTML 5, so my ability to troubleshoot is obviously limited.

Anyway, cheers to mirda, and anyone who wants to help with this.


Two things I've noticed that are different between the platforms:
1. Gamemaker for Windows allows you to define constants, in the constant editor under Resources, by using math on other constants. Like:
defining MAPWIDTH as BOARDWIDTH * TILEWIDTH. Sometimes this breaks in GameMaker HTML5 and causes an invisible Javascript error very early on.
2. I had a weird problem in which the whole screen was scaled really far down. The problem turned out to be an object that manipulated the view location was setting it partly outside the room before the display was fully setup (or something like that). Having it delay setting the view location helped to fix that problem.

If your game isn't starting in HTML5 at all, there are two things you should do. The first is to run in Debug mode (the red triangle in the toolbar in the Gamemaker interface), which brings up some elementary debug information, but isn't really too helpful. The other is to use your browser's Javascript console. Under Firefox it's Tools > Web Developer > Web Console, and under Chrome it's (Wrench)> Tools > Javascript Console. There's probably some function that's crashing, and your browser will probably help you trace into the code and figure out what's going on.

I hope this is helpful.
  • 0




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users