Emulator in LUA

Page 1 of 2 12 LastLast
Results 1 to 15 of 18
  1. #1
    Enthusiast clienta is offline
    MemberRank
    Mar 2012 Join Date
    49Posts

    Emulator in LUA

    Is It possible?


  2. #2
    Evil Italian Overlowrd Droppy is offline
    [Internal Coder]Rank
    Feb 2012 Join Date
    /home/droppyLocation
    2,078Posts

    Re: Emulator in LUA

    I think so, you can do an emulator with most of languages out there. I'm not a pro with LUA, but reading it now, looks like it's fairy possible.

    I'm basing my opinion on:

    http://w3.impa.br/~diego/software/lu...roduction.html
    https://gist.github.com/Deco/4026258 (Multithreaded example)

    I wish some LUA Developer come here and have a look at it...

    I think @Glaceon develops in LUA...?

    Your head is in the right place. Keep it going! Would love to see emulators avaliable in other languages than C# and Java...

    Best of luck

  3. #3
    Alpha Member Emily is offline
    MemberRank
    Oct 2012 Join Date
    The NetherlandsLocation
    2,408Posts

    Re: Emulator in LUA

    Quote Originally Posted by Droppy View Post
    I think so, you can do an emulator with most of languages out there. I'm not a pro with LUA, but reading it now, looks like it's fairy possible.

    I'm basing my opinion on:

    http://w3.impa.br/~diego/software/lu...roduction.html
    https://gist.github.com/Deco/4026258 (Multithreaded example)

    I wish some LUA Developer come here and have a look at it...

    I think @Glaceon develops in LUA...?

    Your head is in the right place. Keep it going! Would love to see emulators avaliable in other languages than C# and Java...

    Best of luck
    Naw. I have never looked at LUA actually. But as long as socket connections and mysql connection is possible and it's OOP, you can make a server out of it. I'm not a great expert in LUA

  4. #4
    Check http://arcturus.pw The General is offline
    DeveloperRank
    Aug 2011 Join Date
    7,610Posts

    Re: Emulator in LUA

    Just Cause 2 servers are written in LUA (As far as I know). They seem to be pretty stable and able to handle a lot of connections.

  5. #5
    Account Upgraded | Title Enabled! AWA is offline
    MemberRank
    Feb 2008 Join Date
    1,320Posts

    Re: Emulator in LUA

    Quote Originally Posted by The General View Post
    Just Cause 2 servers are written in LUA (As far as I know). They seem to be pretty stable and able to handle a lot of connections.
    JC-MP only uses LUA for scripting, not for the server software itself. LUA is a script language, and unless there's something out there that converts it to real programs, it won't be good to use to make the actual emulator.
    That said, it is a really good language for supporting plugins and mods!

  6. #6
    Alpha Member Caustik is offline
    MemberRank
    May 2011 Join Date
    LondonLocation
    1,837Posts

    Re: Emulator in LUA

    Yes, you could write the high performance parts in C and embed Lua for stuff like game logic.
    Writing the emulator in pure Lua would be interesting though.

  7. #7
    Enthusiast clienta is offline
    MemberRank
    Mar 2012 Join Date
    49Posts

    Re: Emulator in LUA

    So it would be difficult to make an emulator in lua?

    atleast an stable one

  8. #8
    Alpha Member Caustik is offline
    MemberRank
    May 2011 Join Date
    LondonLocation
    1,837Posts

    Re: Emulator in LUA

    Quote Originally Posted by clienta View Post
    So it would be difficult to make an emulator in lua?

    atleast an stable one
    Not at all.

  9. #9
    Developer Quackster is offline
    DeveloperRank
    Dec 2010 Join Date
    AustraliaLocation
    3,479Posts

    Re: Emulator in LUA

    Quote Originally Posted by AWA View Post
    JC-MP only uses LUA for scripting, not for the server software itself. LUA is a script language, and unless there's something out there that converts it to real programs, it won't be good to use to make the actual emulator.
    That said, it is a really good language for supporting plugins and mods!
    Hmm, I think SQF is a lot simpler to mod with but then again that's only limited to Bohemia Interactive's software.

  10. #10
    Enthusiast clienta is offline
    MemberRank
    Mar 2012 Join Date
    49Posts

    Re: Emulator in LUA

    Playing around with LuaSocket now :)

    - - - Updated - - -

    Should i use HTTP socket or TCP socket?

  11. #11
    ◝(⁰▿⁰)◜Smile◝ (⁰▿⁰)◜ Taiga is offline
    DeveloperRank
    May 2007 Join Date
    InternetLocation
    2,464Posts

    Re: Emulator in LUA

    Quote Originally Posted by clienta View Post
    Should i use HTTP socket or TCP socket?
    It's possible but I wouldn't recommend everything to be written in lua tough..
    And you've to use TCP-sockets.

  12. #12
    Occasional Visitor Cecer is offline
    MemberRank
    Aug 2006 Join Date
    EnglandLocation
    743Posts

    Re: Emulator in LUA

    This sounds like an interesting learning project. Props to you for trying something new! I honestly don't think you'd ever want to use Lua for anything too big but it is a nice language to play around with. Some of the more complex features like metatables are really cool to work with.

    Off Topic: Lua is a word (it means moon) and so shouldn't be all caps (specifically requested by the creators of Lua).

    "Lua" (pronounced LOO-ah) means "Moon" in Portuguese. As such, it is neither an acronym nor an abbreviation, but a noun. More specifically, "Lua" is a name, the name of the Earth's moon and the name of the language. Like most names, it should be written in lower case with an initial capital, that is, "Lua". Please do not write it as "LUA", which is both ugly and confusing, because then it becomes an acronym with different meanings for different people. So, please, write "Lua" right!
    http://www.lua.org/about.html

  13. #13
    j’aime ma famille dominic is offline
    MemberRank
    Aug 2012 Join Date
    ~/Location
    611Posts

    Re: Emulator in LUA

    Quote Originally Posted by Cecer View Post
    This sounds like an interesting learning project. Props to you for trying something new! I honestly don't think you'd ever want to use Lua for anything too big but it is a nice language to play around with. Some of the more complex features like metatables are really cool to work with.

    Off Topic: Lua is a word (it means moon) and so shouldn't be all caps (specifically requested by the creators of Lua).


    http://www.lua.org/about.html
    Return of the great Cecer?

    - Anyhow, I agree with him, though I would never use Lua for anything to hold a lot of connections.

  14. #14
    Alpha Member Moogly is offline
    MemberRank
    Feb 2008 Join Date
    Pool LidoLocation
    2,322Posts

    Re: Emulator in LUA

    Quote Originally Posted by Glaceon View Post
    Naw. I have never looked at LUA actually. But as long as socket connections and mysql connection is possible and it's OOP, you can make a server out of it. I'm not a great expert in LUA
    Something doesn't have to be Object Oriented in order to make a server out of it. If it has networking and file opening access (and database drivers), then you can make a Habbo server with the language.

    Languages you can write a Habbo server in (not complete list):

    Python
    C
    Go
    C++
    C#
    Java
    JavaScript (using Node.JS, and any Node.JS language, including TypeScript, CoffeeScript and others)
    Pascal / Delphi
    Visual Basic 6 / .NET
    Lua (yes)
    Haskell
    OCaml / F# (would love to see this!)
    Ruby (had a project like this years ago, but threading in Ruby sucks, not impossible, just not worth it, use JRuby instead or CoffeeScript with Node.JS)
    and thousands of other languages, including RealBASIC, probably FreeBasic and many others.

    Key features you want in whatever language you use:

    Networking
    Database Drivers or File Input and Output
    Threading or subprocesses or something close enough, or capability of implementing using C or C++

  15. #15
    Alpha Member Emily is offline
    MemberRank
    Oct 2012 Join Date
    The NetherlandsLocation
    2,408Posts

    Re: Emulator in LUA

    Quote Originally Posted by Moogly View Post
    Something doesn't have to be Object Oriented in order to make a server out of it. If it has networking and file opening access (and database drivers), then you can make a Habbo server with the language.

    Languages you can write a Habbo server in (not complete list):

    Python
    C
    Go
    C++
    C#
    Java
    JavaScript (using Node.JS, and any Node.JS language, including TypeScript, CoffeeScript and others)
    Pascal / Delphi
    Visual Basic 6 / .NET
    Lua (yes)
    Haskell
    OCaml / F# (would love to see this!)
    Ruby (had a project like this years ago, but threading in Ruby sucks, not impossible, just not worth it, use JRuby instead or CoffeeScript with Node.JS)
    and thousands of other languages, including RealBASIC, probably FreeBasic and many others.

    Key features you want in whatever language you use:

    Networking
    Database Drivers or File Input and Output
    Threading or subprocesses or something close enough, or capability of implementing using C or C++
    Yeah I know I wasn't thinking right thanks for correcting.



Page 1 of 2 12 LastLast

Advertisement