May 03, 2024, 12:21:40 pm

The Gang Garrison 2 Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

NOTICE: Wondering where all the forums have gone?

Join the community Discord server!

Pages: 1 ... 3 4 [5]

Author Topic: When do we rewrite GG2 in a sane language  (Read 5133 times)

Saniblues

  • Onion Knight
  • Administrator
  • *****
  • Karma: -1305
  • Offline Offline
  • Posts: 12206
Re: When do we rewrite GG2 in a sane language
« Reply #60 on: August 14, 2011, 05:58:47 pm »

I just randomly noticed that there is a LUA wrapper for Game Maker, unsurprisingly called gmlua. It can apparently call into GML functions by using the dark magic of GMAPI, so a relatively tight integration between LUA and GML is possible. However, GMAPI only works with GM up to version 8.0 and doesn't seem very active, so if we did use it, we might not be able to switch to GM 8.1. GMAPI is LGPL licensed, so we could always do the porting ourselves, but I don't really feel like taking on yet another GM extension projekt at the moment.

On the upside, having coroutines could dramatically simplify the netcode. If I understand them correctly (I never actually used coroutines yet), they would allow writing netcode almost as if the calls were blocking. That is, you could have a function receiveOrYield(socket, size) that will only return once the requested ammount has been read, and in the meantime it wouldn't block the thread, but allow the game to continue running. It would also improve the possibilities of script-based modding. And if done well, the game logic might be translated to LUA bit by bit, until we only have the bare "engine" in GML, which could then be recreated in a different host language to migrate completely away from Game Maker.

I didn't spend any time actually planning this so there might be glaring flaws. Just putting it here as an idea. I still won't have time to do this kind of thing for a while now.
I hear GM 8.1 is awful, anyway.
« Last Edit: August 14, 2011, 05:58:58 pm by ♫Sani♫ »
Logged
Quote from: mop
Quote from: MR MAGN3TIC
I don't like it.  :nah:
Oh, well, you might as well pack up and stop now, because he doesn't like it
I'm bored out of my skull, Lets play a different game!
Lets take a visit down below And cast the world in flames!

Phantom Brave

  • All Hail Classicwell
  • Designer
  • *****
  • Karma: 70
  • Offline Offline
  • Posts: 12532
  • Another one --
Re: When do we rewrite GG2 in a sane language
« Reply #61 on: August 14, 2011, 06:06:36 pm »

it is
Logged

http://steamcommunity.com/id/wareya/
ladies and gentlemen i would like to announce that the fact of the matter is up that the fact of the matter is a fact and it matters

Psychopath

  • Moderator
  • *****
  • Karma: 167
  • Offline Offline
  • Posts: 6682
  • Stop telling me to do things
Re: When do we rewrite GG2 in a sane language
« Reply #62 on: August 14, 2011, 06:16:20 pm »

I have a few friends who have used GM8.1, they agree with the statement Sani just made.

It's far less stable than 8.0 is from what they've experienced. And the only noticeable improvement they've acknowledged is the ability to grep through object events in addition to scripts instead of only being limited to grepping through scripts. Add on top of that the (if I'm not mistaken) doubled pricetag from 8.0, it's as if there's no reason to even want to get it, let alone pirate it.
Logged
Quote from: IRC
(8:01:46 PM) Psychopath: I'm just wondering what the next hot thing to fall on my lap will be
(8:01:57 PM) Lynn1: a girl maybe?
(8:02:01 PM) Psychopath: :o

NAGN

  • Developer
  • ******
  • Karma: 146
  • Offline Offline
  • Posts: 16150
  • Yeah so now I have an idea
Re: When do we rewrite GG2 in a sane language
« Reply #63 on: August 14, 2011, 06:17:02 pm »

We can't even port Gang Garrison 2 to 8.1 let alone a library
Logged

Vindicator

  • Developer
  • ******
  • Karma: 84
  • Offline Offline
  • Posts: 2398
    • http://www.kylemoy.org/
Re: When do we rewrite GG2 in a sane language
« Reply #64 on: August 14, 2011, 07:34:39 pm »

Hm, Lua should be interesting. I've had somewhat experience with Lua, although only related to the source engine, I used to be a huge into modding stuff for GMOD back in the day.
Logged

AcidLead

  • The Flash of the Action
  • Veteran Beta Tester
  • *****
  • Karma: 103
  • Offline Offline
  • Posts: 6370
  • Our hero returns triumphant. Execute him at once.
Re: When do we rewrite GG2 in a sane language
« Reply #65 on: August 15, 2011, 12:09:45 pm »

hey

a language change that means none of the years of work has to be lost now?

and might result in more efficient program structure?

in fact eventually so ridiculously efficient that we'll wonder why we used the slow buggy crap of today?

wow i hate this the old ways are better everyone knows that new things are bad
Logged
fire at cyberdisc
eighty-five percent hit chance
doh, she missed the shot

Vindicator

  • Developer
  • ******
  • Karma: 84
  • Offline Offline
  • Posts: 2398
    • http://www.kylemoy.org/
Re: When do we rewrite GG2 in a sane language
« Reply #66 on: August 15, 2011, 01:07:36 pm »

hey

a language change that means none of the years of work has to be lost now?

and might result in more efficient program structure?

in fact eventually so ridiculously efficient that we'll wonder why we used the slow buggy crap of today?

wow i hate this the old ways are better everyone knows that new things are bad

Just because there's a checkbox that says "Enable Something" doesn't mean everything will magically become super efficient without us doing anything.
Logged

MedO

  • Owns this place
  • *****
  • Karma: 151
  • Offline Offline
  • Posts: 1752
Re: When do we rewrite GG2 in a sane language
« Reply #67 on: August 15, 2011, 01:30:19 pm »

I think it's more of an issue that a minor version change introduces breaking changes, i.e. argument count checking (though that can be disabled now) and removal of raster font support. Also, breaking stuff again with an update of the third order version number by suddenly re-interpreting everything as UTF-8, with no apparent support for converting old files, so everything that used non-ascii characters has to be re-typed. This one was plain silly, seriously.
Logged
Quote from: Alfred North Whitehead
It is the business of the future to be dangerous; and it is among the merits of science that it equips the future for its duties.

Quote from: John Carmack
[...] if you have a large enough codebase, any class of error that is syntactically legal probably exists there.

NAGN

  • Developer
  • ******
  • Karma: 146
  • Offline Offline
  • Posts: 16150
  • Yeah so now I have an idea
Re: When do we rewrite GG2 in a sane language
« Reply #68 on: August 15, 2011, 01:33:38 pm »

On the topic of Game Maker 8.1, does anyone else have trouble installing it on multiple computers? Or is the key a one-time use thing, which would really make me upset
Logged

Meower

  • Elder God tier or Fagthulu, the great
  • Community Manager
  • *****
  • Karma: 230
  • Offline Offline
  • Posts: 22286
  • Went fat once, never went back
Re: When do we rewrite GG2 in a sane language
« Reply #69 on: August 15, 2011, 02:51:28 pm »

hey

a language change that means none of the years of work has to be lost now?

and might result in more efficient program structure?

in fact eventually so ridiculously efficient that we'll wonder why we used the slow buggy crap of today?

wow i hate this the old ways are better everyone knows that new things are bad

Just because there's a checkbox that says "Enable Something" doesn't mean everything will magically become super efficient without us doing anything.
You obviously have never traveled here
Logged

AcidLead

  • The Flash of the Action
  • Veteran Beta Tester
  • *****
  • Karma: 103
  • Offline Offline
  • Posts: 6370
  • Our hero returns triumphant. Execute him at once.
Re: When do we rewrite GG2 in a sane language
« Reply #70 on: August 15, 2011, 06:36:19 pm »

wow did everyone miss that i was joking
Logged
fire at cyberdisc
eighty-five percent hit chance
doh, she missed the shot

notajf

  • Guest
Re: When do we rewrite GG2 in a sane language
« Reply #71 on: August 16, 2011, 03:09:49 pm »

I just randomly noticed that there is a LUA wrapper for Game Maker, unsurprisingly called gmlua. It can apparently call into GML functions by using the dark magic of GMAPI, so a relatively tight integration between LUA and GML is possible. However, GMAPI only works with GM up to version 8.0 and doesn't seem very active, so if we did use it, we might not be able to switch to GM 8.1. GMAPI is LGPL licensed, so we could always do the porting ourselves, but I don't really feel like taking on yet another GM extension projekt at the moment.

On the upside, having coroutines could dramatically simplify the netcode. If I understand them correctly (I never actually used coroutines yet), they would allow writing netcode almost as if the calls were blocking. That is, you could have a function receiveOrYield(socket, size) that will only return once the requested ammount has been read, and in the meantime it wouldn't block the thread, but allow the game to continue running. It would also improve the possibilities of script-based modding. And if done well, the game logic might be translated to LUA bit by bit, until we only have the bare "engine" in GML, which could then be recreated in a different host language to migrate completely away from Game Maker.

I didn't spend any time actually planning this so there might be glaring flaws. Just putting it here as an idea. I still won't have time to do this kind of thing for a while now.
I'm supposed to be retired, but I'm visiting for 5 minutes again.

This sounds like a good idea - In fact, I've suggested this before (although not using Lua). If you were to do this, you could eventually go to "LÖVE", a lovely Lua 2d engine for games.
Logged

free crzy

  • random chatter mod
  • Heroic Member
  • ****
  • Karma: 44
  • Offline Offline
  • Posts: 737
  • subscribe to pewdiepie
    • drain gang track you down like a bloodhound
Re: When do we rewrite GG2 in a sane language
« Reply #72 on: March 22, 2024, 12:00:16 pm »

ay yo when this board get here???
Pages: 1 ... 3 4 [5]
 

Page created in 0.027 seconds with 33 queries.