Pages: 1
  Print  
Author Topic: Syntax error Help?  (Read 963 times)
Offline (Unknown gender) Duskitty
Posted on: August 20, 2015, 07:48:18 AM
Member
Joined: Aug 2015
Posts: 1

View Profile
So i recently switched from GM:S to Enigma (cause like my friend was bugging me about Opensource Stuff and i plan to get linux so i decided to look up one for GM:S) and I found this one, so i go to import my Game which runs perfectly fine in GM:S and i Get this error whilst trying to compile it
Code: [Select]
Building for mode (0)
Cleaning up from previous executions
 - Cleared parsed objects
 - Cleared room entries
 - Cleared shared locals list
 - Cleared event info
Loading shared locals from extensions list
Location in memory of structure: 0a4a1420
Copying resources:
Copying sprite names [30]
Copying sound names [0]
Copying background names [2]
Copying path names [0]
Copying script names [36]
Copying shader names [0]
Copying font names [1]
Copying timeline names [0]
Copying object names [39]
Copying room names [1]
Copying constant names [0]
SYNTAX CHECKING AND PRIMARY PARSING:
36 Scripts:
Syntax error in script `gj_datastore_keys_user'
Line 5, position 35 (absolute 246): Unknown function or script `md5_string_utf8'
(This is from the gamejolt api by the way that's erroring) , Any help? Cause this works completely fine in GM:S
Logged
Offline (Unknown gender) TheExDeus
Reply #1 Posted on: August 20, 2015, 06:11:50 PM

Developer
Joined: Apr 2008
Posts: 1886

View Profile
It is because we don't have a function named md5_string_utf8. I see that GM:S has md5_string_utf8, md5_string_unicode and md5_file. Maybe we could add those, but right now there are no md5 functions in ENIGMA. Buffers like they are in GM:S are also unfinished as there was little interest in them.
I will see about adding MD5 functions. I don't think the output needs to be 100% exactly the same as GM:S ones though (as I'm not sure how they exactly hash utf8 and unicode for md5), but they need to be the same for binary input (files) and ASCII. In your example it seems it uses the hash for a keymap? I think that can be recoded to use something else (also, we already support key mapping).
Logged
Offline (Unknown gender) Darkstar2
Reply #2 Posted on: August 25, 2015, 11:38:29 PM
Member
Joined: Jan 2014
Posts: 1258

View Profile Email
MD5 functions would be great and MD5 for binary files check.
Logged
Pages: 1
  Print