Hello Guest, please login or register.
Did you miss your activation email?
Login with username, password and session length.

Pages: [1] 2   Go Down

Author Topic: I think I've figured it out...CUSTOM PROGRAMMING LANGUAGES IN GM6.1!  (Read 2641 times)

0 Members and 1 Guest are viewing this topic.

Source

Internet Tough Guy.
I think I've figured it out...CUSTOM PROGRAMMING...
« on: September 17, 2006, 01:40:56 am »
  • Things to see and people to do.
  • *
  • Reputation: +0/-0
  • Offline Offline
  • Gender: Male
  • Posts: 2289
After giving it some serious thought, I think I've figured out how to make a fully customized programming language and compiler in GM6.1 Registered.

What you do is create either 1) your own text field, or 2) a list of functions and variables, kind of like Swish Max. Each of the functions can refer to a piece of GML, which refers to an outside DLL. Once you compile the source code for your program or whatever, and convert it into an executable, you can copy all of the DLLs used in production and bundle them with your application. As far as your application knows, it's a saved game refering to some DLLs.

Just a thought, and a potential find. I'll experiment with it later on and report back.
« Last Edit: March 01, 2007, 01:11:03 am by 4Sword »
Logged
The very existence of flamethrowers proves that sometime, somewhere, someone thought to themselves "You know, I really want to set those people over there on fire." - George Carlin

(!@#$%)

Hear the haunting words (They'll find you alone)
lost children with no heart are crying (Turning their hearts into stone)
and you're the lost mother they're calling
Go now, run and hide (seek more than vengeance)
I hear them crying at night (your pain is their satisfaction)
outside when the planets are falling (for the rest of time)
They want to feel and know you hear them (Go now, run and hide)

  • http://giantcock.netne.net/
Re: I think I've figured it out...CUSTOM PROGRAM...
« Reply #1 on: September 17, 2006, 01:42:31 am »
  • *
  • Reputation: +0/-0
  • Offline Offline
  • Gender: Male
  • Posts: 1902
Yeah, in theory, it should work.
Logged


.TakaM was here.
Quote
so my friend stole a giant bag of ketchup out of the ketchup pumping things and brought it to our table and we took it in the bathroom and i smashed it over the sink and kicked it around the bathroom and smeared it everywhere and we all took turns kicking the ketchup out of it and when we were done it looked like an african village was murdered in the bathroom
XFD.
  • Awesome Land
Re: I think I've figured it out...CUSTOM PROGRAM...
« Reply #2 on: September 17, 2006, 02:56:41 am »
  • =/
  • *
  • Reputation: +0/-0
  • Offline Offline
  • Posts: 2284
Yeah, in theory, it should work.
In theory, yes but unless you find a dll that can interprate a custom programming language, your pretty !@#$%.
Logged
Re: I think I've figured it out...CUSTOM PROGRAM...
« Reply #3 on: September 17, 2006, 03:47:49 am »
  • *
  • Reputation: +0/-0
  • Offline Offline
  • Gender: Male
  • Posts: 1902
True XD
Logged


.TakaM was here.
Quote
so my friend stole a giant bag of ketchup out of the ketchup pumping things and brought it to our table and we took it in the bathroom and i smashed it over the sink and kicked it around the bathroom and smeared it everywhere and we all took turns kicking the ketchup out of it and when we were done it looked like an african village was murdered in the bathroom
XFD.
  • Awesome Land

Source

Internet Tough Guy.
Re: I think I've figured it out...CUSTOM PROGRAM...
« Reply #4 on: September 17, 2006, 03:53:03 am »
  • Things to see and people to do.
  • *
  • Reputation: +0/-0
  • Offline Offline
  • Gender: Male
  • Posts: 2289
Yeah, in theory, it should work.
In theory, yes but unless you find a dll that can interprate a custom programming language, your pretty funked.

Actually, there are several DLLs based in e.g. C++. The custom language is like a C++ based language.
Logged
The very existence of flamethrowers proves that sometime, somewhere, someone thought to themselves "You know, I really want to set those people over there on fire." - George Carlin

(!@#$%)

Hear the haunting words (They'll find you alone)
lost children with no heart are crying (Turning their hearts into stone)
and you're the lost mother they're calling
Go now, run and hide (seek more than vengeance)
I hear them crying at night (your pain is their satisfaction)
outside when the planets are falling (for the rest of time)
They want to feel and know you hear them (Go now, run and hide)

  • http://giantcock.netne.net/

gm112

Re: I think I've figured it out...CUSTOM PROGRAM...
« Reply #5 on: September 17, 2006, 04:19:02 am »
Question. Why the hell are you trying to interpret a programming language in a programming language? [sarcasm]That's just like World Peace being  the death of all humans. [/end sarcasm]
Logged
Re: I think I've figured it out...CUSTOM PROGRAM...
« Reply #6 on: September 17, 2006, 04:45:03 am »
  • *
  • Reputation: +0/-0
  • Offline Offline
  • Gender: Male
  • Posts: 1635
Why would you want to do this?
Logged

gm112

Re: I think I've figured it out...CUSTOM PROGRAM...
« Reply #7 on: September 17, 2006, 04:59:23 am »
If you're stupid and don't know that compilers are there.
Logged
Re: I think I've figured it out...CUSTOM PROGRAM...
« Reply #8 on: September 17, 2006, 10:05:44 am »
  • *
  • Reputation: +3/-0
  • Offline Offline
  • Gender: Male
  • Posts: 6629
Question. Why the hell are you trying to interpret a programming language in a programming language? [sarcasm]That's just like World Peace being  the death of all humans. [/end sarcasm]
I think you mean...

"Why the hell are you trying to interpret an interpreted scripting language within an interpreted scripting language"

;)

Anyway, don't even bother to try it. Scripting language already take a huge preformance hit (20x for the fastest, several hundred times for the slowest) when writen in native code, an interpreted-interpreted scripting language would just be frankly awfull.
Logged

Source

Internet Tough Guy.
Re: I think I've figured it out...CUSTOM PROGRAM...
« Reply #9 on: September 17, 2006, 06:59:06 pm »
  • Things to see and people to do.
  • *
  • Reputation: +0/-0
  • Offline Offline
  • Gender: Male
  • Posts: 2289
Why would you want to do this?

Because no one's ever done it before. Who cares if it doesn't work, at least you blazed a trail for the future.
Logged
The very existence of flamethrowers proves that sometime, somewhere, someone thought to themselves "You know, I really want to set those people over there on fire." - George Carlin

(!@#$%)

Hear the haunting words (They'll find you alone)
lost children with no heart are crying (Turning their hearts into stone)
and you're the lost mother they're calling
Go now, run and hide (seek more than vengeance)
I hear them crying at night (your pain is their satisfaction)
outside when the planets are falling (for the rest of time)
They want to feel and know you hear them (Go now, run and hide)

  • http://giantcock.netne.net/

Fox

Turnbeutelvergesser since 1988.
Re: I think I've figured it out...CUSTOM PROGRAM...
« Reply #10 on: September 17, 2006, 07:36:04 pm »
  • *
  • Reputation: +0/-0
  • Offline Offline
  • Gender: Female
  • Posts: 4062
Or at least had some fun trying. :P
Logged
  • Me on deviantART

King Tetiro

Leader of Phoenix Heart
Re: I think I've figured it out...CUSTOM PROGRAM...
« Reply #11 on: September 17, 2006, 07:44:49 pm »
  • *
  • Reputation: +0/-0
  • Offline Offline
  • Gender: Male
  • Posts: 3549
I could have a go at this, but I would need help from

Mit-How to make foreign symbols and how to use them (His text engine)
Spriters-Foreign Symbols
1 Coder- A way to store the data of the set language
Language translators-Have a guess?

If I had all these things, I could hopefully make an language selecting engine.
Logged
  • Phoenix Heart
Re: I think I've figured it out...CUSTOM PROGRAM...
« Reply #12 on: September 17, 2006, 07:47:04 pm »
  • Credits to BaB
  • *
  • Reputation: +2/-0
  • Offline Offline
  • Posts: 807
I could have a go at this, but I would need help from

Mit-How to make foreign symbols and how to use them (His text engine)
Spriters-Foreign Symbols
1 Coder- A way to store the data of the set language
Language translators-Have a guess?

If I had all these things, I could hopefully make an language selecting engine.


You didn't understand, did you? He wants to create a scripting language withing Game Maker itself, imagine something like sgml (Small Game Maker Language), which would be interpreted by the Game Maker Language, which is itself interpreted by Delphi (If I get it right).
Logged

King Tetiro

Leader of Phoenix Heart
Re: I think I've figured it out...CUSTOM PROGRAM...
« Reply #13 on: September 17, 2006, 07:48:16 pm »
  • *
  • Reputation: +0/-0
  • Offline Offline
  • Gender: Male
  • Posts: 3549
Oh! You mean the actual software? Sorry, I got mistaken, really sorry all!
Logged
  • Phoenix Heart

aab

^ Evolved from a Hobbit
Re: I think I've figured it out...CUSTOM PROGRAM...
« Reply #14 on: September 17, 2006, 08:29:39 pm »
  • *
  • Reputation: +0/-0
  • Offline Offline
  • Gender: Male
  • Posts: 992
Why would you want to do this?

Because no one's ever done it before. Who cares if it doesn't work, at least you blazed a trail for the future.
A trial of death...
But do it for the fun and experience and educational benifit to yourself.
Could be fun, and give you a great feeling when it all comes together, right?

It'd be easier though, C++, making use of all the abstract data types and especially things fromm the boost library.. Would make this kind of thing massively easier.
All you have to do, as you say, is pass the text that someone has written, to a DLL function which can interperate it, though that has its limitations.

An easier start, might be adding things to GML, and writing a GML program to unfold this code into a proper GM script for example.
Logged




I ♥ Sol
.... I ♥ Sol ? wtf how long has that been there? >_> *rrrrrrrrar*
  • MySpace
Re: I think I've figured it out...CUSTOM PROGRAM...
« Reply #15 on: September 17, 2006, 08:50:32 pm »
  • *
  • Reputation: +0/-0
  • Offline Offline
  • Gender: Male
  • Posts: 6206
To much free time uh?
Logged
Re: I think I've figured it out...CUSTOM PROGRAM...
« Reply #16 on: September 17, 2006, 08:54:21 pm »
  • Fear my Blades
  • *
  • Reputation: +3/-0
  • Offline Offline
  • Gender: Male
  • Posts: 562
Hmm... Well it has sort of been done before.
I've made a BrainF--- interpreter in GM before.  It technically is a programming language, but not something anyone would really try making a game in for any reason other than the challenge, and then it can't work with graphics so everything is ASCII.
Actaully Mit did one first, but his was buggy so I did a working one... then broke it trying to optimize it because it was waay too slow, which brings me to the question - why?  It would be uselessly slow if it was made in GM.
The same reason BrainF--- exists is why.  The language isn't useful, it was just done because someone wanted to see if it would work.
Logged

I've done it (sorta)!  Bloom Lighting in GameMaker, and 3D mode too!  Check out the awesome Screen Saver.
  • Kousou Games

Source

Internet Tough Guy.
Re: I think I've figured it out...CUSTOM PROGRAM...
« Reply #17 on: September 18, 2006, 12:26:05 am »
  • Things to see and people to do.
  • *
  • Reputation: +0/-0
  • Offline Offline
  • Gender: Male
  • Posts: 2289
Hm...Atrius, do you have a link to it? It might have to do with the version of GM you used.

And I'm curious...
Logged
The very existence of flamethrowers proves that sometime, somewhere, someone thought to themselves "You know, I really want to set those people over there on fire." - George Carlin

(!@#$%)

Hear the haunting words (They'll find you alone)
lost children with no heart are crying (Turning their hearts into stone)
and you're the lost mother they're calling
Go now, run and hide (seek more than vengeance)
I hear them crying at night (your pain is their satisfaction)
outside when the planets are falling (for the rest of time)
They want to feel and know you hear them (Go now, run and hide)

  • http://giantcock.netne.net/
Re: I think I've figured it out...CUSTOM PROGRAM...
« Reply #18 on: September 18, 2006, 02:48:18 pm »
  • Fear my Blades
  • *
  • Reputation: +3/-0
  • Offline Offline
  • Gender: Male
  • Posts: 562
No... I used GM 6.1 though.  I wanted to optimize it before I put it up on the site  :'(  I could probably fix it, but I never really felt motivated to since it was a pointless project anyway.
Logged

I've done it (sorta)!  Bloom Lighting in GameMaker, and 3D mode too!  Check out the awesome Screen Saver.
  • Kousou Games

Source

Internet Tough Guy.
Re: I think I've figured it out...CUSTOM PROGRAM...
« Reply #19 on: September 20, 2006, 03:12:04 am »
  • Things to see and people to do.
  • *
  • Reputation: +0/-0
  • Offline Offline
  • Gender: Male
  • Posts: 2289
In my case, this is merely a test. My original thought was creating a programming language called Aspen, but I had no idea if it would be possible, given GM's limits.

Ah well...
Logged
The very existence of flamethrowers proves that sometime, somewhere, someone thought to themselves "You know, I really want to set those people over there on fire." - George Carlin

(!@#$%)

Hear the haunting words (They'll find you alone)
lost children with no heart are crying (Turning their hearts into stone)
and you're the lost mother they're calling
Go now, run and hide (seek more than vengeance)
I hear them crying at night (your pain is their satisfaction)
outside when the planets are falling (for the rest of time)
They want to feel and know you hear them (Go now, run and hide)

  • http://giantcock.netne.net/
Pages: [1] 2   Go Up

 


Contact Us | Legal | Advertise Here
2013 © ZFGC, All Rights Reserved



Page created in 0.526 seconds with 77 queries.

anything