[TFS 1.1] Lua map generator (beta)

Discussion in 'Mods & Lua Functions' started by zbizu, Mar 27, 2015.

  1. zbizu

    zbizu ‌‌Luakami

    Joined:
    Nov 22, 2010
    Messages:
    2,429
    lua map generator with basic functions
    currently it can only do caves and simple borders

    cave generating script preview on 128x128:
    [​IMG]

    installation:
    1. download zip from here: https://github.com/Zbizu/map_generator
    2. put map_generator-master in your data folder
    3. rename it to map_generator
    3. add this to global.lua:
    Code:
    dofile('data/map_generator/loader.lua')
    demo:
    map_generator\mods\example.lua contains example of generator features

    to generate map somewhere execute:
    Code:
    map_demo(map_id, frompos, topos, seed)
     
    Last edited: Mar 30, 2015
    Glombers, kito2, kokokoko and 18 others like this.
  2. Red

    Red Cyntara Admin Staff Member Global Moderator Premium User

    Joined:
    Aug 9, 2008
    Messages:
    4,315
    Starred and following!
    I'll be sure to try it out when I get some time!

    Red
     
    zbizu likes this.
  3. Cornex

    Cornex Web Developer Staff Member Global Moderator

    Joined:
    Jun 15, 2008
    Messages:
    3,407
    Starred as well, great work and thanks for sharing this! :)
     
    zbizu likes this.
  4. Codinablack

    Codinablack Dreamer

    Joined:
    Dec 26, 2013
    Messages:
    1,119
    Great work! Thank you very much for this release sir!

    Starred and watching :D
     
    Last edited: Mar 28, 2015
    zbizu likes this.
  5. SN4KY

    SN4KY Member

    Joined:
    Mar 19, 2015
    Messages:
    37
    if I get motivated to create an OT I will use all yours systems cuz they are awesome :cool:
     
    zbizu and Codinablack like this.
  6. Sizaro

    Sizaro Well-Known Member

    Joined:
    Aug 20, 2007
    Messages:
    4,973
    How does it look ingame?
     
  7. zbizu

    zbizu ‌‌Luakami

    Joined:
    Nov 22, 2010
    Messages:
    2,429
    terrible so far because I started working on it from scratch.
    here is a gif of my old generator: http://i.imgur.com/Q6vz1d9.gif
    it will work same way, but will be faster and will have more features also
     
  8. Dubler

    Dubler PHP, LUA, C++

    Joined:
    Aug 3, 2009
    Messages:
    270
    Great job m8. I remember when you first wrote a msg to me when you had started working on this. I haven't seen the source yet but working lua version is a masterpiece itself
     
    zbizu likes this.
  9. Mariuskens

    Mariuskens Sword Art Online 2D-MMORPG

    Joined:
    Nov 21, 2008
    Messages:
    848
    @zbizu this tool to load for all clients minimap?
    ^^
     
  10. zbizu

    zbizu ‌‌Luakami

    Joined:
    Nov 22, 2010
    Messages:
    2,429
    @Mariuskens
    I don't understand your point. Please make your statement more clear.
     
    Simon Here likes this.
  11. Codinablack

    Codinablack Dreamer

    Joined:
    Dec 26, 2013
    Messages:
    1,119
    No, this will not create a map from a clients mini map
     
  12. zbizu

    zbizu ‌‌Luakami

    Joined:
    Nov 22, 2010
    Messages:
    2,429
    updated
    [​IMG]

    to linux and osx users:
    any console errors on startup?
    loader.lua needs to be tested on operation systems different than windows so tell me if it works or not.
     
    Last edited: Mar 30, 2015
    Simon Here and Codinablack like this.
  13. zbizu

    zbizu ‌‌Luakami

    Joined:
    Nov 22, 2010
    Messages:
    2,429
    Bump
    Working on taking borders to rme autoborder level now.
     
    Simon Here likes this.
  14. Mokerhamer

    Mokerhamer Retired Global Mod

    Joined:
    Aug 6, 2007
    Messages:
    1,764
    Hi Zbizu,

    I'm currently working on "Random Boss Dungeon" system and your auto mapper is exactly what i need :p
    I will be testing this soon!! hit me up when u update.
     
  15. zbizu

    zbizu ‌‌Luakami

    Joined:
    Nov 22, 2010
    Messages:
    2,429
    just watch this thread, I'll post new features here
     
    Simon Here and Codinablack like this.
  16. Mokerhamer

    Mokerhamer Retired Global Mod

    Joined:
    Aug 6, 2007
    Messages:
    1,764
    @zbizu

    Can you make map element's optional? (default,Ice,fire,water,energy)? -- Need to know before making 4 elements dungeon :p
     
  17. zbizu

    zbizu ‌‌Luakami

    Joined:
    Nov 22, 2010
    Messages:
    2,429
    - you may generate any amount of maps
    - every floor can have different settings
     
    Simon Here likes this.
  18. Codinablack

    Codinablack Dreamer

    Joined:
    Dec 26, 2013
    Messages:
    1,119
    I noticed you haven't done much work on this or anything lately... wassup? I got a job where I work 50+ hours a week is why I have been hella busy, but I have always been thankful of your work, and quite frankly this generator I have admired
     
  19. zbizu

    zbizu ‌‌Luakami

    Joined:
    Nov 22, 2010
    Messages:
    2,429
    had exams, did some mapping recently (working on evo from scratch)
    I'll back to working on it when I need it.

    You can still create pull requests, it's a public repo.
     
    Codinablack likes this.
  20. Damon

    Damon Web Developer

    Joined:
    Mar 26, 2011
    Messages:
    5,913
    Are you working on the evo you released? or why did you decide to start from scratch?
    Anyway gl mate :)
     

Share This Page