[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4762: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3897)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4764: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3897)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4765: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3897)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4766: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3897)
GameMonkey Script • View topic - ANN: Three GameMonkey Script articles posted on GameDev.net

GameMonkey Script

GameMonkey Script Forums
It is currently Thu Oct 28, 2021 4:01 am

All times are UTC




Post new topic Reply to topic  [ 27 posts ]  Go to page 1, 2  Next
Author Message
PostPosted: Fri Dec 23, 2005 9:52 am 
Offline

Joined: Thu Jan 01, 2004 4:31 pm
Posts: 307
Hi y'all,

I've been working on a couple of new GameMonkey Script articles for you all to use. The article's title is "Introduction to GameMonkey Script" and is in two parts. The idea is to take you from knowing nothing to learning enough to use GMScript in your own games. You will have enough knowledge and confidence to explore GMScript further on your own.

Part One

is the language primer and aims to teach you the basic and most common syntax for GameMonkey Script. This article is most suited to people who will be scripting with the language, but is also an essential read for those wishing to embed GMScript in their games.

Part Two

is the article to read if you're wanting to embed GMScript in your game. It'll take you through the basic concepts of GMScript's API and break you into using it nicely. You will learn how to set up your compiler, use variables, bind native functions, call scripted functions and bind your own simple type.

Part Three

(After a couple of years in the waiting,) is now up and covers more advanced use - including threads, blocks and signals. There's lots of examples to pick through and covers both the scripting language and the C++ integration.


Enjoy!


Last edited by Greg on Sun Sep 23, 2012 4:10 am, edited 5 times in total.
Updated links (again), made sticky


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Fri Dec 23, 2005 6:59 pm 
Offline

Joined: Mon Sep 26, 2005 9:33 am
Posts: 48
These two articles are excellent and just what the GM community needs! There is so much Lua attention that the power of GM gets ignored. I am currently developing a plugin for use with the DarkBASIC Pro engine and a C++ library version, it takes GM to nice new level for the users of that language, and also the GM language itself.

There is currently a free version out there, but I am developing a commerical version that includes more features, one being a plugin type framework for the GM language. Meaning that outside DLL's can be used to add additional script commands, variables, and features not offered with the general bindings. Once that is complete (fairly soon) I will format it for use with other users projects on this site (a new binding perhaps). I have also started working on a scripting language manual that will be included in the commerical product, it'll outline usage of the keywords and commands with examples. Would it be possible for me to reference in any of your article content? If so, I would put a link to the document in the references section.

Another quick note about the DLL plugin binding, the DLL's that will fit this framework will look for a special exported function name that will be used to initialize and create the bindings.

Again, great job on the articles!


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Sun Dec 25, 2005 1:02 am 
Offline

Joined: Fri Jan 14, 2005 2:28 am
Posts: 439
Looks good man. Only thing I'd recommend is a section in one of the articles about threads. IMO they are the single most useful & powerful feature of GM script.


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Sun Dec 25, 2005 8:05 am 
Offline

Joined: Mon Sep 26, 2005 9:33 am
Posts: 48
I was reading through the articles again and noticed that in the first article the comparison to Lua table has GameMonkey Script & Lua unreadable because of the font color. My guess is that the font is suppose to be white like your other table.


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Mon Dec 26, 2005 10:44 pm 
Offline

Joined: Thu Jan 01, 2004 4:31 pm
Posts: 307


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Tue Dec 27, 2005 1:55 am 
Offline

Joined: Fri Jan 14, 2005 2:28 am
Posts: 439


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Tue Dec 27, 2005 1:49 pm 
Offline

Joined: Mon Dec 15, 2003 1:38 pm
Posts: 708


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Tue Dec 27, 2005 10:30 pm 
Offline

Joined: Fri Jan 14, 2005 2:28 am
Posts: 439


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Wed Dec 28, 2005 9:43 am 
Offline

Joined: Thu Jan 01, 2004 4:31 pm
Posts: 307


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Wed Dec 28, 2005 10:43 am 
Offline

Joined: Mon Dec 15, 2003 1:38 pm
Posts: 708
Just for the reference, since we're mentioning threading, DrEvil's earlier (you may have to scroll down) shows script very similar to what some of our commercial game developers are doing. This style helps with coding behavior logic, and is efficient.


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Wed Dec 28, 2005 2:20 pm 
Offline

Joined: Thu Jan 01, 2004 4:31 pm
Posts: 307
Thanks Greg and DrEvil, that's a good post and will be a good starting point for me to explore more advanced use of GM threads


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Wed Dec 28, 2005 2:41 pm 
Offline

Joined: Fri Jan 14, 2005 2:28 am
Posts: 439
Doom 3 and Quake 4 have threading in their scripting language that is used heavily in their AI in many of the same ways I'm using it in my bot framework. I can also see that it could be extremely useful in game such as an RPG or something where you could tie a script to every game object to do special logic.

I also love how every time you execute string it runs in its own new thread, allowing basically anything that runs to sleep/yield/block.


Top
 Profile  
Reply with quote  
PostPosted: Wed Aug 15, 2007 9:31 pm 
Offline

Joined: Wed Aug 15, 2007 7:53 pm
Posts: 8
Superb articles, thank you downgraded! A must-have, just after the pdf files from the doc.
Threading in gm is still a mistery for beginners like me. Part 3? :D

GM language is great, excellent job Greg! I stopped on nearly 20 languages and chose GM.


Top
 Profile  
Reply with quote  
PostPosted: Thu Aug 16, 2007 4:41 pm 
Offline

Joined: Fri Jan 14, 2005 2:28 am
Posts: 439
Yea, I would have thought the next article would be out by now with the threading stuff, which is essentially the best part of GM. I guess he's been busy.


Top
 Profile  
Reply with quote  
PostPosted: Mon Sep 17, 2007 11:54 am 
Offline

Joined: Thu Jan 01, 2004 4:31 pm
Posts: 307
hey hey

i'm going to start work on part 3 real soon - i'm ashamed to say that I got hooked on wow for 4 months, so as you can imagine, everything went out of the window *blush*

I've picked up on gmBind2 again, so expect some previews and betas of that soon (hopefully)


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 27 posts ]  Go to page 1, 2  Next

All times are UTC


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group