Jump to content


Photo

HTML5 conversion generates Symbol expected error


  • Please log in to reply
2 replies to this topic

#1 tansaku

tansaku

    GMC Member

  • New Member
  • 5 posts

Posted 29 June 2012 - 09:44 AM

Hi there,

I've successfully converted a few gm81 games to HTML5, however I was just trying another conversion and I get the following errors:

Error : gml_Object_obj_player_Collision_22(4) : Symbol , or ) expected
Error : gml_Object_obj_player_Collision_22(4) : Symbol ) expected
Error : gml_Object_obj_player_Collision_22(4) : symbol } expected

It runs perfectly in the standard GameMaker. I'm using v1.0.208 (r11948) and did try upgrading to the latest version (v1.0.218) of GM HTML5, but get the same errors.

In another window that I don't seem to be able to copy and paste from I see that the error is in Event Collision event number 63 at line 4, and clicking on it I get the Object Properties of obj_player, but I can't immediately see anything wrong. Is there some way to view the actual source associated with the Object?

Here's the gm81 file for reference: http://dl.dropbox.co...3_streaker.gm81

Or any ideas about how to fix this?

This is a really fun games by one of my students, and I'd love to make it more widely available via HTML5

Many thanks in advance
CHEERS> SAM
  • 0

#2 JacksonYarr

JacksonYarr

    GMC Member

  • GMC Member
  • 248 posts
  • Version:GM:Studio

Posted 29 June 2012 - 10:34 AM

In obj_player on the collision event with obj_zombie a message is displayed that includes "quotation marks". Remove these quotation marks to resolve the issue.

However, GM:Studio also presented the following errors:

  • In the object group Enemies there is an object named spr_guard1. I'll assume it should be obj_guard1 (Otherwise the naming conflicts with a sprite of the same name).
  • In the sprite group Concert there is a sprite named spr_car6. This conflicts with another sprite by the same name, one should be renamed (spr_car7 seems logical).
  • Sleep, is now an obsolete function. It may still be present in the version you're using? - But in GM:Studio the drag and drop is listed as "Unknown Function" in multiple collision events in obj_player and once in obj_flag, obj_flag_casino and obj_flaglouvre.

After fixing up these issues the game compiled successfully in HTML5, however there are likely other game play bugs that you'll need to play through to find and sort out.
  • 0

#3 tansaku

tansaku

    GMC Member

  • New Member
  • 5 posts

Posted 09 July 2012 - 12:43 PM

Thanks, that's super helpful. I fixed the quotes issue you mentioned and then it all compiled and (the first level at least) played for me in HTML5, without having to make any further changes. I've now deployed the game here:

https://sites.google.com/site/hpustudentprojectshowcase/csci-3651-games-programming/streaker

Since I'm not the original author, I won't try to tune it any further, but at least it works as a basic web preview.

I'd be very interested if there was some way to view all the source for the game in code format, but I guess that's a GM Studio feature?

Many thanks again
CHEERS> SAM

In obj_player on the collision event with obj_zombie a message is displayed that includes "quotation marks". Remove these quotation marks to resolve the issue.

However, GM:Studio also presented the following errors:

  • In the object group Enemies there is an object named spr_guard1. I'll assume it should be obj_guard1 (Otherwise the naming conflicts with a sprite of the same name).
  • In the sprite group Concert there is a sprite named spr_car6. This conflicts with another sprite by the same name, one should be renamed (spr_car7 seems logical).
  • Sleep, is now an obsolete function. It may still be present in the version you're using? - But in GM:Studio the drag and drop is listed as "Unknown Function" in multiple collision events in obj_player and once in obj_flag, obj_flag_casino and obj_flaglouvre.

After fixing up these issues the game compiled successfully in HTML5, however there are likely other game play bugs that you'll need to play through to find and sort out.


  • 0




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users