Jump to content


Photo

D&DtoGML (open source)


  • Please log in to reply
70 replies to this topic

#1 Davve

Davve

    GMC Member

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

Posted 15 March 2009 - 10:01 PM

D&DtoGML

Info:

There are a few GML helpers out there, but all of them can only translate one drag and drop action at a time. With D&DtoGML you can translate an unlimited number of D&D actions into Game Maker Language in one click! Just drag the wished D&D actions into the action field, just like the real Game Maker, and answer some simple questions depending on what action you selected. Press the "Get GML" button to translate it into pure Game Maker Language that can easily be copied for you to put in a code action, in a script or wherever you wish!

Name: D&DtoGML
File size: 2,43 MB
Category: Tool
Made in: Game maker 7.0 pro


Download:

Download v2.3

Pictures:

D&D interface:
uK0LB.png

GML interface:
OM5Vl.png


Edited by Davve, 18 October 2015 - 02:32 PM.

  • 4

#2 petenka

petenka

    The Chosen One

  • New Member
  • 911 posts

Posted 15 March 2009 - 11:27 PM

Looking at the second screenshot I see "=" being used in a comparison instead of "==".
This is the wrong way to do it as the value of that expression will always come up to true regardless of the value of the variable.
  • 0
My Stuff:
Attack of the Jelly - A game about (oh, the horror) strawberry jelly!
Math Based Platformer Engine - The best physics for a platformer, ever.
Realtime Dynamic Fog - For realistic environmental effects.
Windy Snow - The best snow in all of gmc.
My Hate List:
Kubanen, Alex4Red, johnjoe

#3 pixelpig

pixelpig

    GMC Member

  • New Member
  • 805 posts

Posted 15 March 2009 - 11:40 PM

Looking at the second screenshot I see "=" being used in a comparison instead of "==".
This is the wrong way to do it as the value of that expression will always come up to true regardless of the value of the variable.

thats a good point. and tabulation is always a good idea:)

EDIT: and i bet if you gave me the sorce code i could make it up to 36000 hehe

Edited by pixelpig, 15 March 2009 - 11:41 PM.

  • 0
Click here to PM me if you need help.
Person #6, "Rolfero" -Put this in your sig but add 1 to the Person and mention who you got it from...(only on the GMC)
Decrypt This Challenge: Decrypt this file and PM me the outcome. You will appear on My sig :o (Hint, It has something to do with gamemaker)
upurload.com

#4 2d_games

2d_games

    GMC Member

  • GMC Member
  • 1504 posts
  • Version:GM8

Posted 16 March 2009 - 01:13 AM

Looking at the second screenshot I see "=" being used in a comparison instead of "==".
This is the wrong way to do it as the value of that expression will always come up to true regardless of the value of the variable.


No, in GM, you can use = as a comparison without any problems. With other languages you need to use == in comparisons.
  • 0

#5 pixelpig

pixelpig

    GMC Member

  • New Member
  • 805 posts

Posted 16 March 2009 - 01:31 AM

Looking at the second screenshot I see "=" being used in a comparison instead of "==".
This is the wrong way to do it as the value of that expression will always come up to true regardless of the value of the variable.


No, in GM, you can use = as a comparison without any problems. With other languages you need to use == in comparisons.

it is however better practice to use ==
  • 0
Click here to PM me if you need help.
Person #6, "Rolfero" -Put this in your sig but add 1 to the Person and mention who you got it from...(only on the GMC)
Decrypt This Challenge: Decrypt this file and PM me the outcome. You will appear on My sig :o (Hint, It has something to do with gamemaker)
upurload.com

#6 2d_games

2d_games

    GMC Member

  • GMC Member
  • 1504 posts
  • Version:GM8

Posted 16 March 2009 - 01:38 AM

Looking at the second screenshot I see "=" being used in a comparison instead of "==".
This is the wrong way to do it as the value of that expression will always come up to true regardless of the value of the variable.


No, in GM, you can use = as a comparison without any problems. With other languages you need to use == in comparisons.

it is however better practice to use ==


Exactly.
  • 0

#7 Davve

Davve

    GMC Member

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

Posted 16 March 2009 - 10:07 AM

Well, you CAN use == instead of = but it still works.
  • 0

#8 aprentice

aprentice

    Rockhillgames

  • GMC Member
  • 640 posts

Posted 19 March 2009 - 08:38 PM

this is a really good engine, it's easy to use and you could learn alot from this. If i had had this when i was learning gml i would have learned it faster! but you could make a scrollbar so you can put more stuff in the box.
  • 0
am apprentice and don't you ever forget it. search the gmc on google!CLICK HERE!
Posted Image

#9 Davve

Davve

    GMC Member

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

Posted 23 March 2009 - 07:11 PM

<BUMP>
  • 0

#10 Commander~DEST

Commander~DEST

    GMC Member

  • New Member
  • 145 posts

Posted 29 March 2009 - 11:55 AM

Very useful program. I can't wait until version 2.

9.5/10
  • 0

#11 Commander~DEST

Commander~DEST

    GMC Member

  • New Member
  • 145 posts

Posted 09 April 2009 - 01:03 PM

*COUGH* "BUMP" *COUGH*

Are you still working on this program?
  • 0

#12 Davve

Davve

    GMC Member

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

Posted 10 April 2009 - 11:26 AM

Are you still working on this program?

Not so much, I'm afraid, but there will be a version 2.

Edited by davve941018, 10 April 2009 - 11:27 AM.

  • 0

#13 Cameron Stevenson

Cameron Stevenson

    GMC Member

  • New Member
  • 153 posts

Posted 10 April 2009 - 02:22 PM

<snip>

Known glitches:

• If you un-check "Ask if relative" and use the "jump to position" action an error message will come up saying "Unknown variable rel".
In the load and save game action, it should be load_game("savegame"), not load_game(savegame).

If you find any glitches, PM me on GMC or Yoyogames (Davve941018) or post here.


Isn't it game_load("savename") not load_game("savename")

Well, anyways nice program
  • 0

Current Project: Pokemon MMO
Server: 3%

Client: 2.5%


#14 tamper2

tamper2

    GMC Member

  • New Member
  • 369 posts

Posted 10 April 2009 - 02:28 PM

Very good application!
The best Converter I've seen yet :D
Very good interface, I loved the idea that you place it on one side and it translates it :)
I'm sure it will be very helpful for beginners!
I like this very much so I give it 5/5

Very good job!
Tamper ;)
  • 0


#15 Davve

Davve

    GMC Member

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

Posted 10 April 2009 - 03:11 PM

Cameron Stevenson:
Thanks for telling, I fixed it now :D It was a typo in the post, not in the game :)

tamper2:
Thanks ;) :P
  • 0

#16 thenoller

thenoller

    GMC Member

  • GMC Member
  • 208 posts

Posted 16 April 2009 - 04:07 PM

This should be useful for beginners to learn from. However it will really start to improve a beginner's game-creation-possibilities, once you start adding functions that aren't already on the list of D&D-commands. This could be draw_button, event_user, draw_set_alpha (D&D only features font and colour), or whatever. I know that most common functions are featured already, but you never know when your user might need something specific besides the build-in stuff.

Also, a great help (that would suit those users who are already likely to use this program) would be to include some sort of variable-library to help you fill out the arguments of your commands, similar to the GML-part of the manual. Only your system could be implemented, so that it would contain variables only (since functions are represented already), and could help you fill out arguments and statements quickly.

EDIT:Oh yeah.. And what about for-loops, repeats and so on.. They could just look like if-constructions, and would really help some users!

Hope you like these suggestions, course it's a brilliant concept. I think it will help a lot of people either create more advanced games with D&D, or obtain the knowledge to 'move on' to GML if they should feel like it.. Good job!

Edited by thenoller, 16 April 2009 - 04:12 PM.

  • 0

#17 Aidiakapi

Aidiakapi

    GMC Member

  • New Member
  • 200 posts

Posted 16 April 2009 - 07:55 PM

What about indenting?
What about another format or the ability to choose the format.
Like this:
if(x == y && round(x / 32) == x / 32) hspeed = 2;
else hspeed = -2;
if(place_snapped(16, 16))
{
	vspeed += 2;
	hspeed = 0;
}
else if(x > y)
{
	switch(round(z / 3))
	{
	case 0:
		hspeed -= 2;
		break;
	case 1:
		hspeed -= 4;
		break;
	case 2:
		hspeed -= 6.
		break;
	default:
		hspeed = 0;
		break;
	}
}

It makes it easier to read, and easier to understand it learns new creators the GML Language in a proper way.
  • 0
Wuka World 2
The next generation MMORPG, sequel to the successful Wuka World 1, built up from scratch!
We use Game Maker 8.1 for the client, and C++ for the server.


Inspire, help, influence, and enjoy with us at: www.nevereal.net!

8-11-2011: First time I checked GMC in 6 months xD

Please click the arrow, if I helped you :)


#18 wirsbobrsiw

wirsbobrsiw

    GMC Member

  • New Member
  • 343 posts

Posted 18 April 2009 - 04:16 PM

WOW!! THIS IS THE BEST THING EVER!!

9999999999999999999999999999/10!!!
  • 0

#19 RTS226

RTS226

    GMC Member

  • New Member
  • 137 posts

Posted 25 April 2009 - 07:19 PM

Amazing! I just started using it and it's already helping me! 9.9/10
  • 0

#20 Metfan

Metfan

    GMC Member

  • New Member
  • 146 posts

Posted 01 May 2009 - 05:37 PM

love the app, however could you PLEASE put a way to delete one action if you don't want it in there, or if you want to change something out for something else to test the app (like i was) maybe i just missed something (if i did could you please explain how to delete one action) but all i saw for deleting was the delete all button and when i tried clicking on the action it just re asked me for variables. Other than that awesome program, can't wait for version 2
  • 0

#21 Davve

Davve

    GMC Member

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

Posted 01 May 2009 - 07:52 PM

love the app, however could you PLEASE put a way to delete one action if you don't want it in there, or if you want to change something out for something else to test the app (like i was) maybe i just missed something (if i did could you please explain how to delete one action) but all i saw for deleting was the delete all button and when i tried clicking on the action it just re asked me for variables. Other than that awesome program, can't wait for version 2


You can delete an action by right clicking on it and edit it by left clicking on it. :(
  • 1

#22 Metfan

Metfan

    GMC Member

  • New Member
  • 146 posts

Posted 01 May 2009 - 08:52 PM

love the app, however could you PLEASE put a way to delete one action if you don't want it in there, or if you want to change something out for something else to test the app (like i was) maybe i just missed something (if i did could you please explain how to delete one action) but all i saw for deleting was the delete all button and when i tried clicking on the action it just re asked me for variables. Other than that awesome program, can't wait for version 2


You can delete an action by right clicking on it and edit it by left clicking on it. :(


TY :o
  • 0

#23 the_maze_master

the_maze_master

    GMC Member

  • New Member
  • 51 posts

Posted 06 May 2009 - 05:20 PM

this is a great app, hope you keep working on this as it has helped me learn a lot, i think the score is not working right as it will not add more only change the number, but it is a great app so bring on 2.0, i would use it a lot
  • 0

#24 Davve

Davve

    GMC Member

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

Posted 06 May 2009 - 06:12 PM

i think the score is not working right as it will not add more only change the number


Have you pressed "YES" when it asked if the value is relative to the current value? ;)

EDIT: Adding only worked if you wrote +1 for example and then pressed relative, now in 1.1, it works if you just press 1 and press relative.

Edited by davve941018, 23 May 2009 - 09:48 AM.

  • 0

#25 the_maze_master

the_maze_master

    GMC Member

  • New Member
  • 51 posts

Posted 07 May 2009 - 06:43 PM

i think the score is not working right as it will not add more only change the number


Have you pressed "YES" when it asked if the value is relative to the current value? :D


yes i did, if you try it the code is the same for both relative or not
  • 0

#26 Davve

Davve

    GMC Member

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

Posted 22 May 2009 - 11:15 AM

Version 1.1 launched!

• Fixed the relative glitch.
• Fixed the applies to object glitch.
• Fixed the game_load and game_save glitches.
• Changed the fonts.
• Fixed the boxes.
  • 0

#27 the_maze_master

the_maze_master

    GMC Member

  • New Member
  • 51 posts

Posted 23 May 2009 - 10:40 PM

A great program, has helped me learn GML, love it, use it most days, thanks again
  • 0

#28 MetroidMan347

MetroidMan347

    GMC Member

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

Posted 23 May 2009 - 11:52 PM

*BUG REPORT*
in the create moving action, it says id not ID,
I looked it up in Ablach Black Rat's "D&D Actions and their GML Equivalents" Document, It matters
  • 0

#29 Davve

Davve

    GMC Member

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

Posted 24 May 2009 - 09:52 AM

*BUG REPORT*
in the create moving action, it says id not ID,
I looked it up in Ablach Black Rat's "D&D Actions and their GML Equivalents" Document, It matters


Thanks! :D
I'll fix that in the next version :)
  • 0

#30 MetroidMan347

MetroidMan347

    GMC Member

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

Posted 01 June 2009 - 06:15 PM

Execellent!
  • 0

#31 Davve

Davve

    GMC Member

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

Posted 13 June 2009 - 12:41 PM

Version 1.2 launched!

• Fixed the typo in create moving.
• Fixed the typo in the set health description.
• Removed the replace " with ' and replace ' with " buttons.
  • 0

#32 MetroidMan347

MetroidMan347

    GMC Member

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

Posted 14 June 2009 - 12:21 AM

1. Good
2. Good
3. Why did you get rid of those? They were awesome.

Posting on my DSi an LOVING it!!!!!
  • 0

#33 Davve

Davve

    GMC Member

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

Posted 15 July 2009 - 06:38 PM

Version 1.3 launched!

• Changed the alpha when dragging icons.
• Fixed the error when selecting "applies to object" in some actions.
• Added a screen to choose multiple directions in start moving in a direction, just like the real Game Maker!
  • 0

#34 MickeyG

MickeyG

    GMC Member

  • GMC Member
  • 136 posts

Posted 01 September 2009 - 01:31 PM

Wow this program rocks! thanks allot for this!!!

1 question tho.. when i have a "Check object" a can't switch the NOT button.. is it planned for in the future.. had some code in D&D that i wanted to translate but i had to do it without it ;)

other then that,
9.5/10 from me :)
  • 0

#35 Davve

Davve

    GMC Member

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

Posted 01 September 2009 - 01:38 PM

Wow this program rocks! thanks allot for this!!!

1 question tho.. when i have a "Check object" a can't switch the NOT button.. is it planned for in the future.. had some code in D&D that i wanted to translate but i had to do it without it :)

other then that,
9.5/10 from me :)


Thanks, I will add a "NOT" option in the check actions in the next version ;)

(write if not instead of if)

Edited by davve941018, 01 September 2009 - 01:39 PM.

  • 0

#36 MetroidMan347

MetroidMan347

    GMC Member

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

Posted 01 September 2009 - 01:42 PM

write if not instead of if

Alternatively you can write if !
  • 0

#37 wolfrider219

wolfrider219

    GMC Member

  • New Member
  • 118 posts

Posted 24 September 2009 - 11:41 AM

Awsumness!!! :)
Without this i wouldnt have bothered learning GML(im very lazy...lol).
Thanks.
  • 0
0.0 I have no signature! Oh wait...

#38 fredcobain

fredcobain

    GMC Member

  • GMC Member
  • 165 posts

Posted 24 September 2009 - 01:11 PM

Fantastic!! Amazing!!! 10/10!!!

This is the best tool ever to learn GML!

Have no words to say how Usefully is!

Congratulations!


Just a question (curious) :

How do you assure the code is exactly the same as contained in original libraries ? Do you have the unlocked version of Lib Maker ? There is an official doc describing ?


Congrats again!
=)
  • 0
I am an Posted Image in the GM Quiz!

#39 Davve

Davve

    GMC Member

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

Posted 24 September 2009 - 01:19 PM

How do you assure the code is exactly the same as contained in original libraries ? Do you have the unlocked version of Lib Maker ? There is an official doc describing ?


Don't worry, it is the same :) I have tested and compared the codes to the original d&d actions and with the same results.
  • 0

#40 fredcobain

fredcobain

    GMC Member

  • GMC Member
  • 165 posts

Posted 24 September 2009 - 01:24 PM

I believe you, I am just curious how did you got the originals. Will you tell me the secret ? :)

Man, I found a bug:

Action: Jump to a Given Position
x=55; y=99;

Acton: Jump to a Given Position (Relative Checked)
x=55; y=99; (wrong)

I believe this must be something like:
x+=55; y+=99;




A very useful suggestion for improvement:
- When you show the GML code, there must be a way to select a piece of code with the mouse (marking it) and then I can use CTRL+C to copy.

:)

Man, this tool is very nice!
=)
  • 0
I am an Posted Image in the GM Quiz!

#41 Davve

Davve

    GMC Member

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

Posted 04 October 2009 - 09:00 PM

Version 2.0 launched!

  • New interface, with the D&D sidebar from Game Maker, making it easier to find the actions you want!
  • Smaller screen and filesize!
  • Ability to add an unlimited number of actions instead of 15!
  • Completely rewritten from scratch, fixing all the glitches.
  • Ability to choose where you want to add the action, not just on the last empty place.
  • Ability to move an action you've added.
  • Ability to copy, paste and cut actions you've added.
  • Double-click on an action to edit it, right-click on it for options.
  • Ability to copy the GML of one action, instead of all at once.
  • A new button "ask if or if not" for the test/check actions.
  • More operators for value check actions: smaller or equal to, larger or equal to, smaller or larger than, between two values and outside two values.
  • You can now choose if you want to write (the decimal code or constant) or pick the color in some actions.
  • The GML and D&D actions you've added will automaticly be indented correctly, making it easier to read the code. You can turn this off you want.
  • Ability to select the GML you want to copy using the cursor. Thanks IsmAvatar for this!
  • Ability to push up brackets to save space.
  • Ability to add spaces. (variable=value; becomes variable = value;)
  • You can now save the GML as a script file!
  • The replace " with ' options are added again!
  • You can now choose a random transition in the room changing actions.
  • Much more..
The old versions looks kind of crappy now -_-

Edited by davve941018, 06 November 2009 - 05:15 PM.

  • 0

#42 Davve

Davve

    GMC Member

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

Posted 15 October 2009 - 01:44 PM

Version 2.1 launched!

  • Fixed the glitch in the draw background action's description.
  • Fixed the glitch that froze the game if you pressed delete when there was no actions to be deleted.
  • Fixed the glitch that allowed users to right-click on an added action while you we're dragging an action.
  • Added the missing ; in path_end();, cd_pause();, cd_stop(); and cd_resume();.
  • Fixed the error in the check aligned with grid action.
Any comments or suggestions?
  • 0

#43 ProgWare

ProgWare

    GMC Member

  • New Member
  • 150 posts

Posted 15 October 2009 - 03:39 PM

Now easy i learn the GML . Amazing tool 9.2/10
  • 0

#44 zezimaimp

zezimaimp

    GMC Member

  • GMC Member
  • 552 posts

Posted 23 October 2009 - 08:11 PM

I loved the old one, and I love this one better. THX DAVE! 10/10 ^_^ ^_^ :wacko: :lol: ^_^ :D :) :) :)
  • 0
<p align=center><a target=_blank href=http://www.nodiatis.com/personality.htm><img border=0 src=http://www.nodiatis.com/pub/7.jpg></a></p>

#45 Davve

Davve

    GMC Member

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

Posted 06 November 2009 - 05:09 PM

Version 2.2 launched!

  • Fixed the error in the time line actions.
  • Fixed the error in the different room action's description.
  • Added the missing "'s in the show video action.
  • Added right click menus for every action in the action sidebar with the ability to add an action from there, show the GML
    equivalents and get the GMC forums code for that action symbol.
  • The things you copy now will be copied before the messages instead of after.
  • Your settings (such as indenting, spaces, show PRO icons etc.) will be stored in D&DtoGMLsettings.ini and are loaded every time you start the converter.
:P :GM069: :D :) :)
  • 0

#46 Universal_X

Universal_X

    GMC Member

  • New Member
  • 126 posts

Posted 08 November 2009 - 06:32 PM

Amazing! I love this!

It's so much easier to edit in pure gml =)
  • 0
ѬѯҨ Cities of the Future

#47 Atomius

Atomius

    GMC Member

  • GMC Member
  • 227 posts
  • Version:Unknown

Posted 10 November 2009 - 07:23 PM

interesting utility
  • 0
Currently working on Virtucity. See the Facebook page or WIP thread for more.

#48 zezimaimp

zezimaimp

    GMC Member

  • GMC Member
  • 552 posts

Posted 12 November 2009 - 07:55 PM

I like it, good job Davve!
  • 0
<p align=center><a target=_blank href=http://www.nodiatis.com/personality.htm><img border=0 src=http://www.nodiatis.com/pub/7.jpg></a></p>

#49 Lewis X

Lewis X

    Artist

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

Posted 20 November 2009 - 07:24 PM

Good! Copied the GM Interface!

It works great!

Edited by Sonica2, 20 November 2009 - 07:27 PM.

  • 0

#50 Poké!

Poké!

    GMC Member

  • New Member
  • 54 posts

Posted 28 November 2009 - 10:32 PM

I encountered an error in the code it produced. Here:

___________________________________________
FATAL ERROR in
action number 1
of Step Event
for object obj_player:

COMPILATION ERROR in code action
Error in code at line 5:
else

at position 2: Unexpected symbol in expression.


Edited by Poké!, 28 November 2009 - 10:34 PM.

  • 0

I am working on a Breakout style game, and a Mario-Like platform shooter at the moment.
Here's a Link to Two Player Pong, The Game I finished recently. GFX by -Red- of PokCommunity.
Posted Image