[TFS 1.1] Lua map generator (beta)

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

  1. zbizu

    zbizu Retired

    Joined:
    Nov 22, 2010
    Messages:
    2,440
    Likes Received:
    1,347
    Best Answers:
    1
    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 (Text):
    1. dofile('data/map_generator/loader.lua')
    demo:
    map_generator\mods\example.lua contains example of generator features

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

    Red Cyntara Admin Staff Member Global Moderator Premium User

    Joined:
    Aug 9, 2008
    Messages:
    4,331
    Likes Received:
    692
    Best Answers:
    1
    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,432
    Likes Received:
    1,133
    Best Answers:
    4
    Starred as well, great work and thanks for sharing this! :)
     
    zbizu likes this.
  4. Codinablack

    Codinablack Dreamer

    Joined:
    Dec 26, 2013
    Messages:
    1,215
    Likes Received:
    370
    Best Answers:
    3
    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:
    55
    Likes Received:
    12
    Best Answers:
    0
    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:
    5,048
    Likes Received:
    105
    Best Answers:
    2
    How does it look ingame?
     
  7. zbizu

    zbizu Retired

    Joined:
    Nov 22, 2010
    Messages:
    2,440
    Likes Received:
    1,347
    Best Answers:
    1
    terrible so far because I started working on it from scratch.
    here is a gif of my old generator: https://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:
    269
    Likes Received:
    11
    Best Answers:
    0
    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:
    878
    Likes Received:
    83
    Best Answers:
    0
    @zbizu this tool to load for all clients minimap?
    ^^
     
  10. zbizu

    zbizu Retired

    Joined:
    Nov 22, 2010
    Messages:
    2,440
    Likes Received:
    1,347
    Best Answers:
    1
    @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,215
    Likes Received:
    370
    Best Answers:
    3
    No, this will not create a map from a clients mini map
     
  12. zbizu

    zbizu Retired

    Joined:
    Nov 22, 2010
    Messages:
    2,440
    Likes Received:
    1,347
    Best Answers:
    1
    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 Retired

    Joined:
    Nov 22, 2010
    Messages:
    2,440
    Likes Received:
    1,347
    Best Answers:
    1
    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
    Likes Received:
    33
    Best Answers:
    0
    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 Retired

    Joined:
    Nov 22, 2010
    Messages:
    2,440
    Likes Received:
    1,347
    Best Answers:
    1
    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
    Likes Received:
    33
    Best Answers:
    0
    @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 Retired

    Joined:
    Nov 22, 2010
    Messages:
    2,440
    Likes Received:
    1,347
    Best Answers:
    1
    - 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,215
    Likes Received:
    370
    Best Answers:
    3
    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 Retired

    Joined:
    Nov 22, 2010
    Messages:
    2,440
    Likes Received:
    1,347
    Best Answers:
    1
    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 Retired | Check my status to contact me :)

    Joined:
    Mar 26, 2011
    Messages:
    5,957
    Likes Received:
    1,830
    Best Answers:
    1
    Are you working on the evo you released? or why did you decide to start from scratch?
    Anyway gl mate :)
     

Share This Page

Loading...